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/11490
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11490/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11490/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11490/events
|
https://github.com/langchain-ai/langchain/pull/11490
| 1,930,653,620 |
PR_kwDOIPDwls5cInQw
| 11,490 |
Fix Open in Colab link for ClearML docs
|
{
"login": "mdziezyc",
"id": 27692483,
"node_id": "MDQ6VXNlcjI3NjkyNDgz",
"avatar_url": "https://avatars.githubusercontent.com/u/27692483?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mdziezyc",
"html_url": "https://github.com/mdziezyc",
"followers_url": "https://api.github.com/users/mdziezyc/followers",
"following_url": "https://api.github.com/users/mdziezyc/following{/other_user}",
"gists_url": "https://api.github.com/users/mdziezyc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mdziezyc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mdziezyc/subscriptions",
"organizations_url": "https://api.github.com/users/mdziezyc/orgs",
"repos_url": "https://api.github.com/users/mdziezyc/repos",
"events_url": "https://api.github.com/users/mdziezyc/events{/privacy}",
"received_events_url": "https://api.github.com/users/mdziezyc/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-10-06T17:15:21 | 2023-10-06T17:22:59 | 2023-10-06T17:17:20 |
CONTRIBUTOR
| null |
Description: Fixed the Open in Colab link for ClearML docs
Issue: https://github.com/allegroai/clearml/issues/1125
Twitter handle: DziezycMaciej
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11490/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11490/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11490",
"html_url": "https://github.com/langchain-ai/langchain/pull/11490",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11490.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11490.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11489
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11489/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11489/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11489/events
|
https://github.com/langchain-ai/langchain/pull/11489
| 1,930,651,057 |
PR_kwDOIPDwls5cImq1
| 11,489 |
Support Fireworks batching (#6)
|
{
"login": "ZixinYang",
"id": 17904229,
"node_id": "MDQ6VXNlcjE3OTA0MjI5",
"avatar_url": "https://avatars.githubusercontent.com/u/17904229?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ZixinYang",
"html_url": "https://github.com/ZixinYang",
"followers_url": "https://api.github.com/users/ZixinYang/followers",
"following_url": "https://api.github.com/users/ZixinYang/following{/other_user}",
"gists_url": "https://api.github.com/users/ZixinYang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ZixinYang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ZixinYang/subscriptions",
"organizations_url": "https://api.github.com/users/ZixinYang/orgs",
"repos_url": "https://api.github.com/users/ZixinYang/repos",
"events_url": "https://api.github.com/users/ZixinYang/events{/privacy}",
"received_events_url": "https://api.github.com/users/ZixinYang/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 | 2 | 2023-10-06T17:14:18 | 2023-10-19T17:20:14 | 2023-10-19T17:20:14 |
CONTRIBUTOR
| null |
Description
* Add `_generate` and `_agenerate` to support Fireworks batching.
Issue - Not applicable
Dependencies - None
Tag maintainer - @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11489/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11489/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11489",
"html_url": "https://github.com/langchain-ai/langchain/pull/11489",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11489.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11489.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11488
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11488/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11488/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11488/events
|
https://github.com/langchain-ai/langchain/pull/11488
| 1,930,644,474 |
PR_kwDOIPDwls5cIlJc
| 11,488 |
Added a better error description if processor name is wrong.
|
{
"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": 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-10-06T17:11:25 | 2023-10-12T01:43:40 | 2023-10-12T01:43:40 |
CONTRIBUTOR
| null |
Replace this entire comment with:
- **Description:** added a better error description for this error
- **Issue:** #11407
@baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11488/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11488/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11488",
"html_url": "https://github.com/langchain-ai/langchain/pull/11488",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11488.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11488.patch",
"merged_at": "2023-10-12T01:43:40"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11487
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11487/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11487/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11487/events
|
https://github.com/langchain-ai/langchain/pull/11487
| 1,930,608,702 |
PR_kwDOIPDwls5cIdHG
| 11,487 |
Rename RunnableMap to RunnableParallel
|
{
"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": 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 | 1 | 2023-10-06T16:48:56 | 2023-10-09T10:22:04 | 2023-10-09T10:22:03 |
COLLABORATOR
| null |
- keep alias for RunnableMap
- update docs to use RunnableParallel and RunnablePassthrough.assign
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11487/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11487/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11487",
"html_url": "https://github.com/langchain-ai/langchain/pull/11487",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11487.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11487.patch",
"merged_at": "2023-10-09T10:22:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11486
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11486/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11486/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11486/events
|
https://github.com/langchain-ai/langchain/pull/11486
| 1,930,517,177 |
PR_kwDOIPDwls5cIKMo
| 11,486 |
bump 310
|
{
"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-10-06T16:04:22 | 2023-10-06T16:49:12 | 2023-10-06T16:49:11 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11486/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11486/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11486",
"html_url": "https://github.com/langchain-ai/langchain/pull/11486",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11486.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11486.patch",
"merged_at": "2023-10-06T16:49:11"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11485
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11485/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11485/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11485/events
|
https://github.com/langchain-ai/langchain/issues/11485
| 1,930,491,541 |
I_kwDOIPDwls5zEPaV
| 11,485 |
Issue: load_llm_from_config doesn't working with Chat Models
|
{
"login": "lawwu",
"id": 9869041,
"node_id": "MDQ6VXNlcjk4NjkwNDE=",
"avatar_url": "https://avatars.githubusercontent.com/u/9869041?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lawwu",
"html_url": "https://github.com/lawwu",
"followers_url": "https://api.github.com/users/lawwu/followers",
"following_url": "https://api.github.com/users/lawwu/following{/other_user}",
"gists_url": "https://api.github.com/users/lawwu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lawwu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lawwu/subscriptions",
"organizations_url": "https://api.github.com/users/lawwu/orgs",
"repos_url": "https://api.github.com/users/lawwu/repos",
"events_url": "https://api.github.com/users/lawwu/events{/privacy}",
"received_events_url": "https://api.github.com/users/lawwu/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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-10-06T15:52:46 | 2023-10-11T23:29:10 | 2023-10-11T23:29:10 |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
The llm loader `load_llm_from_config` defined [here](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/llms/loading.py#L12) only returns `BaseLLM`s. There is no equivalent chat_model loader in langchain to load Chat Model LLMs from a config that I'm aware of.
What do you think of either extending the `load_llm_from_config` such that it returns both `BaseLLM` and `BaseChatModel`
```
load_llm_from_config(config: dict) -> Union[BaseLLM, BaseChatModel]
```
or create a chat_model loader in `langchain.chat_models.loading.py`
```
load_chat_llm_from_config(config: dict) -> BaseChatModel
```
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11485/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11485/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11484
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11484/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11484/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11484/events
|
https://github.com/langchain-ai/langchain/pull/11484
| 1,930,466,226 |
PR_kwDOIPDwls5cH_7E
| 11,484 |
Add SemaDB VST wrapper
|
{
"login": "nuric",
"id": 9869689,
"node_id": "MDQ6VXNlcjk4Njk2ODk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9869689?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nuric",
"html_url": "https://github.com/nuric",
"followers_url": "https://api.github.com/users/nuric/followers",
"following_url": "https://api.github.com/users/nuric/following{/other_user}",
"gists_url": "https://api.github.com/users/nuric/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nuric/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nuric/subscriptions",
"organizations_url": "https://api.github.com/users/nuric/orgs",
"repos_url": "https://api.github.com/users/nuric/repos",
"events_url": "https://api.github.com/users/nuric/events{/privacy}",
"received_events_url": "https://api.github.com/users/nuric/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": 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 | 3 | 2023-10-06T15:41:19 | 2023-10-12T02:09:39 | 2023-10-12T02:09:38 |
CONTRIBUTOR
| null |
- **Description**: Adding vectorstore wrapper for [SemaDB](https://rapidapi.com/semafind-semadb/api/semadb).
- **Issue**: None
- **Dependencies**: None
- **Twitter handle**: semafind
Checks performed:
- [x] `make format`
- [x] `make lint`
- [x] `make test`
- [x] `make spell_check`
- [x] `make docs_build`
Documentation added:
- SemaDB vectorstore wrapper tutorial
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11484/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11484/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11484",
"html_url": "https://github.com/langchain-ai/langchain/pull/11484",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11484.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11484.patch",
"merged_at": "2023-10-12T02:09:38"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11483
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11483/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11483/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11483/events
|
https://github.com/langchain-ai/langchain/pull/11483
| 1,930,338,887 |
PR_kwDOIPDwls5cHlhs
| 11,483 |
Add Cohere retrieval augmented generation to retrievers
|
{
"login": "billytrend-cohere",
"id": 144115527,
"node_id": "U_kgDOCJcHRw",
"avatar_url": "https://avatars.githubusercontent.com/u/144115527?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/billytrend-cohere",
"html_url": "https://github.com/billytrend-cohere",
"followers_url": "https://api.github.com/users/billytrend-cohere/followers",
"following_url": "https://api.github.com/users/billytrend-cohere/following{/other_user}",
"gists_url": "https://api.github.com/users/billytrend-cohere/gists{/gist_id}",
"starred_url": "https://api.github.com/users/billytrend-cohere/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/billytrend-cohere/subscriptions",
"organizations_url": "https://api.github.com/users/billytrend-cohere/orgs",
"repos_url": "https://api.github.com/users/billytrend-cohere/repos",
"events_url": "https://api.github.com/users/billytrend-cohere/events{/privacy}",
"received_events_url": "https://api.github.com/users/billytrend-cohere/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 3 | 2023-10-06T14:48:51 | 2023-10-17T18:51:05 | 2023-10-17T18:51:05 |
CONTRIBUTOR
| null |
Add Cohere retrieval augmented generation to retrievers
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11483/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11483/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11483",
"html_url": "https://github.com/langchain-ai/langchain/pull/11483",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11483.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11483.patch",
"merged_at": "2023-10-17T18:51:05"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11482
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11482/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11482/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11482/events
|
https://github.com/langchain-ai/langchain/pull/11482
| 1,930,327,009 |
PR_kwDOIPDwls5cHi0k
| 11,482 |
rm brave
|
{
"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-10-06T14:44:14 | 2023-10-06T14:44:24 | 2023-10-06T14:44:20 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11482/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11482/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11482",
"html_url": "https://github.com/langchain-ai/langchain/pull/11482",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11482.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11482.patch",
"merged_at": "2023-10-06T14:44:20"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11481
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11481/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11481/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11481/events
|
https://github.com/langchain-ai/langchain/pull/11481
| 1,930,285,525 |
PR_kwDOIPDwls5cHZpC
| 11,481 |
Sentiment analysis chain
|
{
"login": "vanamayaswanth",
"id": 68809553,
"node_id": "MDQ6VXNlcjY4ODA5NTUz",
"avatar_url": "https://avatars.githubusercontent.com/u/68809553?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vanamayaswanth",
"html_url": "https://github.com/vanamayaswanth",
"followers_url": "https://api.github.com/users/vanamayaswanth/followers",
"following_url": "https://api.github.com/users/vanamayaswanth/following{/other_user}",
"gists_url": "https://api.github.com/users/vanamayaswanth/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vanamayaswanth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vanamayaswanth/subscriptions",
"organizations_url": "https://api.github.com/users/vanamayaswanth/orgs",
"repos_url": "https://api.github.com/users/vanamayaswanth/repos",
"events_url": "https://api.github.com/users/vanamayaswanth/events{/privacy}",
"received_events_url": "https://api.github.com/users/vanamayaswanth/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
open
| false | null |
[] | null | 3 | 2023-10-06T14:23:46 | 2023-10-21T11:52:05 | null |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11481/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11481/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11481",
"html_url": "https://github.com/langchain-ai/langchain/pull/11481",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11481.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11481.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11480
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11480/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11480/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11480/events
|
https://github.com/langchain-ai/langchain/issues/11480
| 1,930,280,545 |
I_kwDOIPDwls5zDb5h
| 11,480 |
Sentimental analysis chain
|
{
"login": "vanamayaswanth",
"id": 68809553,
"node_id": "MDQ6VXNlcjY4ODA5NTUz",
"avatar_url": "https://avatars.githubusercontent.com/u/68809553?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vanamayaswanth",
"html_url": "https://github.com/vanamayaswanth",
"followers_url": "https://api.github.com/users/vanamayaswanth/followers",
"following_url": "https://api.github.com/users/vanamayaswanth/following{/other_user}",
"gists_url": "https://api.github.com/users/vanamayaswanth/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vanamayaswanth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vanamayaswanth/subscriptions",
"organizations_url": "https://api.github.com/users/vanamayaswanth/orgs",
"repos_url": "https://api.github.com/users/vanamayaswanth/repos",
"events_url": "https://api.github.com/users/vanamayaswanth/events{/privacy}",
"received_events_url": "https://api.github.com/users/vanamayaswanth/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-10-06T14:21:14 | 2023-10-06T14:23:32 | null |
NONE
| null |
### Feature request
The SentimentAnalysis chain is designed to analyze the sentiment of textual data using langchain. It uses a language model like OpenAI's GPT-3.5 & 4 to process text inputs and provide sentiment labels and scores. This chain can be used for various applications, including sentiment analysis of product reviews, social media comments, or customer feedback.
### Motivation
To contribute to open-source
### Your contribution
yes , i am ready with my PR
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11480/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11480/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11479
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11479/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11479/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11479/events
|
https://github.com/langchain-ai/langchain/issues/11479
| 1,930,250,920 |
I_kwDOIPDwls5zDUqo
| 11,479 |
Unable to use Python 3.12 due to `aiohttp` and other dependencies not supporting 3.12 yet
|
{
"login": "gmussi",
"id": 445839,
"node_id": "MDQ6VXNlcjQ0NTgzOQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/445839?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gmussi",
"html_url": "https://github.com/gmussi",
"followers_url": "https://api.github.com/users/gmussi/followers",
"following_url": "https://api.github.com/users/gmussi/following{/other_user}",
"gists_url": "https://api.github.com/users/gmussi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gmussi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gmussi/subscriptions",
"organizations_url": "https://api.github.com/users/gmussi/orgs",
"repos_url": "https://api.github.com/users/gmussi/repos",
"events_url": "https://api.github.com/users/gmussi/events{/privacy}",
"received_events_url": "https://api.github.com/users/gmussi/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 | 7 | 2023-10-06T14:05:06 | 2023-11-15T13:56:41 | null |
NONE
| null |
### System Info
pip 23.2.1 from /usr/local/lib/python3.12/site-packages/pip (python 3.12)
Python 3.12.0 (main, Oct 3 2023, 01:48:15) [GCC 12.2.0] on linux
### Who can help?
@hwchase17
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
# The issue
When I run either of these:
`pip3 install 'langchain[all]'` or
`pip install langchain`
The command fails with the full stack trace below.
# How to reproduce easily with docker
`docker run --rm -it python:3 pip install langchain`
# Stack Trace
```
Building wheels for collected packages: aiohttp, frozenlist, multidict, yarl
Building wheel for aiohttp (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for aiohttp (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [160 lines of output]
*********************
* Accelerated build *
*********************
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-312
creating build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_ws.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/payload_streamer.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/helpers.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_runner.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/pytest_plugin.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/log.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_server.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/http.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/http_writer.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/formdata.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_exceptions.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/locks.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/http_websocket.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/test_utils.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/client_ws.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_urldispatcher.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_request.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_middlewares.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/client_proto.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/streams.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/tcp_helpers.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/client.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/typedefs.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/resolver.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/cookiejar.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/payload.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_fileresponse.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/worker.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/multipart.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/base_protocol.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/http_parser.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_protocol.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_log.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_routedef.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/http_exceptions.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/connector.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_app.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/hdrs.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/web_response.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/__init__.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/client_reqrep.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/tracing.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/client_exceptions.py -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/abc.py -> build/lib.linux-x86_64-cpython-312/aiohttp
running egg_info
writing aiohttp.egg-info/PKG-INFO
writing dependency_links to aiohttp.egg-info/dependency_links.txt
writing requirements to aiohttp.egg-info/requires.txt
writing top-level names to aiohttp.egg-info/top_level.txt
reading manifest file 'aiohttp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'aiohttp' anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.lib' found anywhere in distribution
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.a' found anywhere in distribution
warning: no previously-included files matching '*.obj' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp/*.html'
no previously-included directories found matching 'docs/_build'
adding license file 'LICENSE.txt'
writing manifest file 'aiohttp.egg-info/SOURCES.txt'
copying aiohttp/_cparser.pxd -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/_find_header.pxd -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/_headers.pxi -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/_helpers.pyi -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/_helpers.pyx -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/_http_parser.pyx -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/_http_writer.pyx -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/_websocket.pyx -> build/lib.linux-x86_64-cpython-312/aiohttp
copying aiohttp/py.typed -> build/lib.linux-x86_64-cpython-312/aiohttp
creating build/lib.linux-x86_64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_cparser.pxd.hash -> build/lib.linux-x86_64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_find_header.pxd.hash -> build/lib.linux-x86_64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_helpers.pyi.hash -> build/lib.linux-x86_64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_helpers.pyx.hash -> build/lib.linux-x86_64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_http_parser.pyx.hash -> build/lib.linux-x86_64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_http_writer.pyx.hash -> build/lib.linux-x86_64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_websocket.pyx.hash -> build/lib.linux-x86_64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/hdrs.py.hash -> build/lib.linux-x86_64-cpython-312/aiohttp/.hash
running build_ext
building 'aiohttp._websocket' extension
creating build/temp.linux-x86_64-cpython-312
creating build/temp.linux-x86_64-cpython-312/aiohttp
gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/local/include/python3.12 -c aiohttp/_websocket.c -o build/temp.linux-x86_64-cpython-312/aiohttp/_websocket.o
aiohttp/_websocket.c: In function ‘__pyx_pf_7aiohttp_10_websocket__websocket_mask_cython’:
aiohttp/_websocket.c:1475:3: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
1475 | if (unlikely(!Py_OptimizeFlag)) {
| ^~
In file included from /usr/local/include/python3.12/Python.h:48,
from aiohttp/_websocket.c:6:
/usr/local/include/python3.12/cpython/pydebug.h:13:37: note: declared here
13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
| ^~~~~~~~~~~~~~~
aiohttp/_websocket.c: In function ‘__Pyx_get_tp_dict_version’:
aiohttp/_websocket.c:2680:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2680 | return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
| ^~~~~~
In file included from /usr/local/include/python3.12/dictobject.h:90,
from /usr/local/include/python3.12/Python.h:61:
/usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
22 | Py_DEPRECATED(3.12) uint64_t ma_version_tag;
| ^~~~~~~~~~~~~~
aiohttp/_websocket.c: In function ‘__Pyx_get_object_dict_version’:
aiohttp/_websocket.c:2692:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2692 | return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
| ^~~~~~
/usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
22 | Py_DEPRECATED(3.12) uint64_t ma_version_tag;
| ^~~~~~~~~~~~~~
aiohttp/_websocket.c: In function ‘__Pyx_object_dict_version_matches’:
aiohttp/_websocket.c:2696:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2696 | if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
| ^~
/usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
22 | Py_DEPRECATED(3.12) uint64_t ma_version_tag;
| ^~~~~~~~~~~~~~
aiohttp/_websocket.c: In function ‘__Pyx_CLineForTraceback’:
aiohttp/_websocket.c:2741:9: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2741 | __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
22 | Py_DEPRECATED(3.12) uint64_t ma_version_tag;
| ^~~~~~~~~~~~~~
aiohttp/_websocket.c:2741:9: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2741 | __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
22 | Py_DEPRECATED(3.12) uint64_t ma_version_tag;
| ^~~~~~~~~~~~~~
aiohttp/_websocket.c: In function ‘__Pyx_PyInt_As_long’:
aiohttp/_websocket.c:3042:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
3042 | const digit* digits = ((PyLongObject*)x)->ob_digit;
| ^~
aiohttp/_websocket.c:3097:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
3097 | const digit* digits = ((PyLongObject*)x)->ob_digit;
| ^~
aiohttp/_websocket.c: In function ‘__Pyx_PyInt_As_int’:
aiohttp/_websocket.c:3238:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
3238 | const digit* digits = ((PyLongObject*)x)->ob_digit;
| ^~
aiohttp/_websocket.c:3293:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
3293 | const digit* digits = ((PyLongObject*)x)->ob_digit;
| ^~
aiohttp/_websocket.c: In function ‘__Pyx_PyIndex_AsSsize_t’:
aiohttp/_websocket.c:3744:45: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
3744 | const digit* digits = ((PyLongObject*)b)->ob_digit;
| ^~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for aiohttp
Building wheel for frozenlist (pyproject.toml) ... done
Created wheel for frozenlist: filename=frozenlist-1.4.0-cp312-cp312-linux_x86_64.whl size=261459 sha256=a163dbc3bcddc5bf23bf228b0774c1c783465a0456dd3ad5da6b3fa065ec3e23
Stored in directory: /root/.cache/pip/wheels/f1/9c/94/9386cb0ea511a93226456388d41d35f1c24ba15a62ffd7b1ef
Building wheel for multidict (pyproject.toml) ... done
Created wheel for multidict: filename=multidict-6.0.4-cp312-cp312-linux_x86_64.whl size=114930 sha256=d6cde2e1fe8812d821a35581f31f1ff4797800ad474bf9ec1407fe5398ba2739
Stored in directory: /root/.cache/pip/wheels/f6/d8/ff/3c14a64b8f2ab1aa94ba2888f5a988be6ab446ec5c8d1a82da
Building wheel for yarl (pyproject.toml) ... done
Created wheel for yarl: filename=yarl-1.9.2-cp312-cp312-linux_x86_64.whl size=285235 sha256=fb299f423d87aae65e64d9a2b450b6540257c0f1a102ee01330a02f746ac791c
Stored in directory: /root/.cache/pip/wheels/84/e3/6a/7d0fa1abee8e4aa39922b5bd54689b4b5e4269b2821f482a32
Successfully built frozenlist multidict yarl
Failed to build aiohttp
ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects
```
### Expected behavior
Installation succeeds
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11479/reactions",
"total_count": 6,
"+1": 6,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11479/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11478
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11478/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11478/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11478/events
|
https://github.com/langchain-ai/langchain/issues/11478
| 1,930,190,172 |
I_kwDOIPDwls5zDF1c
| 11,478 |
Fail using langchain extractor with AzureOpenAI
|
{
"login": "geekpaolo",
"id": 41640446,
"node_id": "MDQ6VXNlcjQxNjQwNDQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/41640446?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/geekpaolo",
"html_url": "https://github.com/geekpaolo",
"followers_url": "https://api.github.com/users/geekpaolo/followers",
"following_url": "https://api.github.com/users/geekpaolo/following{/other_user}",
"gists_url": "https://api.github.com/users/geekpaolo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/geekpaolo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/geekpaolo/subscriptions",
"organizations_url": "https://api.github.com/users/geekpaolo/orgs",
"repos_url": "https://api.github.com/users/geekpaolo/repos",
"events_url": "https://api.github.com/users/geekpaolo/events{/privacy}",
"received_events_url": "https://api.github.com/users/geekpaolo/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 8 | 2023-10-06T13:29:21 | 2023-12-04T08:03:10 | null |
NONE
| null |
### System Info
pyython: 3.11
langChain:0.0.309
SO: windows 10
pip list:
Package Version
---------------------------------------- ---------
aiofiles 23.2.1
aiohttp 3.8.5
aiosignal 1.3.1
anyio 3.7.1
async-timeout 4.0.3
asyncer 0.0.2
attrs 23.1.0
auth0-python 4.4.0
backoff 2.2.1
bcrypt 4.0.1
beautifulsoup4 4.12.2
bidict 0.22.1
certifi 2023.7.22
cffi 1.15.1
chardet 5.2.0
charset-normalizer 3.2.0
chroma-hnswlib 0.7.3
chromadb 0.4.10
click 8.1.7
colorama 0.4.6
coloredlogs 15.0.1
cryptography 41.0.3
dataclasses-json 0.5.14
Deprecated 1.2.14
django-environ 0.10.0
docx2txt 0.8
emoji 2.8.0
faiss-cpu 1.7.4
fastapi 0.97.0
fastapi-socketio 0.0.10
filelock 3.12.2
filetype 1.2.0
flatbuffers 23.5.26
frozenlist 1.4.0
fsspec 2023.6.0
google-search-results 2.4.2
googleapis-common-protos 1.60.0
gpt4all 1.0.9
greenlet 2.0.2
grpcio 1.57.0
h11 0.14.0
html2text 2020.1.16
httpcore 0.17.3
httptools 0.6.0
httpx 0.24.1
huggingface-hub 0.16.4
humanfriendly 10.0
idna 3.4
importlib-metadata 6.8.0
importlib-resources 6.0.1
Jinja2 3.1.2
joblib 1.3.2
jsonpatch 1.33
jsonpointer 2.4
langchain 0.0.309
langdetect 1.0.9
langsmith 0.0.43
lxml 4.9.3
markdownify 0.11.6
MarkupSafe 2.1.3
marshmallow 3.20.1
monotonic 1.6
mpmath 1.3.0
multidict 6.0.4
mypy-extensions 1.0.0
nest-asyncio 1.5.7
networkx 3.1
nltk 3.8.1
nodeenv 1.8.0
numexpr 2.8.5
numpy 1.25.2
onnxruntime 1.15.1
openai 0.28.1
openapi-schema-pydantic 1.2.4
opentelemetry-api 1.19.0
opentelemetry-exporter-otlp 1.19.0
opentelemetry-exporter-otlp-proto-common 1.19.0
opentelemetry-exporter-otlp-proto-grpc 1.19.0
opentelemetry-exporter-otlp-proto-http 1.19.0
opentelemetry-instrumentation 0.40b0
opentelemetry-proto 1.19.0
opentelemetry-sdk 1.19.0
opentelemetry-semantic-conventions 0.40b0
overrides 7.4.0
packaging 23.1
pandas 1.5.3
pdf2image 1.16.3
Pillow 10.0.0
pip 23.2.1
playwright 1.37.0
posthog 3.0.2
prisma 0.9.1
protobuf 4.24.1
pulsar-client 3.3.0
pycparser 2.21
pydantic 1.10.12
pyee 9.0.4
PyJWT 2.8.0
pypdf 3.15.5
PyPika 0.48.9
pyreadline3 3.4.1
python-dateutil 2.8.2
python-dotenv 1.0.0
python-engineio 4.5.1
python-graphql-client 0.4.3
python-iso639 2023.6.15
python-magic 0.4.27
python-socketio 5.8.0
pytz 2023.3
PyYAML 6.0.1
regex 2023.8.8
requests 2.31.0
safetensors 0.3.2
scikit-learn 1.3.0
scipy 1.11.2
sentence-transformers 2.2.2
sentencepiece 0.1.99
setuptools 68.0.0
six 1.16.0
sniffio 1.3.0
soupsieve 2.5
SQLAlchemy 1.4.49
starlette 0.27.0
sympy 1.12
syncer 2.0.3
tabulate 0.9.0
tenacity 8.2.3
threadpoolctl 3.2.0
tiktoken 0.5.1
tokenizers 0.13.3
tomli 2.0.1
tomlkit 0.12.1
torch 2.0.1
torchvision 0.15.2
tqdm 4.66.1
transformers 4.31.0
typing_extensions 4.7.1
typing-inspect 0.9.0
tzdata 2023.3
unstructured 0.10.18
uptrace 1.19.0
urllib3 2.0.4
uvicorn 0.22.0
watchfiles 0.19.0
websockets 11.0.3
wheel 0.38.4
wrapt 1.15.0
yarl 1.9.2
zipp 3.16.2
### 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
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python
from langchain.chat_models import AzureChatOpenAI
from langchain.chains import create_extraction_chain
# Accessing the OPENAI_API_KEY KEY
import environ
DIR_COMMON = "./common"
env = environ.Env()
environ.Env.read_env(env_file=DIR_COMMON+"/.env_iveco")
# Schema
schema = {
"properties": {
"name": {"type": "string"},
"height": {"type": "integer"},
"hair_color": {"type": "string"},
},
"required": ["name", "height"],
}
# Input
inp = """Alex is 5 feet tall. Claudia is 1 feet taller Alex and jumps higher than him. Claudia is a brunette and Alex is blonde."""
# # Run chain
llm = AzureChatOpenAI(deployment_name="gpt4-datalab",model_name="gpt-4")
chain = create_extraction_chain(schema, llm,verbose= True)
print(chain.run(inp))
```
When i run i get:
```
> Entering new LLMChain chain...
Prompt after formatting:
Human: Extract and save the relevant entities mentionedin the following passage together with their properties.
Only extract the properties mentioned in the 'information_extraction' function.
If a property is not present and is not required in the function parameters, do not include it in the output.
Passage:
Alex is 5 feet tall. Claudia is 1 feet taller Alex and jumps higher than him. Claudia is a brunette and Alex is blonde.
Traceback (most recent call last):
File "C:\Sviluppo\python\AI\Iveco\LangChain\extract_1.1.py", line 28, in <module>
print(chain.run(inp))
^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chains\base.py", line 501, in run
return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chains\base.py", line 306, in __call__
raise e
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chains\base.py", line 300, in __call__
self._call(inputs, run_manager=run_manager)
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chains\llm.py", line 93, in _call
response = self.generate([inputs], run_manager=run_manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chains\llm.py", line 103, in generate
return self.llm.generate_prompt(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chat_models\base.py", line 469, in generate_prompt
return self.generate(prompt_messages, stop=stop, callbacks=callbacks, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chat_models\base.py", line 359, in generate
raise e
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chat_models\base.py", line 349, in generate
self._generate_with_cache(
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chat_models\base.py", line 501, in _generate_with_cache
return self._generate(
^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chat_models\openai.py", line 345, in _generate
response = self.completion_with_retry(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chat_models\openai.py", line 284, in completion_with_retry
return _completion_with_retry(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\tenacity\__init__.py", line 289, in wrapped_f
return self(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\tenacity\__init__.py", line 379, in __call__
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\tenacity\__init__.py", line 314, in iter
return fut.result()
^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\concurrent\futures\_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\concurrent\futures\_base.py", line 401, in __get_result
raise self._exception
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\tenacity\__init__.py", line 382, in __call__
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\langchain\chat_models\openai.py", line 282, in _completion_with_retry
return self.client.create(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 155, in create
response, _, api_key = requestor.request(
^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\openai\api_requestor.py", line 299, in request
resp, got_stream = self._interpret_response(result, stream)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\openai\api_requestor.py", line 710, in _interpret_response
self._interpret_response_line(
File "C:\Users\vw603\Anaconda3\envs\python11\Lib\site-packages\openai\api_requestor.py", line 775, in _interpret_response_line
raise self.handle_error_response(
openai.error.InvalidRequestError: Unrecognized request argument supplied: functions
```
### Expected behavior
```
> Entering new LLMChain chain...
Prompt after formatting:
Human: Extract and save the relevant entities mentionedin the following passage together with their properties.
Only extract the properties mentioned in the 'information_extraction' function.
If a property is not present and is not required in the function parameters, do not include it in the output.
Passage:
Alex is 5 feet tall. Claudia is 1 feet taller Alex and jumps higher than him. Claudia is a brunette and Alex is blonde.
> Finished chain.
[{'name': 'Alex', 'height': 5, 'hair_color'
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11478/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11478/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11477
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11477/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11477/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11477/events
|
https://github.com/langchain-ai/langchain/issues/11477
| 1,930,053,551 |
I_kwDOIPDwls5zCkev
| 11,477 |
'RunnableLambda' object has no attribute 'run'
|
{
"login": "Galsor",
"id": 43434488,
"node_id": "MDQ6VXNlcjQzNDM0NDg4",
"avatar_url": "https://avatars.githubusercontent.com/u/43434488?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Galsor",
"html_url": "https://github.com/Galsor",
"followers_url": "https://api.github.com/users/Galsor/followers",
"following_url": "https://api.github.com/users/Galsor/following{/other_user}",
"gists_url": "https://api.github.com/users/Galsor/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Galsor/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Galsor/subscriptions",
"organizations_url": "https://api.github.com/users/Galsor/orgs",
"repos_url": "https://api.github.com/users/Galsor/repos",
"events_url": "https://api.github.com/users/Galsor/events{/privacy}",
"received_events_url": "https://api.github.com/users/Galsor/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-06T12:19:43 | 2023-10-06T12:30:19 | null |
NONE
| null |
### System Info
langchain==0.0.294
### 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
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Build a `SimpleSequentialChain` including in its chains a `RunnableLambda`
It throws: `AttributeError: 'RunnableLambda' object has no attribute 'run'`
### Expected behavior
A RunnableLambda to have an attribute `run`...
Or rename the concept of Runnable.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11477/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11477/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11476
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11476/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11476/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11476/events
|
https://github.com/langchain-ai/langchain/pull/11476
| 1,930,048,494 |
PR_kwDOIPDwls5cGncL
| 11,476 |
Fix: Correct trailing commas in JSON before parsing
|
{
"login": "Vaibhav-npc",
"id": 81007240,
"node_id": "MDQ6VXNlcjgxMDA3MjQw",
"avatar_url": "https://avatars.githubusercontent.com/u/81007240?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vaibhav-npc",
"html_url": "https://github.com/Vaibhav-npc",
"followers_url": "https://api.github.com/users/Vaibhav-npc/followers",
"following_url": "https://api.github.com/users/Vaibhav-npc/following{/other_user}",
"gists_url": "https://api.github.com/users/Vaibhav-npc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vaibhav-npc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vaibhav-npc/subscriptions",
"organizations_url": "https://api.github.com/users/Vaibhav-npc/orgs",
"repos_url": "https://api.github.com/users/Vaibhav-npc/repos",
"events_url": "https://api.github.com/users/Vaibhav-npc/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vaibhav-npc/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": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-10-06T12:16:54 | 2023-10-07T05:16:41 | 2023-10-07T05:14:33 |
NONE
| null |
This commit addresses the issue where JSON strings with trailing commas would cause parsing to fail. We have added a preprocessing step to correct these commas before attempting to parse the JSON string using the `json.loads()` function.
Changes:
- Added a `correct_trailing_commas` function that removes trailing commas from a given JSON string.
- Used this function to preprocess the JSON string inside the `parse` method of `PydanticOutputParser`.
Reason:
Some JSON producing systems or manual entries might inadvertently add trailing commas, which are not valid in standard JSON. This change aims to make our parser more robust and forgiving of such common mistakes, thereby reducing potential disruptions or failures due to invalid JSON formats.
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11476/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11476/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11476",
"html_url": "https://github.com/langchain-ai/langchain/pull/11476",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11476.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11476.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11475
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11475/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11475/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11475/events
|
https://github.com/langchain-ai/langchain/issues/11475
| 1,930,035,345 |
I_kwDOIPDwls5zCgCR
| 11,475 |
Parser Error with Langchain/agents/Conversational/Output_parser.py
|
{
"login": "surajrhinoai",
"id": 135512117,
"node_id": "U_kgDOCBPANQ",
"avatar_url": "https://avatars.githubusercontent.com/u/135512117?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/surajrhinoai",
"html_url": "https://github.com/surajrhinoai",
"followers_url": "https://api.github.com/users/surajrhinoai/followers",
"following_url": "https://api.github.com/users/surajrhinoai/following{/other_user}",
"gists_url": "https://api.github.com/users/surajrhinoai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/surajrhinoai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/surajrhinoai/subscriptions",
"organizations_url": "https://api.github.com/users/surajrhinoai/orgs",
"repos_url": "https://api.github.com/users/surajrhinoai/repos",
"events_url": "https://api.github.com/users/surajrhinoai/events{/privacy}",
"received_events_url": "https://api.github.com/users/surajrhinoai/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"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-06T12:08:15 | 2023-10-16T23:33:53 | null |
NONE
| null |
### System Info
langchain==0.0.279
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
With GPT-3.5 turbo 16k model,
Query - What is universal workflow type?
Thought: Do I need to use a tool? Yes
Action: chat_with_datasource
Action Input: What is universal workflow type?
Observation: The Universal Workflow type represents logic flows in a system. It includes two types: Flows and Subflows.
Thought: Do I need to use a tool? No
raise OutputParserException(f"Could not parse LLM output: `{text}`")
langchain.schema.output_parser.OutputParserException: Could not parse LLM output: `Do I need to use a tool? No`
Analysis -
Although when I checked i found, its using
Langchain/agents/Conversational/prompt.py
--------------------------------------------------
FORMAT_INSTRUCTIONS = """To use a tool, please use the following format:
```
Thought: Do I need to use a tool? Yes
Action: the action to take, should be one of [{tool_names}]
Action Input: the input to the action
Observation: the result of the action
```
When you have a response to say to the Human, or if you do not need to use a tool, you MUST use the format:
```
Thought: Do I need to use a tool? No
{ai_prefix}: [Your response here]
```"""
-----------------------------------------------------
So, when it does not get any tool to use, it should generate some response in "ai_prefix}:"may be previous response of llm/observation at last step"
but, its unable to generate any response and resulted into parser error.
However, when I run the same code with GPT-4, below is the response I get, and its able to parse the output as well, since llm is able to generate
{ai_prefix}: [Your response here] as per the prompt instruction, but GPT-3.5 model is unable to generate it.
-----------------------------------------------------------
Thought: Do I need to use a tool? Yes
Action: chat_with_datasource
Action Input: What is universal workflow type?
Observation: The Universal Workflow type represents logic flows in a system. It includes two types: Flows and Subflows.
Thought: Do I need to use a tool? No
AI: The Universal Workflow is a system that represents logic flows. It consists of different types such as Flows and Subflows.
------------------------------------------------------------
### Expected behavior
With GPT 3.5 model as well, it should generate AI: response, when agent found that it does not need to use a tool, which would fix the parse error.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11475/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11475/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11474
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11474/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11474/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11474/events
|
https://github.com/langchain-ai/langchain/issues/11474
| 1,930,003,162 |
I_kwDOIPDwls5zCYLa
| 11,474 |
Add condition in Prompt based on the retriever
|
{
"login": "mrcmoresi",
"id": 12852824,
"node_id": "MDQ6VXNlcjEyODUyODI0",
"avatar_url": "https://avatars.githubusercontent.com/u/12852824?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mrcmoresi",
"html_url": "https://github.com/mrcmoresi",
"followers_url": "https://api.github.com/users/mrcmoresi/followers",
"following_url": "https://api.github.com/users/mrcmoresi/following{/other_user}",
"gists_url": "https://api.github.com/users/mrcmoresi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mrcmoresi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrcmoresi/subscriptions",
"organizations_url": "https://api.github.com/users/mrcmoresi/orgs",
"repos_url": "https://api.github.com/users/mrcmoresi/repos",
"events_url": "https://api.github.com/users/mrcmoresi/events{/privacy}",
"received_events_url": "https://api.github.com/users/mrcmoresi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 11 | 2023-10-06T11:45:34 | 2023-11-14T05:18:43 | null |
NONE
| null |
### Issue you'd like to raise.
Hello,
I'm trying to change dynamically a prompt, based on the value of the context in a ConversationalRetrievalChain
```
prompt_template = """You are an AI assistant.
Use the following pieces of context to answer the question, in a precise way, at the end.
Context: {context if context else "some default: I don't have information about it"}
Question: {question}
Helpful Answer :"""
QA_PROMPT = PromptTemplate(
template=prompt_template, input_variables=["context", "question"]
)
llm = AzureChatOpenAI(
temperature=0,
deployment_name="gpt-35-turbo",
)
memory = ConversationBufferWindowMemory(
k=1,
output_key='answer',
memory_key='chat_history',
return_messages=True)
retriever = vector.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .70})
qa_chain = ConversationalRetrievalChain.from_llm(llm=llm,
memory=memory,
retriever=retriever,
condense_question_prompt=CONDENSE_QUESTION_PROMPT,
combine_docs_chain_kwargs={'prompt': QA_PROMPT},
return_source_documents=True,
verbose=True)
```
The idea is when the retriever gets 0 documents, to have something in the context that push the model to say I don't know and don't make up and answer. I already try by adding in the prompt "if you don't know the answer don't make it up" and didn't work.
Any idea how to add a condition in the template or control the LLM based on the output of the retriever?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11474/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11474/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11473
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11473/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11473/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11473/events
|
https://github.com/langchain-ai/langchain/pull/11473
| 1,929,960,708 |
PR_kwDOIPDwls5cGVEH
| 11,473 |
Enhance the ImportError in bageldb.py
|
{
"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": 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-10-06T11:23:07 | 2023-10-06T11:23:32 | 2023-10-06T11:23:29 |
CONTRIBUTOR
| null |
Enhance the ImportError handling in the code to provide a more informative error message, guiding users on how to install the missing 'betabageldb' package using 'pip'. This change improves user experience and aids in debugging.
@eyurtsev
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11473/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11473/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11473",
"html_url": "https://github.com/langchain-ai/langchain/pull/11473",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11473.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11473.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11472
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11472/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11472/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11472/events
|
https://github.com/langchain-ai/langchain/pull/11472
| 1,929,897,764 |
PR_kwDOIPDwls5cGH2v
| 11,472 |
Fix ClearML callback
|
{
"login": "eugen-ajechiloae-clearml",
"id": 97950284,
"node_id": "U_kgDOBdaaTA",
"avatar_url": "https://avatars.githubusercontent.com/u/97950284?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eugen-ajechiloae-clearml",
"html_url": "https://github.com/eugen-ajechiloae-clearml",
"followers_url": "https://api.github.com/users/eugen-ajechiloae-clearml/followers",
"following_url": "https://api.github.com/users/eugen-ajechiloae-clearml/following{/other_user}",
"gists_url": "https://api.github.com/users/eugen-ajechiloae-clearml/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eugen-ajechiloae-clearml/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eugen-ajechiloae-clearml/subscriptions",
"organizations_url": "https://api.github.com/users/eugen-ajechiloae-clearml/orgs",
"repos_url": "https://api.github.com/users/eugen-ajechiloae-clearml/repos",
"events_url": "https://api.github.com/users/eugen-ajechiloae-clearml/events{/privacy}",
"received_events_url": "https://api.github.com/users/eugen-ajechiloae-clearml/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 | 2 | 2023-10-06T10:44:29 | 2023-10-12T00:09:07 | 2023-10-12T00:09:02 |
CONTRIBUTOR
| null |
Handle different field names in dicts/dataframes, fixing the ClearML callback.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11472/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11472/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11472",
"html_url": "https://github.com/langchain-ai/langchain/pull/11472",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11472.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11472.patch",
"merged_at": "2023-10-12T00:09:02"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11471
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11471/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11471/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11471/events
|
https://github.com/langchain-ai/langchain/issues/11471
| 1,929,887,356 |
I_kwDOIPDwls5zB758
| 11,471 |
Qdrant - Load the saved vector db/store ?
|
{
"login": "VpkPrasanna",
"id": 30804112,
"node_id": "MDQ6VXNlcjMwODA0MTEy",
"avatar_url": "https://avatars.githubusercontent.com/u/30804112?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/VpkPrasanna",
"html_url": "https://github.com/VpkPrasanna",
"followers_url": "https://api.github.com/users/VpkPrasanna/followers",
"following_url": "https://api.github.com/users/VpkPrasanna/following{/other_user}",
"gists_url": "https://api.github.com/users/VpkPrasanna/gists{/gist_id}",
"starred_url": "https://api.github.com/users/VpkPrasanna/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/VpkPrasanna/subscriptions",
"organizations_url": "https://api.github.com/users/VpkPrasanna/orgs",
"repos_url": "https://api.github.com/users/VpkPrasanna/repos",
"events_url": "https://api.github.com/users/VpkPrasanna/events{/privacy}",
"received_events_url": "https://api.github.com/users/VpkPrasanna/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 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 | 6 | 2023-10-06T10:37:36 | 2024-01-08T12:29:50 | 2024-01-08T12:29:50 |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
I use Qdrant through langchain to store vectors. But I can't find any example in docs where the dataset is searched based on a previously created collection. How to load the data? I found that Pinecone has "from_existing_index" function, which probably does the thing. But Qdrant doesn't have such a function. I created my own solution using qdrant_client, but I would like to use Langchain to simplify the script. How to do it?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11471/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11471/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11470
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11470/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11470/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11470/events
|
https://github.com/langchain-ai/langchain/issues/11470
| 1,929,874,506 |
I_kwDOIPDwls5zB4xK
| 11,470 |
Vectorstore and ConversationalRetrievalChain should return the certainty of the relevance
|
{
"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": 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 | 0 | 2023-10-06T10:29:22 | 2023-10-06T12:40:46 | null |
NONE
| null |
### Feature request
I am using Weaviate with ConversationalRetrievalChain
I am using `similarity_score_threshold` search type.
It will call `similarity_search_with_score` in `vectorstore/weaviate.py`
Currently it's written like this
` if not self._by_text:
vector = {"vector": embedded_query}
result = (
query_obj.with_near_vector(vector)
.with_limit(k)
.with_additional("vector")
.do()
)
else:
result = (
query_obj.with_near_text(content)
.with_limit(k)
.with_additional("vector")
.do()
)
`
The `with_additional` function can accept a list of `AdditionalProperties`
So there's no point of hardcoding to be just the vector, and let the user add the additional arguments required.
I've tested this just by changing ` .with_additional("vector")` to ` .with_additional(["vector", "certainty"] )` and it works just fine
### Motivation
I am using the Conversational Chain just because it's easier to manage than creating one. But it's limitations are apparent. I want to retrieve the scores it get which is currently not possible
### Your contribution
I don't know how to pass in the `_additional` arguments from the vectorstore.as_retriever() but just hard coding the args i want the tests worked fine.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11470/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11470/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11469
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11469/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11469/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11469/events
|
https://github.com/langchain-ai/langchain/pull/11469
| 1,929,799,658 |
PR_kwDOIPDwls5cFyhl
| 11,469 |
Use InferenceClient instead of InferenceAPI for HuggingFaceHubEmbeddings
|
{
"login": "romaindeseine",
"id": 59537099,
"node_id": "MDQ6VXNlcjU5NTM3MDk5",
"avatar_url": "https://avatars.githubusercontent.com/u/59537099?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/romaindeseine",
"html_url": "https://github.com/romaindeseine",
"followers_url": "https://api.github.com/users/romaindeseine/followers",
"following_url": "https://api.github.com/users/romaindeseine/following{/other_user}",
"gists_url": "https://api.github.com/users/romaindeseine/gists{/gist_id}",
"starred_url": "https://api.github.com/users/romaindeseine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/romaindeseine/subscriptions",
"organizations_url": "https://api.github.com/users/romaindeseine/orgs",
"repos_url": "https://api.github.com/users/romaindeseine/repos",
"events_url": "https://api.github.com/users/romaindeseine/events{/privacy}",
"received_events_url": "https://api.github.com/users/romaindeseine/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-10-06T09:43:55 | 2023-10-06T09:44:04 | null |
NONE
| null |
**Description:**
Replace deprecated `InferenceAPI` of Hugging Face Inference with `InferenceClient` in the module `embeddings.huggingface_hub`.
**Issue:**
#10483
**Remarks:**
- A similar PR is open for the module `llms.huggingface_hub`: #10514
- It's my first contribution to an open source project. Then don't hesitate to send me your comments 😃.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11469/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11469/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11469",
"html_url": "https://github.com/langchain-ai/langchain/pull/11469",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11469.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11469.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11468
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11468/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11468/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11468/events
|
https://github.com/langchain-ai/langchain/issues/11468
| 1,929,774,144 |
I_kwDOIPDwls5zBgRA
| 11,468 |
DOC: pydantic extraction example code not working
|
{
"login": "martinvanhensbergen",
"id": 16882680,
"node_id": "MDQ6VXNlcjE2ODgyNjgw",
"avatar_url": "https://avatars.githubusercontent.com/u/16882680?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/martinvanhensbergen",
"html_url": "https://github.com/martinvanhensbergen",
"followers_url": "https://api.github.com/users/martinvanhensbergen/followers",
"following_url": "https://api.github.com/users/martinvanhensbergen/following{/other_user}",
"gists_url": "https://api.github.com/users/martinvanhensbergen/gists{/gist_id}",
"starred_url": "https://api.github.com/users/martinvanhensbergen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/martinvanhensbergen/subscriptions",
"organizations_url": "https://api.github.com/users/martinvanhensbergen/orgs",
"repos_url": "https://api.github.com/users/martinvanhensbergen/repos",
"events_url": "https://api.github.com/users/martinvanhensbergen/events{/privacy}",
"received_events_url": "https://api.github.com/users/martinvanhensbergen/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-06T09:27:55 | 2023-10-06T09:34:37 | null |
NONE
| null |
### Issue with current documentation:
The first code example following the Pydantic section, right after "Lets define a class with attributes annotated with types."
results for me in the following pydantic errors using gpt-4:
RuntimeError: no validator found for <class '__main__.Properties'>, see `arbitrary_types_allowed` in Config
The following versions of langchain and pydantic were used:
langchain==0.0.309
pydantic==2.4.2
pydantic_core==2.10.1
### Idea or request for content:
It would be nice to have the code updated so that it works out of the box.
Perhaps a reference to the extraction functions in the 'openai functions' section would be nice.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11468/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11468/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11466
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11466/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11466/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11466/events
|
https://github.com/langchain-ai/langchain/issues/11466
| 1,929,588,339 |
I_kwDOIPDwls5zAy5z
| 11,466 |
DOCX loader is not working properly in js
|
{
"login": "avneet2112",
"id": 86337608,
"node_id": "MDQ6VXNlcjg2MzM3NjA4",
"avatar_url": "https://avatars.githubusercontent.com/u/86337608?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/avneet2112",
"html_url": "https://github.com/avneet2112",
"followers_url": "https://api.github.com/users/avneet2112/followers",
"following_url": "https://api.github.com/users/avneet2112/following{/other_user}",
"gists_url": "https://api.github.com/users/avneet2112/gists{/gist_id}",
"starred_url": "https://api.github.com/users/avneet2112/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avneet2112/subscriptions",
"organizations_url": "https://api.github.com/users/avneet2112/orgs",
"repos_url": "https://api.github.com/users/avneet2112/repos",
"events_url": "https://api.github.com/users/avneet2112/events{/privacy}",
"received_events_url": "https://api.github.com/users/avneet2112/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-06T07:22:12 | 2023-10-09T05:59:57 | null |
NONE
| null |
### System Info
langchain latest version: 0.0.161
"mammoth": "^1.6.0",
### 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
Creating blob data with the use of fetch
const blobData = await fetch(totalFiles[i].url).then((res) => res.blob());
After this use this blob data in
const loader = new DocxLoader(blobData);
But When I hit the next step
const data = await loader.load();
It give me an error:
Error: Could not find file in options
at Object.openZip (unzip.js:10:1)
at extractRawText (index.js:82:1)
at DocxLoader.parse (docx.js:25:1)
at async langChainInitialization (index.js:88:20)
at async handleRefDocUpload (index.js:136:9)
### Expected behavior
It should load the document.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11466/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11466/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11465
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11465/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11465/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11465/events
|
https://github.com/langchain-ai/langchain/pull/11465
| 1,929,475,722 |
PR_kwDOIPDwls5cEs40
| 11,465 |
Adds support for llama2 and fixes MPT-7b url
|
{
"login": "AI-Bassem",
"id": 125713079,
"node_id": "U_kgDOB346tw",
"avatar_url": "https://avatars.githubusercontent.com/u/125713079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/AI-Bassem",
"html_url": "https://github.com/AI-Bassem",
"followers_url": "https://api.github.com/users/AI-Bassem/followers",
"following_url": "https://api.github.com/users/AI-Bassem/following{/other_user}",
"gists_url": "https://api.github.com/users/AI-Bassem/gists{/gist_id}",
"starred_url": "https://api.github.com/users/AI-Bassem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AI-Bassem/subscriptions",
"organizations_url": "https://api.github.com/users/AI-Bassem/orgs",
"repos_url": "https://api.github.com/users/AI-Bassem/repos",
"events_url": "https://api.github.com/users/AI-Bassem/events{/privacy}",
"received_events_url": "https://api.github.com/users/AI-Bassem/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-10-06T05:46:02 | 2023-10-11T03:34:36 | 2023-10-11T03:34:35 |
CONTRIBUTOR
| null |
- **Description:** This is an update to OctoAI LLM provider that adds support for llama2 endpoints hosted on OctoAI and updates MPT-7b url with the current one.
@baskaryan
Thanks!
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11465/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11465/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11465",
"html_url": "https://github.com/langchain-ai/langchain/pull/11465",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11465.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11465.patch",
"merged_at": "2023-10-11T03:34:35"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11464
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11464/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11464/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11464/events
|
https://github.com/langchain-ai/langchain/issues/11464
| 1,929,358,704 |
I_kwDOIPDwls5y_61w
| 11,464 |
The MIME type is 'video/mp4'. This file type is not currently supported in unstructured.
|
{
"login": "akanshajainn",
"id": 20984517,
"node_id": "MDQ6VXNlcjIwOTg0NTE3",
"avatar_url": "https://avatars.githubusercontent.com/u/20984517?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akanshajainn",
"html_url": "https://github.com/akanshajainn",
"followers_url": "https://api.github.com/users/akanshajainn/followers",
"following_url": "https://api.github.com/users/akanshajainn/following{/other_user}",
"gists_url": "https://api.github.com/users/akanshajainn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akanshajainn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akanshajainn/subscriptions",
"organizations_url": "https://api.github.com/users/akanshajainn/orgs",
"repos_url": "https://api.github.com/users/akanshajainn/repos",
"events_url": "https://api.github.com/users/akanshajainn/events{/privacy}",
"received_events_url": "https://api.github.com/users/akanshajainn/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-06T03:04:26 | 2023-10-06T03:09:36 | null |
NONE
| null |
### System Info
Langchain version : 0.0.292
Python version: 3.9.13
Platform: Apple M1, Sonoma 14.0
### Who can help?
@eyurtsev @hwc
### Information
- [x] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Steps to reproduce:
1. Have a google drive folder with multiple documents with formats like`.mp4`, `.md`, `google docs`, `google sheets` etc.
2. Try using `from langchain.document_loaders import GoogleDriveLoader`, it doesn't work as it only supports google docs, google sheets and pdf files.
```
folder_id = "0ABqitCqK0S_MUk9PVA" # have your own folder id, this is an example
loader = GoogleDriveLoader(
gdrive_api_file=GOOGLE_ACCOUNT_FILE,
folder_id= folder_id,
recursive=True,
# num_results=2, # Maximum number of file to load
)
```
3. Try using `from langchain.document_loaders import UnstructuredFileIOLoader` to load
```
folder_id = "0ABqitCqK0S_MUk9PVA" # have your own folder id, this is an example
loader = GoogleDriveLoader(
service_account_key=GOOGLE_ACCOUNT_FILE,
folder_id=folder_id,
file_loader_cls=UnstructuredFileIOLoader,
file_loader_kwargs={"mode": "elements"},
recursive=True
)
```
4. It throws the following error because `.mp4` files are not supported
`The MIME type is 'video/mp4'. This file type is not currently supported in unstructured.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Input In [34], in <cell line: 3>()
1 start_time = time.time()
----> 3 docs = loader.load()
5 print("Total docs loaded", len(docs))
7 end_time = time.time() - start_time
File /opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/langchain/document_loaders/googledrive.py:351, in GoogleDriveLoader.load(self)
349 """Load documents."""
350 if self.folder_id:
--> 351 return self._load_documents_from_folder(
352 self.folder_id, file_types=self.file_types
353 )
354 elif self.document_ids:
355 return self._load_documents_from_ids()
File /opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/langchain/document_loaders/googledrive.py:257, in GoogleDriveLoader._load_documents_from_folder(self, folder_id, file_types)
252 returns.extend(self._load_sheet_from_id(file["id"])) # type: ignore
253 elif (
254 file["mimeType"] == "application/pdf"
255 or self.file_loader_cls is not None
256 ):
--> 257 returns.extend(self._load_file_from_id(file["id"])) # type: ignore
258 else:
259 pass
File /opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/langchain/document_loaders/googledrive.py:316, in GoogleDriveLoader._load_file_from_id(self, id)
314 fh.seek(0)
315 loader = self.file_loader_cls(file=fh, **self.file_loader_kwargs)
--> 316 docs = loader.load()
317 for doc in docs:
318 doc.metadata["source"] = f"https://drive.google.com/file/d/{id}/view"
File /opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/langchain/document_loaders/unstructured.py:86, in UnstructuredBaseLoader.load(self)
84 def load(self) -> List[Document]:
85 """Load file."""
---> 86 elements = self._get_elements()
87 self._post_process_elements(elements)
88 if self.mode == "elements":
File /opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/langchain/document_loaders/unstructured.py:319, in UnstructuredFileIOLoader._get_elements(self)
316 def _get_elements(self) -> List:
317 from unstructured.partition.auto import partition
--> 319 return partition(file=self.file, **self.unstructured_kwargs)
File /opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/unstructured/partition/auto.py:183, in partition(filename, content_type, file, file_filename, url, include_page_breaks, strategy, encoding, paragraph_grouper, headers, ssl_verify, ocr_languages, pdf_infer_table_structure)
181 else:
182 msg = "Invalid file" if not filename else f"Invalid file {filename}"
--> 183 raise ValueError(f"{msg}. The {filetype} file type is not supported in partition.")
185 for element in elements:
186 element.metadata.url = url
ValueError: Invalid file. The FileType.UNK file type is not supported in partition.
`
### Expected behavior
I would expect this error to be handled by the loader, simply ignore the unsupported files and load the rest. Can throw some warning to notify but not break the code.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11464/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/11464/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11463
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11463/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11463/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11463/events
|
https://github.com/langchain-ai/langchain/pull/11463
| 1,929,327,794 |
PR_kwDOIPDwls5cENSA
| 11,463 |
Quote tool names
|
{
"login": "Atry",
"id": 601530,
"node_id": "MDQ6VXNlcjYwMTUzMA==",
"avatar_url": "https://avatars.githubusercontent.com/u/601530?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Atry",
"html_url": "https://github.com/Atry",
"followers_url": "https://api.github.com/users/Atry/followers",
"following_url": "https://api.github.com/users/Atry/following{/other_user}",
"gists_url": "https://api.github.com/users/Atry/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Atry/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Atry/subscriptions",
"organizations_url": "https://api.github.com/users/Atry/orgs",
"repos_url": "https://api.github.com/users/Atry/repos",
"events_url": "https://api.github.com/users/Atry/events{/privacy}",
"received_events_url": "https://api.github.com/users/Atry/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 | 2 | 2023-10-06T02:19:44 | 2023-10-12T17:23:28 | null |
CONTRIBUTOR
| null |
- **Description:** Quote tool names in prompt templates
- **Issue:** https://github.com/langchain-ai/langchain/issues/1657 https://github.com/langchain-ai/langchain/issues/1477 https://github.com/langchain-ai/langchain/issues/1358
- **Tag maintainer:** @hwchase17
The original prompt template is ambiguous because it does not tell whether the tool names should be quoted or not. This PR makes it clear that the tool names should be quoted. It fixes #1358 for Nous-Hermes-Llama2-13b according to my tests.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11463/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 1,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11463/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11463",
"html_url": "https://github.com/langchain-ai/langchain/pull/11463",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11463.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11463.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11462
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11462/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11462/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11462/events
|
https://github.com/langchain-ai/langchain/pull/11462
| 1,929,289,649 |
PR_kwDOIPDwls5cEFUr
| 11,462 |
Vowpal wabbit/master
|
{
"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": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-06T01:18:40 | 2023-10-06T01:39:46 | 2023-10-06T01:39:45 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11462/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11462/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11462",
"html_url": "https://github.com/langchain-ai/langchain/pull/11462",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11462.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11462.patch",
"merged_at": "2023-10-06T01:39:45"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11461
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11461/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11461/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11461/events
|
https://github.com/langchain-ai/langchain/pull/11461
| 1,929,286,434 |
PR_kwDOIPDwls5cEEpO
| 11,461 |
Use raise from statement so that users can find detailed error message
|
{
"login": "Atry",
"id": 601530,
"node_id": "MDQ6VXNlcjYwMTUzMA==",
"avatar_url": "https://avatars.githubusercontent.com/u/601530?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Atry",
"html_url": "https://github.com/Atry",
"followers_url": "https://api.github.com/users/Atry/followers",
"following_url": "https://api.github.com/users/Atry/following{/other_user}",
"gists_url": "https://api.github.com/users/Atry/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Atry/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Atry/subscriptions",
"organizations_url": "https://api.github.com/users/Atry/orgs",
"repos_url": "https://api.github.com/users/Atry/repos",
"events_url": "https://api.github.com/users/Atry/events{/privacy}",
"received_events_url": "https://api.github.com/users/Atry/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 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-10-06T01:13:28 | 2023-10-13T15:38:06 | 2023-10-11T00:25:23 |
CONTRIBUTOR
| null |
- **Description:** Use `raise from` statement so that users can find detailed error message
- **Tag maintainer:** @baskaryan, @eyurtsev, @hwchase17
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11461/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11461/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11461",
"html_url": "https://github.com/langchain-ai/langchain/pull/11461",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11461.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11461.patch",
"merged_at": "2023-10-11T00:25:23"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11460
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11460/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11460/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11460/events
|
https://github.com/langchain-ai/langchain/issues/11460
| 1,929,282,468 |
I_kwDOIPDwls5y_oOk
| 11,460 |
Issue: how to use multiple inputs with custom llm agent
|
{
"login": "elvis-cai",
"id": 38489894,
"node_id": "MDQ6VXNlcjM4NDg5ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/38489894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elvis-cai",
"html_url": "https://github.com/elvis-cai",
"followers_url": "https://api.github.com/users/elvis-cai/followers",
"following_url": "https://api.github.com/users/elvis-cai/following{/other_user}",
"gists_url": "https://api.github.com/users/elvis-cai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elvis-cai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elvis-cai/subscriptions",
"organizations_url": "https://api.github.com/users/elvis-cai/orgs",
"repos_url": "https://api.github.com/users/elvis-cai/repos",
"events_url": "https://api.github.com/users/elvis-cai/events{/privacy}",
"received_events_url": "https://api.github.com/users/elvis-cai/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-06T01:08:12 | 2023-10-06T01:14:37 | null |
NONE
| null |
### Issue you'd like to raise.
we are following https://python.langchain.com/docs/modules/agents/how_to/custom_llm_agent however, by default it's using one input only, how to make it accept multiple inputs same as STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION, thanks.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11460/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11460/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11459
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11459/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11459/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11459/events
|
https://github.com/langchain-ai/langchain/issues/11459
| 1,929,226,840 |
I_kwDOIPDwls5y_apY
| 11,459 |
OnlinePDFLoader crashes with import error
|
{
"login": "sharpvik",
"id": 23066595,
"node_id": "MDQ6VXNlcjIzMDY2NTk1",
"avatar_url": "https://avatars.githubusercontent.com/u/23066595?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sharpvik",
"html_url": "https://github.com/sharpvik",
"followers_url": "https://api.github.com/users/sharpvik/followers",
"following_url": "https://api.github.com/users/sharpvik/following{/other_user}",
"gists_url": "https://api.github.com/users/sharpvik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sharpvik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharpvik/subscriptions",
"organizations_url": "https://api.github.com/users/sharpvik/orgs",
"repos_url": "https://api.github.com/users/sharpvik/repos",
"events_url": "https://api.github.com/users/sharpvik/events{/privacy}",
"received_events_url": "https://api.github.com/users/sharpvik/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-10-05T23:46:16 | 2023-10-06T02:00:33 | 2023-10-06T02:00:33 |
NONE
| null |
### System Info
langchain = "^0.0.304"
Python 3.11.5
MacBook Pro, Apple M2 chip, 8GB memory
### Who can help?
@eyurtsev
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python
from langchain.document_loaders import OnlinePDFLoader
OnlinePDFLoader("https://www.africau.edu/images/default/sample.pdf").load()
```
I saw the following runtime import error:
```
ImportError: cannot import name 'PDFResourceManager' from 'pdfminer.converter' (/Users/{user}/Library/Caches/pypoetry/virtualenvs/replai-19tDtF2f-py3.11/lib/python3.11/site-packages/pdfminer/converter.py)
```
### Expected behavior
I expected `OnlinePDFLoader` to load the file.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11459/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11459/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11458
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11458/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11458/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11458/events
|
https://github.com/langchain-ai/langchain/pull/11458
| 1,929,215,225 |
PR_kwDOIPDwls5cD1Np
| 11,458 |
Add LangSmith Run Chat Loader
|
{
"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": 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-10-05T23:27:54 | 2023-10-07T00:11:35 | 2023-10-07T00:02:19 |
COLLABORATOR
| null |
In case you don't want to make a dataset / easy to see the OAI formatted message equivalents
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11458/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11458/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11458",
"html_url": "https://github.com/langchain-ai/langchain/pull/11458",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11458.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11458.patch",
"merged_at": "2023-10-07T00:02:19"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11456
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11456/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11456/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11456/events
|
https://github.com/langchain-ai/langchain/pull/11456
| 1,929,180,797 |
PR_kwDOIPDwls5cDtml
| 11,456 |
docstrings `callbacks`
|
{
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-05T22:46:12 | 2023-10-06T00:13:14 | 2023-10-06T00:13:14 |
COLLABORATOR
| null |
Added missed docstrings to the `callbacks/`
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11456/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11456/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11456",
"html_url": "https://github.com/langchain-ai/langchain/pull/11456",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11456.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11456.patch",
"merged_at": "2023-10-06T00:13:14"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11455
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11455/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11455/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11455/events
|
https://github.com/langchain-ai/langchain/pull/11455
| 1,929,168,605 |
PR_kwDOIPDwls5cDq9m
| 11,455 |
WIP: move callbacks
|
{
"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": 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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-05T22:30:57 | 2023-12-06T17:10:30 | 2023-12-06T17:10:30 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11455/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11455/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11455",
"html_url": "https://github.com/langchain-ai/langchain/pull/11455",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11455.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11455.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11454
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11454/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11454/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11454/events
|
https://github.com/langchain-ai/langchain/pull/11454
| 1,929,164,097 |
PR_kwDOIPDwls5cDp-N
| 11,454 |
"source" argument in constructor of Vectara
|
{
"login": "ofermend",
"id": 1823547,
"node_id": "MDQ6VXNlcjE4MjM1NDc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1823547?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ofermend",
"html_url": "https://github.com/ofermend",
"followers_url": "https://api.github.com/users/ofermend/followers",
"following_url": "https://api.github.com/users/ofermend/following{/other_user}",
"gists_url": "https://api.github.com/users/ofermend/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ofermend/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ofermend/subscriptions",
"organizations_url": "https://api.github.com/users/ofermend/orgs",
"repos_url": "https://api.github.com/users/ofermend/repos",
"events_url": "https://api.github.com/users/ofermend/events{/privacy}",
"received_events_url": "https://api.github.com/users/ofermend/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-05T22:25:10 | 2023-10-06T02:23:52 | 2023-10-06T00:04:14 |
CONTRIBUTOR
| null |
Replace this entire comment with:
- **Description:** minor update to constructor to allow for specification of "source"
- **Tag maintainer:** @baskaryan
- **Twitter handle:** @ofermend
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11454/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11454/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11454",
"html_url": "https://github.com/langchain-ai/langchain/pull/11454",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11454.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11454.patch",
"merged_at": "2023-10-06T00:04:14"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11453
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11453/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11453/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11453/events
|
https://github.com/langchain-ai/langchain/pull/11453
| 1,929,153,664 |
PR_kwDOIPDwls5cDnpB
| 11,453 |
Fix a Typo in Documentation
|
{
"login": "bekmuradov",
"id": 47065940,
"node_id": "MDQ6VXNlcjQ3MDY1OTQw",
"avatar_url": "https://avatars.githubusercontent.com/u/47065940?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bekmuradov",
"html_url": "https://github.com/bekmuradov",
"followers_url": "https://api.github.com/users/bekmuradov/followers",
"following_url": "https://api.github.com/users/bekmuradov/following{/other_user}",
"gists_url": "https://api.github.com/users/bekmuradov/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bekmuradov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bekmuradov/subscriptions",
"organizations_url": "https://api.github.com/users/bekmuradov/orgs",
"repos_url": "https://api.github.com/users/bekmuradov/repos",
"events_url": "https://api.github.com/users/bekmuradov/events{/privacy}",
"received_events_url": "https://api.github.com/users/bekmuradov/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-10-05T22:15:33 | 2023-10-05T22:34:06 | 2023-10-05T22:34:06 |
CONTRIBUTOR
| null |
- **Description:** This commit corrects a minor typo in the documentation. It changes "frum" to "from" in the sentence: "The results from search are passed back to the LLM for synthesis into an answer" in the file `docs/extras/use_cases/more/agents/agents.ipynb`. This typo fix enhances the clarity and accuracy of the documentation.
- **Tag maintainer:** @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11453/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11453/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11453",
"html_url": "https://github.com/langchain-ai/langchain/pull/11453",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11453.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11453.patch",
"merged_at": "2023-10-05T22:34:06"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11452
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11452/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11452/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11452/events
|
https://github.com/langchain-ai/langchain/pull/11452
| 1,929,111,390 |
PR_kwDOIPDwls5cDeEO
| 11,452 |
Improve CLI ux
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-05T21:44:57 | 2023-10-05T23:40:01 | 2023-10-05T23:40:01 |
COLLABORATOR
| null |
Improve UX for cli
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11452/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11452/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11452",
"html_url": "https://github.com/langchain-ai/langchain/pull/11452",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11452.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11452.patch",
"merged_at": "2023-10-05T23:40:01"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11451
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11451/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11451/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11451/events
|
https://github.com/langchain-ai/langchain/pull/11451
| 1,929,031,613 |
PR_kwDOIPDwls5cDMXx
| 11,451 |
adding support to modify documents in azure search vectorstore
|
{
"login": "bhanu-pappala",
"id": 67595337,
"node_id": "MDQ6VXNlcjY3NTk1MzM3",
"avatar_url": "https://avatars.githubusercontent.com/u/67595337?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bhanu-pappala",
"html_url": "https://github.com/bhanu-pappala",
"followers_url": "https://api.github.com/users/bhanu-pappala/followers",
"following_url": "https://api.github.com/users/bhanu-pappala/following{/other_user}",
"gists_url": "https://api.github.com/users/bhanu-pappala/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bhanu-pappala/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bhanu-pappala/subscriptions",
"organizations_url": "https://api.github.com/users/bhanu-pappala/orgs",
"repos_url": "https://api.github.com/users/bhanu-pappala/repos",
"events_url": "https://api.github.com/users/bhanu-pappala/events{/privacy}",
"received_events_url": "https://api.github.com/users/bhanu-pappala/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 | 3 | 2023-10-05T20:47:46 | 2023-10-16T12:29:05 | null |
NONE
| null |
**Description**
Adding support to replace documents in Azure Cognitive Search. Right now, we can only upload documents but azure [azure-search-documents](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/azure/search/documents/_search_client.py#L623) provides the option to modify the documents.
**References**
- https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/azure/search/documents/_search_client.py#L623
- https://learn.microsoft.com/en-us/rest/api/searchservice/addupdate-or-delete-documents
**Issue**
None
**Dependencies**
None
**Tag maintainer**
@eyurtsev
**Example**
[azure_search_modify_documents.ipynb](https://github.com/bhanu-pappala/langchain/blob/azure_modify_documents/docs/extras/modules/vectorstore/azure_search_modify_documents.ipynb)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11451/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11451/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11451",
"html_url": "https://github.com/langchain-ai/langchain/pull/11451",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11451.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11451.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11450
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11450/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11450/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11450/events
|
https://github.com/langchain-ai/langchain/pull/11450
| 1,928,991,977 |
PR_kwDOIPDwls5cDDqO
| 11,450 |
Skip `OpenAIWhisperParser` extremely small audio chunks to avoid api error
|
{
"login": "leodiegues",
"id": 15870303,
"node_id": "MDQ6VXNlcjE1ODcwMzAz",
"avatar_url": "https://avatars.githubusercontent.com/u/15870303?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leodiegues",
"html_url": "https://github.com/leodiegues",
"followers_url": "https://api.github.com/users/leodiegues/followers",
"following_url": "https://api.github.com/users/leodiegues/following{/other_user}",
"gists_url": "https://api.github.com/users/leodiegues/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leodiegues/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leodiegues/subscriptions",
"organizations_url": "https://api.github.com/users/leodiegues/orgs",
"repos_url": "https://api.github.com/users/leodiegues/repos",
"events_url": "https://api.github.com/users/leodiegues/events{/privacy}",
"received_events_url": "https://api.github.com/users/leodiegues/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-05T20:19:21 | 2023-10-09T13:52:37 | null |
NONE
| null |
**Description**
This PR addresses a rare issue in `OpenAIWhisperParser` that causes it to crash when processing an audio file with a duration very close to the class's chunk size threshold of 20 minutes.
**Issue**
#11449
**Dependencies**
None
**Tag maintainer**
@agola11 @eyurtsev
**Twitter handle**
leonardodiegues
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11450/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11450/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11450",
"html_url": "https://github.com/langchain-ai/langchain/pull/11450",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11450.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11450.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11449
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11449/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11449/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11449/events
|
https://github.com/langchain-ai/langchain/issues/11449
| 1,928,949,307 |
I_kwDOIPDwls5y-W47
| 11,449 |
`OpenAIWhisperParser` raises error if audio has duration too close to the chunk limit
|
{
"login": "leodiegues",
"id": 15870303,
"node_id": "MDQ6VXNlcjE1ODcwMzAz",
"avatar_url": "https://avatars.githubusercontent.com/u/15870303?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leodiegues",
"html_url": "https://github.com/leodiegues",
"followers_url": "https://api.github.com/users/leodiegues/followers",
"following_url": "https://api.github.com/users/leodiegues/following{/other_user}",
"gists_url": "https://api.github.com/users/leodiegues/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leodiegues/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leodiegues/subscriptions",
"organizations_url": "https://api.github.com/users/leodiegues/orgs",
"repos_url": "https://api.github.com/users/leodiegues/repos",
"events_url": "https://api.github.com/users/leodiegues/events{/privacy}",
"received_events_url": "https://api.github.com/users/leodiegues/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 | 0 | 2023-10-05T19:44:40 | 2023-10-05T19:56:36 | null |
NONE
| null |
### System Info
LangChain: 0.0.250
Python: 3.11.4
OS: Pop 22.04
### Who can help?
@agola11
@eyurtsev
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
**Input**
```py
from pathlib import Path
from langchain.document_loaders.blob_loaders.schema import Blob
from langchain.document_loaders.parsers.audio import OpenAIWhisperParser
OPENAI_API_KEY = "<MY-KEY>"
audio_file = Path("~/Downloads/audio.mp3").expanduser()
audio_total_seconds = AudioSegment.from_file(audio_file).duration_seconds
print("Audio length (seconds):", audio_total_seconds)
blob = Blob.from_path(audio_file, mime_type="audio/mp3")
parser = OpenAIWhisperParser(api_key=OPENAI_API_KEY)
parser.parse(blob)
```
**Output**
```
Audio length (seconds): 1200.064
Transcribing part 1!
Transcribing part 2!
Attempt 1 failed. Exception: Audio file is too short. Minimum audio length is 0.1 seconds.
Attempt 2 failed. Exception: Invalid file format. Supported formats: ['flac', 'm4a', 'mp3', 'mp4', 'mpeg', 'mpga', 'oga', 'ogg', 'wav', 'webm']
Attempt 3 failed. Exception: Invalid file format. Supported formats: ['flac', 'm4a', 'mp3', 'mp4', 'mpeg', 'mpga', 'oga', 'ogg', 'wav', 'webm']
Failed to transcribe after 3 attempts.
```
### Expected behavior
Due to its internal rule of processing audio in [20-minute chunks](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/document_loaders/parsers/audio.py#L47), `OpenAIWhisperParser` is prone to crashing when transcribing audio with durations that are dangerously close to this limit. Given that OpenAI already has a very low audio length threshold of 0.1 seconds, a simple bypass could effectively resolve this issue.
```python
# https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/document_loaders/parsers/audio.py#L47
chunk_duration = 20
chunk_duration_ms = chunk_duration * 60 * 1000
chunk_length_threshold = 0.1
# Split the audio into chunk_duration_ms chunks
for split_number, i in enumerate(range(0, len(audio), chunk_duration_ms)):
# Audio chunk
chunk = audio[i : i + chunk_duration_ms]
if chunk.duration_seconds < chunk_length_threshold:
continue
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11449/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11449/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11448
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11448/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11448/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11448/events
|
https://github.com/langchain-ai/langchain/issues/11448
| 1,928,839,177 |
I_kwDOIPDwls5y98AJ
| 11,448 |
Error while importing LLMChain
|
{
"login": "Hazzerback25",
"id": 85587494,
"node_id": "MDQ6VXNlcjg1NTg3NDk0",
"avatar_url": "https://avatars.githubusercontent.com/u/85587494?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Hazzerback25",
"html_url": "https://github.com/Hazzerback25",
"followers_url": "https://api.github.com/users/Hazzerback25/followers",
"following_url": "https://api.github.com/users/Hazzerback25/following{/other_user}",
"gists_url": "https://api.github.com/users/Hazzerback25/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Hazzerback25/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Hazzerback25/subscriptions",
"organizations_url": "https://api.github.com/users/Hazzerback25/orgs",
"repos_url": "https://api.github.com/users/Hazzerback25/repos",
"events_url": "https://api.github.com/users/Hazzerback25/events{/privacy}",
"received_events_url": "https://api.github.com/users/Hazzerback25/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-05T18:32:29 | 2023-10-05T21:48:35 | null |
NONE
| null |
### Issue you'd like to raise.
When I'm running the code "from langchain.chains import LLMChain", I'm getting the following error:
'RuntimeError: no validator found for <class 're.Pattern'>, see `arbitrary_types_allowed` in Config'
<img width="887" alt="Screenshot 2023-10-06 at 12 01 49 AM" src="https://github.com/langchain-ai/langchain/assets/85587494/0b171391-bbc6-41f8-b237-17bc99b11b95">
<img width="871" alt="Screenshot 2023-10-06 at 12 01 58 AM" src="https://github.com/langchain-ai/langchain/assets/85587494/592c2688-be0f-4cf4-8e7d-a4a56d7d056c">
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11448/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11448/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11447
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11447/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11447/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11447/events
|
https://github.com/langchain-ai/langchain/issues/11447
| 1,928,727,245 |
I_kwDOIPDwls5y9grN
| 11,447 |
Issue: Trying to be able to parse all parse of LLM outputs
|
{
"login": "Ethanmbinns",
"id": 98421056,
"node_id": "U_kgDOBd3JQA",
"avatar_url": "https://avatars.githubusercontent.com/u/98421056?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Ethanmbinns",
"html_url": "https://github.com/Ethanmbinns",
"followers_url": "https://api.github.com/users/Ethanmbinns/followers",
"following_url": "https://api.github.com/users/Ethanmbinns/following{/other_user}",
"gists_url": "https://api.github.com/users/Ethanmbinns/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Ethanmbinns/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Ethanmbinns/subscriptions",
"organizations_url": "https://api.github.com/users/Ethanmbinns/orgs",
"repos_url": "https://api.github.com/users/Ethanmbinns/repos",
"events_url": "https://api.github.com/users/Ethanmbinns/events{/privacy}",
"received_events_url": "https://api.github.com/users/Ethanmbinns/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-05T17:10:23 | 2023-10-05T18:13:46 | null |
NONE
| null |
### Issue you'd like to raise.
I'm trying to make a general chat bot when ever I try to get it to write code I get [ERROR] OutputParserException: Could not parse LLM output:
is there a way to parse all parse of output?
Any help would be great.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11447/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11447/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11446
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11446/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11446/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11446/events
|
https://github.com/langchain-ai/langchain/pull/11446
| 1,928,725,760 |
PR_kwDOIPDwls5cCKAA
| 11,446 |
Remove str() from RunnableConfigurableAlternatives
|
{
"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": 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-10-05T17:09:14 | 2023-10-05T17:40:01 | 2023-10-05T17:40:00 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11446/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11446/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11446",
"html_url": "https://github.com/langchain-ai/langchain/pull/11446",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11446.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11446.patch",
"merged_at": "2023-10-05T17:40:00"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11445
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11445/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11445/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11445/events
|
https://github.com/langchain-ai/langchain/pull/11445
| 1,928,709,966 |
PR_kwDOIPDwls5cCGkv
| 11,445 |
fix api docs build
|
{
"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-10-05T16:57:36 | 2023-10-05T22:33:12 | 2023-10-05T22:33:11 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11445/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11445/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11445",
"html_url": "https://github.com/langchain-ai/langchain/pull/11445",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11445.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11445.patch",
"merged_at": "2023-10-05T22:33:11"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11444
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11444/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11444/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11444/events
|
https://github.com/langchain-ai/langchain/pull/11444
| 1,928,702,091 |
PR_kwDOIPDwls5cCE14
| 11,444 |
Update langchain_release.yml
|
{
"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": 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-10-05T16:52:12 | 2023-10-05T18:23:28 | 2023-10-05T18:23:27 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11444/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11444/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11444",
"html_url": "https://github.com/langchain-ai/langchain/pull/11444",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11444.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11444.patch",
"merged_at": "2023-10-05T18:23:27"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11443
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11443/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11443/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11443/events
|
https://github.com/langchain-ai/langchain/pull/11443
| 1,928,660,552 |
PR_kwDOIPDwls5cB7u1
| 11,443 |
bump 309
|
{
"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-10-05T16:23:46 | 2023-10-05T16:29:15 | 2023-10-05T16:29:14 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11443/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11443/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11443",
"html_url": "https://github.com/langchain-ai/langchain/pull/11443",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11443.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11443.patch",
"merged_at": "2023-10-05T16:29:14"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11442
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11442/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11442/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11442/events
|
https://github.com/langchain-ai/langchain/pull/11442
| 1,928,636,778 |
PR_kwDOIPDwls5cB3N8
| 11,442 |
fixed return documents
|
{
"login": "Vanekkk1",
"id": 91801007,
"node_id": "U_kgDOBXjFrw",
"avatar_url": "https://avatars.githubusercontent.com/u/91801007?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vanekkk1",
"html_url": "https://github.com/Vanekkk1",
"followers_url": "https://api.github.com/users/Vanekkk1/followers",
"following_url": "https://api.github.com/users/Vanekkk1/following{/other_user}",
"gists_url": "https://api.github.com/users/Vanekkk1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vanekkk1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vanekkk1/subscriptions",
"organizations_url": "https://api.github.com/users/Vanekkk1/orgs",
"repos_url": "https://api.github.com/users/Vanekkk1/repos",
"events_url": "https://api.github.com/users/Vanekkk1/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vanekkk1/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-05T16:09:46 | 2023-10-09T07:48:06 | 2023-10-05T16:37:09 |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11442/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11442/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11442",
"html_url": "https://github.com/langchain-ai/langchain/pull/11442",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11442.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11442.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11441
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11441/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11441/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11441/events
|
https://github.com/langchain-ai/langchain/issues/11441
| 1,928,619,715 |
I_kwDOIPDwls5y9GbD
| 11,441 |
Chroma is adding an extra space (very consistently) in front of '≤ ’ characters and it has a real impact.
|
{
"login": "paulfields",
"id": 55295138,
"node_id": "MDQ6VXNlcjU1Mjk1MTM4",
"avatar_url": "https://avatars.githubusercontent.com/u/55295138?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/paulfields",
"html_url": "https://github.com/paulfields",
"followers_url": "https://api.github.com/users/paulfields/followers",
"following_url": "https://api.github.com/users/paulfields/following{/other_user}",
"gists_url": "https://api.github.com/users/paulfields/gists{/gist_id}",
"starred_url": "https://api.github.com/users/paulfields/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/paulfields/subscriptions",
"organizations_url": "https://api.github.com/users/paulfields/orgs",
"repos_url": "https://api.github.com/users/paulfields/repos",
"events_url": "https://api.github.com/users/paulfields/events{/privacy}",
"received_events_url": "https://api.github.com/users/paulfields/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false | null |
[] | null | 6 | 2023-10-05T16:00:27 | 2023-10-05T22:00:19 | null |
NONE
| null |
### System Info
**Specs:**
langchain 0.0.301
Python 3.11.4
embeddings =HuggingFace embeddings
llm = Claud 2
EXAMPLE:
1. Chunks object below in my code contains the following string: leflunomide **(LEF) (≤ 20 mg/day)**
`Chroma.from_documents(documents=chunks, embedding=embeddings, collection_name=collection_name, persist_directory=persist_db) `
2. after saving and retrieving from my local file with:
'db = Chroma(persist_directory=persist_db, embedding_function=embeddings, collection_name=collection_name)'
. . . then extracting with . . .
'db.get(include=['documents'])'
3. That string is now: leflunomide **(LEF) ( ≤20 mg/day)**, with a single space newly inserted before the ≤
This matters because it messes up retrieval augmentation with queries like “what doses of leflunomide are appropriate?” using Claude-2 as the llm
### 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. Chunks object below in my code contains the following string: leflunomide **(LEF) (≤ 20 mg/day)**
`Chroma.from_documents(documents=chunks, embedding=embeddings, collection_name=collection_name, persist_directory=persist_db) `
2. after saving and retrieving from my local file with:
'db = Chroma(persist_directory=persist_db, embedding_function=embeddings, collection_name=collection_name)'
. . . then extracting with . . .
'db.get(include=['documents'])'
3. That string is now: leflunomide **(LEF) ( ≤20 mg/day)**, with a single space newly inserted before the ≤
This matters because it messes up retrieval augmentation with queries like “what doses of leflunomide are appropriate?” using Claude-2 as the llm
### Expected behavior
See description above
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11441/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11441/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11440
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11440/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11440/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11440/events
|
https://github.com/langchain-ai/langchain/issues/11440
| 1,928,609,140 |
I_kwDOIPDwls5y9D10
| 11,440 |
Issue: Is it possible to use a HF LLM using Conversational Retrieval Agent?
|
{
"login": "evanbrociner",
"id": 33792805,
"node_id": "MDQ6VXNlcjMzNzkyODA1",
"avatar_url": "https://avatars.githubusercontent.com/u/33792805?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/evanbrociner",
"html_url": "https://github.com/evanbrociner",
"followers_url": "https://api.github.com/users/evanbrociner/followers",
"following_url": "https://api.github.com/users/evanbrociner/following{/other_user}",
"gists_url": "https://api.github.com/users/evanbrociner/gists{/gist_id}",
"starred_url": "https://api.github.com/users/evanbrociner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/evanbrociner/subscriptions",
"organizations_url": "https://api.github.com/users/evanbrociner/orgs",
"repos_url": "https://api.github.com/users/evanbrociner/repos",
"events_url": "https://api.github.com/users/evanbrociner/events{/privacy}",
"received_events_url": "https://api.github.com/users/evanbrociner/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": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-05T15:54:16 | 2023-10-10T11:04:40 | null |
NONE
| null |
### Issue you'd like to raise.
_No response_
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11440/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11440/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11438
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11438/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11438/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11438/events
|
https://github.com/langchain-ai/langchain/issues/11438
| 1,928,525,648 |
I_kwDOIPDwls5y8vdQ
| 11,438 |
Bearer token support for self-deployed OpenLLM
|
{
"login": "ColinLeverger",
"id": 11457858,
"node_id": "MDQ6VXNlcjExNDU3ODU4",
"avatar_url": "https://avatars.githubusercontent.com/u/11457858?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ColinLeverger",
"html_url": "https://github.com/ColinLeverger",
"followers_url": "https://api.github.com/users/ColinLeverger/followers",
"following_url": "https://api.github.com/users/ColinLeverger/following{/other_user}",
"gists_url": "https://api.github.com/users/ColinLeverger/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ColinLeverger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ColinLeverger/subscriptions",
"organizations_url": "https://api.github.com/users/ColinLeverger/orgs",
"repos_url": "https://api.github.com/users/ColinLeverger/repos",
"events_url": "https://api.github.com/users/ColinLeverger/events{/privacy}",
"received_events_url": "https://api.github.com/users/ColinLeverger/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 3 | 2023-10-05T15:09:13 | 2023-10-07T01:07:55 | null |
NONE
| null |
Hello there,
I have deployed an OpenLLM on a managed service that is protected by the use of an auth Bearer token:
```bash
curl -X 'POST' \
'https://themodel.url/v1/generate' \
-H "Authorization: Bearer Sh6Kh4[ . . . super long bearer token ]W18UiWuzsz+0r+U"
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"prompt": "What is the difference between a pigeon",
"llm_config": {
"use[ . . . and so on]
}
}'
```
Curl works like a charm.
In LangChain, I try to create my new llm as such:
```python
llm = OpenLLM(server_url="https://themodel.url/v1/generate", temperature=0.2)
```
But I don't know how to include this Bearer token, I even suspect it is impossible...
**Bot seems to confirm this is impossible as of 5 Oct 2023, as seen in https://github.com/langchain-ai/langchain/discussions/11437** ; this issue would then be a feature request.
Thanks!
Cheers,
Colin
_Originally posted by @ColinLeverger in https://github.com/langchain-ai/langchain/discussions/11437_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11438/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11438/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11436
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11436/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11436/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11436/events
|
https://github.com/langchain-ai/langchain/pull/11436
| 1,928,443,676 |
PR_kwDOIPDwls5cBNOt
| 11,436 |
Fix .dict() for agent/chain
|
{
"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": 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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-05T14:29:58 | 2023-10-05T14:51:22 | 2023-10-05T14:51:21 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11436/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11436/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11436",
"html_url": "https://github.com/langchain-ai/langchain/pull/11436",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11436.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11436.patch",
"merged_at": "2023-10-05T14:51:21"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11435
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11435/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11435/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11435/events
|
https://github.com/langchain-ai/langchain/pull/11435
| 1,928,301,318 |
PR_kwDOIPDwls5cAter
| 11,435 |
Add yandex stt parser
|
{
"login": "tyumentsev4",
"id": 56769451,
"node_id": "MDQ6VXNlcjU2NzY5NDUx",
"avatar_url": "https://avatars.githubusercontent.com/u/56769451?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tyumentsev4",
"html_url": "https://github.com/tyumentsev4",
"followers_url": "https://api.github.com/users/tyumentsev4/followers",
"following_url": "https://api.github.com/users/tyumentsev4/following{/other_user}",
"gists_url": "https://api.github.com/users/tyumentsev4/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tyumentsev4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tyumentsev4/subscriptions",
"organizations_url": "https://api.github.com/users/tyumentsev4/orgs",
"repos_url": "https://api.github.com/users/tyumentsev4/repos",
"events_url": "https://api.github.com/users/tyumentsev4/events{/privacy}",
"received_events_url": "https://api.github.com/users/tyumentsev4/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": 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 |
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-10-05T13:29:42 | 2023-10-12T15:42:04 | 2023-10-12T15:42:04 |
CONTRIBUTOR
| null |
Description: Introducing an ability to load a transcription document of audio file using [Yandex SpeechKit](https://cloud.yandex.com/en-ru/services/speechkit)
Issue: None
Dependencies: yandex-speechkit
Tag maintainer: @rlancemartin, @eyurtsev
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11435/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11435/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11435",
"html_url": "https://github.com/langchain-ai/langchain/pull/11435",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11435.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11435.patch",
"merged_at": "2023-10-12T15:42:04"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11434
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11434/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11434/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11434/events
|
https://github.com/langchain-ai/langchain/pull/11434
| 1,928,257,434 |
PR_kwDOIPDwls5cAjwX
| 11,434 |
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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-05T13:08:31 | 2023-10-05T20:25:20 | 2023-10-05T20:25:20 |
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 from 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/11434/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11434/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11434",
"html_url": "https://github.com/langchain-ai/langchain/pull/11434",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11434.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11434.patch",
"merged_at": "2023-10-05T20:25:20"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11433
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11433/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11433/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11433/events
|
https://github.com/langchain-ai/langchain/issues/11433
| 1,928,223,846 |
I_kwDOIPDwls5y7lxm
| 11,433 |
PGVector bound to a single database connection
|
{
"login": "dmazine",
"id": 1134559,
"node_id": "MDQ6VXNlcjExMzQ1NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1134559?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dmazine",
"html_url": "https://github.com/dmazine",
"followers_url": "https://api.github.com/users/dmazine/followers",
"following_url": "https://api.github.com/users/dmazine/following{/other_user}",
"gists_url": "https://api.github.com/users/dmazine/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dmazine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dmazine/subscriptions",
"organizations_url": "https://api.github.com/users/dmazine/orgs",
"repos_url": "https://api.github.com/users/dmazine/repos",
"events_url": "https://api.github.com/users/dmazine/events{/privacy}",
"received_events_url": "https://api.github.com/users/dmazine/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 | 6 | 2023-10-05T12:52:39 | 2024-01-03T00:36:51 | null |
CONTRIBUTOR
| null |
### System Info
python: 3.11
langchain: 0.0.306
### Who can help?
Although PGVector implementation utilizes SQLAlchemy that supports connection pooling features, it gets one connection from the pool, saves it as a class attribute and reuses in all requests.
```python
class PGVector(VectorStore):
# ...
def __init__(
self,
# ...
) -> None:
# ...
self.__post_init__()
def __post_init__(
self,
) -> None:
self._conn = self.connect()
# ...
def create_vector_extension(self) -> None:
try:
with Session(self._conn) as session:
# ...
except Exception as e:
self.logger.exception(e)
def create_tables_if_not_exists(self) -> None:
with self._conn.begin():
Base.metadata.create_all(self._conn)
@contextlib.contextmanager
def _make_session(self) -> Generator[Session, None, None]:
yield Session(self._conn)
# ...
```
This means that:
- Since the same connection is user for handle all requests, they will not be executed in parallel but rather enqueued. In a scenario with a large number of requests, this may not scale well.
- Great pool features like connection recycle and test for liveness can not be used.
@hwchase17
@eyurtsev
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
1. Configure Postgres to kill idle sessions after 10 seconds (I'm using the `ankane/pgvector` docker image):
```sql
ALTER SYSTEM SET idle_session_timeout TO '10000';
ALTER SYSTEM SET idle_in_transaction_session_timeout TO '10000';
```
2. Restart the database
3. Confirm the new settings are active
```sql
SHOW ALL;
```
4. Create a sample program that instantiate a `PGVector` class and search by similarity every 30 seconds, sleeping between each iteration
```python
if __name__ == '__main__':
# Logging level
logging.basicConfig(level=logging.DEBUG)
load_dotenv()
# PG Vector
driver = os.environ["PGVECTOR_DRIVER"]
host = os.environ["PGVECTOR_HOST"]
port = os.environ["PGVECTOR_PORT"]
database = os.environ["PGVECTOR_DATABASE"]
user = os.environ["PGVECTOR_USER"]
password = os.environ["PGVECTOR_PASSWORD"]
collection_name = "state_of_the_union_test"
connection_string = f'postgresql+{driver}://{user}:{password}@{host}:{port}/{database}'
embeddings = OpenAIEmbeddings()
loader = TextLoader("./state_of_the_union.txt")
documents = loader.load()
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
chunks = text_splitter.split_documents(documents)
db = PGVector.from_documents(
embedding=embeddings,
documents=chunks,
collection_name=collection_name,
connection_string=connection_string,
)
for i in range(100):
try:
print('--> *** Searching by similarity ***')
result = db.similarity_search_with_score("foo")
print('--> *** Documents retrieved successfully ***')
# for doc, score in result:
# print(f'{score}:{doc.page_content}')
except Exception as e:
print('--> *** Fail ***')
print(str(e))
print('--> *** Sleeping ***')
time.sleep(30)
print('\n\n')
```
5. Confirm in the console output that some requests fail because the idle connection was closed
```
(poc-pgvector-py3.11) ➜ poc-pgvector python -m poc_pgvector
DEBUG:openai:message='Request to OpenAI API' method=post path=https://.../v1/embeddings
DEBUG:urllib3.util.retry:Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): ...:443
DEBUG:urllib3.connectionpool:https://...:443 "POST /v1/embeddings HTTP/1.1" 200 None
DEBUG:openai:message='OpenAI API response' path=https://.../v1/embeddings processing_ms=211 request_id=ec4ef62b-da79-4055-a8da-66fce881a6e9 response_code=200
--> *** Searching by similarity ***
DEBUG:openai:message='Request to OpenAI API' method=post path=https://.../v1/embeddings
DEBUG:openai:api_version=None data='{"input": [[8134]], "model": "text-embedding-ada-002", "encoding_format": "base64"}' message='Post details'
DEBUG:urllib3.connectionpool:https://...:443 "POST /v1/embeddings HTTP/1.1" 200 None
DEBUG:openai:message='OpenAI API response' path=https://.../v1/embeddings processing_ms=40 request_id=f2b791ac-0c88-4362-b14c-d6a36084a932 response_code=200
--> *** Documents retrieved successfully ***
--> *** Sleeping ***
--> *** Searching by similarity ***
DEBUG:openai:message='Request to OpenAI API' method=post path=https://.../v1/embeddings
DEBUG:openai:api_version=None data='{"input": [[8134]], "model": "text-embedding-ada-002", "encoding_format": "base64"}' message='Post details'
DEBUG:urllib3.connectionpool:https://...:443 "POST /v1/embeddings HTTP/1.1" 200 None
DEBUG:openai:message='OpenAI API response' path=https://.../v1/embeddings processing_ms=30 request_id=de593b87-29ad-4342-81c1-3c495d5b4f56 response_code=200
--> *** Fail ***
(psycopg2.OperationalError) server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
[SQL: SELECT langchain_pg_collection.name AS langchain_pg_collection_name, langchain_pg_collection.cmetadata AS langchain_pg_collection_cmetadata, langchain_pg_collection.uuid AS langchain_pg_collection_uuid
FROM langchain_pg_collection
WHERE langchain_pg_collection.name = %(name_1)s
LIMIT %(param_1)s]
[parameters: {'name_1': 'state_of_the_union_test', 'param_1': 1}]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
--> *** Sleeping ***
--> *** Searching by similarity ***
DEBUG:openai:message='Request to OpenAI API' method=post path=https://.../v1/embeddings
DEBUG:openai:api_version=None data='{"input": [[8134]], "model": "text-embedding-ada-002", "encoding_format": "base64"}' message='Post details'
DEBUG:urllib3.connectionpool:https://...:443 "POST /v1/embeddings HTTP/1.1" 200 None
DEBUG:openai:message='OpenAI API response' path=https://.../v1/embeddings processing_ms=42 request_id=e2cb6145-8ceb-4127-b4ee-c5130ba42e8e response_code=200
--> *** Documents retrieved successfully ***
--> *** Sleeping ***
--> *** Searching by similarity ***
DEBUG:openai:message='Request to OpenAI API' method=post path=https://.../v1/embeddings
DEBUG:openai:api_version=None data='{"input": [[8134]], "model": "text-embedding-ada-002", "encoding_format": "base64"}' message='Post details'
DEBUG:urllib3.connectionpool:https://...:443 "POST /v1/embeddings HTTP/1.1" 200 None
DEBUG:openai:message='OpenAI API response' path=https://.../v1/embeddings processing_ms=38 request_id=05e15050-0c37-4f7c-a118-a3fafc2bf979 response_code=200
--> *** Fail ***
(psycopg2.OperationalError) server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
[SQL: SELECT langchain_pg_collection.name AS langchain_pg_collection_name, langchain_pg_collection.cmetadata AS langchain_pg_collection_cmetadata, langchain_pg_collection.uuid AS langchain_pg_collection_uuid
FROM langchain_pg_collection
WHERE langchain_pg_collection.name = %(name_1)s
LIMIT %(param_1)s]
[parameters: {'name_1': 'state_of_the_union_test', 'param_1': 1}]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
--> *** Sleeping ***
--> *** Searching by similarity ***
DEBUG:openai:message='Request to OpenAI API' method=post path=https://.../v1/embeddings
DEBUG:openai:api_version=None data='{"input": [[8134]], "model": "text-embedding-ada-002", "encoding_format": "base64"}' message='Post details'
DEBUG:urllib3.connectionpool:https://...:443 "POST /v1/embeddings HTTP/1.1" 200 None
DEBUG:openai:message='OpenAI API response' path=https://.../v1/embeddings processing_ms=28 request_id=2deecd8b-42de-42dd-a242-004d9d5811eb response_code=200
--> *** Documents retrieved successfully ***
--> *** Sleeping ***
...
```
### Expected behavior
- Use pooled connections to make feasible executing requests in parallel.
- Allow fine tuning the connection pool used by PGVector, like configuring the its maximum size, number of seconds to wait before giving up on getting a connection from the pool, and enabling [pessimist](https://docs.sqlalchemy.org/en/20/core/pooling.html#pool-disconnects-pessimistic) (liveness testing connections when borrowing them from the pool) or optimistic (connection recycle time) strategies for disconnection dandling.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11433/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11433/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11432
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11432/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11432/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11432/events
|
https://github.com/langchain-ai/langchain/pull/11432
| 1,928,169,289 |
PR_kwDOIPDwls5cAQTA
| 11,432 |
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": 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-10-05T12:26:38 | 2023-10-05T12:55:43 | 2023-10-05T12:55:43 |
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/11432/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11432/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11432",
"html_url": "https://github.com/langchain-ai/langchain/pull/11432",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11432.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11432.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11431
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11431/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11431/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11431/events
|
https://github.com/langchain-ai/langchain/pull/11431
| 1,928,157,838 |
PR_kwDOIPDwls5cAN2b
| 11,431 |
Update aws.mdx
|
{
"login": "ElliotKetchup",
"id": 64539418,
"node_id": "MDQ6VXNlcjY0NTM5NDE4",
"avatar_url": "https://avatars.githubusercontent.com/u/64539418?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ElliotKetchup",
"html_url": "https://github.com/ElliotKetchup",
"followers_url": "https://api.github.com/users/ElliotKetchup/followers",
"following_url": "https://api.github.com/users/ElliotKetchup/following{/other_user}",
"gists_url": "https://api.github.com/users/ElliotKetchup/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ElliotKetchup/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ElliotKetchup/subscriptions",
"organizations_url": "https://api.github.com/users/ElliotKetchup/orgs",
"repos_url": "https://api.github.com/users/ElliotKetchup/repos",
"events_url": "https://api.github.com/users/ElliotKetchup/events{/privacy}",
"received_events_url": "https://api.github.com/users/ElliotKetchup/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": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-05T12:20:21 | 2023-10-05T16:07:16 | 2023-10-05T16:07:16 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** changed 'configur' to 'configure',
- **Issue:** None,
- **Dependencies:** None,
- **Tag maintainer:** None,
- **Twitter handle:** None
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11431/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11431/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11431",
"html_url": "https://github.com/langchain-ai/langchain/pull/11431",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11431.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11431.patch",
"merged_at": "2023-10-05T16:07:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11430
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11430/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11430/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11430/events
|
https://github.com/langchain-ai/langchain/issues/11430
| 1,928,130,885 |
I_kwDOIPDwls5y7PFF
| 11,430 |
Loading UnstructeredPDF fails after build with PyInstaller
|
{
"login": "BillBridge",
"id": 18249253,
"node_id": "MDQ6VXNlcjE4MjQ5MjUz",
"avatar_url": "https://avatars.githubusercontent.com/u/18249253?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/BillBridge",
"html_url": "https://github.com/BillBridge",
"followers_url": "https://api.github.com/users/BillBridge/followers",
"following_url": "https://api.github.com/users/BillBridge/following{/other_user}",
"gists_url": "https://api.github.com/users/BillBridge/gists{/gist_id}",
"starred_url": "https://api.github.com/users/BillBridge/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BillBridge/subscriptions",
"organizations_url": "https://api.github.com/users/BillBridge/orgs",
"repos_url": "https://api.github.com/users/BillBridge/repos",
"events_url": "https://api.github.com/users/BillBridge/events{/privacy}",
"received_events_url": "https://api.github.com/users/BillBridge/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 | 5 | 2023-10-05T12:08:46 | 2023-10-05T20:04:59 | 2023-10-05T20:02:29 |
NONE
| null |
### System Info
Windows 11
Python 3.10
Langchain 0.0.286
Pyinstaller 5.7.0
File "test1.py", line 5, in <module>
File "langchain\document_loaders\unstructured.py", line 86, in load
File "langchain\document_loaders\pdf.py", line 57, in _get_elements
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "unstructured\partition\pdf.py", line 40, in <module>
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "unstructured\partition\lang.py", line 3, in <module>
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "iso639\__init__.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "iso639\language.py", line 12, in <module>
sqlite3.OperationalError: unable to open database file
[19716] Failed to execute script 'test1' due to unhandled exception!
### Who can help?
@agola11
@eyurtsev
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from langchain.document_loaders import UnstructuredPDFLoader
from langchain.text_splitter import RecursiveCharacterTextSplitter
loader = UnstructuredPDFLoader("C:\\Temp\\AI_experimenting\\indexer_test1\\test_docs\\testdoc1.pdf")
data = loader.load()
text_splitter = RecursiveCharacterTextSplitter(chunk_size=512, chunk_overlap=20)
docs_transformed = text_splitter.split_documents(data)
print (f'Number of chunks of data: {len(docs_transformed )}')
```
Compile the code above using the following Pyinstaller spec file:
```
# -*- mode: python -*-
import os
from os.path import join, dirname, basename
datas = [
("C:/Temp/AI_experimenting/venv/Lib/site-packages/langchain/chains/llm_summarization_checker/prompts/*.txt", "langchain/chains/llm_summarization_checker/prompts"),
]
googleapihidden = ["pkg_resources.py2_warn",
"googleapiclient",
"apiclient",
"google-api-core"]
# list of modules to exclude from analysis
excludes = []
# list of hiddenimports
hiddenimports = googleapihidden
# binary data
# assets
tocs = []
a = Analysis(['test1.py'],
pathex=[os.getcwd()],
binaries=None,
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
runtime_hooks=[],
excludes=excludes,
win_no_prefer_redirects=False,
win_private_assemblies=False)
pyz = PYZ(a.pure, a.zipped_data)
exe1 = EXE(pyz,
a.scripts,
name='mytest',
exclude_binaries=True,
icon='',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True)
coll = COLLECT(exe1,
a.binaries,
a.zipfiles,
a.datas,
*tocs,
strip=False,
upx=True,
name='mytest_V1')
```
Compile with: pyinstaller --log-level DEBUG test1.spec
Then in cmd terminal change working directory to ....dist\mytest_V1 and run mytest.exe
### Expected behavior
The expected behavior would be an output like:
Number of chunks of data: 18
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11430/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11430/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11428
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11428/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11428/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11428/events
|
https://github.com/langchain-ai/langchain/pull/11428
| 1,928,110,533 |
PR_kwDOIPDwls5cAEJU
| 11,428 |
Nc/5oct/runnable release
|
{
"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-10-05T11:57:04 | 2023-10-05T13:27:52 | 2023-10-05T13:27:51 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11428/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11428/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11428",
"html_url": "https://github.com/langchain-ai/langchain/pull/11428",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11428.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11428.patch",
"merged_at": "2023-10-05T13:27:51"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11427
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11427/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11427/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11427/events
|
https://github.com/langchain-ai/langchain/pull/11427
| 1,928,086,670 |
PR_kwDOIPDwls5b_-1K
| 11,427 |
Parse string arguments correctly when using a structured tool
|
{
"login": "gutzbenj",
"id": 29654631,
"node_id": "MDQ6VXNlcjI5NjU0NjMx",
"avatar_url": "https://avatars.githubusercontent.com/u/29654631?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gutzbenj",
"html_url": "https://github.com/gutzbenj",
"followers_url": "https://api.github.com/users/gutzbenj/followers",
"following_url": "https://api.github.com/users/gutzbenj/following{/other_user}",
"gists_url": "https://api.github.com/users/gutzbenj/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gutzbenj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gutzbenj/subscriptions",
"organizations_url": "https://api.github.com/users/gutzbenj/orgs",
"repos_url": "https://api.github.com/users/gutzbenj/repos",
"events_url": "https://api.github.com/users/gutzbenj/events{/privacy}",
"received_events_url": "https://api.github.com/users/gutzbenj/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 |
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-10-05T11:43:56 | 2023-10-27T07:26:42 | null |
NONE
| null |
**Description:**
Previously when setting up a structured tool with multiple parameters e.g. `arg1, arg2`
we got a schema validation error by pydantic. The reason for this was simple: Although the required parameters for the tool were correctly identified, they were propagated as string e.g. `'{"arg1": "foo", "arg2": "bar"}'`
This PR fixes this issue by using the `parse_raw` method if the args are of type string
**Issue:**
Didn't find a related issue.
**Dependencies:**
None
**Tag maintainer:**
None
**Twitter handle:**
None
/CC @Depaccu
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11427/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11427/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11427",
"html_url": "https://github.com/langchain-ai/langchain/pull/11427",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11427.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11427.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11426
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11426/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11426/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11426/events
|
https://github.com/langchain-ai/langchain/issues/11426
| 1,927,989,312 |
I_kwDOIPDwls5y6shA
| 11,426 |
pip installing 'langchain[all]' installs a newer (broken) version than pip install langchain does
|
{
"login": "tomchapin",
"id": 55727,
"node_id": "MDQ6VXNlcjU1NzI3",
"avatar_url": "https://avatars.githubusercontent.com/u/55727?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tomchapin",
"html_url": "https://github.com/tomchapin",
"followers_url": "https://api.github.com/users/tomchapin/followers",
"following_url": "https://api.github.com/users/tomchapin/following{/other_user}",
"gists_url": "https://api.github.com/users/tomchapin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tomchapin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tomchapin/subscriptions",
"organizations_url": "https://api.github.com/users/tomchapin/orgs",
"repos_url": "https://api.github.com/users/tomchapin/repos",
"events_url": "https://api.github.com/users/tomchapin/events{/privacy}",
"received_events_url": "https://api.github.com/users/tomchapin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-05T10:49:12 | 2023-10-05T11:18:44 | 2023-10-05T11:18:44 |
NONE
| null |
### System Info
I am using Python 3.11.5 and I run into this issue with `ModuleNotFoundError: No module named 'langchain.document_loaders'` after running `pip install 'langchain[all]'`, which appears to be installing langchain-0.0.39
If I then run `pip uninstall langchain`, followed by `pip install langchain`, it proceeds to install langchain-0.0.308 and suddenly my document loaders work again.
- Why does langchain 0.0.39 have document_loaders broken?
- Why does langchain[all] install a different version of langchain?
### Reproduction
1. Install python 3.11.5 (using pyenv on OSX)
2. Run `pip install `langchain[all]'`
3. Observe langchain version that is installed
4. Run `ipython` and execute `from langchain.document_loaders import WebBaseLoader` to receive the module error.
5. Run `pip uninstall langchain`
6. Run `pip install langchain`
7. Note how an older version of langchain is installed
8. Run `ipython` and execute `from langchain.document_loaders import WebBaseLoader` to see how it's working.
### Expected behavior
`pip install langchain` should install the same underlying version of langchain as the version of langchain that includes all of the various modules.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11426/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11426/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11425
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11425/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11425/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11425/events
|
https://github.com/langchain-ai/langchain/issues/11425
| 1,927,900,506 |
I_kwDOIPDwls5y6W1a
| 11,425 |
DOC: QA using a Retriever, why do we need additional empty space?
|
{
"login": "1vash",
"id": 23149363,
"node_id": "MDQ6VXNlcjIzMTQ5MzYz",
"avatar_url": "https://avatars.githubusercontent.com/u/23149363?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/1vash",
"html_url": "https://github.com/1vash",
"followers_url": "https://api.github.com/users/1vash/followers",
"following_url": "https://api.github.com/users/1vash/following{/other_user}",
"gists_url": "https://api.github.com/users/1vash/gists{/gist_id}",
"starred_url": "https://api.github.com/users/1vash/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/1vash/subscriptions",
"organizations_url": "https://api.github.com/users/1vash/orgs",
"repos_url": "https://api.github.com/users/1vash/repos",
"events_url": "https://api.github.com/users/1vash/events{/privacy}",
"received_events_url": "https://api.github.com/users/1vash/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-05T10:09:14 | 2023-10-05T10:21:40 | null |
NONE
| null |
### Issue with current documentation:
In [QA using a Retriever docs](https://python.langchain.com/docs/use_cases/question_answering/how_to/vector_db_qa) you can observe that after each LLM reply we observe additional empty space. What is the purpose of having this space or is it just a bug in Prompt?
Copied from the docs provided above
```python3
query = "What did the president say about Ketanji Brown Jackson"
qa.run(query)
```
Provides response:
`" The president said that she is one of the nation's top legal minds ..."`
### Idea or request for content:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11425/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11425/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11424
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11424/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11424/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11424/events
|
https://github.com/langchain-ai/langchain/pull/11424
| 1,927,814,176 |
PR_kwDOIPDwls5b_D5a
| 11,424 |
integration test for DocAI parser
|
{
"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": 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 | 2 | 2023-10-05T09:30:21 | 2023-10-05T19:38:30 | 2023-10-05T19:38:30 |
CONTRIBUTOR
| null |
- **Description:** added an integration test
- **Issue:** #11407
@baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11424/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11424/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11424",
"html_url": "https://github.com/langchain-ai/langchain/pull/11424",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11424.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11424.patch",
"merged_at": "2023-10-05T19:38:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11423
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11423/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11423/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11423/events
|
https://github.com/langchain-ai/langchain/issues/11423
| 1,927,461,674 |
I_kwDOIPDwls5y4rsq
| 11,423 |
Issue: Custom Redirect URI as parameter in SharePointLoader
|
{
"login": "rkritin98",
"id": 67390957,
"node_id": "MDQ6VXNlcjY3MzkwOTU3",
"avatar_url": "https://avatars.githubusercontent.com/u/67390957?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rkritin98",
"html_url": "https://github.com/rkritin98",
"followers_url": "https://api.github.com/users/rkritin98/followers",
"following_url": "https://api.github.com/users/rkritin98/following{/other_user}",
"gists_url": "https://api.github.com/users/rkritin98/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rkritin98/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rkritin98/subscriptions",
"organizations_url": "https://api.github.com/users/rkritin98/orgs",
"repos_url": "https://api.github.com/users/rkritin98/repos",
"events_url": "https://api.github.com/users/rkritin98/events{/privacy}",
"received_events_url": "https://api.github.com/users/rkritin98/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"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-05T06:16:38 | 2023-10-05T08:38:05 | null |
NONE
| null |
### Issue you'd like to raise.
I am trying to access documents from SharePoint using Langchain's [SharePointLoader](https://api.python.langchain.com/en/latest/document_loaders/langchain.document_loaders.sharepoint.SharePointLoader.html).
I changed the redirect URI to a local host on this [documentation](https://python.langchain.com/docs/integrations/document_loaders/microsoft_sharepoint). How can I pass the new redirect URI as a parameter to the [SharePointLoader](https://api.python.langchain.com/en/latest/document_loaders/langchain.document_loaders.sharepoint.SharePointLoader.html) function.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11423/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11423/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11422
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11422/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11422/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11422/events
|
https://github.com/langchain-ai/langchain/issues/11422
| 1,927,423,576 |
I_kwDOIPDwls5y4iZY
| 11,422 |
SupabaseVectorStore.from_documents is not working
|
{
"login": "venurawarnasooriya",
"id": 139458172,
"node_id": "U_kgDOCE_2fA",
"avatar_url": "https://avatars.githubusercontent.com/u/139458172?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/venurawarnasooriya",
"html_url": "https://github.com/venurawarnasooriya",
"followers_url": "https://api.github.com/users/venurawarnasooriya/followers",
"following_url": "https://api.github.com/users/venurawarnasooriya/following{/other_user}",
"gists_url": "https://api.github.com/users/venurawarnasooriya/gists{/gist_id}",
"starred_url": "https://api.github.com/users/venurawarnasooriya/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/venurawarnasooriya/subscriptions",
"organizations_url": "https://api.github.com/users/venurawarnasooriya/orgs",
"repos_url": "https://api.github.com/users/venurawarnasooriya/repos",
"events_url": "https://api.github.com/users/venurawarnasooriya/events{/privacy}",
"received_events_url": "https://api.github.com/users/venurawarnasooriya/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 25 | 2023-10-05T05:39:43 | 2023-11-08T06:20:58 | null |
NONE
| null |
### System Info
langchain==0.0.300
supabase==1.1.1
### Who can help?
@hwaking @eyurtsev @agola11 @eyurtsev @hwchase17 @agola11
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
### **Creation of Supabase client**
`supabase_url: str = os.environ.get("SUPABASE_URL") # type: ignore
supabase_key: str = os.environ.get("SUPABASE_SERVICE_KEY") # type: ignore
supabase_client = create_client(supabase_url, supabase_key)`
### Text Splitter creation
`text_splitter = CharacterTextSplitter(
chunk_size=800,
chunk_overlap=0,
)`
### **Embeddings**
`embeddings = OpenAIEmbeddings()`
### **Loading the document**
`loader = PyPDFLoader("Alice_in_wonderland2.pdf")
pages = loader.load_and_split()
docs = text_splitter.split_documents(pages)`
### **Save values to Supabase**
`vector_store = SupabaseVectorStore.from_documents(documents=docs, embedding=embeddings, client=supabase_client)`
### **Error encountring**
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\VSCode\Python\langchain project\supabase-try\test.py", line 34, in <module>
vector_store = SupabaseVectorStore.from_documents(
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\langchain\vectorstores\base.py", line 417, in from_documents
return cls.from_texts(texts, embedding, metadatas=metadatas, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\langchain\vectorstores\supabase.py", line 147, in from_texts
cls._add_vectors(client, table_name, embeddings, docs, ids)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\langchain\vectorstores\supabase.py", line 323, in _add_vectors
result = client.from_(table_name).upsert(chunk).execute() # type: ignore
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\postgrest\_sync\request_builder.py", line 57, in execute
r = self.session.request(
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_client.py", line 814, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_client.py", line 901, in send
response = self._send_handling_auth(
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_client.py", line 929, in _send_handling_auth
response = self._send_handling_redirects(
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_client.py", line 966, in _send_handling_redirects
response = self._send_single_request(request)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_client.py", line 1002, in _send_single_request
response = transport.handle_request(request)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_transports\default.py", line 218, in handle_request
resp = self._pool.handle_request(req)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_transports\default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.WriteTimeout: The write operation timed out
### I tried changing the code according to the langchain docs as
`vector_store = SupabaseVectorStore.from_documents(
docs,
embeddings,
client=supabase_client,
table_name="documents",
query_name="match_documents",
)`
### Then I encountered the following error
2023-10-05 10:33:29,879:INFO - HTTP Request: POST https://scptrclvtrvcwjdunlrn.supabase.co/rest/v1/documents "HTTP/1.1 404 Not Found"
Traceback (most recent call last):
File "D:\VSCode\Python\langchain project\supabase-try\test.py", line 34, in <module>
vector_store = SupabaseVectorStore.from_documents(
**I didnt create the document table in the supabase manually as i need it to be created automatically with the code. And if i need to create it manually i need to know the steps of create that as well and how to integrate it as well. Please help me immediately**
### Expected behavior
SupabaseVectorStore.from_documents works fine and Store all the embeddings in the vector store.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11422/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11422/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11421
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11421/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11421/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11421/events
|
https://github.com/langchain-ai/langchain/pull/11421
| 1,927,329,563 |
PR_kwDOIPDwls5b9bw1
| 11,421 |
Update bageldb.py
|
{
"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": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-05T03:54:13 | 2023-10-05T19:37:56 | 2023-10-05T19:37:56 |
CONTRIBUTOR
| null |
I have restructured the code to ensure uniform handling of ImportError. In place of previously used ValueError, I've adopted the standard practice of raising ImportError with explanatory messages. This modification enhances code readability and clarifies that any problems stem from module importation.
@baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11421/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11421/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11421",
"html_url": "https://github.com/langchain-ai/langchain/pull/11421",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11421.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11421.patch",
"merged_at": "2023-10-05T19:37:56"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11420
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11420/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11420/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11420/events
|
https://github.com/langchain-ai/langchain/pull/11420
| 1,927,298,442 |
PR_kwDOIPDwls5b9VDf
| 11,420 |
Upgrade langchain dependencies.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/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-10-05T03:09:45 | 2023-10-05T14:57:21 | 2023-10-05T14:57:20 |
COLLABORATOR
| null |
I was hoping this would pick up numpy 1.26, which is required to support the new Python 3.12 release, but it didn't. It seems that some transitive dependency requirement on numpy is preventing that, and the highest we can currently go is 1.24.x.
But to find this out required a 15min `poetry lock`, so I figured we might as well upgrade the dependencies we can and hopefully make the next dependency upgrade a bit smaller.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11420/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11420/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11420",
"html_url": "https://github.com/langchain-ai/langchain/pull/11420",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11420.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11420.patch",
"merged_at": "2023-10-05T14:57:20"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11419
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11419/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11419/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11419/events
|
https://github.com/langchain-ai/langchain/pull/11419
| 1,927,288,470 |
PR_kwDOIPDwls5b9S7L
| 11,419 |
Wfh/rtds
|
{
"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": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-05T02:55:09 | 2023-10-12T01:49:16 | 2023-10-12T01:49:16 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11419/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11419/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11419",
"html_url": "https://github.com/langchain-ai/langchain/pull/11419",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11419.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11419.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11418
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11418/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11418/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11418/events
|
https://github.com/langchain-ai/langchain/pull/11418
| 1,927,197,832 |
PR_kwDOIPDwls5b8_xF
| 11,418 |
feat: add BigFramesLLM integration
|
{
"login": "ashleyxuu",
"id": 139821907,
"node_id": "U_kgDOCFWDUw",
"avatar_url": "https://avatars.githubusercontent.com/u/139821907?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ashleyxuu",
"html_url": "https://github.com/ashleyxuu",
"followers_url": "https://api.github.com/users/ashleyxuu/followers",
"following_url": "https://api.github.com/users/ashleyxuu/following{/other_user}",
"gists_url": "https://api.github.com/users/ashleyxuu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ashleyxuu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ashleyxuu/subscriptions",
"organizations_url": "https://api.github.com/users/ashleyxuu/orgs",
"repos_url": "https://api.github.com/users/ashleyxuu/repos",
"events_url": "https://api.github.com/users/ashleyxuu/events{/privacy}",
"received_events_url": "https://api.github.com/users/ashleyxuu/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-10-05T00:59:28 | 2023-10-16T21:59:02 | null |
CONTRIBUTOR
| null |
This PR adds [Bigframes (BigQuery DataFrames)](https://cloud.google.com/python/docs/reference/bigframes/latest) integration to Langchain. BigQuery DataFrames provides a Pythonic DataFrame and machine learning (ML) API powered by the BigQuery engine. BigFrames supports manipulating data in the DataFrame to build LLM prompts, and sending DataFrame prompts to the LLM model using [text-bison model of the PaLM API](https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/text)
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11418/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11418/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11418",
"html_url": "https://github.com/langchain-ai/langchain/pull/11418",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11418.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11418.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11416
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11416/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11416/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11416/events
|
https://github.com/langchain-ai/langchain/issues/11416
| 1,927,175,230 |
I_kwDOIPDwls5y3lw-
| 11,416 |
UnstructuredWordDocumentLoader - Missing Percentages (%) characters in data
|
{
"login": "renatojmsantos",
"id": 25869973,
"node_id": "MDQ6VXNlcjI1ODY5OTcz",
"avatar_url": "https://avatars.githubusercontent.com/u/25869973?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/renatojmsantos",
"html_url": "https://github.com/renatojmsantos",
"followers_url": "https://api.github.com/users/renatojmsantos/followers",
"following_url": "https://api.github.com/users/renatojmsantos/following{/other_user}",
"gists_url": "https://api.github.com/users/renatojmsantos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/renatojmsantos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/renatojmsantos/subscriptions",
"organizations_url": "https://api.github.com/users/renatojmsantos/orgs",
"repos_url": "https://api.github.com/users/renatojmsantos/repos",
"events_url": "https://api.github.com/users/renatojmsantos/events{/privacy}",
"received_events_url": "https://api.github.com/users/renatojmsantos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-05T00:35:06 | 2023-10-05T01:07:51 | null |
NONE
| null |
### System Info
I am using UnstructuredWordDocumentLoader module to load a .docx file. I already tried several things... but the text data returned is always without the percentages that are several times in the .docx file.
How can I maintain / get this (%) percentage symbol?
Thanks
### Who can help?
@hwchase17 @agola11 @eyurtsev
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
loader = UnstructuredWordDocumentLoader("example_data/fake.docx", mode="elements")
data = loader.load()
### Expected behavior
Have in the data the percentages characters also.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11416/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11416/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11415
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11415/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11415/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11415/events
|
https://github.com/langchain-ai/langchain/pull/11415
| 1,927,101,814 |
PR_kwDOIPDwls5b8q6_
| 11,415 |
Remove overridden async not implemented method on embeddings filters and add default async implementation for document compressors
|
{
"login": "jacoblee93",
"id": 6952323,
"node_id": "MDQ6VXNlcjY5NTIzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jacoblee93",
"html_url": "https://github.com/jacoblee93",
"followers_url": "https://api.github.com/users/jacoblee93/followers",
"following_url": "https://api.github.com/users/jacoblee93/following{/other_user}",
"gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions",
"organizations_url": "https://api.github.com/users/jacoblee93/orgs",
"repos_url": "https://api.github.com/users/jacoblee93/repos",
"events_url": "https://api.github.com/users/jacoblee93/events{/privacy}",
"received_events_url": "https://api.github.com/users/jacoblee93/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-04T23:06:05 | 2023-10-05T14:56:04 | 2023-10-05T14:56:03 |
CONTRIBUTOR
| null |
@nfcampos @eyurtsev @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11415/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11415/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11415",
"html_url": "https://github.com/langchain-ai/langchain/pull/11415",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11415.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11415.patch",
"merged_at": "2023-10-05T14:56:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11414
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11414/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11414/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11414/events
|
https://github.com/langchain-ai/langchain/issues/11414
| 1,927,090,102 |
I_kwDOIPDwls5y3Q-2
| 11,414 |
DOC: optional ids issue in delete method in vectorstores
|
{
"login": "pi-curst",
"id": 118760884,
"node_id": "U_kgDOBxQltA",
"avatar_url": "https://avatars.githubusercontent.com/u/118760884?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pi-curst",
"html_url": "https://github.com/pi-curst",
"followers_url": "https://api.github.com/users/pi-curst/followers",
"following_url": "https://api.github.com/users/pi-curst/following{/other_user}",
"gists_url": "https://api.github.com/users/pi-curst/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pi-curst/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pi-curst/subscriptions",
"organizations_url": "https://api.github.com/users/pi-curst/orgs",
"repos_url": "https://api.github.com/users/pi-curst/repos",
"events_url": "https://api.github.com/users/pi-curst/events{/privacy}",
"received_events_url": "https://api.github.com/users/pi-curst/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
open
| false | null |
[] | null | 0 | 2023-10-04T22:50:28 | 2023-10-04T22:52:36 | null |
NONE
| null |
### Issue with current documentation:
In the documentation for some examples like [Weaviate](https://api.python.langchain.com/en/latest/vectorstores/langchain.vectorstores.weaviate.Weaviate.html#langchain.vectorstores.weaviate.Weaviate.delete) and [ElasticsearchVectorStore](https://api.python.langchain.com/en/latest/vectorstores/langchain.vectorstores.elasticsearch.ElasticsearchStore.html#langchain.vectorstores.elasticsearch.ElasticsearchStore.delete), the delete method is described as having the ids parameter as optional.
`delete(ids: Optional[List[str]] = None, **kwargs: Any) → None`
However, the ids parameter is mandatory for those vectorstores, and if it is not provided, a ValueError will be raised with the message "No ids provided to delete." Here is the revised [documentation](https://github.com/langchain-ai/langchain/blob/b9fad28f5e093415d76aeb71b5e555eb87fd2ec2/libs/langchain/langchain/vectorstores/elastic_vector_search.py#L336C5-L348C61) to clarify this:
`
def delete(self, ids: Optional[List[str]] = None, **kwargs: Any) -> None:
"""Delete by vector IDs.
Args:
ids: List of ids to delete.
"""
if ids is None:
raise ValueError("No ids provided to delete.")
# TODO: Check if this can be done in bulk
for id in ids:
self.client.delete(index=self.index_name, id=id)
`
### Idea or request for content:
Please clarify in the documentation
Is it also possible to get bulk delete functionality for some vectorstore (ex. ElasticsearchVectorStore/ Weviate)?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11414/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11414/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11413
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11413/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11413/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11413/events
|
https://github.com/langchain-ai/langchain/pull/11413
| 1,927,049,240 |
PR_kwDOIPDwls5b8fnH
| 11,413 |
feat: Update Google Document AI Parser
|
{
"login": "holtskinner",
"id": 13262395,
"node_id": "MDQ6VXNlcjEzMjYyMzk1",
"avatar_url": "https://avatars.githubusercontent.com/u/13262395?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/holtskinner",
"html_url": "https://github.com/holtskinner",
"followers_url": "https://api.github.com/users/holtskinner/followers",
"following_url": "https://api.github.com/users/holtskinner/following{/other_user}",
"gists_url": "https://api.github.com/users/holtskinner/gists{/gist_id}",
"starred_url": "https://api.github.com/users/holtskinner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/holtskinner/subscriptions",
"organizations_url": "https://api.github.com/users/holtskinner/orgs",
"repos_url": "https://api.github.com/users/holtskinner/repos",
"events_url": "https://api.github.com/users/holtskinner/events{/privacy}",
"received_events_url": "https://api.github.com/users/holtskinner/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-10-04T22:04:24 | 2023-10-09T15:49:06 | 2023-10-09T15:04:26 |
CONTRIBUTOR
| null |
- **Description:** Code Refactoring, Documentation Improvements for Google Document AI PDF Parser
- Adds Online (synchronous) processing option.
- Adds default field mask to limit payload size.
- Skips Human review by default.
- **Issue:** Fixes #10589
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11413/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11413/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11413",
"html_url": "https://github.com/langchain-ai/langchain/pull/11413",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11413.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11413.patch",
"merged_at": "2023-10-09T15:04:26"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11412
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11412/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11412/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11412/events
|
https://github.com/langchain-ai/langchain/pull/11412
| 1,927,024,257 |
PR_kwDOIPDwls5b8aFU
| 11,412 |
Normalize Option in Scoring Chain
|
{
"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-10-04T21:43:23 | 2023-10-04T22:59:29 | 2023-10-04T22:59:28 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11412/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11412/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11412",
"html_url": "https://github.com/langchain-ai/langchain/pull/11412",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11412.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11412.patch",
"merged_at": "2023-10-04T22:59:28"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11411
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11411/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11411/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11411/events
|
https://github.com/langchain-ai/langchain/pull/11411
| 1,927,019,600 |
PR_kwDOIPDwls5b8ZFd
| 11,411 |
feat: add markdown list parser
|
{
"login": "fapont",
"id": 32645951,
"node_id": "MDQ6VXNlcjMyNjQ1OTUx",
"avatar_url": "https://avatars.githubusercontent.com/u/32645951?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fapont",
"html_url": "https://github.com/fapont",
"followers_url": "https://api.github.com/users/fapont/followers",
"following_url": "https://api.github.com/users/fapont/following{/other_user}",
"gists_url": "https://api.github.com/users/fapont/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fapont/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fapont/subscriptions",
"organizations_url": "https://api.github.com/users/fapont/orgs",
"repos_url": "https://api.github.com/users/fapont/repos",
"events_url": "https://api.github.com/users/fapont/events{/privacy}",
"received_events_url": "https://api.github.com/users/fapont/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 5 | 2023-10-04T21:38:42 | 2023-10-06T21:58:16 | 2023-10-06T19:25:46 |
CONTRIBUTOR
| null |
**Description:** add `MarkdownListOutputParser` as a new `ListOutputParser`
**Issue:** #11410
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11411/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/11411/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11411",
"html_url": "https://github.com/langchain-ai/langchain/pull/11411",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11411.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11411.patch",
"merged_at": "2023-10-06T19:25:46"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11410
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11410/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11410/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11410/events
|
https://github.com/langchain-ai/langchain/issues/11410
| 1,927,019,118 |
I_kwDOIPDwls5y2_pu
| 11,410 |
Feature: Markdown list output parser
|
{
"login": "fapont",
"id": 32645951,
"node_id": "MDQ6VXNlcjMyNjQ1OTUx",
"avatar_url": "https://avatars.githubusercontent.com/u/32645951?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fapont",
"html_url": "https://github.com/fapont",
"followers_url": "https://api.github.com/users/fapont/followers",
"following_url": "https://api.github.com/users/fapont/following{/other_user}",
"gists_url": "https://api.github.com/users/fapont/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fapont/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fapont/subscriptions",
"organizations_url": "https://api.github.com/users/fapont/orgs",
"repos_url": "https://api.github.com/users/fapont/repos",
"events_url": "https://api.github.com/users/fapont/events{/privacy}",
"received_events_url": "https://api.github.com/users/fapont/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 | 1 | 2023-10-04T21:38:14 | 2023-10-07T01:57:03 | 2023-10-07T01:57:03 |
CONTRIBUTOR
| null |
### Feature request
I would like to implement a `ListOutputParser` that could transform Markdown list into a string list
### Motivation
It seems that most of the lists generated by LLMs are Markdown lists, so I think this will be useful.
It might also make it easier to handle cases where the generated list doesn't work with the existing `ListOutputParser` (Numered and CommaSeparated).
### Your contribution
Here is the PR: https://github.com/langchain-ai/langchain/pull/11411
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11410/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11410/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11409
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11409/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11409/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11409/events
|
https://github.com/langchain-ai/langchain/issues/11409
| 1,927,010,913 |
I_kwDOIPDwls5y29ph
| 11,409 |
Redis from_existing_index does not raise ValueError when index does not exist
|
{
"login": "ibrahoss",
"id": 38831749,
"node_id": "MDQ6VXNlcjM4ODMxNzQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/38831749?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ibrahoss",
"html_url": "https://github.com/ibrahoss",
"followers_url": "https://api.github.com/users/ibrahoss/followers",
"following_url": "https://api.github.com/users/ibrahoss/following{/other_user}",
"gists_url": "https://api.github.com/users/ibrahoss/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ibrahoss/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ibrahoss/subscriptions",
"organizations_url": "https://api.github.com/users/ibrahoss/orgs",
"repos_url": "https://api.github.com/users/ibrahoss/repos",
"events_url": "https://api.github.com/users/ibrahoss/events{/privacy}",
"received_events_url": "https://api.github.com/users/ibrahoss/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": 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 | 5 | 2023-10-04T21:30:28 | 2023-10-09T15:05:22 | 2023-10-09T15:05:22 |
NONE
| null |
### System Info
langchain 0.0.303, python 3.9, redis-py 5.0.1, latest redis stack with RedisSearch module
### Who can help?
@eyurtsev
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Try to create Redis vector store like this from non existent index_name:
`
embeddings = OpenAIEmbeddings()
vectorstore = Redis.from_existing_index(
embeddings,
index_name=index_name,
schema='schema.yaml',
redis_url=REDIS_URL,
)
`
it executes and returns object of Redis type, and logs that index was found. However, of course it fails to query later.
### Expected behavior
It should raise a ValueError accortding to doc.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11409/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11409/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11408
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11408/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11408/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11408/events
|
https://github.com/langchain-ai/langchain/issues/11408
| 1,926,997,959 |
I_kwDOIPDwls5y26fH
| 11,408 |
BooleanOutputParser expected output value error
|
{
"login": "ankur287",
"id": 30616576,
"node_id": "MDQ6VXNlcjMwNjE2NTc2",
"avatar_url": "https://avatars.githubusercontent.com/u/30616576?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ankur287",
"html_url": "https://github.com/ankur287",
"followers_url": "https://api.github.com/users/ankur287/followers",
"following_url": "https://api.github.com/users/ankur287/following{/other_user}",
"gists_url": "https://api.github.com/users/ankur287/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ankur287/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ankur287/subscriptions",
"organizations_url": "https://api.github.com/users/ankur287/orgs",
"repos_url": "https://api.github.com/users/ankur287/repos",
"events_url": "https://api.github.com/users/ankur287/events{/privacy}",
"received_events_url": "https://api.github.com/users/ankur287/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 6 | 2023-10-04T21:18:38 | 2024-01-04T23:13:15 | null |
NONE
| null |
### System Info
Hi, I am using LLMChainFilter.from_llm(llm) but while running, I am getting this error:
ValueError: BooleanOutputParser expected output value to either be YES or NO. Received Yes, the context is relevant to the question as it provides information about the problem in the.
How do I resolve this error?
Langchain version: 0.0.308
### Who can help?
@agola11
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
from langchain.retrievers import ContextualCompressionRetriever
from langchain.retrievers.document_compressors import LLMChainExtractor, LLMChainFilter
llm = SageMakerEndpointModel
_filter = LLMChainFilter.from_llm(llm)
compressor = LLMChainExtractor.from_llm(llm)
compression_retriever = ContextualCompressionRetriever(base_compressor=_filter, base_retriever=faiss_retriever)
compressed_docs = compression_retriever.get_relevant_documents("What did the president say about Ketanji Jackson Brown?")
### Expected behavior
Get filtered docs
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11408/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11408/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11407
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11407/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11407/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11407/events
|
https://github.com/langchain-ai/langchain/issues/11407
| 1,926,936,215 |
I_kwDOIPDwls5y2raX
| 11,407 |
Error "InvalidArgument: 400 Request" by following tutorial for Document AI
|
{
"login": "gumigortub",
"id": 115096015,
"node_id": "U_kgDOBtw5zw",
"avatar_url": "https://avatars.githubusercontent.com/u/115096015?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gumigortub",
"html_url": "https://github.com/gumigortub",
"followers_url": "https://api.github.com/users/gumigortub/followers",
"following_url": "https://api.github.com/users/gumigortub/following{/other_user}",
"gists_url": "https://api.github.com/users/gumigortub/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gumigortub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gumigortub/subscriptions",
"organizations_url": "https://api.github.com/users/gumigortub/orgs",
"repos_url": "https://api.github.com/users/gumigortub/repos",
"events_url": "https://api.github.com/users/gumigortub/events{/privacy}",
"received_events_url": "https://api.github.com/users/gumigortub/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 | 17 | 2023-10-04T20:32:22 | 2023-10-30T21:28:38 | null |
NONE
| null |
### System Info
I’m running this on a local machine Windows 10, Spyder 5.2.1 IDE with Anaconda package management, using python 3.10.
### Who can help?
@leo-gan @holtskinner
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Hi,
I've just started learning to code with python, working with LLMs and I'm following the [tutorial for setting](https://python.langchain.com/docs/integrations/document_transformers/docai) up LangChain with Google Document AI and I’m getting this error “InvalidArgument: 400 Request contains an invalid argument.” with this line of code
`docs = list(parser.lazy_parse(blob))`
Here are the things I’ve tried so far:
• Setting up gcloud ADC so I can run this as authroized session, code wouldn’t work otherwise
• Set the permission in the GSC bucket to Storage Admin so I can read/write
• Chatgpt wrote test to see if current credentials are working, it is
• Chatgpt wrote test to see if DocAIParser object is working, it is
I think there’s some issue with the output path for “lazy_parse” but I can’t get it to work. I've looked into the documentation but I can't tell if I'm missing something or not. How do I get this working?
See full code and full error message below:
```python
import pprint
from google.auth.transport.requests import AuthorizedSession
from google.auth import default
from google.cloud import documentai
from langchain.document_loaders.blob_loaders import Blob
from langchain.document_loaders.parsers import DocAIParser
PROJECT = "[replace with project name]"
GCS_OUTPUT_PATH = "gs://[replace with bucket path]"
PROCESSOR_NAME = "https://us-documentai.googleapis.com/v1/projects/[replace with processor name]"
# Get the credentials object using ADC.
credentials, _ = default()
session = AuthorizedSession(credentials=credentials)
# Create a Document AI client object.
client = documentai.DocumentProcessorServiceClient(credentials=credentials)
"""Tests if the current credentials are working in gcloud."""
import google.auth
def test_credentials():
try:
# Try to authenticate to the Google Cloud API.
google.auth.default()
print("Credentials are valid.")
except Exception as e:
print("Credentials are invalid:", e)
if __name__ == "__main__":
test_credentials()
import logging
from google.cloud import documentai
# Set up logging
logging.basicConfig(level=logging.DEBUG)
# Create DocumentAI client
client = documentai.DocumentProcessorServiceClient()
# Print out actual method call
logging.debug("Calling client.batch_process_documents(%s, %s)",
PROCESSOR_NAME, GCS_OUTPUT_PATH)
"""Test of DocAIParser object is working"""
# Try to create a DocAIParser object.
try:
parser = DocAIParser(
processor_name=PROCESSOR_NAME,
gcs_output_path=GCS_OUTPUT_PATH,
client=client,
)
# If the DocAIParser object was created successfully, then the Google is accepting the parameters.
print("Google is accepting the parameters.")
except Exception as e:
# If the DocAIParser object fails to be created, then the Google is not accepting the parameters.
print("Google is not accepting the parameters:", e)
parser = DocAIParser(
processor_name=PROCESSOR_NAME,
gcs_output_path=GCS_OUTPUT_PATH,
client=client,
)
blob = Blob(path="gs://foia_doc_bucket/input/goog-exhibit-99-1-q1-2023-19.pdf")
docs = list(parser.lazy_parse(blob))
print(len(docs))
```
**********************************************
Full error message:
```
DEBUG:google.auth._default:Checking None for explicit credentials as part of auth process...
DEBUG:google.auth._default:Checking Cloud SDK credentials as part of auth process...
DEBUG:urllib3.util.retry:Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
DEBUG:google.auth.transport.requests:Making request: POST https://oauth2.googleapis.com/token
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): oauth2.googleapis.com:443
DEBUG:urllib3.connectionpool:https://oauth2.googleapis.com:443 "POST /token HTTP/1.1" 200 None
Traceback (most recent call last):
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\google\api_core\grpc_helpers.py", line 75, in error_remapped_callable
return callable_(*args, **kwargs)
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\grpc\_channel.py", line 1161, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\grpc\_channel.py", line 1004, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = "UNKNOWN:Error received from peer ipv4:142.250.31.95:443 {created_time:"2023-10-04T19:56:49.9162929+00:00", grpc_status:3, grpc_message:"Request contains an invalid argument."}"
>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Inspiron 15 amd 5505\Dropbox\[...]\local_doc_upload.py", line 80, in <module>
docs = list(parser.lazy_parse(blob))
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\langchain\document_loaders\parsers\docai.py", line 91, in lazy_parse
yield from self.batch_parse([blob], gcs_output_path=self._gcs_output_path)
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\langchain\document_loaders\parsers\docai.py", line 122, in batch_parse
operations = self.docai_parse(blobs, gcs_output_path=output_path)
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\langchain\document_loaders\parsers\docai.py", line 268, in docai_parse
operations.append(self._client.batch_process_documents(request))
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\google\cloud\documentai_v1\services\document_processor_service\client.py", line 786, in batch_process_documents
response = rpc(
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\google\api_core\gapic_v1\method.py", line 131, in __call__
return wrapped_func(*args, **kwargs)
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\google\api_core\retry.py", line 366, in retry_wrapped_func
return retry_target(
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\google\api_core\retry.py", line 204, in retry_target
return target()
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\google\api_core\timeout.py", line 120, in func_with_timeout
return func(*args, **kwargs)
File "C:\Users\Anaconda\envs\python3_10\lib\site-packages\google\api_core\grpc_helpers.py", line 77, in error_remapped_callable
raise exceptions.from_grpc_error(exc) from exc
InvalidArgument: 400 Request contains an invalid argument.
```
### Expected behavior
Suppose to output "11" based on the number of pages in [this pdf](https://abc.xyz/assets/a7/5b/9e5ae0364b12b4c883f3cf748226/goog-exhibit-99-1-q1-2023-19.pdf) per the [Doc AI tutorial](https://python.langchain.com/docs/integrations/document_transformers/docai)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11407/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11407/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11406
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11406/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11406/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11406/events
|
https://github.com/langchain-ai/langchain/pull/11406
| 1,926,924,500 |
PR_kwDOIPDwls5b8EP3
| 11,406 |
Add docker compose to CLI
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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-10-04T20:24:31 | 2023-10-05T14:58:58 | 2023-10-05T14:58:57 |
COLLABORATOR
| null |
Add docker compose to cli
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11406/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11406/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11406",
"html_url": "https://github.com/langchain-ai/langchain/pull/11406",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11406.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11406.patch",
"merged_at": "2023-10-05T14:58:57"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11405
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11405/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11405/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11405/events
|
https://github.com/langchain-ai/langchain/issues/11405
| 1,926,907,879 |
I_kwDOIPDwls5y2kfn
| 11,405 |
Issue: prevent a agent from exceeding the token limit
|
{
"login": "Ethanmbinns",
"id": 98421056,
"node_id": "U_kgDOBd3JQA",
"avatar_url": "https://avatars.githubusercontent.com/u/98421056?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Ethanmbinns",
"html_url": "https://github.com/Ethanmbinns",
"followers_url": "https://api.github.com/users/Ethanmbinns/followers",
"following_url": "https://api.github.com/users/Ethanmbinns/following{/other_user}",
"gists_url": "https://api.github.com/users/Ethanmbinns/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Ethanmbinns/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Ethanmbinns/subscriptions",
"organizations_url": "https://api.github.com/users/Ethanmbinns/orgs",
"repos_url": "https://api.github.com/users/Ethanmbinns/repos",
"events_url": "https://api.github.com/users/Ethanmbinns/events{/privacy}",
"received_events_url": "https://api.github.com/users/Ethanmbinns/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 8 | 2023-10-04T20:11:52 | 2023-11-02T20:49:02 | null |
NONE
| null |
### Issue you'd like to raise.
Hey there, I'm trying got find a way to prevent an agent from going over the token limit, I've looked at the docs, asked around and had no luck.
This is the error for better content:
[ERROR] InvalidRequestError: This model's maximum context length is 16384 tokens. However, your messages resulted in 17822 tokens. Please reduce the length of the messages.
Any help would be great 😊
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11405/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11405/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11404
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11404/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11404/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11404/events
|
https://github.com/langchain-ai/langchain/pull/11404
| 1,926,901,756 |
PR_kwDOIPDwls5b7_XE
| 11,404 |
CLI: Readme update
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-04T20:07:08 | 2023-10-04T20:25:39 | 2023-10-04T20:25:38 |
COLLABORATOR
| null |
Consolidating to a single README for now, will be easier to maintain we can differentiate between poetry and pip later. Does not seem critical.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11404/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11404/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11404",
"html_url": "https://github.com/langchain-ai/langchain/pull/11404",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11404.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11404.patch",
"merged_at": "2023-10-04T20:25:38"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11403
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11403/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11403/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11403/events
|
https://github.com/langchain-ai/langchain/pull/11403
| 1,926,895,916 |
PR_kwDOIPDwls5b7-F_
| 11,403 |
Rm bedrock anthropic error
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 3 | 2023-10-04T20:03:02 | 2023-10-05T03:31:52 | 2023-10-05T03:31:51 |
COLLABORATOR
| null |
Log a warning instead of raising an error when validating bedrock anthropic prompts. Let server handle actual error behavior.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11403/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11403/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11403",
"html_url": "https://github.com/langchain-ai/langchain/pull/11403",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11403.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11403.patch",
"merged_at": "2023-10-05T03:31:51"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11402
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11402/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11402/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11402/events
|
https://github.com/langchain-ai/langchain/pull/11402
| 1,926,884,862 |
PR_kwDOIPDwls5b77u7
| 11,402 |
Fix typing imports in extraction usecase
|
{
"login": "bholagabbar",
"id": 11693595,
"node_id": "MDQ6VXNlcjExNjkzNTk1",
"avatar_url": "https://avatars.githubusercontent.com/u/11693595?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bholagabbar",
"html_url": "https://github.com/bholagabbar",
"followers_url": "https://api.github.com/users/bholagabbar/followers",
"following_url": "https://api.github.com/users/bholagabbar/following{/other_user}",
"gists_url": "https://api.github.com/users/bholagabbar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bholagabbar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bholagabbar/subscriptions",
"organizations_url": "https://api.github.com/users/bholagabbar/orgs",
"repos_url": "https://api.github.com/users/bholagabbar/repos",
"events_url": "https://api.github.com/users/bholagabbar/events{/privacy}",
"received_events_url": "https://api.github.com/users/bholagabbar/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 |
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-10-04T19:54:39 | 2023-10-05T02:45:43 | 2023-10-04T20:55:03 |
CONTRIBUTOR
| null |
The person class here: https://python.langchain.com/docs/use_cases/extraction#pydantic-1 has attributes `dog_breed` and `dog_name` that use `Optional` from typing, but it hasn't been imported. Fixed the import here
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** Fix python imports in example,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11402/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11402/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11402",
"html_url": "https://github.com/langchain-ai/langchain/pull/11402",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11402.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11402.patch",
"merged_at": "2023-10-04T20:55:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11401
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11401/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11401/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11401/events
|
https://github.com/langchain-ai/langchain/pull/11401
| 1,926,878,683 |
PR_kwDOIPDwls5b76Yq
| 11,401 |
Update QA doc w/ Runnables
|
{
"login": "rlancemartin",
"id": 122662504,
"node_id": "U_kgDOB0-uaA",
"avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rlancemartin",
"html_url": "https://github.com/rlancemartin",
"followers_url": "https://api.github.com/users/rlancemartin/followers",
"following_url": "https://api.github.com/users/rlancemartin/following{/other_user}",
"gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions",
"organizations_url": "https://api.github.com/users/rlancemartin/orgs",
"repos_url": "https://api.github.com/users/rlancemartin/repos",
"events_url": "https://api.github.com/users/rlancemartin/events{/privacy}",
"received_events_url": "https://api.github.com/users/rlancemartin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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-10-04T19:50:38 | 2023-10-05T15:07:40 | 2023-10-05T15:07:39 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11401/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11401/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11401",
"html_url": "https://github.com/langchain-ai/langchain/pull/11401",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11401.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11401.patch",
"merged_at": "2023-10-05T15:07:39"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11400
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11400/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11400/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11400/events
|
https://github.com/langchain-ai/langchain/pull/11400
| 1,926,856,647 |
PR_kwDOIPDwls5b71jl
| 11,400 |
Retriever based on GCP DocAI Warehouse
|
{
"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": 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"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-04T19:37:39 | 2023-10-12T02:08:54 | 2023-10-12T02:08:54 |
CONTRIBUTOR
| null |
- **Description:** implements a retriever on top of DocAI Warehouse (to interact with existing enterprise documents)
https://cloud.google.com/document-ai-warehouse?hl=en
- **Issue:** new functionality
@baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11400/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11400/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11400",
"html_url": "https://github.com/langchain-ai/langchain/pull/11400",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11400.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11400.patch",
"merged_at": "2023-10-12T02:08:54"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11399
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11399/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11399/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11399/events
|
https://github.com/langchain-ai/langchain/pull/11399
| 1,926,848,829 |
PR_kwDOIPDwls5b7z1o
| 11,399 |
mv docs extras
|
{
"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": 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-10-04T19:32:27 | 2023-10-06T17:13:20 | 2023-10-06T17:09:42 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11399/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11399/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11399",
"html_url": "https://github.com/langchain-ai/langchain/pull/11399",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11399.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11399.patch",
"merged_at": "2023-10-06T17:09:42"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11398
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11398/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11398/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11398/events
|
https://github.com/langchain-ai/langchain/issues/11398
| 1,926,846,508 |
I_kwDOIPDwls5y2Vgs
| 11,398 |
StreamlitCallbackHandler thinking.. / spinner Not stopping
|
{
"login": "quantumalchemy",
"id": 22033041,
"node_id": "MDQ6VXNlcjIyMDMzMDQx",
"avatar_url": "https://avatars.githubusercontent.com/u/22033041?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/quantumalchemy",
"html_url": "https://github.com/quantumalchemy",
"followers_url": "https://api.github.com/users/quantumalchemy/followers",
"following_url": "https://api.github.com/users/quantumalchemy/following{/other_user}",
"gists_url": "https://api.github.com/users/quantumalchemy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/quantumalchemy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/quantumalchemy/subscriptions",
"organizations_url": "https://api.github.com/users/quantumalchemy/orgs",
"repos_url": "https://api.github.com/users/quantumalchemy/repos",
"events_url": "https://api.github.com/users/quantumalchemy/events{/privacy}",
"received_events_url": "https://api.github.com/users/quantumalchemy/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 6 | 2023-10-04T19:30:40 | 2024-01-12T14:53:07 | null |
NONE
| null |
### System Info
python:3.10.13 bookworm (docker)
streamlit
Version: 1.27.1
langchain
Version: 0.0.306
### 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
# Display assistant response in chat message container
with st.chat_message("🧞♂️"):
message_placeholder = st.empty()
cbh = StreamlitCallbackHandler(st.container())
AI_response = llm_chain.run(prompt,callbacks=[cbh])
### Expected behavior
the "Thinking.." spinner STOPS or hides after LLM finishes its response
No Parameters I can find here
https://api.python.langchain.com/en/latest/callbacks/langchain.callbacks.streamlit.streamlit_callback_handler.StreamlitCallbackHandler.html
that would affect this
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11398/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11398/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11396
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11396/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11396/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11396/events
|
https://github.com/langchain-ai/langchain/issues/11396
| 1,926,823,792 |
I_kwDOIPDwls5y2P9w
| 11,396 |
Retrun_source_documets does not work !!!!
|
{
"login": "Vanekkk1",
"id": 91801007,
"node_id": "U_kgDOBXjFrw",
"avatar_url": "https://avatars.githubusercontent.com/u/91801007?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vanekkk1",
"html_url": "https://github.com/Vanekkk1",
"followers_url": "https://api.github.com/users/Vanekkk1/followers",
"following_url": "https://api.github.com/users/Vanekkk1/following{/other_user}",
"gists_url": "https://api.github.com/users/Vanekkk1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vanekkk1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vanekkk1/subscriptions",
"organizations_url": "https://api.github.com/users/Vanekkk1/orgs",
"repos_url": "https://api.github.com/users/Vanekkk1/repos",
"events_url": "https://api.github.com/users/Vanekkk1/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vanekkk1/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-04T19:13:38 | 2023-10-04T19:20:39 | null |
NONE
| null |
### System Info
"There was a BUG when using return_source_documents = True with any chain, it was always raising an error!!
!!, this is a temporary fix that requires the 'answer' key to be present there, but FIX IT, it is now impossible to to return_source_docs !!!!!!!!!!!!"
def _get_input_output(
self, inputs: Dict[str, Any], outputs: Dict[str, Any]
) -> Tuple[str, str]:
if self.input_key is None:
prompt_input_key = get_prompt_input_key(inputs, self.memory_variables)
else:
prompt_input_key = self.input_key
if self.output_key is None:
if 'answer' in outputs:
output_key = 'answer'
else:
raise ValueError("Output key 'answer' not found.")
else:
output_key = self.output_key
return inputs[prompt_input_key], outputs[output_key]
### Who can help?
@eyur
### 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
def create_chain():
retriever = cretae_retriver....
)
memory = memory...
chain = ConversationalRetrievalChain.from_llm(
llm=ChatOpenAI(temperature=0, model="gpt-3.5-turbo"),
retriever=retriever,
verbose=True,
memory=memory,
return_source_documents=True, !!!!!! Here , it does not work
)
return chain
def run_chat():
chain = create_chain()
while True:
query = input("Prompt: ")
if query in ["quit", "q", "exit"]:
sys.exit()
result = chain({"question": query})
print(f"ANSWER: {result['answer']}")
print(f"DOCS_USED: {result['source_documents']}")
query = None
### Expected behavior
It will say this error
raise ValueError(f"One output key expected, got {outputs.keys()}")
ValueError: One output key expected, got dict_keys(['answer', 'source_documents'])
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11396/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11396/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11395
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11395/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11395/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11395/events
|
https://github.com/langchain-ai/langchain/pull/11395
| 1,926,820,740 |
PR_kwDOIPDwls5b7t03
| 11,395 |
mv LCEL up in docs
|
{
"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-10-04T19:11:22 | 2023-10-04T19:34:07 | 2023-10-04T19:34:06 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11395/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11395/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11395",
"html_url": "https://github.com/langchain-ai/langchain/pull/11395",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11395.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11395.patch",
"merged_at": "2023-10-04T19:34:06"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11394
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11394/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11394/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11394/events
|
https://github.com/langchain-ai/langchain/pull/11394
| 1,926,819,470 |
PR_kwDOIPDwls5b7tjh
| 11,394 |
Feature/enhance huggingfacepipeline to handle different return type
|
{
"login": "hsuyuming",
"id": 23413676,
"node_id": "MDQ6VXNlcjIzNDEzNjc2",
"avatar_url": "https://avatars.githubusercontent.com/u/23413676?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hsuyuming",
"html_url": "https://github.com/hsuyuming",
"followers_url": "https://api.github.com/users/hsuyuming/followers",
"following_url": "https://api.github.com/users/hsuyuming/following{/other_user}",
"gists_url": "https://api.github.com/users/hsuyuming/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hsuyuming/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hsuyuming/subscriptions",
"organizations_url": "https://api.github.com/users/hsuyuming/orgs",
"repos_url": "https://api.github.com/users/hsuyuming/repos",
"events_url": "https://api.github.com/users/hsuyuming/events{/privacy}",
"received_events_url": "https://api.github.com/users/hsuyuming/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-04T19:10:24 | 2023-10-12T02:09:03 | 2023-10-12T02:09:03 |
CONTRIBUTOR
| null |
**Description:** Avoid huggingfacepipeline to truncate the response if user setup return_full_text as False within huggingface pipeline.
**Dependencies:** : None
**Tag maintainer:** Maybe @sam-h-bean ?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11394/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11394/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11394",
"html_url": "https://github.com/langchain-ai/langchain/pull/11394",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11394.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11394.patch",
"merged_at": "2023-10-12T02:09:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11393
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11393/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11393/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11393/events
|
https://github.com/langchain-ai/langchain/pull/11393
| 1,926,716,090 |
PR_kwDOIPDwls5b7XMQ
| 11,393 |
make vectorstores optional
|
{
"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": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-04T17:57:13 | 2023-10-05T17:14:06 | 2023-10-05T17:14:05 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11393/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11393/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11393",
"html_url": "https://github.com/langchain-ai/langchain/pull/11393",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11393.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11393.patch",
"merged_at": "2023-10-05T17:14:05"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11392
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11392/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11392/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11392/events
|
https://github.com/langchain-ai/langchain/issues/11392
| 1,926,681,297 |
I_kwDOIPDwls5y1tLR
| 11,392 |
Access Denied Exception while accessing Cross Account Sagemaker endpoints.
|
{
"login": "rchegondi",
"id": 6452985,
"node_id": "MDQ6VXNlcjY0NTI5ODU=",
"avatar_url": "https://avatars.githubusercontent.com/u/6452985?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rchegondi",
"html_url": "https://github.com/rchegondi",
"followers_url": "https://api.github.com/users/rchegondi/followers",
"following_url": "https://api.github.com/users/rchegondi/following{/other_user}",
"gists_url": "https://api.github.com/users/rchegondi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rchegondi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rchegondi/subscriptions",
"organizations_url": "https://api.github.com/users/rchegondi/orgs",
"repos_url": "https://api.github.com/users/rchegondi/repos",
"events_url": "https://api.github.com/users/rchegondi/events{/privacy}",
"received_events_url": "https://api.github.com/users/rchegondi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-04T17:32:33 | 2023-10-04T17:40:04 | null |
NONE
| null |
### System Info
Langchain: 0.0.308
Python: 3.8
def get_ml_response(self, question):
try:
chain = create_conversation_retrieval_chain()
llm_response = chain({'question': question, "chat_history": []})
logger.info(f"LLm Response: {llm_response}")
except Exception:
err_msg = "Execption! {}".format(traceback.format_exc())
logger.info(err_msg)
def create_conversation_retrieval_chain(self):
try:
session = boto3.Session()
sts_client = session.client("sts")
assumed_role = sts_client.assume_role(RoleArn=role_arn, RoleSessionName="AssumeRoleSession")
# Get the temporary credentials
credentials = assumed_role["Credentials"]
access_key = credentials["AccessKeyId"]
secret_key = credentials["SecretAccessKey"]
session_token = credentials["SessionToken"]
# Configure the default AWS Session with assumed role credentials
# config = Config(region_name="us-west-2")
session = boto3.Session(
aws_access_key_id=access_key,
aws_secret_access_key=secret_key,
aws_session_token=session_token
)
custom_template = """Given the following conversation and a follow up question, rephrase the follow up question
to be a standalone question. At the end of standalone question add this 'Answer the question
in English language.If you do not know the answer reply with 'I am sorry'.
Chat History: {chat_history}
Follow Up Input: {question}
Standalone question:"""
custom_question_prompt = PromptTemplate.from_template(custom_template)
auth = AWSV4SignerAuth(credentials, 'us-west-2', 'aoss')
embeddings = SagemakerEndpointEmbeddingsJumpStart(
endpoint_name="jumpstart-dft-hf-textembedding-all-minilm-l6-v2",
region_name="us-west-2",
content_handler=content_handler_embeddings
)
opensearch_vector_search = OpenSearchVectorSearch(
opensearch_url="<opensearch_url>",
embedding_function=embeddings,
index_name="<index_name>",
http_auth=auth,
connection_class=RequestsHttpConnection,
)
memory = ConversationBufferMemory(
memory_key="chat_history",
return_messages=True,
input_key="question",
output_key="answer",
)
chain = ConversationalRetrievalChain.from_llm(
llm=SagemakerEndpoint(
endpoint_name="jumpstart-dft-hf-llm-falcon-40b-instruct-bf16",
region_name="us-west-2",
content_handler=content_handler_llm,
),
# for experimentation, you can change number of documents to retrieve here
retriever=opensearch_vector_search.as_retriever(
search_kwargs={
"k": 3,
}
),
memory=memory,
condense_question_prompt=custom_question_prompt,
return_source_documents=True,
)
return chain
except Exception:
err_msg = "Execption! {}".format(traceback.format_exc())
logger.info(err_msg)
### Who can help?
@hwchase17
@agola11
### 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
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
chain = self.create_conversation_retrieval_chain()
llm_response = chain({'question': question, "chat_history": []})
### Expected behavior
I am expecting to connect to connect to Sagemaker endpoints using Assume role permissions but getting Access Denied Exception. I tried invoking the endpoints through the lambda function which is working fine. But not able to figure out how to pass the credentials using Langchain. Could you please help me with this.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11392/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11392/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11391
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11391/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11391/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11391/events
|
https://github.com/langchain-ai/langchain/pull/11391
| 1,926,654,653 |
PR_kwDOIPDwls5b7J4Q
| 11,391 |
Improve output of Runnable.astream_log()
|
{
"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-10-04T17:15:01 | 2023-10-04T19:16:38 | 2023-10-04T19:16:37 |
COLLABORATOR
| null |
- Make logs a dictionary keyed by run name (and counter for repeats)
- Ensure no output shows up in lc_serializable format
- Fix up repr for RunLog and RunLogPatch
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11391/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 1,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11391/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11391",
"html_url": "https://github.com/langchain-ai/langchain/pull/11391",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11391.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11391.patch",
"merged_at": "2023-10-04T19:16:37"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11390
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11390/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11390/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11390/events
|
https://github.com/langchain-ai/langchain/pull/11390
| 1,926,651,468 |
PR_kwDOIPDwls5b7JMS
| 11,390 |
Make langchain compatible with SQLAlchemy<1.4.0
|
{
"login": "mhwang-stripe",
"id": 67120022,
"node_id": "MDQ6VXNlcjY3MTIwMDIy",
"avatar_url": "https://avatars.githubusercontent.com/u/67120022?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mhwang-stripe",
"html_url": "https://github.com/mhwang-stripe",
"followers_url": "https://api.github.com/users/mhwang-stripe/followers",
"following_url": "https://api.github.com/users/mhwang-stripe/following{/other_user}",
"gists_url": "https://api.github.com/users/mhwang-stripe/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mhwang-stripe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mhwang-stripe/subscriptions",
"organizations_url": "https://api.github.com/users/mhwang-stripe/orgs",
"repos_url": "https://api.github.com/users/mhwang-stripe/repos",
"events_url": "https://api.github.com/users/mhwang-stripe/events{/privacy}",
"received_events_url": "https://api.github.com/users/mhwang-stripe/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false |
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-10-04T17:12:44 | 2023-10-04T19:41:32 | 2023-10-04T19:41:20 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
## Description
Currently SQLAlchemy >=1.4.0 is a hard requirement. We are unable to run `from langchain.vectorstores import FAISS` with SQLAlchemy <1.4.0 due to top-level imports, even if we aren't even using parts of the library that use SQLAlchemy. See Testing section for repro. Let's make it so that langchain is still compatible with SQLAlchemy <1.4.0, especially if we aren't using parts of langchain that require it.
The main conflict is that SQLAlchemy removed `declarative_base` from `sqlalchemy.ext.declarative` in 1.4.0 and moved it to `sqlalchemy.orm`. We can fix this by try-catching the import. This is the same fix as applied in https://github.com/langchain-ai/langchain/pull/883.
(I see that there seems to be some refactoring going on about isolating dependencies, e.g. https://github.com/langchain-ai/langchain/commit/c87e9fb2ce0ae617e3b2edde52421c80adef54cc, so if this issue will be eventually fixed by isolating imports in langchain.vectorstores that also works).
## Issue
I can't find a matching issue.
## Dependencies
No additional dependencies
## Maintainer
@hwchase17 since you reviewed https://github.com/langchain-ai/langchain/pull/883
## Testing
I didn't add a test, but I manually tested this.
1. Current failure:
```
langchain==0.0.305
sqlalchemy==1.3.24
```
``` python
python -i
>>> from langchain.vectorstores import FAISS
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/pay/src/zoolander/vendor3/lib/python3.8/site-packages/langchain/vectorstores/__init__.py", line 58, in <module>
from langchain.vectorstores.pgembedding import PGEmbedding
File "/pay/src/zoolander/vendor3/lib/python3.8/site-packages/langchain/vectorstores/pgembedding.py", line 10, in <module>
from sqlalchemy.orm import Session, declarative_base, relationship
ImportError: cannot import name 'declarative_base' from 'sqlalchemy.orm' (/pay/src/zoolander/vendor3/lib/python3.8/site-packages/sqlalchemy/orm/__init__.py)
```
2. This fix:
```
langchain==<this PR>
sqlalchemy==1.3.24
```
``` python
python -i
>>> from langchain.vectorstores import FAISS
<succeeds>
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11390/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11390/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11390",
"html_url": "https://github.com/langchain-ai/langchain/pull/11390",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11390.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11390.patch",
"merged_at": "2023-10-04T19:41:20"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11389
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11389/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11389/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11389/events
|
https://github.com/langchain-ai/langchain/pull/11389
| 1,926,644,209 |
PR_kwDOIPDwls5b7HoA
| 11,389 |
Add cohere /chat integration
|
{
"login": "billytrend-cohere",
"id": 144115527,
"node_id": "U_kgDOCJcHRw",
"avatar_url": "https://avatars.githubusercontent.com/u/144115527?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/billytrend-cohere",
"html_url": "https://github.com/billytrend-cohere",
"followers_url": "https://api.github.com/users/billytrend-cohere/followers",
"following_url": "https://api.github.com/users/billytrend-cohere/following{/other_user}",
"gists_url": "https://api.github.com/users/billytrend-cohere/gists{/gist_id}",
"starred_url": "https://api.github.com/users/billytrend-cohere/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/billytrend-cohere/subscriptions",
"organizations_url": "https://api.github.com/users/billytrend-cohere/orgs",
"repos_url": "https://api.github.com/users/billytrend-cohere/repos",
"events_url": "https://api.github.com/users/billytrend-cohere/events{/privacy}",
"received_events_url": "https://api.github.com/users/billytrend-cohere/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-04T17:07:38 | 2023-10-05T16:20:48 | 2023-10-05T16:20:48 |
CONTRIBUTOR
| null |
Add cohere /chat integration and an iPython notebook to demonstrate the addition.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11389/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11389/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11389",
"html_url": "https://github.com/langchain-ai/langchain/pull/11389",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11389.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11389.patch",
"merged_at": "2023-10-05T16:20:48"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11388
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11388/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11388/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11388/events
|
https://github.com/langchain-ai/langchain/pull/11388
| 1,926,631,567 |
PR_kwDOIPDwls5b7E4J
| 11,388 |
docs: `integrations/retrievers` cleanup
|
{
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-04T16:58:39 | 2023-10-06T22:04:11 | 2023-10-06T20:40:46 |
COLLABORATOR
| null |
fixed several notebooks:
- headers
- formats
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11388/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11388/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11388",
"html_url": "https://github.com/langchain-ai/langchain/pull/11388",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11388.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11388.patch",
"merged_at": "2023-10-06T20:40:46"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11387
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11387/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11387/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11387/events
|
https://github.com/langchain-ai/langchain/issues/11387
| 1,926,626,279 |
I_kwDOIPDwls5y1fvn
| 11,387 |
Sources are not returned in RetrievalQAWithSourcesChain
|
{
"login": "amandafbri",
"id": 42866976,
"node_id": "MDQ6VXNlcjQyODY2OTc2",
"avatar_url": "https://avatars.githubusercontent.com/u/42866976?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/amandafbri",
"html_url": "https://github.com/amandafbri",
"followers_url": "https://api.github.com/users/amandafbri/followers",
"following_url": "https://api.github.com/users/amandafbri/following{/other_user}",
"gists_url": "https://api.github.com/users/amandafbri/gists{/gist_id}",
"starred_url": "https://api.github.com/users/amandafbri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amandafbri/subscriptions",
"organizations_url": "https://api.github.com/users/amandafbri/orgs",
"repos_url": "https://api.github.com/users/amandafbri/repos",
"events_url": "https://api.github.com/users/amandafbri/events{/privacy}",
"received_events_url": "https://api.github.com/users/amandafbri/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": 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-10-04T16:54:58 | 2023-10-04T17:02:06 | null |
NONE
| null |
### System Info
I'm using Google Colab, authenticating with my own account.
Packages installation:
!pip install google-cloud-discoveryengine google-cloud-aiplatform langchain==0.0.236 -q
### 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
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Sample code:
import vertexai
from langchain.llms import VertexAI
from langchain.retrievers import GoogleCloudEnterpriseSearchRetriever
vertexai.init(project=PROJECT_ID, location=REGION)
llm = VertexAI(model_name=MODEL, temperature=0, top_p=0.2, max_output_tokens=1024)
retriever = GoogleCloudEnterpriseSearchRetriever(
project_id=PROJECT_ID, search_engine_id=DATA_STORE_ID
)
from langchain.chains import RetrievalQAWithSourcesChain
search_query = "How to create a new google calendar?"
retrieval_qa_with_sources = RetrievalQAWithSourcesChain.from_chain_type(
llm=llm, chain_type="stuff", retriever=retriever
)
results = retrieval_qa_with_sources({"question": search_query})
print(f"Answer: {results['answer']}")
print(f"Sources: {results['sources']}")
Return:
Answer: To create a new calendar, follow these steps:
1. On the computer, open Google Calendar.
2. On the left, next to "Other calendars," click Add other calendars->Create new calendar.
3. Add a name and description to the calendar.
4. Click on Create a Schedule.
5. To share the calendar, click on it in the left bar and select Share with specific people.
Sources:
### Expected behavior
Expected to have the sources as URI from Google Cloud Storage. It sometimes return, sometimes not. It is really random.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11387/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11387/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11386
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11386/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11386/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11386/events
|
https://github.com/langchain-ai/langchain/issues/11386
| 1,926,617,079 |
I_kwDOIPDwls5y1df3
| 11,386 |
Issue: similarity_score_threshold not working with pinecone as expected
|
{
"login": "mrkhalil6",
"id": 59417186,
"node_id": "MDQ6VXNlcjU5NDE3MTg2",
"avatar_url": "https://avatars.githubusercontent.com/u/59417186?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mrkhalil6",
"html_url": "https://github.com/mrkhalil6",
"followers_url": "https://api.github.com/users/mrkhalil6/followers",
"following_url": "https://api.github.com/users/mrkhalil6/following{/other_user}",
"gists_url": "https://api.github.com/users/mrkhalil6/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mrkhalil6/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrkhalil6/subscriptions",
"organizations_url": "https://api.github.com/users/mrkhalil6/orgs",
"repos_url": "https://api.github.com/users/mrkhalil6/repos",
"events_url": "https://api.github.com/users/mrkhalil6/events{/privacy}",
"received_events_url": "https://api.github.com/users/mrkhalil6/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-04T16:48:26 | 2023-10-05T14:32:34 | null |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
I am using Lang chain version 0.0.307 and I noticed an issue with the similarity_score_threshold. I just upgraded from 0.0.208 or 288 (I forgot).
This is the code I am using to retrieve the documents from pinecone:
```
docsearch = Pinecone.from_existing_index(index, embeddings, text_key="text")
retriever = docsearch.as_retriever(
search_type="similarity_score_threshold",
search_kwargs={
'score_threshold': 0.6
}
)
retriever_docs_result = retriever.get_relevant_documents(query)
```
it used to work fine but after upgrading the langchain version it stopped returning any docs. Upon investigating the code, I've noticed that inside the `_similarity_search_with_relevance_scores` method in `vectorstore.py` , `docs_and_scores` is returning the scores as expected but then this code tries to calculate the relevance score and inverts the values:
`return [(doc, relevance_score_fn(score)) for doc, score in docs_and_scores]`.
I am getting search score values as 0.7 to 0.85 but then the relevancy score inverts it and makes it (1-score) which is around 0.3 to 0.15. The problem is the score_threshold works the opposite way. So if I set score_threshold to 0.6 it wants scores bigger than 0.6 which is impossible because the relevancy score makes it invert (if the relevancy score is smaller it means it is more closer to what we queried).
I am using dot product and I have used the following code as well but it also didn't help:
`
docsearch = Pinecone(index, embeddings, text_key="text", distance_strategy=DistanceStrategy.MAX_INNER_PRODUCT)
retriever = docsearch.as_retriever(
search_type="similarity_score_threshold",
search_kwargs={
'score_threshold': 0.6
}
)
`
Can someone help or I am missing something here ?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11386/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11386/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11385
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11385/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11385/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11385/events
|
https://github.com/langchain-ai/langchain/pull/11385
| 1,926,579,942 |
PR_kwDOIPDwls5b65uq
| 11,385 |
Add optional input_types to prompt template
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-04T16:23:06 | 2023-10-04T17:54:55 | 2023-10-04T17:54:54 |
COLLABORATOR
| null |
- default MessagesPlaceholder one to list of messages
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11385/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11385/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11385",
"html_url": "https://github.com/langchain-ai/langchain/pull/11385",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11385.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11385.patch",
"merged_at": "2023-10-04T17:54:54"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11384
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11384/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11384/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11384/events
|
https://github.com/langchain-ai/langchain/issues/11384
| 1,926,558,948 |
I_kwDOIPDwls5y1PTk
| 11,384 |
Issue: TypeError: TextGenerationModel.predict() got an unexpected keyword argument 'stop_sequences'
|
{
"login": "rjimr",
"id": 139155776,
"node_id": "U_kgDOCEtZQA",
"avatar_url": "https://avatars.githubusercontent.com/u/139155776?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rjimr",
"html_url": "https://github.com/rjimr",
"followers_url": "https://api.github.com/users/rjimr/followers",
"following_url": "https://api.github.com/users/rjimr/following{/other_user}",
"gists_url": "https://api.github.com/users/rjimr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rjimr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rjimr/subscriptions",
"organizations_url": "https://api.github.com/users/rjimr/orgs",
"repos_url": "https://api.github.com/users/rjimr/repos",
"events_url": "https://api.github.com/users/rjimr/events{/privacy}",
"received_events_url": "https://api.github.com/users/rjimr/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-04T16:10:08 | 2023-10-18T00:25:51 | null |
NONE
| null |
### Issue you'd like to raise.
I got this error when I built an ChatBot with Langchain using VertexAI. I'm seeing this error and couldn't find any details so far.
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/base.py", line 292, in __call__
raise e
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/base.py", line 286, in __call__
self._call(inputs, run_manager=run_manager)
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/conversational_retrieval/base.py", line 141, in _call
answer = self.combine_docs_chain.run(
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/base.py", line 492, in run
return self(kwargs, callbacks=callbacks, tags=tags, metadata=metadata)[
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/base.py", line 292, in __call__
raise e
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/base.py", line 286, in __call__
self._call(inputs, run_manager=run_manager)
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/combine_documents/base.py", line 105, in _call
output, extra_return_dict = self.combine_docs(
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/combine_documents/stuff.py", line 171, in combine_docs
return self.llm_chain.predict(callbacks=callbacks, **inputs), {}
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/llm.py", line 257, in predict
return self(kwargs, callbacks=callbacks)[self.output_key]
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/base.py", line 292, in __call__
raise e
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/base.py", line 286, 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
response = self.generate([inputs], run_manager=run_manager)
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/llm.py", line 103, in generate
return self.llm.generate_prompt(
File "/opt/conda/lib/python3.10/site-packages/langchain/llms/base.py", line 504, in generate_prompt
return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/langchain/llms/base.py", line 668, in generate
new_results = self._generate_helper(
File "/opt/conda/lib/python3.10/site-packages/langchain/llms/base.py", line 541, in _generate_helper
raise e
File "/opt/conda/lib/python3.10/site-packages/langchain/llms/base.py", line 528, in _generate_helper
self._generate(
File "/opt/conda/lib/python3.10/site-packages/langchain/llms/vertexai.py", line 281, in _generate
res = completion_with_retry(
File "/opt/conda/lib/python3.10/site-packages/langchain/llms/vertexai.py", line 102, in completion_with_retry
return _completion_with_retry(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/tenacity/__init__.py", line 289, in wrapped_f
return self(f, *args, **kw)
File "/opt/conda/lib/python3.10/site-packages/tenacity/__init__.py", line 379, in __call__
do = self.iter(retry_state=retry_state)
File "/opt/conda/lib/python3.10/site-packages/tenacity/__init__.py", line 314, in iter
return fut.result()
File "/opt/conda/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/opt/conda/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/opt/conda/lib/python3.10/site-packages/tenacity/__init__.py", line 382, in __call__
result = fn(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/langchain/llms/vertexai.py", line 100, in _completion_with_retry
return llm.client.predict(*args, **kwargs)
TypeError: TextGenerationModel.predict() got an unexpected keyword argument 'stop_sequences'
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11384/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11384/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.