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/11596
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11596/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11596/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11596/events
|
https://github.com/langchain-ai/langchain/pull/11596
| 1,934,958,902 |
PR_kwDOIPDwls5cXM9k
| 11,596 |
add new field
|
{
"login": "zhanghexian",
"id": 96572405,
"node_id": "U_kgDOBcGT9Q",
"avatar_url": "https://avatars.githubusercontent.com/u/96572405?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zhanghexian",
"html_url": "https://github.com/zhanghexian",
"followers_url": "https://api.github.com/users/zhanghexian/followers",
"following_url": "https://api.github.com/users/zhanghexian/following{/other_user}",
"gists_url": "https://api.github.com/users/zhanghexian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zhanghexian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zhanghexian/subscriptions",
"organizations_url": "https://api.github.com/users/zhanghexian/orgs",
"repos_url": "https://api.github.com/users/zhanghexian/repos",
"events_url": "https://api.github.com/users/zhanghexian/events{/privacy}",
"received_events_url": "https://api.github.com/users/zhanghexian/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 5 | 2023-10-10T10:05:42 | 2023-11-01T07:18:22 | 2023-11-01T07:18:22 |
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.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11596/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11596/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11596",
"html_url": "https://github.com/langchain-ai/langchain/pull/11596",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11596.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11596.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11595
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11595/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11595/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11595/events
|
https://github.com/langchain-ai/langchain/issues/11595
| 1,934,953,718 |
I_kwDOIPDwls5zVQz2
| 11,595 |
Multithreading support for TextSplitter
|
{
"login": "gustavz",
"id": 29252883,
"node_id": "MDQ6VXNlcjI5MjUyODgz",
"avatar_url": "https://avatars.githubusercontent.com/u/29252883?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gustavz",
"html_url": "https://github.com/gustavz",
"followers_url": "https://api.github.com/users/gustavz/followers",
"following_url": "https://api.github.com/users/gustavz/following{/other_user}",
"gists_url": "https://api.github.com/users/gustavz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gustavz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gustavz/subscriptions",
"organizations_url": "https://api.github.com/users/gustavz/orgs",
"repos_url": "https://api.github.com/users/gustavz/repos",
"events_url": "https://api.github.com/users/gustavz/events{/privacy}",
"received_events_url": "https://api.github.com/users/gustavz/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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-10T10:02:42 | 2023-10-10T15:30:40 | null |
NONE
| null |
### Feature request
Add optional multithreading support for `TextSplitter`, e.g for the loop in `TextSplitter.create_documents`:
https://github.com/langchain-ai/langchain/blob/e2a9072b806b1a45b0e4c107b30dddd0f67a453f/libs/langchain/langchain/text_splitter.py#L138-L153
Question: Is there anything opposing this idea / preventing it from a technical perspective?
### Motivation
Text splitting can take up significant time and resources if a custom length function is used to measure chunk length (e.g. based on a huggingface tokenizer's encode method), especially for the `RecursiveCharacterTextSplitter`.
Therefore we want to introduce multithreading support on a document level.
### Your contribution
Feature Request: https://github.com/langchain-ai/langchain/issues/11595
PR: https://github.com/langchain-ai/langchain/pull/11598
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11595/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11595/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11594
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11594/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11594/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11594/events
|
https://github.com/langchain-ai/langchain/pull/11594
| 1,934,865,164 |
PR_kwDOIPDwls5cW4Kr
| 11,594 |
fix: Change the docs of JSONAgentOutputParser
|
{
"login": "zhaozhiming",
"id": 1436694,
"node_id": "MDQ6VXNlcjE0MzY2OTQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/1436694?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zhaozhiming",
"html_url": "https://github.com/zhaozhiming",
"followers_url": "https://api.github.com/users/zhaozhiming/followers",
"following_url": "https://api.github.com/users/zhaozhiming/following{/other_user}",
"gists_url": "https://api.github.com/users/zhaozhiming/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zhaozhiming/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zhaozhiming/subscriptions",
"organizations_url": "https://api.github.com/users/zhaozhiming/orgs",
"repos_url": "https://api.github.com/users/zhaozhiming/repos",
"events_url": "https://api.github.com/users/zhaozhiming/events{/privacy}",
"received_events_url": "https://api.github.com/users/zhaozhiming/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-10T09:18:47 | 2023-10-11T21:05:54 | 2023-10-11T21:05:53 |
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.
-->
I am merely making some minor adjustments to the function documentation. I hope to provide a small assistance to LangChain.
- **Description:** Change the docs of JSONAgentOutputParser. It will be `JSON` better,
- **Issue:** no,
- **Dependencies:** no,
- **Tag maintainer:** @hwchase17,
- **Twitter handle:** Not worth mentioning.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11594/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11594/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11594",
"html_url": "https://github.com/langchain-ai/langchain/pull/11594",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11594.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11594.patch",
"merged_at": "2023-10-11T21:05:53"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11593
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11593/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11593/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11593/events
|
https://github.com/langchain-ai/langchain/issues/11593
| 1,934,656,142 |
I_kwDOIPDwls5zUIKO
| 11,593 |
AzureOpenAI doesn't expose parameter to set custom HTTP headers.
|
{
"login": "maciej-skorupka",
"id": 9993219,
"node_id": "MDQ6VXNlcjk5OTMyMTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9993219?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maciej-skorupka",
"html_url": "https://github.com/maciej-skorupka",
"followers_url": "https://api.github.com/users/maciej-skorupka/followers",
"following_url": "https://api.github.com/users/maciej-skorupka/following{/other_user}",
"gists_url": "https://api.github.com/users/maciej-skorupka/gists{/gist_id}",
"starred_url": "https://api.github.com/users/maciej-skorupka/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maciej-skorupka/subscriptions",
"organizations_url": "https://api.github.com/users/maciej-skorupka/orgs",
"repos_url": "https://api.github.com/users/maciej-skorupka/repos",
"events_url": "https://api.github.com/users/maciej-skorupka/events{/privacy}",
"received_events_url": "https://api.github.com/users/maciej-skorupka/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 | 2 | 2023-10-10T07:56:04 | 2023-10-13T09:26:48 | null |
CONTRIBUTOR
| null |
### Feature request
Hey hi hello :)
Some organizations expose Azure OpenAI endpoints via some proxies that need additional HTTP headers. Currently AzureOpenAI class doesn't expose (at least I wasn't able to find one) a capability to set this. Similarly to what is possible in OpenAIEmbeddings ([https://api.python.langchain.com/en/latest/embeddings/langchain.embeddings.openai.OpenAIEmbeddings.html#langchain.embeddings.openai.OpenAIEmbeddings.headers](https://api.python.langchain.com/en/latest/embeddings/langchain.embeddings.openai.OpenAIEmbeddings.html#langchain.embeddings.openai.OpenAIEmbeddings.headers)). Something similar was already discussed ([https://github.com/langchain-ai/langchain/issues/2120](https://github.com/langchain-ai/langchain/issues/2120)) and embeddings have that already solved. It would be great to have that also for AzureOpenAI class.
### Motivation
I need this to get via proxy that needs additional HTTP headers.
### Your contribution
I don't think I can contribute to this.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11593/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11593/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11592
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11592/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11592/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11592/events
|
https://github.com/langchain-ai/langchain/issues/11592
| 1,934,574,489 |
I_kwDOIPDwls5zT0OZ
| 11,592 |
Return ids for the document returned from the Similarity Search.
|
{
"login": "meet1919",
"id": 62868163,
"node_id": "MDQ6VXNlcjYyODY4MTYz",
"avatar_url": "https://avatars.githubusercontent.com/u/62868163?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/meet1919",
"html_url": "https://github.com/meet1919",
"followers_url": "https://api.github.com/users/meet1919/followers",
"following_url": "https://api.github.com/users/meet1919/following{/other_user}",
"gists_url": "https://api.github.com/users/meet1919/gists{/gist_id}",
"starred_url": "https://api.github.com/users/meet1919/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meet1919/subscriptions",
"organizations_url": "https://api.github.com/users/meet1919/orgs",
"repos_url": "https://api.github.com/users/meet1919/repos",
"events_url": "https://api.github.com/users/meet1919/events{/privacy}",
"received_events_url": "https://api.github.com/users/meet1919/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 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 | 2 | 2023-10-10T07:14:45 | 2023-10-14T16:57:07 | null |
NONE
| null |
### Feature request
I want to get the ids of the document returned when performing `similarity_search()` or `similarity_search_with_score()`. The id should be present in the metadata = {"id": id}
### Motivation
Want to update the metadata of the documents that are returned in the similarity search. This update can only be done if the the documents returned has the id in its metadata. When adding the documents to the vectordb, I am not adding the ids, as they are automatically generated if not passed.
### Your contribution
No contributions but below is the changes that can be made:
```
def _results_to_docs_and_scores(results: Any) -> List[Tuple[Document, float]]:
return [
# TODO: Chroma can do batch querying,
# we shouldn't hard code to the 1st result
(Document(page_content=result[0], metadata=(result[1] | {'id': result[3]}) or {}), result[2])
for result in zip(
results["documents"][0],
results["metadatas"][0],
results["distances"][0],
results["ids"][0]
)
]
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11592/reactions",
"total_count": 13,
"+1": 11,
"-1": 0,
"laugh": 0,
"hooray": 1,
"confused": 0,
"heart": 1,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11592/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11591
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11591/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11591/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11591/events
|
https://github.com/langchain-ai/langchain/pull/11591
| 1,934,487,213 |
PR_kwDOIPDwls5cVjiC
| 11,591 |
Add openvino backend support
|
{
"login": "OpenVINO-dev-contest",
"id": 91237924,
"node_id": "MDQ6VXNlcjkxMjM3OTI0",
"avatar_url": "https://avatars.githubusercontent.com/u/91237924?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/OpenVINO-dev-contest",
"html_url": "https://github.com/OpenVINO-dev-contest",
"followers_url": "https://api.github.com/users/OpenVINO-dev-contest/followers",
"following_url": "https://api.github.com/users/OpenVINO-dev-contest/following{/other_user}",
"gists_url": "https://api.github.com/users/OpenVINO-dev-contest/gists{/gist_id}",
"starred_url": "https://api.github.com/users/OpenVINO-dev-contest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OpenVINO-dev-contest/subscriptions",
"organizations_url": "https://api.github.com/users/OpenVINO-dev-contest/orgs",
"repos_url": "https://api.github.com/users/OpenVINO-dev-contest/repos",
"events_url": "https://api.github.com/users/OpenVINO-dev-contest/events{/privacy}",
"received_events_url": "https://api.github.com/users/OpenVINO-dev-contest/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 | 4 | 2023-10-10T06:26:37 | 2023-11-13T02:00:37 | null |
NONE
| null |
- **Description:** add openvino backend support by HuggingFace Optimum Intel,
- **Dependencies:** “optimum[openvino]”,
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11591/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11591/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11591",
"html_url": "https://github.com/langchain-ai/langchain/pull/11591",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11591.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11591.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11590
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11590/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11590/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11590/events
|
https://github.com/langchain-ai/langchain/issues/11590
| 1,934,432,018 |
I_kwDOIPDwls5zTRcS
| 11,590 |
Getting error "Just a moment...Enable JavaScript and cookies to continue" when loading website using WebBaseLoader
|
{
"login": "NarenZen",
"id": 78342459,
"node_id": "MDQ6VXNlcjc4MzQyNDU5",
"avatar_url": "https://avatars.githubusercontent.com/u/78342459?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NarenZen",
"html_url": "https://github.com/NarenZen",
"followers_url": "https://api.github.com/users/NarenZen/followers",
"following_url": "https://api.github.com/users/NarenZen/following{/other_user}",
"gists_url": "https://api.github.com/users/NarenZen/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NarenZen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NarenZen/subscriptions",
"organizations_url": "https://api.github.com/users/NarenZen/orgs",
"repos_url": "https://api.github.com/users/NarenZen/repos",
"events_url": "https://api.github.com/users/NarenZen/events{/privacy}",
"received_events_url": "https://api.github.com/users/NarenZen/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-10T05:53:55 | 2023-11-20T07:43:52 | null |
NONE
| null |
### System Info
langchain==0.0.311
### 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
```
from langchain.document_loaders import WebBaseLoader
loader = WebBaseLoader("https://academyselfdefense.com/")
data = loader.load()
raw_text = data[0].page_content
print(raw_text)
```
### Expected behavior
load proper content in website instead of` Just a moment...Enable JavaScript and cookies to continue`
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11590/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11590/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11589
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11589/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11589/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11589/events
|
https://github.com/langchain-ai/langchain/issues/11589
| 1,934,334,394 |
I_kwDOIPDwls5zS5m6
| 11,589 |
Request for BedrockChat async functions(BedrockChat.agenerate).
|
{
"login": "hengjiUSTC",
"id": 25971665,
"node_id": "MDQ6VXNlcjI1OTcxNjY1",
"avatar_url": "https://avatars.githubusercontent.com/u/25971665?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hengjiUSTC",
"html_url": "https://github.com/hengjiUSTC",
"followers_url": "https://api.github.com/users/hengjiUSTC/followers",
"following_url": "https://api.github.com/users/hengjiUSTC/following{/other_user}",
"gists_url": "https://api.github.com/users/hengjiUSTC/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hengjiUSTC/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hengjiUSTC/subscriptions",
"organizations_url": "https://api.github.com/users/hengjiUSTC/orgs",
"repos_url": "https://api.github.com/users/hengjiUSTC/repos",
"events_url": "https://api.github.com/users/hengjiUSTC/events{/privacy}",
"received_events_url": "https://api.github.com/users/hengjiUSTC/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-10T04:36:10 | 2023-10-10T04:43:32 | null |
NONE
| null |
### Feature request
Is there any plan for supporting BedrockChat async calls?
### Motivation
I am using this api in a fastapi backend, while receiving data from bedrock I have to send data back to frontend. But for now the network is totally blocked, and streaming is no possible in this case.
### Your contribution
no
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11589/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/11589/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11588
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11588/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11588/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11588/events
|
https://github.com/langchain-ai/langchain/pull/11588
| 1,934,299,075 |
PR_kwDOIPDwls5cU5QJ
| 11,588 |
Update modal.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"
},
{
"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-10T04:13:10 | 2023-10-19T06:40:38 | 2023-10-19T06:40:38 |
CONTRIBUTOR
| null |
feat: Raise KeyError when 'prompt' key is missing in JSON response
This commit updates the error handling in the code to raise a KeyError when the 'prompt' key is not found in the JSON response. This change makes the code more explicit about the nature of the error, helping to improve clarity and debugging.
@baskaryan, @eyurtsev.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11588/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11588/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11588",
"html_url": "https://github.com/langchain-ai/langchain/pull/11588",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11588.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11588.patch",
"merged_at": "2023-10-19T06:40:38"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11587
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11587/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11587/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11587/events
|
https://github.com/langchain-ai/langchain/issues/11587
| 1,934,209,959 |
I_kwDOIPDwls5zSbOn
| 11,587 |
similarity_search_with_relevance_scores is not working properly with Pinecone
|
{
"login": "Vickywwww",
"id": 100387482,
"node_id": "U_kgDOBfvKmg",
"avatar_url": "https://avatars.githubusercontent.com/u/100387482?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vickywwww",
"html_url": "https://github.com/Vickywwww",
"followers_url": "https://api.github.com/users/Vickywwww/followers",
"following_url": "https://api.github.com/users/Vickywwww/following{/other_user}",
"gists_url": "https://api.github.com/users/Vickywwww/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vickywwww/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vickywwww/subscriptions",
"organizations_url": "https://api.github.com/users/Vickywwww/orgs",
"repos_url": "https://api.github.com/users/Vickywwww/repos",
"events_url": "https://api.github.com/users/Vickywwww/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vickywwww/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"
}
] |
closed
| false | null |
[] | null | 3 | 2023-10-10T02:51:40 | 2023-10-17T03:19:33 | 2023-10-17T03:19:33 |
NONE
| null |
### System Info
Langchain Version: 0.0.311
Python: 3.10.9
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I loaded the my vector store from **pinecone** and try to find top-3 most similar documents with the relevance score
```
vectorstore = Pinecone(index, embed.embed_query, text_field)
answers = vectorstore.similarity_search_with_score(query, 3)
for item in answers:
print(item[1]) # print out score
```
By running above code, I can get relevance score for those 3 documents:
```
0.851780415
0.851505935
0.850369573
```
It looks as expected
But when I try to use `similarity_search_with_relevance_scores` to find out similar docs:
```
answers= vectorstore.similarity_search_with_relevance_scores(query, score_threshold=0.8)
```
From my understanding it should return me at least 3 docs since we do have docs similar higher than 0.85, but I got warning `No relevant docs were retrieved using the relevance score threshold 0.8` with an empty return
And I tried vectorstore retriever as well and got same warning and empty return:
```
retriever = vectorstore.as_retriever(
search_type="similarity_score_threshold",
search_kwargs={"score_threshold": 0.8}
)
answer = retriever.get_relevant_documents(query)
print(answer)
```
Did I use the score function incorrectly ? If not, is there any other ways to query with score_threshold?
Thanks
### Expected behavior
When using
```
answers= vectorstore.similarity_search_with_relevance_scores(query, score_threshold=0.8)
```
or
```
retriever = vectorstore.as_retriever(
search_type="similarity_score_threshold",
search_kwargs={"score_threshold": 0.8}
)
answer = retriever.get_relevant_documents(query)
print(answer)
```
It should return me few of doc that have >= 0.8 similarity.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11587/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11587/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11586
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11586/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11586/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11586/events
|
https://github.com/langchain-ai/langchain/pull/11586
| 1,934,170,364 |
PR_kwDOIPDwls5cUcmB
| 11,586 |
Update README.md
|
{
"login": "hassan-gen-anime",
"id": 147460495,
"node_id": "U_kgDOCMoRjw",
"avatar_url": "https://avatars.githubusercontent.com/u/147460495?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hassan-gen-anime",
"html_url": "https://github.com/hassan-gen-anime",
"followers_url": "https://api.github.com/users/hassan-gen-anime/followers",
"following_url": "https://api.github.com/users/hassan-gen-anime/following{/other_user}",
"gists_url": "https://api.github.com/users/hassan-gen-anime/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hassan-gen-anime/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hassan-gen-anime/subscriptions",
"organizations_url": "https://api.github.com/users/hassan-gen-anime/orgs",
"repos_url": "https://api.github.com/users/hassan-gen-anime/repos",
"events_url": "https://api.github.com/users/hassan-gen-anime/events{/privacy}",
"received_events_url": "https://api.github.com/users/hassan-gen-anime/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-10T02:20:44 | 2023-10-10T02:21:56 | 2023-10-10T02:21:56 |
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/11586/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11586/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11586",
"html_url": "https://github.com/langchain-ai/langchain/pull/11586",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11586.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11586.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11585
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11585/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11585/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11585/events
|
https://github.com/langchain-ai/langchain/pull/11585
| 1,934,161,474 |
PR_kwDOIPDwls5cUamS
| 11,585 |
Add dedicated `type` attribute to be used solely for serialization purposes
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 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-10T02:13:02 | 2023-10-11T19:06:43 | 2023-10-11T19:06:42 |
COLLABORATOR
| null |
Adds standard `type` field for all messages that will be serialized/validated by pydantic.
* The presence of `type` makes it easier for developers consuming schemas to write client code to serialize/deserialize.
* In LangServe `type` will be used for both validation and will appear in the generated openapi specs
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11585/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11585/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11585",
"html_url": "https://github.com/langchain-ai/langchain/pull/11585",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11585.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11585.patch",
"merged_at": "2023-10-11T19:06:42"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11584
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11584/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11584/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11584/events
|
https://github.com/langchain-ai/langchain/issues/11584
| 1,934,118,870 |
I_kwDOIPDwls5zSE_W
| 11,584 |
Discord Integration Toolkit
|
{
"login": "SananR",
"id": 14956384,
"node_id": "MDQ6VXNlcjE0OTU2Mzg0",
"avatar_url": "https://avatars.githubusercontent.com/u/14956384?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SananR",
"html_url": "https://github.com/SananR",
"followers_url": "https://api.github.com/users/SananR/followers",
"following_url": "https://api.github.com/users/SananR/following{/other_user}",
"gists_url": "https://api.github.com/users/SananR/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SananR/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SananR/subscriptions",
"organizations_url": "https://api.github.com/users/SananR/orgs",
"repos_url": "https://api.github.com/users/SananR/repos",
"events_url": "https://api.github.com/users/SananR/events{/privacy}",
"received_events_url": "https://api.github.com/users/SananR/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-10T01:39:47 | 2023-12-01T05:29:28 | 2023-11-28T07:13:41 |
NONE
| null |
### Feature request
Introduce a comprehensive Discord Integration Toolkit to Langchain. This would allow a more seamless and direct interaction with the Discord API through an Agent interface. It should encompass capabilities like message dispatch, channel navigation, user role management, and channel administration.
### Motivation
At present, Langchain offers a limited set of functionalities for interfacing with the Discord API. Specifically, the available method is the DiscordChatLoader, necessitating manual data downloading and uploading in a CSV format. This approach not only lacks versatility but is cumbersome. Furthermore, there's an absence of functions that would empower an LLM Agent to undertake tasks like messaging, channel searches, role assignments, and channel handling on Discord.
### Your contribution
We are initiating the development phase for this proposal and intend to submit a PR once the feature reaches completion.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11584/reactions",
"total_count": 3,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 1,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11584/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11583
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11583/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11583/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11583/events
|
https://github.com/langchain-ai/langchain/pull/11583
| 1,934,059,741 |
PR_kwDOIPDwls5cUEH7
| 11,583 |
Fix CohereRerank configuration
|
{
"login": "cccs-eric",
"id": 56447460,
"node_id": "MDQ6VXNlcjU2NDQ3NDYw",
"avatar_url": "https://avatars.githubusercontent.com/u/56447460?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cccs-eric",
"html_url": "https://github.com/cccs-eric",
"followers_url": "https://api.github.com/users/cccs-eric/followers",
"following_url": "https://api.github.com/users/cccs-eric/following{/other_user}",
"gists_url": "https://api.github.com/users/cccs-eric/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cccs-eric/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cccs-eric/subscriptions",
"organizations_url": "https://api.github.com/users/cccs-eric/orgs",
"repos_url": "https://api.github.com/users/cccs-eric/repos",
"events_url": "https://api.github.com/users/cccs-eric/events{/privacy}",
"received_events_url": "https://api.github.com/users/cccs-eric/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-10T00:34:13 | 2023-10-10T11:08:55 | 2023-10-10T06:26:35 |
CONTRIBUTOR
| null |
**Description:** CohereRerank is missing `cohere_api_key` as a field and since extras are forbidden, it is not possible to pass-in the key. The only way is to use an env variable named `COHERE_API_KEY`.
For example, if trying to create a compressor like this:
```python
cohere_api_key = "......Cohere api key......"
compressor = CohereRerank(cohere_api_key=cohere_api_key)
```
you will get the following error:
```
File "/langchain/.venv/lib/python3.10/site-packages/pydantic/v1/main.py", line 341, in __init__
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for CohereRerank
cohere_api_key
extra fields not permitted (type=value_error.extra)
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11583/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11583/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11583",
"html_url": "https://github.com/langchain-ai/langchain/pull/11583",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11583.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11583.patch",
"merged_at": "2023-10-10T06:26:35"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11582
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11582/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11582/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11582/events
|
https://github.com/langchain-ai/langchain/pull/11582
| 1,934,026,038 |
PR_kwDOIPDwls5cT8hk
| 11,582 |
Semi-structured and Multi-modal RAG cookbooks
|
{
"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": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false |
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-10-10T00:03:41 | 2023-10-13T15:45:56 | 2023-10-13T15:45:55 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11582/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/11582/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11582",
"html_url": "https://github.com/langchain-ai/langchain/pull/11582",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11582.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11582.patch",
"merged_at": "2023-10-13T15:45:55"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11581
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11581/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11581/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11581/events
|
https://github.com/langchain-ai/langchain/pull/11581
| 1,933,953,505 |
PR_kwDOIPDwls5cTsRa
| 11,581 |
Update docs to specify Indexing-API-compatible vectorstores
|
{
"login": "RyanZotti",
"id": 8901244,
"node_id": "MDQ6VXNlcjg5MDEyNDQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/8901244?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RyanZotti",
"html_url": "https://github.com/RyanZotti",
"followers_url": "https://api.github.com/users/RyanZotti/followers",
"following_url": "https://api.github.com/users/RyanZotti/following{/other_user}",
"gists_url": "https://api.github.com/users/RyanZotti/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RyanZotti/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RyanZotti/subscriptions",
"organizations_url": "https://api.github.com/users/RyanZotti/orgs",
"repos_url": "https://api.github.com/users/RyanZotti/repos",
"events_url": "https://api.github.com/users/RyanZotti/events{/privacy}",
"received_events_url": "https://api.github.com/users/RyanZotti/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
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 | 6 | 2023-10-09T22:48:07 | 2023-10-12T19:17:45 | 2023-10-12T19:17:44 |
CONTRIBUTOR
| null |
**Description:** Update Indexing API docs to specify vectorstores that are compatible with the Indexing API. I add a unit test to remind developers to update the documentation whenever they add or change a vectorstore in a way that affects compatibility. For the unit test I repurposed existing code from [here](https://github.com/langchain-ai/langchain/blob/v0.0.311/libs/langchain/langchain/indexes/_api.py#L245-L257).
This is my first PR to an open source project. This is a trivially simple PR whose main purpose is to make me more comfortable submitting Langchain PRs. If this PR goes through I plan to submit PRs with more substantive changes in the near future.
**Issue:** Resolves [10482](https://github.com/langchain-ai/langchain/discussions/10482).
**Dependencies:** No new dependencies.
**Twitter handle:** None.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11581/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11581/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11581",
"html_url": "https://github.com/langchain-ai/langchain/pull/11581",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11581.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11581.patch",
"merged_at": "2023-10-12T19:17:44"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11580
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11580/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11580/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11580/events
|
https://github.com/langchain-ai/langchain/issues/11580
| 1,933,898,140 |
I_kwDOIPDwls5zRPGc
| 11,580 |
AmazonAPIGatewayEmbeddings class for text embeddings
|
{
"login": "brunopistone",
"id": 10196125,
"node_id": "MDQ6VXNlcjEwMTk2MTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/10196125?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/brunopistone",
"html_url": "https://github.com/brunopistone",
"followers_url": "https://api.github.com/users/brunopistone/followers",
"following_url": "https://api.github.com/users/brunopistone/following{/other_user}",
"gists_url": "https://api.github.com/users/brunopistone/gists{/gist_id}",
"starred_url": "https://api.github.com/users/brunopistone/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brunopistone/subscriptions",
"organizations_url": "https://api.github.com/users/brunopistone/orgs",
"repos_url": "https://api.github.com/users/brunopistone/repos",
"events_url": "https://api.github.com/users/brunopistone/events{/privacy}",
"received_events_url": "https://api.github.com/users/brunopistone/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 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 | 0 | 2023-10-09T22:10:30 | 2023-10-09T22:12:35 | null |
NONE
| null |
### Feature request
As of today, it's not possible to use Amazon API Gateway for exposing embeddings model and use it as part of a chain (e.g. ConversationalRetrievalChain). As of today, AmazonAPIGateway can be used only as LLM for text generation, but you cannot use it as embeddings for text embeddings generation (e.g. as part of ConversationalRetrievalChain)
### Motivation
Amazon API Gateway can be adopted for both Text generation and Text Embeddings. Amazon Bedrock provides different type of models (LLMs and Embeddings models). In this way, developers can use Amazon API Gateway for Retrieval Augmented Generation solutions
### Your contribution
The class can be defined as following:
```
from langchain.embeddings.bedrock import Embeddings
import requests
from typing import List
class AmazonAPIGatewayEmbeddings(Embeddings):
def __init__(self, api_url, headers):
self.api_url = api_url
self.headers = headers
def embed_documents(self, texts: List[str]) -> List[List[float]]:
results = []
for text in texts:
response = requests.post(
self.api_url,
json={"inputs": text},
headers=self.headers
)
results.append(response.json()[0]["embedding"])
return results
def embed_query(self, text: str) -> List[float]:
response = requests.post(
self.api_url,
json={"inputs": text},
headers=self.headers
)
return response.json()[0]["embedding"]
---
embeddings = AmazonAPIGatewayEmbeddings(
api_url=f"{api_url}/invoke_model?model_id={model_id}",
headers={
... # Required headers for the API invocation
}
)
embeddings.embed_query("Hello, how are you?")
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11580/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11580/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11579
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11579/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11579/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11579/events
|
https://github.com/langchain-ai/langchain/pull/11579
| 1,933,862,709 |
PR_kwDOIPDwls5cTXiM
| 11,579 |
Arcee.ai LLM & Retriever integration
|
{
"login": "EricLiclair",
"id": 65639964,
"node_id": "MDQ6VXNlcjY1NjM5OTY0",
"avatar_url": "https://avatars.githubusercontent.com/u/65639964?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/EricLiclair",
"html_url": "https://github.com/EricLiclair",
"followers_url": "https://api.github.com/users/EricLiclair/followers",
"following_url": "https://api.github.com/users/EricLiclair/following{/other_user}",
"gists_url": "https://api.github.com/users/EricLiclair/gists{/gist_id}",
"starred_url": "https://api.github.com/users/EricLiclair/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EricLiclair/subscriptions",
"organizations_url": "https://api.github.com/users/EricLiclair/orgs",
"repos_url": "https://api.github.com/users/EricLiclair/repos",
"events_url": "https://api.github.com/users/EricLiclair/events{/privacy}",
"received_events_url": "https://api.github.com/users/EricLiclair/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-09T21:42:59 | 2023-10-10T17:20:46 | 2023-10-10T17:20:45 |
CONTRIBUTOR
| null |
- **Description:** This PR introduces a new LLM and Retriever API to https://arcee.ai for the python client
- **Issue:** implements the integrations as requested in #11578 ,
- **Dependencies:** no dependencies are required,
- **Tag maintainer:** @hwchase17
- **Twitter handle:** shwooobham
**✅ `make format`, `make lint` and `make test` runs locally.**
```shell
=========== 1245 passed, 277 skipped, 20 warnings in 16.26s ===========
./scripts/check_pydantic.sh .
./scripts/check_imports.sh
poetry run ruff .
[ "." = "" ] || poetry run black . --check
All done! ✨ 🍰 ✨
1818 files would be left unchanged.
[ "." = "" ] || poetry run mypy .
Success: no issues found in 1815 source files
[ "." = "" ] || poetry run black .
All done! ✨ 🍰 ✨
1818 files left unchanged.
[ "." = "" ] || poetry run ruff --select I --fix .
poetry run codespell --toml pyproject.toml
poetry run codespell --toml pyproject.toml -w
```
**Contributions**
1. Arcee (langchain/llms), ArceeRetriever (langchain/retrievers), ArceeWrapper (langchain/utilities)
2. docs for Arcee (llms/arcee.py) and ArceeRetriever(retrievers/arcee.py)
3.
cc: @jacobsolawetz @ben-epstein
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11579/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11579/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11579",
"html_url": "https://github.com/langchain-ai/langchain/pull/11579",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11579.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11579.patch",
"merged_at": "2023-10-10T17:20:45"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11578
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11578/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11578/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11578/events
|
https://github.com/langchain-ai/langchain/issues/11578
| 1,933,846,716 |
I_kwDOIPDwls5zRCi8
| 11,578 |
Support of Arcee.ai LLM and Retrievers
|
{
"login": "EricLiclair",
"id": 65639964,
"node_id": "MDQ6VXNlcjY1NjM5OTY0",
"avatar_url": "https://avatars.githubusercontent.com/u/65639964?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/EricLiclair",
"html_url": "https://github.com/EricLiclair",
"followers_url": "https://api.github.com/users/EricLiclair/followers",
"following_url": "https://api.github.com/users/EricLiclair/following{/other_user}",
"gists_url": "https://api.github.com/users/EricLiclair/gists{/gist_id}",
"starred_url": "https://api.github.com/users/EricLiclair/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EricLiclair/subscriptions",
"organizations_url": "https://api.github.com/users/EricLiclair/orgs",
"repos_url": "https://api.github.com/users/EricLiclair/repos",
"events_url": "https://api.github.com/users/EricLiclair/events{/privacy}",
"received_events_url": "https://api.github.com/users/EricLiclair/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-09T21:26:51 | 2023-10-10T19:43:10 | 2023-10-10T19:43:10 |
CONTRIBUTOR
| null |
### Feature request
I propose to add the Python client for Arcee.ai as an LLM and retriever.
`arcee.py` under [langchain/utilities](https://github.com/langchain-ai/langchain/tree/master/libs/langchain/langchain/utilities)
`arcee.py` under [langchain/llms](https://github.com/langchain-ai/langchain/tree/master/libs/langchain/langchain/llms)
`arcee.py` under [langchain/retrievers](https://github.com/langchain-ai/langchain/tree/master/libs/langchain/langchain/retrievers)
```python
class Arcee(LLM):
# client for Arcee's Domain Adapted Language Models (DALMs)
#
```
```python
class ArceeRetriever(BaseRetriever):
# retriever for Arcee's DALMs
#
```
See: Client docs
https://github.com/arcee-ai/arcee-python
### Motivation
Arcee.ai offers seamless Domain Adaptation with its Specialized Domain Adapted Language Model system.
I want to utilize these adapted language models on https://arcee.ai and build applications with LangChain.
### Your contribution
Discussions - https://github.com/arcee-ai/arcee-python/issues/15
PR - https://github.com/langchain-ai/langchain/pull/11579
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11578/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11578/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11577
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11577/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11577/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11577/events
|
https://github.com/langchain-ai/langchain/pull/11577
| 1,933,795,466 |
PR_kwDOIPDwls5cTIcg
| 11,577 |
Sl integration
|
{
"login": "DevonFulcher",
"id": 24593113,
"node_id": "MDQ6VXNlcjI0NTkzMTEz",
"avatar_url": "https://avatars.githubusercontent.com/u/24593113?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DevonFulcher",
"html_url": "https://github.com/DevonFulcher",
"followers_url": "https://api.github.com/users/DevonFulcher/followers",
"following_url": "https://api.github.com/users/DevonFulcher/following{/other_user}",
"gists_url": "https://api.github.com/users/DevonFulcher/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DevonFulcher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DevonFulcher/subscriptions",
"organizations_url": "https://api.github.com/users/DevonFulcher/orgs",
"repos_url": "https://api.github.com/users/DevonFulcher/repos",
"events_url": "https://api.github.com/users/DevonFulcher/events{/privacy}",
"received_events_url": "https://api.github.com/users/DevonFulcher/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-09T20:54:15 | 2023-10-09T20:54:27 | 2023-10-09T20:54:27 |
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/11577/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11577/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11577",
"html_url": "https://github.com/langchain-ai/langchain/pull/11577",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11577.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11577.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11576
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11576/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11576/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11576/events
|
https://github.com/langchain-ai/langchain/pull/11576
| 1,933,787,269 |
PR_kwDOIPDwls5cTGkF
| 11,576 |
Add option to specify metadata columns in CSV loader
|
{
"login": "benchello",
"id": 17305396,
"node_id": "MDQ6VXNlcjE3MzA1Mzk2",
"avatar_url": "https://avatars.githubusercontent.com/u/17305396?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/benchello",
"html_url": "https://github.com/benchello",
"followers_url": "https://api.github.com/users/benchello/followers",
"following_url": "https://api.github.com/users/benchello/following{/other_user}",
"gists_url": "https://api.github.com/users/benchello/gists{/gist_id}",
"starred_url": "https://api.github.com/users/benchello/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benchello/subscriptions",
"organizations_url": "https://api.github.com/users/benchello/orgs",
"repos_url": "https://api.github.com/users/benchello/repos",
"events_url": "https://api.github.com/users/benchello/events{/privacy}",
"received_events_url": "https://api.github.com/users/benchello/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 | 2 | 2023-10-09T20:49:30 | 2023-10-09T21:56:46 | 2023-10-09T21:56:45 |
CONTRIBUTOR
| null |
#### Description
This PR adds the option to specify additional metadata columns in the CSVLoader beyond just `Source`.
The current CSV loader includes all columns in `page_content` and if we want to have columns specified for `page_content` and `metadata` we have to do something like the below.:
```
csv = pd.read_csv(
"path_to_csv"
).to_dict("records")
documents = [
Document(
page_content=doc["content"],
metadata={
"last_modified_by": doc["last_modified_by"],
"point_of_contact": doc["point_of_contact"],
}
) for doc in csv
]
```
#### Usage
Example Usage:
```
csv_test = CSVLoader(
file_path="path_to_csv",
metadata_columns=["last_modified_by", "point_of_contact"]
)
```
Example CSV:
```
content, last_modified_by, point_of_contact
"hello world", "Person A", "Person B"
```
Example Result:
```
Document {
page_content: "hello world"
metadata: {
row: '0',
source: 'path_to_csv',
last_modified_by: 'Person A',
point_of_contact: 'Person B',
}
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11576/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11576/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11576",
"html_url": "https://github.com/langchain-ai/langchain/pull/11576",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11576.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11576.patch",
"merged_at": "2023-10-09T21:56:45"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11575
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11575/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11575/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11575/events
|
https://github.com/langchain-ai/langchain/pull/11575
| 1,933,662,725 |
PR_kwDOIPDwls5cSqsh
| 11,575 |
Add notebook for kay.ai press release data
|
{
"login": "plv",
"id": 4983896,
"node_id": "MDQ6VXNlcjQ5ODM4OTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/4983896?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/plv",
"html_url": "https://github.com/plv",
"followers_url": "https://api.github.com/users/plv/followers",
"following_url": "https://api.github.com/users/plv/following{/other_user}",
"gists_url": "https://api.github.com/users/plv/gists{/gist_id}",
"starred_url": "https://api.github.com/users/plv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/plv/subscriptions",
"organizations_url": "https://api.github.com/users/plv/orgs",
"repos_url": "https://api.github.com/users/plv/repos",
"events_url": "https://api.github.com/users/plv/events{/privacy}",
"received_events_url": "https://api.github.com/users/plv/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-09T19:25:32 | 2023-10-19T15:17:46 | 2023-10-19T15:06:56 |
CONTRIBUTOR
| null |
- **Description:** Adding a notebook for Press Release data from Kay.ai, as discussed offline
- **Tag maintainer:** @baskaryan @hwchase17
- **Twitter handle:** https://twitter.com/kaydotai https://twitter.com/vishalrohra_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11575/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11575/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11575",
"html_url": "https://github.com/langchain-ai/langchain/pull/11575",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11575.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11575.patch",
"merged_at": "2023-10-19T15:06:56"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11574
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11574/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11574/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11574/events
|
https://github.com/langchain-ai/langchain/issues/11574
| 1,933,650,569 |
I_kwDOIPDwls5zQSqJ
| 11,574 |
DOC: Wolfram Agent Link broken on README
|
{
"login": "jacobmarks",
"id": 12500356,
"node_id": "MDQ6VXNlcjEyNTAwMzU2",
"avatar_url": "https://avatars.githubusercontent.com/u/12500356?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jacobmarks",
"html_url": "https://github.com/jacobmarks",
"followers_url": "https://api.github.com/users/jacobmarks/followers",
"following_url": "https://api.github.com/users/jacobmarks/following{/other_user}",
"gists_url": "https://api.github.com/users/jacobmarks/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jacobmarks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jacobmarks/subscriptions",
"organizations_url": "https://api.github.com/users/jacobmarks/orgs",
"repos_url": "https://api.github.com/users/jacobmarks/repos",
"events_url": "https://api.github.com/users/jacobmarks/events{/privacy}",
"received_events_url": "https://api.github.com/users/jacobmarks/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
open
| false | null |
[] | null | 0 | 2023-10-09T19:15:40 | 2023-10-09T19:17:47 | null |
NONE
| null |
### Issue with current documentation:
End-to-end Example: [GPT+WolframAlpha](https://huggingface.co/spaces/JavaFXpert/Chat-GPT-LangChain)
This link leads to a 404. A quick google search does not find a working page.
### Idea or request for content:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11574/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11574/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11573
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11573/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11573/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11573/events
|
https://github.com/langchain-ai/langchain/pull/11573
| 1,933,642,303 |
PR_kwDOIPDwls5cSmNH
| 11,573 |
LangChain cli fix a few bugs
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-09T19:09:09 | 2023-10-09T20:30:18 | 2023-10-09T20:30:17 |
COLLABORATOR
| null |
Code was assuming that `git` and `poetry` exist. In addition, it was not ignoring pycache files that get generated during run time
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11573/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11573/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11573",
"html_url": "https://github.com/langchain-ai/langchain/pull/11573",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11573.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11573.patch",
"merged_at": "2023-10-09T20:30:17"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11571
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11571/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11571/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11571/events
|
https://github.com/langchain-ai/langchain/issues/11571
| 1,933,607,837 |
I_kwDOIPDwls5zQIOd
| 11,571 |
Support for case insensitive query search something like "$regex" instead of "$contains"
|
{
"login": "meet1919",
"id": 62868163,
"node_id": "MDQ6VXNlcjYyODY4MTYz",
"avatar_url": "https://avatars.githubusercontent.com/u/62868163?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/meet1919",
"html_url": "https://github.com/meet1919",
"followers_url": "https://api.github.com/users/meet1919/followers",
"following_url": "https://api.github.com/users/meet1919/following{/other_user}",
"gists_url": "https://api.github.com/users/meet1919/gists{/gist_id}",
"starred_url": "https://api.github.com/users/meet1919/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meet1919/subscriptions",
"organizations_url": "https://api.github.com/users/meet1919/orgs",
"repos_url": "https://api.github.com/users/meet1919/repos",
"events_url": "https://api.github.com/users/meet1919/events{/privacy}",
"received_events_url": "https://api.github.com/users/meet1919/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
closed
| false | null |
[] | null | 15 | 2023-10-09T18:43:18 | 2023-10-10T20:31:04 | 2023-10-10T20:31:04 |
NONE
| null |
### Issue you'd like to raise.
To get documents from collections (vector db) there is a method:
```python
class Collection(BaseModel):
name: str
id: UUID
metadata: Optional[CollectionMetadata] = None
_client: "API" = PrivateAttr()
_embedding_function: Optional[EmbeddingFunction] = PrivateAttr()
def __init__(
self,
client: "API",
name: str,
id: UUID,
embedding_function: Optional[EmbeddingFunction] = ef.DefaultEmbeddingFunction(),
metadata: Optional[CollectionMetadata] = None,
):
self._client = client
self._embedding_function = embedding_function
super().__init__(name=name, metadata=metadata, id=id)
'''
'''
def get(
self,
ids: Optional[OneOrMany[ID]] = None,
where: Optional[Where] = None,
limit: Optional[int] = None,
offset: Optional[int] = None,
where_document: Optional[WhereDocument] = None,
include: Include = ["metadatas", "documents"],
) -> GetResult:
"""Get embeddings and their associate data from the data store. If no ids or where filter is provided returns
all embeddings up to limit starting at offset.
Args:
ids: The ids of the embeddings to get. Optional.
where: A Where type dict used to filter results by. E.g. `{"$and": ["color" : "red", "price": {"$gte": 4.20}]}`. Optional.
limit: The number of documents to return. Optional.
offset: The offset to start returning results from. Useful for paging results with limit. Optional.
where_document: A WhereDocument type dict used to filter by the documents. E.g. `{$contains: {"text": "hello"}}`. Optional.
include: A list of what to include in the results. Can contain `"embeddings"`, `"metadatas"`, `"documents"`. Ids are always included. Defaults to `["metadatas", "documents"]`. Optional.
Returns:
GetResult: A GetResult object containing the results.
"""
where = validate_where(where) if where else None
where_document = (
validate_where_document(where_document) if where_document else None
)
ids = validate_ids(maybe_cast_one_to_many(ids)) if ids else None
include = validate_include(include, allow_distances=False)
return self._client._get(
self.id,
ids,
where,
None,
limit,
offset,
where_document=where_document,
include=include,
)
```
To query documents by searching for a particular term in the document `where_document = {"$contains": "langchain"}` can be passed to the `get()` method. This value for the key/operator `$contains` is case sensitive. How to search for keywords irrespective of case?
### Suggestion:
I want to extract entities from a sentence and pass it get documents from the chromadb that contains that words. But this entities need to be case sensitive. If the LLM outputs a different case like for example, the document contains the keyword: "Langchain", but asking llm to extract the entity from the sentence it isnt always sure that it will generate "Langchain", it can output: "langchain". This can be handled if the first letter of the entities generated is capitalized. But this may not work for keywords like OpenCV.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11571/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/11571/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11570
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11570/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11570/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11570/events
|
https://github.com/langchain-ai/langchain/pull/11570
| 1,933,597,293 |
PR_kwDOIPDwls5cScRl
| 11,570 |
Add Azure Redis example
|
{
"login": "MSFTeegarden",
"id": 72232746,
"node_id": "MDQ6VXNlcjcyMjMyNzQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/72232746?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MSFTeegarden",
"html_url": "https://github.com/MSFTeegarden",
"followers_url": "https://api.github.com/users/MSFTeegarden/followers",
"following_url": "https://api.github.com/users/MSFTeegarden/following{/other_user}",
"gists_url": "https://api.github.com/users/MSFTeegarden/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MSFTeegarden/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MSFTeegarden/subscriptions",
"organizations_url": "https://api.github.com/users/MSFTeegarden/orgs",
"repos_url": "https://api.github.com/users/MSFTeegarden/repos",
"events_url": "https://api.github.com/users/MSFTeegarden/events{/privacy}",
"received_events_url": "https://api.github.com/users/MSFTeegarden/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": 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 | 1 | 2023-10-09T18:34:36 | 2023-10-09T22:49:09 | 2023-10-09T20:27:03 |
CONTRIBUTOR
| null |
**Description**
This PR adds an additional Example to the Redis integration documentation. [The example](https://learn.microsoft.com/azure/azure-cache-for-redis/cache-tutorial-vector-similarity) is a step-by-step walkthrough of using Azure Cache for Redis and Azure OpenAI for vector similarity search, using LangChain extensively throughout.
**Issue**
Nothing specific, just adding an additional example.
**Dependencies**
None.
**Tag Maintainer**
Tagging @hwchase17 :)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11570/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11570/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11570",
"html_url": "https://github.com/langchain-ai/langchain/pull/11570",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11570.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11570.patch",
"merged_at": "2023-10-09T20:27:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11569
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11569/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11569/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11569/events
|
https://github.com/langchain-ai/langchain/pull/11569
| 1,933,585,496 |
PR_kwDOIPDwls5cSZnT
| 11,569 |
Modify Anyscale integration to work with Anyscale Endpoint
|
{
"login": "kylehh",
"id": 24217337,
"node_id": "MDQ6VXNlcjI0MjE3MzM3",
"avatar_url": "https://avatars.githubusercontent.com/u/24217337?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kylehh",
"html_url": "https://github.com/kylehh",
"followers_url": "https://api.github.com/users/kylehh/followers",
"following_url": "https://api.github.com/users/kylehh/following{/other_user}",
"gists_url": "https://api.github.com/users/kylehh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kylehh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kylehh/subscriptions",
"organizations_url": "https://api.github.com/users/kylehh/orgs",
"repos_url": "https://api.github.com/users/kylehh/repos",
"events_url": "https://api.github.com/users/kylehh/events{/privacy}",
"received_events_url": "https://api.github.com/users/kylehh/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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-09T18:27:43 | 2023-10-12T20:24:20 | 2023-10-12T15:41:26 |
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:** Modify Anyscale integration to work with [Anyscale Endpoint](https://docs.endpoints.anyscale.com/)
and it supports invoke, async invoke, stream and async invoke features
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11569/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11569/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11569",
"html_url": "https://github.com/langchain-ai/langchain/pull/11569",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11569.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11569.patch",
"merged_at": "2023-10-12T15:41:25"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11568
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11568/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11568/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11568/events
|
https://github.com/langchain-ai/langchain/pull/11568
| 1,933,565,966 |
PR_kwDOIPDwls5cSVSU
| 11,568 |
Add repl library
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-09T18:13:44 | 2023-10-11T21:31:56 | null |
COLLABORATOR
| null |
- [ ] deprecation notice in main lib (how do we do those?)
- [ ] add CI jobs
<!-- 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/11568/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11568/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11568",
"html_url": "https://github.com/langchain-ai/langchain/pull/11568",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11568.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11568.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11567
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11567/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11567/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11567/events
|
https://github.com/langchain-ai/langchain/pull/11567
| 1,933,562,164 |
PR_kwDOIPDwls5cSUat
| 11,567 |
feat: add momento vector index as a vector store provider
|
{
"login": "malandis",
"id": 3690240,
"node_id": "MDQ6VXNlcjM2OTAyNDA=",
"avatar_url": "https://avatars.githubusercontent.com/u/3690240?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/malandis",
"html_url": "https://github.com/malandis",
"followers_url": "https://api.github.com/users/malandis/followers",
"following_url": "https://api.github.com/users/malandis/following{/other_user}",
"gists_url": "https://api.github.com/users/malandis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/malandis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/malandis/subscriptions",
"organizations_url": "https://api.github.com/users/malandis/orgs",
"repos_url": "https://api.github.com/users/malandis/repos",
"events_url": "https://api.github.com/users/malandis/events{/privacy}",
"received_events_url": "https://api.github.com/users/malandis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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 | 4 | 2023-10-09T18:11:58 | 2023-10-12T17:06:19 | 2023-10-09T21:03:00 |
CONTRIBUTOR
| null |
**Description**:
- Added Momento Vector Index (MVI) as a vector store provider. This includes an implementation with docstrings, integration tests, a notebook, and documentation on the docs pages.
- Updated the Momento dependency in pyproject.toml and the lock file to enable access to MVI.
- Refactored the Momento cache and chat history session store to prefer using "MOMENTO_API_KEY" over "MOMENTO_AUTH_TOKEN" for consistency with MVI. This change is backwards compatible with the previous "auth_token" variable usage. Updated the code and tests accordingly.
**Dependencies**:
- Updated Momento dependency in pyproject.toml.
**Testing**:
- Run the integration tests with a Momento API key. Get one at the [Momento Console](https://console.gomomento.com) for free. MVI is available in AWS us-west-2 with a superuser key.
- `MOMENTO_API_KEY=<your key> poetry run pytest tests/integration_tests/vectorstores/test_momento_vector_index.py`
**Tag maintainer:**
@eyurtsev
**Twitter handle**:
Please mention @momentohq for this addition to langchain. With the integration of Momento Vector Index, Momento caching, and session store, Momento provides serverless support for the core langchain data needs.
Also mention @mlonml for the integration.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11567/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11567/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11567",
"html_url": "https://github.com/langchain-ai/langchain/pull/11567",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11567.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11567.patch",
"merged_at": "2023-10-09T21:03:00"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11566
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11566/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11566/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11566/events
|
https://github.com/langchain-ai/langchain/pull/11566
| 1,933,551,313 |
PR_kwDOIPDwls5cSSB2
| 11,566 |
Accelerating Math Utils with SimSIMD
|
{
"login": "ashvardanian",
"id": 1983160,
"node_id": "MDQ6VXNlcjE5ODMxNjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/1983160?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ashvardanian",
"html_url": "https://github.com/ashvardanian",
"followers_url": "https://api.github.com/users/ashvardanian/followers",
"following_url": "https://api.github.com/users/ashvardanian/following{/other_user}",
"gists_url": "https://api.github.com/users/ashvardanian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ashvardanian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ashvardanian/subscriptions",
"organizations_url": "https://api.github.com/users/ashvardanian/orgs",
"repos_url": "https://api.github.com/users/ashvardanian/repos",
"events_url": "https://api.github.com/users/ashvardanian/events{/privacy}",
"received_events_url": "https://api.github.com/users/ashvardanian/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-09T18:03:56 | 2023-10-09T22:30:39 | 2023-10-09T21:56:55 |
CONTRIBUTOR
| null |
LangChain relies on NumPy to compute cosine distances, which becomes a bottleneck with the growing dimensionality and number of embeddings. To avoid this bottleneck, in our libraries at [Unum](https://github.com/unum-cloud), we have created a specialized package - [SimSIMD](https://github.com/ashvardanian/simsimd), that knows how to use newer hardware capabilities. Compared to SciPy and NumPy, it reaches 3x-200x performance for various data types. Since publication, several LangChain users have asked me if I can integrate it into LangChain to accelerate their workflows, so here I am 🤗
## Benchmarking
To conduct benchmarks locally, run this in your Jupyter:
```py
import numpy as np
import scipy as sp
import simsimd as simd
import timeit as tt
def cosine_similarity_np(X: np.ndarray, Y: np.ndarray) -> np.ndarray:
X_norm = np.linalg.norm(X, axis=1)
Y_norm = np.linalg.norm(Y, axis=1)
with np.errstate(divide="ignore", invalid="ignore"):
similarity = np.dot(X, Y.T) / np.outer(X_norm, Y_norm)
similarity[np.isnan(similarity) | np.isinf(similarity)] = 0.0
return similarity
def cosine_similarity_sp(X: np.ndarray, Y: np.ndarray) -> np.ndarray:
return 1 - sp.spatial.distance.cdist(X, Y, metric='cosine')
def cosine_similarity_simd(X: np.ndarray, Y: np.ndarray) -> np.ndarray:
return 1 - simd.cdist(X, Y, metric='cosine')
X = np.random.randn(1, 1536).astype(np.float32)
Y = np.random.randn(1, 1536).astype(np.float32)
repeat = 1000
print("NumPy: {:,.0f} ops/s, SciPy: {:,.0f} ops/s, SimSIMD: {:,.0f} ops/s".format(
repeat / tt.timeit(lambda: cosine_similarity_np(X, Y), number=repeat),
repeat / tt.timeit(lambda: cosine_similarity_sp(X, Y), number=repeat),
repeat / tt.timeit(lambda: cosine_similarity_simd(X, Y), number=repeat),
))
```
## Results
I ran this on an M2 Pro Macbook for various data types and different number of rows in `X` and reformatted the results as a table for readability:
| Data Type | NumPy | SciPy | SimSIMD |
| :--- | ---: | ---: | ---: |
| `f32, 1` | 59,114 ops/s | 80,330 ops/s | 475,351 ops/s |
| `f16, 1` | 32,880 ops/s | 82,420 ops/s | 650,177 ops/s |
| `i8, 1` | 47,916 ops/s | 115,084 ops/s | 866,958 ops/s |
| `f32, 10` | 40,135 ops/s | 24,305 ops/s | 185,373 ops/s |
| `f16, 10` | 7,041 ops/s | 17,596 ops/s | 192,058 ops/s |
| `f16, 10` | 21,989 ops/s | 25,064 ops/s | 619,131 ops/s |
| `f32, 100` | 3,536 ops/s | 3,094 ops/s | 24,206 ops/s |
| `f16, 100` | 900 ops/s | 2,014 ops/s | 23,364 ops/s |
| `i8, 100` | 5,510 ops/s | 3,214 ops/s | 143,922 ops/s |
It's important to note that SimSIMD will underperform if both matrices are huge.
That, however, seems to be an uncommon usage pattern for LangChain users.
You can find a much more detailed performance report for different hardware models here:
- [Apple M2 Pro](https://ashvardanian.com/posts/simsimd-faster-scipy/#appendix-1-performance-on-apple-m2-pro).
- [4th Gen Intel Xeon Platinum](https://ashvardanian.com/posts/simsimd-faster-scipy/#appendix-2-performance-on-4th-gen-intel-xeon-platinum-8480).
- [AWS Graviton 3](https://ashvardanian.com/posts/simsimd-faster-scipy/#appendix-3-performance-on-aws-graviton-3).
## Additional Notes
1. Previous version used `X = np.array(X)`, to repackage lists of lists. It's an anti-pattern, as it will use double-precision floating-point numbers, which are slow on both CPUs and GPUs. I have replaced it with `X = np.array(X, dtype=np.float32)`, but a more selective approach should be discussed.
2. In numerical computations, it's recommended to explicitly define tolerance levels, which were previously avoided in `np.allclose(expected, actual)` calls. For now, I've set absolute tolerance to distance computation errors as 0.01: `np.allclose(expected, actual, atol=1e-2)`.
---
- **Dependencies:** adds `simsimd` dependency
- **Tag maintainer:** @hwchase17
- **Twitter handle:** @ashvardanian
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11566/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/11566/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11566",
"html_url": "https://github.com/langchain-ai/langchain/pull/11566",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11566.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11566.patch",
"merged_at": "2023-10-09T21:56:55"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11565
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11565/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11565/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11565/events
|
https://github.com/langchain-ai/langchain/issues/11565
| 1,933,542,876 |
I_kwDOIPDwls5zP4Xc
| 11,565 |
DOC: Remove the Link Icon in the footer due to the docusaurus default settings
|
{
"login": "Shriansh2002",
"id": 41548480,
"node_id": "MDQ6VXNlcjQxNTQ4NDgw",
"avatar_url": "https://avatars.githubusercontent.com/u/41548480?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Shriansh2002",
"html_url": "https://github.com/Shriansh2002",
"followers_url": "https://api.github.com/users/Shriansh2002/followers",
"following_url": "https://api.github.com/users/Shriansh2002/following{/other_user}",
"gists_url": "https://api.github.com/users/Shriansh2002/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Shriansh2002/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Shriansh2002/subscriptions",
"organizations_url": "https://api.github.com/users/Shriansh2002/orgs",
"repos_url": "https://api.github.com/users/Shriansh2002/repos",
"events_url": "https://api.github.com/users/Shriansh2002/events{/privacy}",
"received_events_url": "https://api.github.com/users/Shriansh2002/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"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-09T17:57:51 | 2023-10-09T17:59:58 | null |
NONE
| null |
### Issue with current documentation:
The current Docusaurus default settings display a link icon in the footer of the website. This icon is a small hyperlink symbol that appears next to external links in the footer. While this may be a helpful feature for some websites, it may not align with the design or functional requirements of our documentation site.
### Idea or request for content:
The goal of this issue is to remove the link icon from the footer of our Docusaurus-powered website. This will result in a cleaner and more minimalistic footer design.
Expected Behavior:
The link icon should be removed from the footer, ensuring that external links are presented without the additional icon.
Attachments:
Current Footer:

|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11565/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11565/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11564
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11564/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11564/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11564/events
|
https://github.com/langchain-ai/langchain/pull/11564
| 1,933,531,850 |
PR_kwDOIPDwls5cSNve
| 11,564 |
Add callback function to RunnablePassthrough
|
{
"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-09T17:49:36 | 2023-10-12T14:10:17 | 2023-10-12T14:10: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/11564/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11564/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11564",
"html_url": "https://github.com/langchain-ai/langchain/pull/11564",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11564.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11564.patch",
"merged_at": "2023-10-12T14:10:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11563
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11563/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11563/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11563/events
|
https://github.com/langchain-ai/langchain/pull/11563
| 1,933,505,409 |
PR_kwDOIPDwls5cSH9q
| 11,563 |
[LLMonitor Callback Handler]: Add error handling
|
{
"login": "hughcrt",
"id": 24587702,
"node_id": "MDQ6VXNlcjI0NTg3NzAy",
"avatar_url": "https://avatars.githubusercontent.com/u/24587702?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hughcrt",
"html_url": "https://github.com/hughcrt",
"followers_url": "https://api.github.com/users/hughcrt/followers",
"following_url": "https://api.github.com/users/hughcrt/following{/other_user}",
"gists_url": "https://api.github.com/users/hughcrt/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hughcrt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hughcrt/subscriptions",
"organizations_url": "https://api.github.com/users/hughcrt/orgs",
"repos_url": "https://api.github.com/users/hughcrt/repos",
"events_url": "https://api.github.com/users/hughcrt/events{/privacy}",
"received_events_url": "https://api.github.com/users/hughcrt/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 | 2 | 2023-10-09T17:28:49 | 2023-10-09T20:26:36 | 2023-10-09T20:26:36 |
CONTRIBUTOR
| null |
Wraps every callback handler method in error handlers to avoid breaking users' programs when an error occurs inside the handler.
Thanks @valdo99 for the suggestion 🙂
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11563/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/11563/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11563",
"html_url": "https://github.com/langchain-ai/langchain/pull/11563",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11563.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11563.patch",
"merged_at": "2023-10-09T20:26:36"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11562
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11562/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11562/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11562/events
|
https://github.com/langchain-ai/langchain/pull/11562
| 1,933,456,103 |
PR_kwDOIPDwls5cR9Sa
| 11,562 |
redirect langsmith guides
|
{
"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-09T16:50:32 | 2023-10-09T17:13:13 | 2023-10-09T16:58:04 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11562/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11562/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11562",
"html_url": "https://github.com/langchain-ai/langchain/pull/11562",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11562.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11562.patch",
"merged_at": "2023-10-09T16:58:04"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11561
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11561/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11561/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11561/events
|
https://github.com/langchain-ai/langchain/pull/11561
| 1,933,451,980 |
PR_kwDOIPDwls5cR8Yi
| 11,561 |
Use correct tokenizer for Bedrock/Anthropic LLMs
|
{
"login": "mrtj",
"id": 3469711,
"node_id": "MDQ6VXNlcjM0Njk3MTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/3469711?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mrtj",
"html_url": "https://github.com/mrtj",
"followers_url": "https://api.github.com/users/mrtj/followers",
"following_url": "https://api.github.com/users/mrtj/following{/other_user}",
"gists_url": "https://api.github.com/users/mrtj/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mrtj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrtj/subscriptions",
"organizations_url": "https://api.github.com/users/mrtj/orgs",
"repos_url": "https://api.github.com/users/mrtj/repos",
"events_url": "https://api.github.com/users/mrtj/events{/privacy}",
"received_events_url": "https://api.github.com/users/mrtj/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 | 5 | 2023-10-09T16:47:30 | 2023-12-04T15:44:56 | 2023-10-12T15:41:52 |
CONTRIBUTOR
| null |
**Description**
This PR implements the usage of the correct tokenizer in Bedrock LLMs, if using anthropic models.
**Issue:** #11560
**Dependencies:** optional dependency on `anthropic` python library.
**Twitter handle:** jtolgyesi
<!-- 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/11561/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11561/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11561",
"html_url": "https://github.com/langchain-ai/langchain/pull/11561",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11561.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11561.patch",
"merged_at": "2023-10-12T15:41:52"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11560
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11560/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11560/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11560/events
|
https://github.com/langchain-ai/langchain/issues/11560
| 1,933,438,442 |
I_kwDOIPDwls5zPe3q
| 11,560 |
Incorrect token counting in Bedrock LLMs
|
{
"login": "mrtj",
"id": 3469711,
"node_id": "MDQ6VXNlcjM0Njk3MTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/3469711?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mrtj",
"html_url": "https://github.com/mrtj",
"followers_url": "https://api.github.com/users/mrtj/followers",
"following_url": "https://api.github.com/users/mrtj/following{/other_user}",
"gists_url": "https://api.github.com/users/mrtj/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mrtj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrtj/subscriptions",
"organizations_url": "https://api.github.com/users/mrtj/orgs",
"repos_url": "https://api.github.com/users/mrtj/repos",
"events_url": "https://api.github.com/users/mrtj/events{/privacy}",
"received_events_url": "https://api.github.com/users/mrtj/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-09T16:37:33 | 2023-10-09T16:45:35 | null |
CONTRIBUTOR
| null |
### System Info
LangChain v0.0.304
### Who can help?
@hwchase17 @ag
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Use a combine documents chain with Bedrock/anthropic.claude-v2 LLM:
```python
from langchain.chains.question_answering import load_qa_chain
from langchain.llms import Bedrock
llm = Bedrock(model_id="anthropic.claude-v2")
chain = load_qa_chain(llm, chain_type="map_reduce", verbose=verbose, **kwargs)
chain.run(...)
```
### Expected behavior
The chain runs correctly.
Instead, a series of warnings are raised about missing `transformers` library, about too long context passed to tokenizer, etc. etc., and at last the chain fails to run.
## Background
The default implementation of `get_token_ids` and `get_num_tokens` in `BaseLanguageModel` uses a GPT-2 based tokenizer. The `Bedrock` LLM implementation does not override these methods, so it tries to tokenize the text with the incorrect tokenizer. In the particular case when using `anthropic.claude-v2` model, this causes incorrect token counting, requires an otherwise unnecessary dynamic dependencies (the transformers library), and emits a series of warnings about too long input text passed for tokenizer.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11560/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11560/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11559
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11559/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11559/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11559/events
|
https://github.com/langchain-ai/langchain/pull/11559
| 1,933,367,926 |
PR_kwDOIPDwls5cRp9D
| 11,559 |
Reset deanonymizer mapping
|
{
"login": "maks-operlejn-ds",
"id": 142261444,
"node_id": "U_kgDOCHq8xA",
"avatar_url": "https://avatars.githubusercontent.com/u/142261444?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maks-operlejn-ds",
"html_url": "https://github.com/maks-operlejn-ds",
"followers_url": "https://api.github.com/users/maks-operlejn-ds/followers",
"following_url": "https://api.github.com/users/maks-operlejn-ds/following{/other_user}",
"gists_url": "https://api.github.com/users/maks-operlejn-ds/gists{/gist_id}",
"starred_url": "https://api.github.com/users/maks-operlejn-ds/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maks-operlejn-ds/subscriptions",
"organizations_url": "https://api.github.com/users/maks-operlejn-ds/orgs",
"repos_url": "https://api.github.com/users/maks-operlejn-ds/repos",
"events_url": "https://api.github.com/users/maks-operlejn-ds/events{/privacy}",
"received_events_url": "https://api.github.com/users/maks-operlejn-ds/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-09T15:49:56 | 2023-10-09T18:11:05 | 2023-10-09T18:11:05 |
CONTRIBUTOR
| null |
@hwchase17 @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11559/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11559/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11559",
"html_url": "https://github.com/langchain-ai/langchain/pull/11559",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11559.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11559.patch",
"merged_at": "2023-10-09T18:11:05"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11558
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11558/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11558/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11558/events
|
https://github.com/langchain-ai/langchain/pull/11558
| 1,933,351,738 |
PR_kwDOIPDwls5cRmZJ
| 11,558 |
Support all presidio entities
|
{
"login": "maks-operlejn-ds",
"id": 142261444,
"node_id": "U_kgDOCHq8xA",
"avatar_url": "https://avatars.githubusercontent.com/u/142261444?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maks-operlejn-ds",
"html_url": "https://github.com/maks-operlejn-ds",
"followers_url": "https://api.github.com/users/maks-operlejn-ds/followers",
"following_url": "https://api.github.com/users/maks-operlejn-ds/following{/other_user}",
"gists_url": "https://api.github.com/users/maks-operlejn-ds/gists{/gist_id}",
"starred_url": "https://api.github.com/users/maks-operlejn-ds/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maks-operlejn-ds/subscriptions",
"organizations_url": "https://api.github.com/users/maks-operlejn-ds/orgs",
"repos_url": "https://api.github.com/users/maks-operlejn-ds/repos",
"events_url": "https://api.github.com/users/maks-operlejn-ds/events{/privacy}",
"received_events_url": "https://api.github.com/users/maks-operlejn-ds/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-09T15:39:58 | 2023-10-09T18:10:46 | 2023-10-09T18:10:46 |
CONTRIBUTOR
| null |
https://microsoft.github.io/presidio/supported_entities/
@baskaryan @hwchase17
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11558/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11558/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11558",
"html_url": "https://github.com/langchain-ai/langchain/pull/11558",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11558.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11558.patch",
"merged_at": "2023-10-09T18:10:46"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11557
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11557/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11557/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11557/events
|
https://github.com/langchain-ai/langchain/pull/11557
| 1,933,348,738 |
PR_kwDOIPDwls5cRlvI
| 11,557 |
Better deanonymizer matching strategy
|
{
"login": "maks-operlejn-ds",
"id": 142261444,
"node_id": "U_kgDOCHq8xA",
"avatar_url": "https://avatars.githubusercontent.com/u/142261444?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maks-operlejn-ds",
"html_url": "https://github.com/maks-operlejn-ds",
"followers_url": "https://api.github.com/users/maks-operlejn-ds/followers",
"following_url": "https://api.github.com/users/maks-operlejn-ds/following{/other_user}",
"gists_url": "https://api.github.com/users/maks-operlejn-ds/gists{/gist_id}",
"starred_url": "https://api.github.com/users/maks-operlejn-ds/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maks-operlejn-ds/subscriptions",
"organizations_url": "https://api.github.com/users/maks-operlejn-ds/orgs",
"repos_url": "https://api.github.com/users/maks-operlejn-ds/repos",
"events_url": "https://api.github.com/users/maks-operlejn-ds/events{/privacy}",
"received_events_url": "https://api.github.com/users/maks-operlejn-ds/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-09T15:38:06 | 2023-10-09T18:10:29 | 2023-10-09T18:10:29 |
CONTRIBUTOR
| null |
@baskaryan, @hwchase17
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11557/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11557/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11557",
"html_url": "https://github.com/langchain-ai/langchain/pull/11557",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11557.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11557.patch",
"merged_at": "2023-10-09T18:10:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11556
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11556/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11556/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11556/events
|
https://github.com/langchain-ai/langchain/pull/11556
| 1,933,322,721 |
PR_kwDOIPDwls5cRgFP
| 11,556 |
Update Dockerfile.base
|
{
"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-09T15:22:27 | 2023-10-09T15:43:05 | 2023-10-09T15:43:04 |
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/11556/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11556/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11556",
"html_url": "https://github.com/langchain-ai/langchain/pull/11556",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11556.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11556.patch",
"merged_at": "2023-10-09T15:43:04"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11555
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11555/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11555/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11555/events
|
https://github.com/langchain-ai/langchain/pull/11555
| 1,933,304,073 |
PR_kwDOIPDwls5cRb-X
| 11,555 |
bump 311
|
{
"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-09T15:11:58 | 2023-10-09T15:17:08 | 2023-10-09T15:17:07 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11555/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11555/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11555",
"html_url": "https://github.com/langchain-ai/langchain/pull/11555",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11555.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11555.patch",
"merged_at": "2023-10-09T15:17:07"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11554
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11554/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11554/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11554/events
|
https://github.com/langchain-ai/langchain/issues/11554
| 1,933,283,622 |
I_kwDOIPDwls5zO5Em
| 11,554 |
On the class description page there is no list with links to class methodsDOC: <Please write a comprehensive title after the 'DOC: ' prefix>
|
{
"login": "ForwardForward",
"id": 20382599,
"node_id": "MDQ6VXNlcjIwMzgyNTk5",
"avatar_url": "https://avatars.githubusercontent.com/u/20382599?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ForwardForward",
"html_url": "https://github.com/ForwardForward",
"followers_url": "https://api.github.com/users/ForwardForward/followers",
"following_url": "https://api.github.com/users/ForwardForward/following{/other_user}",
"gists_url": "https://api.github.com/users/ForwardForward/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ForwardForward/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ForwardForward/subscriptions",
"organizations_url": "https://api.github.com/users/ForwardForward/orgs",
"repos_url": "https://api.github.com/users/ForwardForward/repos",
"events_url": "https://api.github.com/users/ForwardForward/events{/privacy}",
"received_events_url": "https://api.github.com/users/ForwardForward/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"
}
] |
open
| false | null |
[] | null | 0 | 2023-10-09T15:02:05 | 2023-10-09T15:04:13 | null |
NONE
| null |
### Issue with current documentation:
On the class description page there is no list with links to class methods
The class:
langchain.chains.retrieval_qa.base.RetrievalQA
https://api.python.langchain.com/en/latest/chains/langchain.chains.retrieval_qa.base.RetrievalQA.html#langchain.chains.retrieval_qa.base.RetrievalQA
List as on this page:
https://api.python.langchain.com/en/latest/callbacks/langchain.callbacks.streaming_stdout.StreamingStdOutCallbackHandler.html#langchain.callbacks.streaming_stdout.StreamingStdOutCallbackHandler
### Idea or request for content:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11554/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11554/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11553
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11553/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11553/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11553/events
|
https://github.com/langchain-ai/langchain/pull/11553
| 1,933,277,429 |
PR_kwDOIPDwls5cRWDM
| 11,553 |
feature: add metadata information into the embedding file before uplo…
|
{
"login": "joaquinmenendez",
"id": 43391630,
"node_id": "MDQ6VXNlcjQzMzkxNjMw",
"avatar_url": "https://avatars.githubusercontent.com/u/43391630?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/joaquinmenendez",
"html_url": "https://github.com/joaquinmenendez",
"followers_url": "https://api.github.com/users/joaquinmenendez/followers",
"following_url": "https://api.github.com/users/joaquinmenendez/following{/other_user}",
"gists_url": "https://api.github.com/users/joaquinmenendez/gists{/gist_id}",
"starred_url": "https://api.github.com/users/joaquinmenendez/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joaquinmenendez/subscriptions",
"organizations_url": "https://api.github.com/users/joaquinmenendez/orgs",
"repos_url": "https://api.github.com/users/joaquinmenendez/repos",
"events_url": "https://api.github.com/users/joaquinmenendez/events{/privacy}",
"received_events_url": "https://api.github.com/users/joaquinmenendez/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 | 3 | 2023-10-09T14:59:21 | 2023-10-11T23:05:14 | 2023-10-11T23:05:13 |
CONTRIBUTOR
| null |
Replace this entire comment with:
- **Description:** In this modified version of the function, if the metadatas parameter is not None, the function includes the corresponding metadata in the JSON object for each text. This allows the metadata to be stored alongside the text's embedding in the vector store.
-
- **Issue:** #10924
- **Dependencies:** None
- **Tag maintainer:** @hwchase17
@agola11
- **Twitter handle:** @MelliJoaco
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11553/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11553/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11553",
"html_url": "https://github.com/langchain-ai/langchain/pull/11553",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11553.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11553.patch",
"merged_at": "2023-10-11T23:05:13"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11552
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11552/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11552/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11552/events
|
https://github.com/langchain-ai/langchain/pull/11552
| 1,933,241,258 |
PR_kwDOIPDwls5cROIs
| 11,552 |
RunnablePassthrough: In code documentation
|
{
"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-09T14:40:07 | 2023-10-09T20:02:17 | 2023-10-09T20:02:16 |
COLLABORATOR
| null |
Add in code documentation for a runnable passthrough
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11552/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11552/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11552",
"html_url": "https://github.com/langchain-ai/langchain/pull/11552",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11552.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11552.patch",
"merged_at": "2023-10-09T20:02:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11551
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11551/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11551/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11551/events
|
https://github.com/langchain-ai/langchain/pull/11551
| 1,933,220,532 |
PR_kwDOIPDwls5cRJnv
| 11,551 |
RFC: Implement stream/transform in RunnableRetry
|
{
"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"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-09T14:29:44 | 2023-10-10T14:52:49 | null |
COLLABORATOR
| null |
Yield a "stream reset" marker before starting the next attempt
Open question: How to deal with this best in RunnableSequence/RunnableMap? The next steps in the sequence are probably not designed to handle the reset marker, should RunnableSequence retry all steps after "current" once it sees a retry marker?
<!-- 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/11551/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11551/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11551",
"html_url": "https://github.com/langchain-ai/langchain/pull/11551",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11551.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11551.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11550
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11550/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11550/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11550/events
|
https://github.com/langchain-ai/langchain/pull/11550
| 1,933,148,765 |
PR_kwDOIPDwls5cQ5i_
| 11,550 |
Module documentation for langchain runnables
|
{
"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-09T13:59:29 | 2023-10-09T20:02:31 | 2023-10-09T20:02:30 |
COLLABORATOR
| null |
Add in code documentation for langchain runnables module.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11550/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11550/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11550",
"html_url": "https://github.com/langchain-ai/langchain/pull/11550",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11550.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11550.patch",
"merged_at": "2023-10-09T20:02:30"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11549
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11549/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11549/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11549/events
|
https://github.com/langchain-ai/langchain/pull/11549
| 1,933,023,992 |
PR_kwDOIPDwls5cQdsa
| 11,549 |
doc: Fix documentation about n-gram overlap
|
{
"login": "dosuken123",
"id": 4432788,
"node_id": "MDQ6VXNlcjQ0MzI3ODg=",
"avatar_url": "https://avatars.githubusercontent.com/u/4432788?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dosuken123",
"html_url": "https://github.com/dosuken123",
"followers_url": "https://api.github.com/users/dosuken123/followers",
"following_url": "https://api.github.com/users/dosuken123/following{/other_user}",
"gists_url": "https://api.github.com/users/dosuken123/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dosuken123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dosuken123/subscriptions",
"organizations_url": "https://api.github.com/users/dosuken123/orgs",
"repos_url": "https://api.github.com/users/dosuken123/repos",
"events_url": "https://api.github.com/users/dosuken123/events{/privacy}",
"received_events_url": "https://api.github.com/users/dosuken123/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 | 3 | 2023-10-09T13:04:02 | 2023-10-11T23:27:00 | 2023-10-11T23:26:56 |
CONTRIBUTOR
| null |
This commit fixes the documentation about n-gram overlap that unrelated variables are declared.
Replace this entire comment with:
- **Description:** Fix the documentation in https://python.langchain.com/docs/modules/model_io/prompts/example_selectors/ngram_overlap. It's currently declaring unrelated variables, for example, `examples` local variable is declared twice and the first one is overwritten immediately.
- **Issue:** N/A
- **Dependencies:** N/A
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** @dosuken123
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/11549/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11549/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11549",
"html_url": "https://github.com/langchain-ai/langchain/pull/11549",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11549.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11549.patch",
"merged_at": "2023-10-11T23:26:56"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11548
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11548/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11548/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11548/events
|
https://github.com/langchain-ai/langchain/issues/11548
| 1,932,951,692 |
I_kwDOIPDwls5zNoCM
| 11,548 |
Issue: <Getting error while setting up a RetrievalQA Conversation with Faiss_cpu prefix>
|
{
"login": "gduchate",
"id": 17938525,
"node_id": "MDQ6VXNlcjE3OTM4NTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/17938525?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gduchate",
"html_url": "https://github.com/gduchate",
"followers_url": "https://api.github.com/users/gduchate/followers",
"following_url": "https://api.github.com/users/gduchate/following{/other_user}",
"gists_url": "https://api.github.com/users/gduchate/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gduchate/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gduchate/subscriptions",
"organizations_url": "https://api.github.com/users/gduchate/orgs",
"repos_url": "https://api.github.com/users/gduchate/repos",
"events_url": "https://api.github.com/users/gduchate/events{/privacy}",
"received_events_url": "https://api.github.com/users/gduchate/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 7 | 2023-10-09T12:24:24 | 2023-10-09T18:48:22 | null |
NONE
| null |
### Issue you'd like to raise.
I am getting this error while setting a RetrievalQA using FAISS, the code is as follows:
Using the following version on a MAC : python 3.10, Faiss_cpu 1.7.4, langchain 0.0.310
embeddings_model_name = os.environ.get('EMBEDDINGS_MODEL_NAME')
faiss_index = os.environ.get('FAISS_INDEX')
embeddings = HuggingFaceEmbeddings(model_name=embeddings_model_name)
self.db = FAISS.load_local(faiss_index, embeddings)
retriever = self.db.as_retriever(
search_type="mmr",
search_kwargs={'k': 5, 'fetch_k': 10}
)
prompt = [
("human", "Hello"),
("assistant", "Hi there!"),
]
qa = RetrievalQA.from_chain_type(
llm=self.llm,
chain_type="refine",
retriever=retriever,
return_source_documents=True,
chain_type_kwargs={"prompt": prompt}
)
res = qa({
"query": query,
"prompt": prompt,
"context": "You are helpful"
})
The error is as follows:
([ErrorWrapper(exc=ExtraError(), loc=('prompt',))], <class 'langchain.chains.combine_documents.refine.RefineDocumentsChain'>)
The console show the following:
rompt : [('human', 'Hello'), ('assistant', 'Hi there!')]
self.llm : LlamaCpp
Params: {'model_path': 'models/llama-2-7b-chat.Q8_0.gguf', 'suffix': None, 'max_tokens': 256, 'temperature': 0.8, 'top_p': 0.9, 'logprobs': None, 'echo': False, 'stop_sequences': [], 'repeat_penalty': 1.1, 'top_k': 40}
Failed while retrieve documents: ([ErrorWrapper(exc=ExtraError(), loc=('prompt',))], <class 'langchain.chains.combine_documents.refine.RefineDocumentsChain'>)
Query response None
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11548/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11548/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11547
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11547/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11547/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11547/events
|
https://github.com/langchain-ai/langchain/issues/11547
| 1,932,912,761 |
I_kwDOIPDwls5zNeh5
| 11,547 |
Support max_marginal_relevance_search for ElasticSearchStore
|
{
"login": "izzabudaka",
"id": 6625540,
"node_id": "MDQ6VXNlcjY2MjU1NDA=",
"avatar_url": "https://avatars.githubusercontent.com/u/6625540?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/izzabudaka",
"html_url": "https://github.com/izzabudaka",
"followers_url": "https://api.github.com/users/izzabudaka/followers",
"following_url": "https://api.github.com/users/izzabudaka/following{/other_user}",
"gists_url": "https://api.github.com/users/izzabudaka/gists{/gist_id}",
"starred_url": "https://api.github.com/users/izzabudaka/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/izzabudaka/subscriptions",
"organizations_url": "https://api.github.com/users/izzabudaka/orgs",
"repos_url": "https://api.github.com/users/izzabudaka/repos",
"events_url": "https://api.github.com/users/izzabudaka/events{/privacy}",
"received_events_url": "https://api.github.com/users/izzabudaka/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 | 2 | 2023-10-09T12:02:23 | 2023-10-10T23:00:10 | null |
NONE
| null |
### System Info
max_marginal_relevance_search is mentioned in the ElasticSearchStore python documentation, but when calling the referenced API with langchain 0.0.310 and Python 3.9 I receive a NotImplementedError.
https://api.python.langchain.com/en/latest/vectorstores/langchain.vectorstores.elasticsearch.ElasticsearchStore.html#langchain.vectorstores.elasticsearch.ElasticsearchStore.max_marginal_relevance_search
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
vector_store = ElasticsearchStore(
embedding=OpenAIEmbeddings(),
index_name="{INDEX_NAME}",
es_cloud_id="{CLOUD_ID}",
es_user="{USER}",
es_password="{PASSWORD}"
)
pages = vector_store.max_marginal_relevance_search("test query")
```
### Expected behavior
max_marginal_relevance_search functions as per the documentation.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11547/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11547/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11546
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11546/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11546/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11546/events
|
https://github.com/langchain-ai/langchain/issues/11546
| 1,932,899,628 |
I_kwDOIPDwls5zNbUs
| 11,546 |
Issue: Add Examples of implementing Tree of Thoughts using Langchain
|
{
"login": "rajveer43",
"id": 64583161,
"node_id": "MDQ6VXNlcjY0NTgzMTYx",
"avatar_url": "https://avatars.githubusercontent.com/u/64583161?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rajveer43",
"html_url": "https://github.com/rajveer43",
"followers_url": "https://api.github.com/users/rajveer43/followers",
"following_url": "https://api.github.com/users/rajveer43/following{/other_user}",
"gists_url": "https://api.github.com/users/rajveer43/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rajveer43/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rajveer43/subscriptions",
"organizations_url": "https://api.github.com/users/rajveer43/orgs",
"repos_url": "https://api.github.com/users/rajveer43/repos",
"events_url": "https://api.github.com/users/rajveer43/events{/privacy}",
"received_events_url": "https://api.github.com/users/rajveer43/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 0 | 2023-10-09T11:54:58 | 2023-10-09T11:57:07 | null |
NONE
| null |
### Issue you'd like to raise.
https://arxiv.org/abs/2305.10601
### Suggestion:
https://arxiv.org/abs/2305.10601
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11546/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11546/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11545
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11545/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11545/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11545/events
|
https://github.com/langchain-ai/langchain/issues/11545
| 1,932,738,201 |
I_kwDOIPDwls5zMz6Z
| 11,545 |
Issue: Inference Client in Lang chain
|
{
"login": "Nuna7",
"id": 75081940,
"node_id": "MDQ6VXNlcjc1MDgxOTQw",
"avatar_url": "https://avatars.githubusercontent.com/u/75081940?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Nuna7",
"html_url": "https://github.com/Nuna7",
"followers_url": "https://api.github.com/users/Nuna7/followers",
"following_url": "https://api.github.com/users/Nuna7/following{/other_user}",
"gists_url": "https://api.github.com/users/Nuna7/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Nuna7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Nuna7/subscriptions",
"organizations_url": "https://api.github.com/users/Nuna7/orgs",
"repos_url": "https://api.github.com/users/Nuna7/repos",
"events_url": "https://api.github.com/users/Nuna7/events{/privacy}",
"received_events_url": "https://api.github.com/users/Nuna7/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 | 4 | 2023-10-09T10:15:14 | 2023-11-06T14:30:18 | null |
NONE
| null |
### Issue you'd like to raise.
Hi, I am trying to use Hugging Face model for langchain. However, I got this error :
"FutureWarning: '__init__' (from 'huggingface_hub.inference_api') is deprecated and will be removed from version '0.19.0'. `InferenceApi` client is deprecated in favor of the more feature-complete `InferenceClient`. Check out this guide to learn how to convert your script to use it: https://huggingface.co/docs/huggingface_hub/guides/inference#legacy-inferenceapi-client."
This is my code :
`
os.environ["HUGGINGFACEHUB_API_TOKEN"] = huggingFace_api_key
llm_repo_id = "google/flan-t5-xxl"
def generate_pet_name(animal_type,pet_color):
llm = HuggingFaceHub(
repo_id=llm_repo_id, model_kwargs={"temperature": 0.5})
prompt_template = PromptTemplate(
input_variables = ['animal_type','animal_color'],
template = "I have an {animal_type} with {animal_color} in color. Suggest me five name which sound"
+ "appropriate with the color for my {animal_type}")
name_chain = LLMChain(llm=llm,prompt=prompt_template,output_key="pet_name")
response = name_chain({'animal_type':animal_type,'animal_color':pet_color})
return response
`
How do I get rid of this warning.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11545/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11545/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11543
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11543/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11543/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11543/events
|
https://github.com/langchain-ai/langchain/pull/11543
| 1,932,531,081 |
PR_kwDOIPDwls5cOykg
| 11,543 |
Llama doc: add 'language' to the response message
|
{
"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": 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-09T08:14:41 | 2023-10-12T00:06:04 | 2023-10-12T00:06:04 |
CONTRIBUTOR
| null |
<!--
- **Description:** add 'language' to the reponse message in the Llama doc,
- **Issue:** None,
- **Dependencies:** None,
- **Tag maintainer:** None,
- **Twitter handle:** None
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11543/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11543/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11543",
"html_url": "https://github.com/langchain-ai/langchain/pull/11543",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11543.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11543.patch",
"merged_at": "2023-10-12T00:06:04"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11541
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11541/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11541/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11541/events
|
https://github.com/langchain-ai/langchain/issues/11541
| 1,932,397,687 |
I_kwDOIPDwls5zLgx3
| 11,541 |
User-Agent needs to be set for RecursiveUrlLoader
|
{
"login": "jeerideka",
"id": 140800236,
"node_id": "U_kgDOCGRw7A",
"avatar_url": "https://avatars.githubusercontent.com/u/140800236?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeerideka",
"html_url": "https://github.com/jeerideka",
"followers_url": "https://api.github.com/users/jeerideka/followers",
"following_url": "https://api.github.com/users/jeerideka/following{/other_user}",
"gists_url": "https://api.github.com/users/jeerideka/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeerideka/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeerideka/subscriptions",
"organizations_url": "https://api.github.com/users/jeerideka/orgs",
"repos_url": "https://api.github.com/users/jeerideka/repos",
"events_url": "https://api.github.com/users/jeerideka/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeerideka/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-09T06:37:51 | 2023-10-09T06:40:09 | null |
NONE
| null |
### Feature request
Based on the discussion in : https://github.com/langchain-ai/langchain/issues/11540
The WebBaseLoader in LangChain has a default User-Agent set in the session headers, and this could be a good enhancement for the RecursiveUrlLoader as well.
Here's a potential solution:
class RecursiveUrlLoader(BaseLoader):
"""Load all child links from a URL page."""
def __init__(
self,
url: str,
max_depth: Optional[int] = 2,
use_async: Optional[bool] = None,
extractor: Optional[Callable[[str], str]] = None,
metadata_extractor: Optional[Callable[[str, str], str]] = None,
exclude_dirs: Optional[Sequence[str]] = (),
timeout: Optional[int] = 10,
prevent_outside: Optional[bool] = True,
link_regex: Union[str, re.Pattern, None] = None,
headers: Optional[dict] = None,
check_response_status: bool = False,
) -> None:
...
self.headers = headers if headers is not None else {"User-Agent": "Mozilla/5.0"}
...
### Motivation
The RecursiveUrlLoader need to have an implicit user-Agent defined with the session like in WebBaseLoader(https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/document_loaders/web_base.py) else some of the websites we are trying to scrape gives a forbidden error.
Troubleshooting the error took a lot of time and finally we realised that it was due to the lack of appropriate headers.
loader = RecursiveUrlLoader(url=web_page,max_depth=1,extractor=lambda x: Soup(x, "html.parser").text)
docs = loader.load()
docs[0]
Document(page_content='\n403 Forbidden\n\n403 Forbidden\nnginx\n\n\n', metadata={'source': '.....', 'title': '403 Forbidden', 'language': None})
from fake_useragent import UserAgent
header_template = {}
header_template["User-Agent"] = UserAgent().random
loader = RecursiveUrlLoader(url=web_page,max_depth=1,headers=header_template,extractor=lambda x: Soup(x, "html.parser").text)
docs = loader.load()
docs[0]
Document(page_content="Hello and Welcome to....)
### Your contribution
yes
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11541/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11541/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11540
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11540/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11540/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11540/events
|
https://github.com/langchain-ai/langchain/issues/11540
| 1,932,355,135 |
I_kwDOIPDwls5zLWY_
| 11,540 |
Recursive URL doesn't work on some websites until User-Agent is added
|
{
"login": "jeerideka",
"id": 140800236,
"node_id": "U_kgDOCGRw7A",
"avatar_url": "https://avatars.githubusercontent.com/u/140800236?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeerideka",
"html_url": "https://github.com/jeerideka",
"followers_url": "https://api.github.com/users/jeerideka/followers",
"following_url": "https://api.github.com/users/jeerideka/following{/other_user}",
"gists_url": "https://api.github.com/users/jeerideka/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeerideka/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeerideka/subscriptions",
"organizations_url": "https://api.github.com/users/jeerideka/orgs",
"repos_url": "https://api.github.com/users/jeerideka/repos",
"events_url": "https://api.github.com/users/jeerideka/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeerideka/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-09T05:57:59 | 2023-10-09T06:04:23 | null |
NONE
| null |
### System Info
Python: 3.10
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
>>> loader = RecursiveUrlLoader(url=web_page,max_depth=1,extractor=lambda x: Soup(x, "html.parser").text)
>>> docs = loader.load()
>>> docs[0]
Document(page_content='\n403 Forbidden\n\n403 Forbidden\nnginx\n\n\n', metadata={'source': '.....', 'title': '403 Forbidden', 'language': None})
>>> from fake_useragent import UserAgent
>>> header_template = {}
>>> header_template["User-Agent"] = UserAgent().random
>>> loader = RecursiveUrlLoader(url=web_page,max_depth=1,headers=header_template,extractor=lambda x: Soup(x, "html.parser").text)
>>> docs = loader.load()
>>> docs[0]
Document(page_content="Hello and Welcome to....)
### Expected behavior
The RecursiveUrlLoader need to have an implicit user-Agent defined with the session like in WebBaseLoader(https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/document_loaders/web_base.py) else some of the websites we are trying to scrape gives a forbidden error.
Troubleshooting the error took a lot of time and finally we realised that it was due to the lack of appropriate headers.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11540/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11540/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11539
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11539/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11539/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11539/events
|
https://github.com/langchain-ai/langchain/issues/11539
| 1,932,250,317 |
I_kwDOIPDwls5zK8zN
| 11,539 |
The ElasticsearchStore implementation is not correct.
|
{
"login": "via-red",
"id": 96981958,
"node_id": "U_kgDOBcfTxg",
"avatar_url": "https://avatars.githubusercontent.com/u/96981958?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/via-red",
"html_url": "https://github.com/via-red",
"followers_url": "https://api.github.com/users/via-red/followers",
"following_url": "https://api.github.com/users/via-red/following{/other_user}",
"gists_url": "https://api.github.com/users/via-red/gists{/gist_id}",
"starred_url": "https://api.github.com/users/via-red/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/via-red/subscriptions",
"organizations_url": "https://api.github.com/users/via-red/orgs",
"repos_url": "https://api.github.com/users/via-red/repos",
"events_url": "https://api.github.com/users/via-red/events{/privacy}",
"received_events_url": "https://api.github.com/users/via-red/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 | 8 | 2023-10-09T03:43:54 | 2024-01-12T19:28:34 | null |
NONE
| null |
### System Info
langchain==0.0.310
### Who can help?
@joemcelroy :It seems that the method _select_relevance_score_fn was forgotten to be implemented in vectorstores-elasticsearch.
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
elastic_vector_search = ElasticsearchStore(
index_name='langchain-demo',
es_connection=es,
embedding=embedding,
)
retriever = elastic_vector_search.as_retriever(
search_type="similarity_score_threshold",
search_kwargs={'score_threshold': 0.8})
error log:
line 268, in similarity_search_with_relevance_scores
docs_and_similarities = self._similarity_search_with_relevance_scores(
File "/usr/local/lib/python3.10/site-packages/langchain/schema/vectorstore.py", line 242, in _similarity_search_with_relevance_scores
relevance_score_fn = self._select_relevance_score_fn()
File "/usr/local/lib/python3.10/site-packages/langchain/schema/vectorstore.py", line 211, in _select_relevance_score_fn
raise NotImplementedError
### Expected behavior
I hope to implement the method and submit the changes as soon as possible. Thank you for your understanding.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11539/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11539/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11538
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11538/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11538/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11538/events
|
https://github.com/langchain-ai/langchain/issues/11538
| 1,932,202,481 |
I_kwDOIPDwls5zKxHx
| 11,538 |
Integrating Twitter search API as a tool
|
{
"login": "clwillhuang",
"id": 49571870,
"node_id": "MDQ6VXNlcjQ5NTcxODcw",
"avatar_url": "https://avatars.githubusercontent.com/u/49571870?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/clwillhuang",
"html_url": "https://github.com/clwillhuang",
"followers_url": "https://api.github.com/users/clwillhuang/followers",
"following_url": "https://api.github.com/users/clwillhuang/following{/other_user}",
"gists_url": "https://api.github.com/users/clwillhuang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/clwillhuang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/clwillhuang/subscriptions",
"organizations_url": "https://api.github.com/users/clwillhuang/orgs",
"repos_url": "https://api.github.com/users/clwillhuang/repos",
"events_url": "https://api.github.com/users/clwillhuang/events{/privacy}",
"received_events_url": "https://api.github.com/users/clwillhuang/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-09T02:28:26 | 2023-12-11T03:16:11 | 2023-12-11T03:16:11 |
CONTRIBUTOR
| null |
### Feature request
We are seeking to add a tool to Langchain for Twitter API (v1.1). Integrating the API as a tool will allow agents to search for tweets and timelines using a specific search query that filters by users, locations, hashtags, etc. to respond to prompts.
### Motivation
Although Langchain currently has TwitterTweetLoader, we have noticed a plethora of more parameters the Twitter API provides that are not integrated into Langchain. TwitterTweetLoader currently only allows us to specify a list of users to return tweets from and the maximum number of tweets. It would be beneficial if we had more options to specify [different operators in search queries](https://developer.twitter.com/en/docs/twitter-api/v1/rules-and-filtering/search-operators). A tool also allows an agent to actively use the API to respond to prompts, without the user having to manually create their own custom tool or load tweets manually.
### Your contribution
We have a small team of developers who will be working on this feature request, and we will submit a pull request later in 1-2 months which implements it. We will do our best to follow the guidelines for contributions, as stated in contributing.md.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11538/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11538/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11536
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11536/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11536/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11536/events
|
https://github.com/langchain-ai/langchain/pull/11536
| 1,932,080,612 |
PR_kwDOIPDwls5cNQ3x
| 11,536 |
fix comments in output format
|
{
"login": "shankinson",
"id": 1717658,
"node_id": "MDQ6VXNlcjE3MTc2NTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/1717658?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shankinson",
"html_url": "https://github.com/shankinson",
"followers_url": "https://api.github.com/users/shankinson/followers",
"following_url": "https://api.github.com/users/shankinson/following{/other_user}",
"gists_url": "https://api.github.com/users/shankinson/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shankinson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shankinson/subscriptions",
"organizations_url": "https://api.github.com/users/shankinson/orgs",
"repos_url": "https://api.github.com/users/shankinson/repos",
"events_url": "https://api.github.com/users/shankinson/events{/privacy}",
"received_events_url": "https://api.github.com/users/shankinson/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-08T21:54:34 | 2023-10-09T21:55:45 | 2023-10-09T21:55:45 |
CONTRIBUTOR
| null |
- **Description:** Fixes the comments in the ConvoOutputParser. Because the \\\\ is escaping a single \\, they render something like: `"action_input": string \ The input to the action` in the prompt. Changing this to \\\\\\\\ lets it escape two slashes so that it renders a proper comment: `"action_input": string \\ The input to the action`
- **Issue:** N/A
- **Dependencies:**
- **Tag maintainer:** @hwchase17
- **Twitter handle:**
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11536/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11536/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11536",
"html_url": "https://github.com/langchain-ai/langchain/pull/11536",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11536.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11536.patch",
"merged_at": "2023-10-09T21:55:45"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11535
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11535/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11535/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11535/events
|
https://github.com/langchain-ai/langchain/pull/11535
| 1,932,074,883 |
PR_kwDOIPDwls5cNPvq
| 11,535 |
Fix: Missing DuckDuckGo package version
|
{
"login": "ashvardanian",
"id": 1983160,
"node_id": "MDQ6VXNlcjE5ODMxNjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/1983160?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ashvardanian",
"html_url": "https://github.com/ashvardanian",
"followers_url": "https://api.github.com/users/ashvardanian/followers",
"following_url": "https://api.github.com/users/ashvardanian/following{/other_user}",
"gists_url": "https://api.github.com/users/ashvardanian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ashvardanian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ashvardanian/subscriptions",
"organizations_url": "https://api.github.com/users/ashvardanian/orgs",
"repos_url": "https://api.github.com/users/ashvardanian/repos",
"events_url": "https://api.github.com/users/ashvardanian/events{/privacy}",
"received_events_url": "https://api.github.com/users/ashvardanian/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-08T21:32:53 | 2023-10-09T17:55:47 | 2023-10-09T17:55:46 |
CONTRIBUTOR
| null |
[The `duckduckgo-search` v3.9.2 was removed from PyPi](https://pypi.org/project/duckduckgo-search/#history). That breaks the build.
- **Description:** refreshes the Poetry dependency to v3.9.3
- **Tag maintainer:** @baskaryan
- **Twitter handle:** @ashvardanian
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11535/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11535/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11535",
"html_url": "https://github.com/langchain-ai/langchain/pull/11535",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11535.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11535.patch",
"merged_at": "2023-10-09T17:55:46"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11533
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11533/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11533/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11533/events
|
https://github.com/langchain-ai/langchain/issues/11533
| 1,932,042,979 |
I_kwDOIPDwls5zKKLj
| 11,533 |
Add DGraqh integration with LangChain
|
{
"login": "PoromKamal",
"id": 62628923,
"node_id": "MDQ6VXNlcjYyNjI4OTIz",
"avatar_url": "https://avatars.githubusercontent.com/u/62628923?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/PoromKamal",
"html_url": "https://github.com/PoromKamal",
"followers_url": "https://api.github.com/users/PoromKamal/followers",
"following_url": "https://api.github.com/users/PoromKamal/following{/other_user}",
"gists_url": "https://api.github.com/users/PoromKamal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/PoromKamal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PoromKamal/subscriptions",
"organizations_url": "https://api.github.com/users/PoromKamal/orgs",
"repos_url": "https://api.github.com/users/PoromKamal/repos",
"events_url": "https://api.github.com/users/PoromKamal/events{/privacy}",
"received_events_url": "https://api.github.com/users/PoromKamal/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 | 1 | 2023-10-08T19:46:26 | 2023-10-08T19:48:57 | null |
NONE
| null |
### Feature request
Create a natural language interface with DGraph, enabling LangChain to connect more effectively with clients using DGraph, and the DGraph community overall.
### Motivation
LangChain already boasts a range of graph integrations with databases like Neo4j and AWS Neptune. Including DGraph in LangChain's roster of graph database integrations will significantly enhance LangChain's compatibility with a wide array of software engineering projects that rely on DGraph, strengthening LangChain's position as a versatile LLM solution's provider for the DGraph-powered ecosystem.
### Your contribution
We will be looking to submit a pull request by the end of November that will contain the required code additions along with the requirements as per CONTRIBUTING.MD (involving adding a demo notebook in docs/modules and adding unit and integration tests).
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11533/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11533/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11532
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11532/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11532/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11532/events
|
https://github.com/langchain-ai/langchain/issues/11532
| 1,932,028,190 |
I_kwDOIPDwls5zKGke
| 11,532 |
Add support for a Pandas DataFrame OutputParser
|
{
"login": "RohanDey02",
"id": 58871401,
"node_id": "MDQ6VXNlcjU4ODcxNDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/58871401?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RohanDey02",
"html_url": "https://github.com/RohanDey02",
"followers_url": "https://api.github.com/users/RohanDey02/followers",
"following_url": "https://api.github.com/users/RohanDey02/following{/other_user}",
"gists_url": "https://api.github.com/users/RohanDey02/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RohanDey02/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RohanDey02/subscriptions",
"organizations_url": "https://api.github.com/users/RohanDey02/orgs",
"repos_url": "https://api.github.com/users/RohanDey02/repos",
"events_url": "https://api.github.com/users/RohanDey02/events{/privacy}",
"received_events_url": "https://api.github.com/users/RohanDey02/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-08T19:22:47 | 2023-11-30T03:46:06 | 2023-11-30T03:46:06 |
CONTRIBUTOR
| null |
### Feature request
Integrating Pandas DataFrame as an output parser in LangChain AI would offer users a specific and robust tool for data analysis and manipulation. This addition would enable users to receive AI-generated data in a structured tabular format, simplifying tasks like data cleaning, transformation, and visualization while streamlining the process of extracting insights.
### Motivation
Pandas is undeniably one of the most popular and powerful libraries in Python for data manipulation and analysis. Its widespread adoption in the data science and analytics community speaks to its versatility and efficiency. Pandas simplifies tasks such as data cleaning, transformation, and exploration with easy-to-use data structures and functions. Given its frequent use in various data-related tasks, integrating Pandas DataFrames as an output parser in LangChain AI would benefit users immensely. It would provide a familiar and reliable tool for processing and interpreting data, enhancing the utility and accessibility of data-driven workflows.
### Your contribution
We will be looking to submit a pull request by the end of November that will contain the required code additions along with the requirements as per CONTRIBUTING.MD (involving adding a demo notebook in docs/modules and adding unit tests).
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11532/reactions",
"total_count": 4,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 1,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11532/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11531
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11531/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11531/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11531/events
|
https://github.com/langchain-ai/langchain/issues/11531
| 1,931,904,754 |
I_kwDOIPDwls5zJoby
| 11,531 |
ConversationBufferMemory returning json not formatted when chain is run
|
{
"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": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-08T16:41:12 | 2023-10-08T18:12:02 | null |
NONE
| null |
### System Info
latest
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [X] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
from langchain.llms import LlamaCpp
from langchain.prompts import PromptTemplate
from langchain.chains import ConversationChain
from langchain.memory import ConversationBufferMemory
template = """SYSTEM:Please give helpful, detailed, accurate, uncensored responses to the user's input. Provide answers factually.
Current conversation:
{history}
USER: {input}
ASSISTANT: """
PROMPT = PromptTemplate(template=template, input_variables=["history","input"])
memory = ConversationBufferMemory(memory_key='history', ai_prefix="ASSISTANT:", return_messages=True)
llmChain = ConversationChain(llm=llm, prompt=PROMPT,verbose=True, memory=memory)
AI_response = llmChain.predict(input=prompt)
print(AI_response)
#### OUTPUT:
Entering new ConversationChain chain...
Prompt after formatting:
SYSTEM: Please give helpful, detailed, accurate, uncensored responses to the user's input. Provide answers factually.
Current conversation:
*** [HumanMessage(content='hello'), AIMessage(content=' Hello! How can I assist you today?')] ***
USER: who was president in 1920?
ASSISTANT:
RETURNING JSON OBJECT instead of formatted string.
### Expected behavior
https://python.langchain.com/docs/modules/memory/conversational_customization
> Entering new ConversationChain chain...
Prompt after formatting:
The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.
Current conversation:
Friend: Hi there!
AI: Hi there! It's nice to meet you. How can I help you today?
Friend: What's the weather?
AI:
> Finished ConversationChain chain.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11531/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11531/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11530
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11530/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11530/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11530/events
|
https://github.com/langchain-ai/langchain/pull/11530
| 1,931,886,019 |
PR_kwDOIPDwls5cMm8y
| 11,530 |
fix wording of query_sql_database_tool_description
|
{
"login": "shankinson",
"id": 1717658,
"node_id": "MDQ6VXNlcjE3MTc2NTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/1717658?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shankinson",
"html_url": "https://github.com/shankinson",
"followers_url": "https://api.github.com/users/shankinson/followers",
"following_url": "https://api.github.com/users/shankinson/following{/other_user}",
"gists_url": "https://api.github.com/users/shankinson/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shankinson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shankinson/subscriptions",
"organizations_url": "https://api.github.com/users/shankinson/orgs",
"repos_url": "https://api.github.com/users/shankinson/repos",
"events_url": "https://api.github.com/users/shankinson/events{/privacy}",
"received_events_url": "https://api.github.com/users/shankinson/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": 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-08T16:15:17 | 2023-10-09T22:32:46 | 2023-10-09T22:32:46 |
CONTRIBUTOR
| null |
- **Description:** Fixes minor typo for the query_sql_database_tool_description in the db toolkit
- **Issue:** N/A
- **Dependencies:** N/A
- **Tag maintainer:** @nfcampos
- **Twitter handle:** N/A
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11530/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11530/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11530",
"html_url": "https://github.com/langchain-ai/langchain/pull/11530",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11530.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11530.patch",
"merged_at": "2023-10-09T22:32:46"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11529
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11529/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11529/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11529/events
|
https://github.com/langchain-ai/langchain/pull/11529
| 1,931,868,479 |
PR_kwDOIPDwls5cMjVf
| 11,529 |
Update to doc Pydantic example to Pydantic 2
|
{
"login": "olegsinavski",
"id": 2086260,
"node_id": "MDQ6VXNlcjIwODYyNjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/2086260?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/olegsinavski",
"html_url": "https://github.com/olegsinavski",
"followers_url": "https://api.github.com/users/olegsinavski/followers",
"following_url": "https://api.github.com/users/olegsinavski/following{/other_user}",
"gists_url": "https://api.github.com/users/olegsinavski/gists{/gist_id}",
"starred_url": "https://api.github.com/users/olegsinavski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/olegsinavski/subscriptions",
"organizations_url": "https://api.github.com/users/olegsinavski/orgs",
"repos_url": "https://api.github.com/users/olegsinavski/repos",
"events_url": "https://api.github.com/users/olegsinavski/events{/privacy}",
"received_events_url": "https://api.github.com/users/olegsinavski/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-08T15:37:17 | 2023-11-02T00:31:22 | 2023-11-02T00:31:21 |
CONTRIBUTOR
| null |
**Description:**
Currently, the example uses Pydantic 1 format and crashes with the following error:
```
452 if isinstance(info, ValidatorDecoratorInfo):
--> 453 res.validators[var_name] = Decorator.build(
454 model_dc, cls_var_name=var_name, shim=var_value.shim, info=info
455 )
456 elif isinstance(info, FieldValidatorDecoratorInfo):
457 res.field_validators[var_name] = Decorator.build(
458 model_dc, cls_var_name=var_name, shim=var_value.shim, info=info
...
83 needs_values_kw = True
PydanticUserError: The `field` and `config` parameters are not available in Pydantic V2, please use the `info` parameter instead.
```
Additionally, it produces a warning:
```
PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.4/migration/
@validator('setup')
```
------
Here I'm updating it to use Pydantic2 syntax
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11529/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11529/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11529",
"html_url": "https://github.com/langchain-ai/langchain/pull/11529",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11529.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11529.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11528
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11528/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11528/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11528/events
|
https://github.com/langchain-ai/langchain/pull/11528
| 1,931,867,256 |
PR_kwDOIPDwls5cMjEo
| 11,528 |
fix: PromptTemplate with OutputParser documentation not working
|
{
"login": "dosuken123",
"id": 4432788,
"node_id": "MDQ6VXNlcjQ0MzI3ODg=",
"avatar_url": "https://avatars.githubusercontent.com/u/4432788?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dosuken123",
"html_url": "https://github.com/dosuken123",
"followers_url": "https://api.github.com/users/dosuken123/followers",
"following_url": "https://api.github.com/users/dosuken123/following{/other_user}",
"gists_url": "https://api.github.com/users/dosuken123/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dosuken123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dosuken123/subscriptions",
"organizations_url": "https://api.github.com/users/dosuken123/orgs",
"repos_url": "https://api.github.com/users/dosuken123/repos",
"events_url": "https://api.github.com/users/dosuken123/events{/privacy}",
"received_events_url": "https://api.github.com/users/dosuken123/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 | 4 | 2023-10-08T15:35:10 | 2023-11-02T00:37:17 | 2023-11-02T00:37:16 |
CONTRIBUTOR
| null |
Replace this entire comment with:
- **Description:** [PromptTemplate with OutputParser](https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/prompt_serialization#prompttemplate-with-outputparser) has an example with "template": `"Given the following question and student answer, provide a correct answer and score the student answer.\nQuestion: {question}\nStudent Answer: {student_answer}\nCorrect Answer:"`, however, `\n` is a control character therefore `load_prompt ` results in an error like `ERROR Invalid control character at: line 1 column 202 (char 202)`. This is expected behavior from the `json` package (See https://stackoverflow.com/questions/22394235/invalid-control-character-with-python-json-loads for more information). This PR removes these control characters. I've confirmed that the fixed example is working on Google Colab .
- **Issue:** Not found,
- **Dependencies:** Nope,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** @dosuken123
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/11528/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11528/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11528",
"html_url": "https://github.com/langchain-ai/langchain/pull/11528",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11528.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11528.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11527
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11527/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11527/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11527/events
|
https://github.com/langchain-ai/langchain/pull/11527
| 1,931,839,727 |
PR_kwDOIPDwls5cMc93
| 11,527 |
feat: add batch_loader class
|
{
"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": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] |
open
| false |
{
"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 | 5 | 2023-10-08T14:59:46 | 2023-12-09T09:26:55 | null |
CONTRIBUTOR
| null |
- **Description:** add a batch loader to better use loader on a list of data sources
- **Issue:** #11509
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11527/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11527/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11527",
"html_url": "https://github.com/langchain-ai/langchain/pull/11527",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11527.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11527.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11525
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11525/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11525/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11525/events
|
https://github.com/langchain-ai/langchain/pull/11525
| 1,931,766,188 |
PR_kwDOIPDwls5cMObX
| 11,525 |
Bos loader
|
{
"login": "wemysschen",
"id": 38650638,
"node_id": "MDQ6VXNlcjM4NjUwNjM4",
"avatar_url": "https://avatars.githubusercontent.com/u/38650638?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wemysschen",
"html_url": "https://github.com/wemysschen",
"followers_url": "https://api.github.com/users/wemysschen/followers",
"following_url": "https://api.github.com/users/wemysschen/following{/other_user}",
"gists_url": "https://api.github.com/users/wemysschen/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wemysschen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wemysschen/subscriptions",
"organizations_url": "https://api.github.com/users/wemysschen/orgs",
"repos_url": "https://api.github.com/users/wemysschen/repos",
"events_url": "https://api.github.com/users/wemysschen/events{/privacy}",
"received_events_url": "https://api.github.com/users/wemysschen/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-08T11:17:48 | 2023-11-03T11:01:26 | 2023-10-11T21:43:48 |
CONTRIBUTOR
| null |
**Description:**
Add BaiduCloud BOS document loader.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11525/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11525/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11525",
"html_url": "https://github.com/langchain-ai/langchain/pull/11525",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11525.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11525.patch",
"merged_at": "2023-10-11T21:43:48"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11524
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11524/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11524/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11524/events
|
https://github.com/langchain-ai/langchain/issues/11524
| 1,931,696,800 |
I_kwDOIPDwls5zI1qg
| 11,524 |
documents have error (create_structured_output_chain)
|
{
"login": "Dhaizei",
"id": 92254983,
"node_id": "U_kgDOBX-zBw",
"avatar_url": "https://avatars.githubusercontent.com/u/92254983?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Dhaizei",
"html_url": "https://github.com/Dhaizei",
"followers_url": "https://api.github.com/users/Dhaizei/followers",
"following_url": "https://api.github.com/users/Dhaizei/following{/other_user}",
"gists_url": "https://api.github.com/users/Dhaizei/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Dhaizei/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dhaizei/subscriptions",
"organizations_url": "https://api.github.com/users/Dhaizei/orgs",
"repos_url": "https://api.github.com/users/Dhaizei/repos",
"events_url": "https://api.github.com/users/Dhaizei/events{/privacy}",
"received_events_url": "https://api.github.com/users/Dhaizei/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"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-08T08:00:40 | 2023-10-08T09:02:56 | null |
NONE
| null |
### Issue with current documentation:
https://python.langchain.com/docs/modules/chains/how_to/openai_functions
from typing import Sequence
class Person(BaseModel):
"""Identifying information about a person."""
name: str = Field(..., description="The person's name")
age: int = Field(..., description="The person's age")
fav_food: Optional[str] = Field(None, description="The person's favorite food")
prompt = ChatPromptTemplate.from_messages(
[
("system", "You are a world class algorithm for extracting information in structured formats."),
("human", "Use the given format to extract information from the following input: {input}"),
("human", "Tip: Make sure to answer in the correct format"),
]
)
class People(BaseModel):
"""Identifying information about all people in a text."""
people: Sequence[Person] = Field(..., description="The people in the text")
chain = create_structured_output_chain(People, llm, prompt, verbose=True)
chain.run(
"Sally is 13, Joey just turned 12 and loves spinach. Caroline is 10 years older than Sally."
)
no work,having some error:
ValidationError: 1 validation error for _OutputFormatter
output
value is not a valid dict (type=type_error.dict)
### Idea or request for content:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11524/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11524/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11523
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11523/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11523/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11523/events
|
https://github.com/langchain-ai/langchain/pull/11523
| 1,931,680,189 |
PR_kwDOIPDwls5cL9GR
| 11,523 |
Docs: Fix broken line breaks in snippets
|
{
"login": "unifyh",
"id": 18213435,
"node_id": "MDQ6VXNlcjE4MjEzNDM1",
"avatar_url": "https://avatars.githubusercontent.com/u/18213435?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/unifyh",
"html_url": "https://github.com/unifyh",
"followers_url": "https://api.github.com/users/unifyh/followers",
"following_url": "https://api.github.com/users/unifyh/following{/other_user}",
"gists_url": "https://api.github.com/users/unifyh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/unifyh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/unifyh/subscriptions",
"organizations_url": "https://api.github.com/users/unifyh/orgs",
"repos_url": "https://api.github.com/users/unifyh/repos",
"events_url": "https://api.github.com/users/unifyh/events{/privacy}",
"received_events_url": "https://api.github.com/users/unifyh/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-08T07:11:48 | 2023-10-09T22:40:28 | 2023-10-09T22:40:27 |
CONTRIBUTOR
| null |
**Description:**
This PR fix some code snippets that have raw `\n`'s instead of actual line breaks.
**Issue:**
Currently some snippets look like this:

Affected pages:
- https://python.langchain.com/docs/integrations/providers/predictionguard#example-usage
- https://python.langchain.com/docs/modules/agents/how_to/custom_llm_agent#set-up-environment
- https://python.langchain.com/docs/modules/chains/foundational/llm_chain#get-started
- https://python.langchain.com/docs/integrations/providers/shaleprotocol#how-to
**Tag maintainer:**
@hwchase17
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11523/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11523/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11523",
"html_url": "https://github.com/langchain-ai/langchain/pull/11523",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11523.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11523.patch",
"merged_at": "2023-10-09T22:40:27"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11522
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11522/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11522/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11522/events
|
https://github.com/langchain-ai/langchain/pull/11522
| 1,931,603,026 |
PR_kwDOIPDwls5cLtoT
| 11,522 |
Fixed a bug in reporting Python code validation
|
{
"login": "kwanghoon",
"id": 1162897,
"node_id": "MDQ6VXNlcjExNjI4OTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1162897?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kwanghoon",
"html_url": "https://github.com/kwanghoon",
"followers_url": "https://api.github.com/users/kwanghoon/followers",
"following_url": "https://api.github.com/users/kwanghoon/following{/other_user}",
"gists_url": "https://api.github.com/users/kwanghoon/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kwanghoon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kwanghoon/subscriptions",
"organizations_url": "https://api.github.com/users/kwanghoon/orgs",
"repos_url": "https://api.github.com/users/kwanghoon/repos",
"events_url": "https://api.github.com/users/kwanghoon/events{/privacy}",
"received_events_url": "https://api.github.com/users/kwanghoon/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-08T02:26:24 | 2023-10-11T21:34:28 | 2023-10-11T21:34:28 |
CONTRIBUTOR
| null |
- **Description:** fixed a bug in pal-chain when it reports Python
code validation errors. When node.func does not have any ids, the
original code tried to print node.func.id in raising ValueError.
- **Issue:** n/a,
- **Dependencies:** no dependencies,
- **Tag maintainer:** @hazzel-cn, @eyurtsev
- **Twitter handle:** @lazyswamp
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11522/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11522/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11522",
"html_url": "https://github.com/langchain-ai/langchain/pull/11522",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11522.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11522.patch",
"merged_at": "2023-10-11T21:34:28"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11521
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11521/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11521/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11521/events
|
https://github.com/langchain-ai/langchain/pull/11521
| 1,931,585,062 |
PR_kwDOIPDwls5cLp7M
| 11,521 |
RunnableLambda: Add in code docs
|
{
"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-08T01:19:15 | 2023-10-09T18:37:48 | 2023-10-09T18:37:47 |
COLLABORATOR
| null |
Add in code docs for Runnable Lambda
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11521/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11521/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11521",
"html_url": "https://github.com/langchain-ai/langchain/pull/11521",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11521.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11521.patch",
"merged_at": "2023-10-09T18:37:47"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11520
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11520/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11520/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11520/events
|
https://github.com/langchain-ai/langchain/pull/11520
| 1,931,578,198 |
PR_kwDOIPDwls5cLogX
| 11,520 |
Add runnables to api reference
|
{
"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-08T00:53:54 | 2023-10-17T15:46:10 | 2023-10-17T15:46:09 |
COLLABORATOR
| null |
Need to look at preview whether this works.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11520/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11520/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11520",
"html_url": "https://github.com/langchain-ai/langchain/pull/11520",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11520.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11520.patch",
"merged_at": "2023-10-17T15:46:09"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11519
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11519/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11519/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11519/events
|
https://github.com/langchain-ai/langchain/pull/11519
| 1,931,566,025 |
PR_kwDOIPDwls5cLl9h
| 11,519 |
11474
|
{
"login": "sudranga",
"id": 12044110,
"node_id": "MDQ6VXNlcjEyMDQ0MTEw",
"avatar_url": "https://avatars.githubusercontent.com/u/12044110?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sudranga",
"html_url": "https://github.com/sudranga",
"followers_url": "https://api.github.com/users/sudranga/followers",
"following_url": "https://api.github.com/users/sudranga/following{/other_user}",
"gists_url": "https://api.github.com/users/sudranga/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sudranga/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sudranga/subscriptions",
"organizations_url": "https://api.github.com/users/sudranga/orgs",
"repos_url": "https://api.github.com/users/sudranga/repos",
"events_url": "https://api.github.com/users/sudranga/events{/privacy}",
"received_events_url": "https://api.github.com/users/sudranga/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 | 4 | 2023-10-08T00:14:05 | 2023-11-13T03:49:11 | 2023-10-11T23:30:16 |
CONTRIBUTOR
| null |
No relevant documents may be found for a given question. In some use cases, we could directly respond with a fixed message instead of doing an LLM call with an empty context. This PR exposes this as an option: response_if_no_docs_found.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11519/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11519/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11519",
"html_url": "https://github.com/langchain-ai/langchain/pull/11519",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11519.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11519.patch",
"merged_at": "2023-10-11T23:30:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11518
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11518/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11518/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11518/events
|
https://github.com/langchain-ai/langchain/pull/11518
| 1,931,541,078 |
PR_kwDOIPDwls5cLhqL
| 11,518 |
implemented add files method in LLMRails
|
{
"login": "anar2706",
"id": 51159628,
"node_id": "MDQ6VXNlcjUxMTU5NjI4",
"avatar_url": "https://avatars.githubusercontent.com/u/51159628?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/anar2706",
"html_url": "https://github.com/anar2706",
"followers_url": "https://api.github.com/users/anar2706/followers",
"following_url": "https://api.github.com/users/anar2706/following{/other_user}",
"gists_url": "https://api.github.com/users/anar2706/gists{/gist_id}",
"starred_url": "https://api.github.com/users/anar2706/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anar2706/subscriptions",
"organizations_url": "https://api.github.com/users/anar2706/orgs",
"repos_url": "https://api.github.com/users/anar2706/repos",
"events_url": "https://api.github.com/users/anar2706/events{/privacy}",
"received_events_url": "https://api.github.com/users/anar2706/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 | 3 | 2023-10-07T23:10:03 | 2023-10-09T23:29:43 | 2023-10-09T23:29:43 |
CONTRIBUTOR
| null |
This PR provides add files method with LLMRails. Implemented here are:
docs/extras/integrations/vectorstores/llm-rails.ipynb
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11518/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11518/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11518",
"html_url": "https://github.com/langchain-ai/langchain/pull/11518",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11518.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11518.patch",
"merged_at": "2023-10-09T23:29:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11517
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11517/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11517/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11517/events
|
https://github.com/langchain-ai/langchain/pull/11517
| 1,931,539,032 |
PR_kwDOIPDwls5cLhQH
| 11,517 |
Llmrails add files update
|
{
"login": "anar2706",
"id": 51159628,
"node_id": "MDQ6VXNlcjUxMTU5NjI4",
"avatar_url": "https://avatars.githubusercontent.com/u/51159628?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/anar2706",
"html_url": "https://github.com/anar2706",
"followers_url": "https://api.github.com/users/anar2706/followers",
"following_url": "https://api.github.com/users/anar2706/following{/other_user}",
"gists_url": "https://api.github.com/users/anar2706/gists{/gist_id}",
"starred_url": "https://api.github.com/users/anar2706/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anar2706/subscriptions",
"organizations_url": "https://api.github.com/users/anar2706/orgs",
"repos_url": "https://api.github.com/users/anar2706/repos",
"events_url": "https://api.github.com/users/anar2706/events{/privacy}",
"received_events_url": "https://api.github.com/users/anar2706/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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-07T23:02:59 | 2023-10-07T23:04:11 | 2023-10-07T23:04:11 |
CONTRIBUTOR
| null |
This PR provides add files method with LLMRails. Implemented here are:
docs/extras/integrations/vectorstores/llm-rails.ipynb
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11517/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11517/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11517",
"html_url": "https://github.com/langchain-ai/langchain/pull/11517",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11517.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11517.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11516
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11516/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11516/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11516/events
|
https://github.com/langchain-ai/langchain/pull/11516
| 1,931,483,348 |
PR_kwDOIPDwls5cLV4E
| 11,516 |
Add documentation to Runnable
|
{
"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-07T19:59:48 | 2023-10-08T07:09:05 | 2023-10-08T07:09:04 |
COLLABORATOR
| null |
Add in code documentation for runnable.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11516/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11516/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11516",
"html_url": "https://github.com/langchain-ai/langchain/pull/11516",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11516.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11516.patch",
"merged_at": "2023-10-08T07:09:04"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11515
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11515/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11515/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11515/events
|
https://github.com/langchain-ai/langchain/issues/11515
| 1,931,456,319 |
I_kwDOIPDwls5zH68_
| 11,515 |
Neo4jVectorstore: Parse vectorstore specific parameters in **kwargs when calling add_embeddings()
|
{
"login": "julianfleck",
"id": 50588193,
"node_id": "MDQ6VXNlcjUwNTg4MTkz",
"avatar_url": "https://avatars.githubusercontent.com/u/50588193?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/julianfleck",
"html_url": "https://github.com/julianfleck",
"followers_url": "https://api.github.com/users/julianfleck/followers",
"following_url": "https://api.github.com/users/julianfleck/following{/other_user}",
"gists_url": "https://api.github.com/users/julianfleck/gists{/gist_id}",
"starred_url": "https://api.github.com/users/julianfleck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/julianfleck/subscriptions",
"organizations_url": "https://api.github.com/users/julianfleck/orgs",
"repos_url": "https://api.github.com/users/julianfleck/repos",
"events_url": "https://api.github.com/users/julianfleck/events{/privacy}",
"received_events_url": "https://api.github.com/users/julianfleck/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": 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-07T18:29:54 | 2023-10-07T22:17:39 | null |
NONE
| null |
I am trying to use the `add_texts` method on a previously instanciated Neo4jVector object for setting the node_label.
The scenario is that I am processing different types of text and want to create different nodes accordingly. Because I am handling the database connection somewhere else in my code, I don't want to establish the connection to the database when embedding texts.
```python
[...]
# initialize vector store
self.vector_store = Neo4jVector(
embedding=self.embeddings_model,
username=neo4j_config['USER'],
password=neo4j_config['PASSWORD'],
url=neo4j_config['URI'],
database=neo4j_config['DATABASE'], # neo4j by default
index_name="vector", # vector by default
embedding_node_property="embedding", # embedding by default
create_id_index=True, # True by default
)
[...]
# embed text
created_node = self.vector_store.add_texts(
[text],
metadatas=[
{
"label": [node_label]
}
],
embedding=self.embeddings_model,
node_label=node_label, # Chunk by default
text_node_property=text_node_property, # text by default
)
```
Currently the `node_label` property is overwritten with the default value and not respected when used as a parameter in **kwargs.
https://github.com/langchain-ai/langchain/blob/eb572f41a65c9636b9e0e5a5fb4210a00a67a353/libs/langchain/langchain/vectorstores/neo4j_vector.py#L125
https://github.com/langchain-ai/langchain/blob/eb572f41a65c9636b9e0e5a5fb4210a00a67a353/libs/langchain/langchain/vectorstores/neo4j_vector.py#L450
According to the Docstring, the function is supposed to accept vectorstore specific parameters:
https://github.com/langchain-ai/langchain/blob/eb572f41a65c9636b9e0e5a5fb4210a00a67a353/libs/langchain/langchain/vectorstores/neo4j_vector.py#L458
In order to conform with this, I added this function:
```python
def update_vector_store_properties(self, **kwargs):
# List of vector store-specific arguments we want to check and potentially update
vector_store_args = ["node_label", "text_node_property", "embedding_node_property"]
# Iterate over these arguments
for arg in vector_store_args:
# Check if the argument is present in kwargs
if arg in kwargs:
# Update the corresponding property of the Neo4jVector instance
setattr(self, arg, kwargs[arg])
```
I then modified `add_embeddings` like this:
```python
def add_embeddings(
self,
texts: Iterable[str],
embeddings: List[List[float]],
metadatas: Optional[List[dict]] = None,
ids: Optional[List[str]] = None,
**kwargs: Any,
) -> List[str]:
"""Add embeddings to the vectorstore.
Args:
texts: Iterable of strings to add to the vectorstore.
embeddings: List of list of embedding vectors.
metadatas: List of metadatas associated with the texts.
kwargs: vectorstore specific parameters
"""
if ids is None:
ids = [str(uuid.uuid1()) for _ in texts]
if not metadatas:
metadatas = [{} for _ in texts]
self.update_vector_store_properties(**kwargs)
[...]
```
Don't really know if this is a missing feature or a bug or if I am just using the Vectorstore wrong, but I thought I'd leave this here in case it might be the desired behavior.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11515/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11515/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11514
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11514/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11514/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11514/events
|
https://github.com/langchain-ai/langchain/pull/11514
| 1,931,445,523 |
PR_kwDOIPDwls5cLOSr
| 11,514 |
refactor: enable connection pool usage in PGVector
|
{
"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": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false |
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
] | null | 10 | 2023-10-07T18:00:41 | 2023-12-28T23:07:17 | 2023-12-28T23:07:17 |
CONTRIBUTOR
| null |
- **Description:** `PGVector` refactored to use connection pool.
- **Issue:** #11433,
- **Tag maintainer:** @hwchase17 @eyurtsev,
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11514/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/11514/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11514",
"html_url": "https://github.com/langchain-ai/langchain/pull/11514",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11514.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11514.patch",
"merged_at": "2023-12-28T23:07:17"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11513
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11513/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11513/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11513/events
|
https://github.com/langchain-ai/langchain/pull/11513
| 1,931,394,081 |
PR_kwDOIPDwls5cLD0d
| 11,513 |
Google Scholar Search Tool using serpapi
|
{
"login": "keenborder786",
"id": 45242107,
"node_id": "MDQ6VXNlcjQ1MjQyMTA3",
"avatar_url": "https://avatars.githubusercontent.com/u/45242107?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/keenborder786",
"html_url": "https://github.com/keenborder786",
"followers_url": "https://api.github.com/users/keenborder786/followers",
"following_url": "https://api.github.com/users/keenborder786/following{/other_user}",
"gists_url": "https://api.github.com/users/keenborder786/gists{/gist_id}",
"starred_url": "https://api.github.com/users/keenborder786/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/keenborder786/subscriptions",
"organizations_url": "https://api.github.com/users/keenborder786/orgs",
"repos_url": "https://api.github.com/users/keenborder786/repos",
"events_url": "https://api.github.com/users/keenborder786/events{/privacy}",
"received_events_url": "https://api.github.com/users/keenborder786/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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 | 8 | 2023-10-07T15:34:08 | 2023-12-16T20:28:31 | 2023-10-20T21:35:55 |
CONTRIBUTOR
| null |
- **Description:** Implementing the Google Scholar Tool as requested in PR #11505. The tool will be using the [serpapi python package](https://serpapi.com/integrations/python#search-google-scholar). The main idea of the tool will be to return the results from a Google Scholar search given a query as an input to the tool.
- **Tag maintainer:** @baskaryan, @eyurtsev, @hwchase17
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11513/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/11513/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11513",
"html_url": "https://github.com/langchain-ai/langchain/pull/11513",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11513.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11513.patch",
"merged_at": "2023-10-20T21:35:55"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11512
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11512/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11512/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11512/events
|
https://github.com/langchain-ai/langchain/pull/11512
| 1,931,382,243 |
PR_kwDOIPDwls5cLBgg
| 11,512 |
Add option to specify document metadata in python CSVLoader
|
{
"login": "benchello",
"id": 17305396,
"node_id": "MDQ6VXNlcjE3MzA1Mzk2",
"avatar_url": "https://avatars.githubusercontent.com/u/17305396?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/benchello",
"html_url": "https://github.com/benchello",
"followers_url": "https://api.github.com/users/benchello/followers",
"following_url": "https://api.github.com/users/benchello/following{/other_user}",
"gists_url": "https://api.github.com/users/benchello/gists{/gist_id}",
"starred_url": "https://api.github.com/users/benchello/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benchello/subscriptions",
"organizations_url": "https://api.github.com/users/benchello/orgs",
"repos_url": "https://api.github.com/users/benchello/repos",
"events_url": "https://api.github.com/users/benchello/events{/privacy}",
"received_events_url": "https://api.github.com/users/benchello/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-07T14:59:09 | 2023-10-09T20:45:22 | 2023-10-09T20:45:11 |
CONTRIBUTOR
| null |
#### Description
This PR adds the option to specify additional metadata columns in the CSVLoader beyond just `Source`.
The current CSV loader includes all columns in `page_content` and if we want to have columns specified for `page_content` and `metadata` we have to do something like the below.:
```
csv = pd.read_csv(
"path_to_csv"
).to_dict("records")
documents = [
Document(
page_content=doc["content"],
metadata={
"last_modified_by": doc["last_modified_by"],
"point_of_contact": doc["point_of_contact"],
}
) for doc in csv
]
```
#### Usage
Example Usage:
```
csv_test = CSVLoader(
file_path="path_to_csv",
metadata_columns=["last_modified_by", "point_of_contact"]
)
```
Example CSV:
```
content, last_modified_by, point_of_contact
"hello world", "Person A", "Person B"
```
Example Result:
```
Document {
page_content: "hello world"
metadata: {
row: '0',
source: 'path_to_csv',
last_modified_by: 'Person A',
point_of_contact: 'Person B',
}
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11512/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11512/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11512",
"html_url": "https://github.com/langchain-ai/langchain/pull/11512",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11512.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11512.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11511
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11511/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11511/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11511/events
|
https://github.com/langchain-ai/langchain/pull/11511
| 1,931,340,159 |
PR_kwDOIPDwls5cK5O_
| 11,511 |
Rspace doc loader
|
{
"login": "richarda23",
"id": 22676399,
"node_id": "MDQ6VXNlcjIyNjc2Mzk5",
"avatar_url": "https://avatars.githubusercontent.com/u/22676399?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/richarda23",
"html_url": "https://github.com/richarda23",
"followers_url": "https://api.github.com/users/richarda23/followers",
"following_url": "https://api.github.com/users/richarda23/following{/other_user}",
"gists_url": "https://api.github.com/users/richarda23/gists{/gist_id}",
"starred_url": "https://api.github.com/users/richarda23/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/richarda23/subscriptions",
"organizations_url": "https://api.github.com/users/richarda23/orgs",
"repos_url": "https://api.github.com/users/richarda23/repos",
"events_url": "https://api.github.com/users/richarda23/events{/privacy}",
"received_events_url": "https://api.github.com/users/richarda23/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 | 4 | 2023-10-07T12:49:37 | 2023-10-13T09:16:14 | 2023-10-12T22:05:39 |
CONTRIBUTOR
| null |
**Description:**
Add a document loader for the RSpace Electronic Lab Notebook (www.researchspace.com), so that scientific documents and research notes can be easily pulled into Langchain pipelines.
**Issue**
This is an new contribution, rather than an issue fix.
**Dependencies:**
There are no new required dependencies.
In order to use the loader, clients will need to install rspace_client SDK using `pip install rspace_client`
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11511/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11511/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11511",
"html_url": "https://github.com/langchain-ai/langchain/pull/11511",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11511.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11511.patch",
"merged_at": "2023-10-12T22:05:39"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11510
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11510/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11510/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11510/events
|
https://github.com/langchain-ai/langchain/issues/11510
| 1,931,310,770 |
I_kwDOIPDwls5zHXay
| 11,510 |
Can't import UnstructuredRSTLoader
|
{
"login": "raihaan123",
"id": 13030042,
"node_id": "MDQ6VXNlcjEzMDMwMDQy",
"avatar_url": "https://avatars.githubusercontent.com/u/13030042?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/raihaan123",
"html_url": "https://github.com/raihaan123",
"followers_url": "https://api.github.com/users/raihaan123/followers",
"following_url": "https://api.github.com/users/raihaan123/following{/other_user}",
"gists_url": "https://api.github.com/users/raihaan123/gists{/gist_id}",
"starred_url": "https://api.github.com/users/raihaan123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raihaan123/subscriptions",
"organizations_url": "https://api.github.com/users/raihaan123/orgs",
"repos_url": "https://api.github.com/users/raihaan123/repos",
"events_url": "https://api.github.com/users/raihaan123/events{/privacy}",
"received_events_url": "https://api.github.com/users/raihaan123/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-07T11:17:32 | 2023-10-07T11:33:42 | 2023-10-07T11:33:42 |
NONE
| null |
### System Info
Langchain 0.0.310
Python 3.11
Windows 10
### 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
Just following the usual steps:
`from langchain.document_loaders import UnstructuredRSTLoader`
### Expected behavior
Expecting a successful import but greeted with
`ImportError: cannot import name 'Document' from 'langchain.schema' `
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11510/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11510/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11509
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11509/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11509/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11509/events
|
https://github.com/langchain-ai/langchain/issues/11509
| 1,931,282,259 |
I_kwDOIPDwls5zHQdT
| 11,509 |
[Feature] Batch loader
|
{
"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": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-07T09:48:11 | 2023-10-08T15:00:37 | null |
CONTRIBUTOR
| null |
### Feature request
Loaders are designed to load a single source of data and transform it to a list of Documents. If several sources are to be processed, it is up to the developer to call the Loader several times.
The idea is to propose a new `BatchLoader` object that could simplify this task and enable loading tasks to be launched sequentially, mutlithreaded, with mutli processor or asynchronously.
Draft idea:
```
class BatchLoader(BaseLoader):
...
def load(self, method: str = 'sequential', max_workers: int=1) -> List[Document]:
# TODO: faire ça stylé
if method == 'thread':
return self._load_thread(max_workers)
elif method == 'process':
return self._load_process(max_workers)
elif method == 'sequential':
return self._load_sequential()
elif method == 'async':
return asyncio.run(self._async_load())
else:
raise ValueError(f'Invalid method {method}')
...
# Call it with a Loader constructor callable and a set of arguments
batch_loader = BatchLoader(TextLoader, {"file_path": [f"file_{i}.txt" for i in range(1000)]})
```
### Motivation
In most real use case we need to load several Data Sources, combine their outputs and work with them (e.g. store in a vector store). Some use cases also require to wait for I/O intensive tasks or tasks you want to parallelized, so having a Meta loader that wrap this complexity for you could be a good idea.
### Your contribution
WIP: https://github.com/langchain-ai/langchain/pull/11527
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11509/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11509/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11508
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11508/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11508/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11508/events
|
https://github.com/langchain-ai/langchain/issues/11508
| 1,931,176,253 |
I_kwDOIPDwls5zG2k9
| 11,508 |
why when streaming only setup n=1
|
{
"login": "batman-do",
"id": 77484083,
"node_id": "MDQ6VXNlcjc3NDg0MDgz",
"avatar_url": "https://avatars.githubusercontent.com/u/77484083?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/batman-do",
"html_url": "https://github.com/batman-do",
"followers_url": "https://api.github.com/users/batman-do/followers",
"following_url": "https://api.github.com/users/batman-do/following{/other_user}",
"gists_url": "https://api.github.com/users/batman-do/gists{/gist_id}",
"starred_url": "https://api.github.com/users/batman-do/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/batman-do/subscriptions",
"organizations_url": "https://api.github.com/users/batman-do/orgs",
"repos_url": "https://api.github.com/users/batman-do/repos",
"events_url": "https://api.github.com/users/batman-do/events{/privacy}",
"received_events_url": "https://api.github.com/users/batman-do/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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-07T04:08:32 | 2023-10-07T04:14:27 | null |
NONE
| null |
### Issue you'd like to raise.
I want streaming when call chatgpt with n>1. can u support me?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11508/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11508/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11507
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11507/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11507/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11507/events
|
https://github.com/langchain-ai/langchain/pull/11507
| 1,931,143,587 |
PR_kwDOIPDwls5cKR3C
| 11,507 |
Fixed typos in SmartLLMChain ideation and critique prompts
|
{
"login": "Mattt394",
"id": 36588863,
"node_id": "MDQ6VXNlcjM2NTg4ODYz",
"avatar_url": "https://avatars.githubusercontent.com/u/36588863?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Mattt394",
"html_url": "https://github.com/Mattt394",
"followers_url": "https://api.github.com/users/Mattt394/followers",
"following_url": "https://api.github.com/users/Mattt394/following{/other_user}",
"gists_url": "https://api.github.com/users/Mattt394/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Mattt394/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mattt394/subscriptions",
"organizations_url": "https://api.github.com/users/Mattt394/orgs",
"repos_url": "https://api.github.com/users/Mattt394/repos",
"events_url": "https://api.github.com/users/Mattt394/events{/privacy}",
"received_events_url": "https://api.github.com/users/Mattt394/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 2 | 2023-10-07T02:37:59 | 2023-11-29T03:05:19 | null |
NONE
| null |
Noticed and fixed a few typos in the SmartLLMChain default ideation and critique prompts
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11507/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11507/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11507",
"html_url": "https://github.com/langchain-ai/langchain/pull/11507",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11507.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11507.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11506
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11506/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11506/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11506/events
|
https://github.com/langchain-ai/langchain/pull/11506
| 1,931,128,847 |
PR_kwDOIPDwls5cKOqE
| 11,506 |
Resolved: Revert "Add ChatGLM for llm and chat_model by using ChatGLM API (#9797)" #10805
|
{
"login": "etveritas",
"id": 27916175,
"node_id": "MDQ6VXNlcjI3OTE2MTc1",
"avatar_url": "https://avatars.githubusercontent.com/u/27916175?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/etveritas",
"html_url": "https://github.com/etveritas",
"followers_url": "https://api.github.com/users/etveritas/followers",
"following_url": "https://api.github.com/users/etveritas/following{/other_user}",
"gists_url": "https://api.github.com/users/etveritas/gists{/gist_id}",
"starred_url": "https://api.github.com/users/etveritas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/etveritas/subscriptions",
"organizations_url": "https://api.github.com/users/etveritas/orgs",
"repos_url": "https://api.github.com/users/etveritas/repos",
"events_url": "https://api.github.com/users/etveritas/events{/privacy}",
"received_events_url": "https://api.github.com/users/etveritas/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5510857403,
"node_id": "LA_kwDOIPDwls8AAAABSHkCuw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation",
"name": "needs documentation",
"color": "DCAAC0",
"default": false,
"description": "PR needs to be updated with documentation"
},
{
"id": 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-07T02:07:21 | 2023-11-16T07:10:28 | null |
CONTRIBUTOR
| null |
Resolved: Revert "Add ChatGLM for llm and chat_model by using ChatGLM API (#9797)" #10805
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11506/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11506/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11506",
"html_url": "https://github.com/langchain-ai/langchain/pull/11506",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11506.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11506.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11505
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11505/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11505/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11505/events
|
https://github.com/langchain-ai/langchain/issues/11505
| 1,931,050,084 |
I_kwDOIPDwls5zGXxk
| 11,505 |
Add support for google scholar querying with serpapi
|
{
"login": "HamJaw1432",
"id": 56083056,
"node_id": "MDQ6VXNlcjU2MDgzMDU2",
"avatar_url": "https://avatars.githubusercontent.com/u/56083056?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/HamJaw1432",
"html_url": "https://github.com/HamJaw1432",
"followers_url": "https://api.github.com/users/HamJaw1432/followers",
"following_url": "https://api.github.com/users/HamJaw1432/following{/other_user}",
"gists_url": "https://api.github.com/users/HamJaw1432/gists{/gist_id}",
"starred_url": "https://api.github.com/users/HamJaw1432/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HamJaw1432/subscriptions",
"organizations_url": "https://api.github.com/users/HamJaw1432/orgs",
"repos_url": "https://api.github.com/users/HamJaw1432/repos",
"events_url": "https://api.github.com/users/HamJaw1432/events{/privacy}",
"received_events_url": "https://api.github.com/users/HamJaw1432/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 4 | 2023-10-06T23:45:22 | 2023-11-13T20:13:57 | 2023-11-13T20:13:56 |
CONTRIBUTOR
| null |
### Feature request
We propose the addition of Google Scholar querying with the serpapi, as google Scholar is a prominent platform for accessing academic and scholarly articles.
### Motivation
Google scholar is a crucial resource for researchers, students, and professionals in various fields. Integrating Google Scholar querying with serpapi would provide users with the ability to programmatically retrieve search results from Google Scholar, giving the llms more better/more reliable information to work with.
### Your contribution
We intend to submit a pull request for this issue at some point in November.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11505/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11505/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11504
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11504/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11504/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11504/events
|
https://github.com/langchain-ai/langchain/pull/11504
| 1,931,010,695 |
PR_kwDOIPDwls5cJ0_B
| 11,504 |
QoL improvements to query constructor
|
{
"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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-06T22:37:28 | 2023-10-09T15:10:53 | 2023-10-09T15:10:52 |
COLLABORATOR
| null |
updating query constructor and self query retriever to
- make it easier to pass in examples
- validate attributes used in query
- remove invalid parts of query
- make it easier to get + edit prompt
- make query constructor a runnable
- make self query retriever use as runnable
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11504/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11504/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11504",
"html_url": "https://github.com/langchain-ai/langchain/pull/11504",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11504.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11504.patch",
"merged_at": "2023-10-09T15:10:52"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11503
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11503/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11503/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11503/events
|
https://github.com/langchain-ai/langchain/pull/11503
| 1,930,991,698 |
PR_kwDOIPDwls5cJwzA
| 11,503 |
wrap confluence attachment processing with a try-except block
|
{
"login": "aprilyw",
"id": 35612351,
"node_id": "MDQ6VXNlcjM1NjEyMzUx",
"avatar_url": "https://avatars.githubusercontent.com/u/35612351?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/aprilyw",
"html_url": "https://github.com/aprilyw",
"followers_url": "https://api.github.com/users/aprilyw/followers",
"following_url": "https://api.github.com/users/aprilyw/following{/other_user}",
"gists_url": "https://api.github.com/users/aprilyw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/aprilyw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aprilyw/subscriptions",
"organizations_url": "https://api.github.com/users/aprilyw/orgs",
"repos_url": "https://api.github.com/users/aprilyw/repos",
"events_url": "https://api.github.com/users/aprilyw/events{/privacy}",
"received_events_url": "https://api.github.com/users/aprilyw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-10-06T22:12:45 | 2023-10-12T01:13:42 | 2023-10-12T01:13:42 |
CONTRIBUTOR
| null |
Prevents document loading from erroring out when an attachment is not found at the url.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11503/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11503/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11503",
"html_url": "https://github.com/langchain-ai/langchain/pull/11503",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11503.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11503.patch",
"merged_at": "2023-10-12T01:13:42"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11502
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11502/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11502/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11502/events
|
https://github.com/langchain-ai/langchain/pull/11502
| 1,930,982,298 |
PR_kwDOIPDwls5cJut2
| 11,502 |
docs: update `dependents`
|
{
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-06T22:02:32 | 2023-10-10T16:58:04 | 2023-10-10T16:31:24 |
COLLABORATOR
| null |
A regular update of dependents.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11502/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11502/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11502",
"html_url": "https://github.com/langchain-ai/langchain/pull/11502",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11502.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11502.patch",
"merged_at": "2023-10-10T16:31:24"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11501
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11501/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11501/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11501/events
|
https://github.com/langchain-ai/langchain/pull/11501
| 1,930,977,184 |
PR_kwDOIPDwls5cJtls
| 11,501 |
feat: Add BigFramesLLM and BigFramesChains for batch prompts cases
|
{
"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 | 1 | 2023-10-06T21:56:00 | 2023-10-16T21:18:30 | 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)
Using BigFramesChain, you can now batch prompts using DataFrames as input and output.
<!-- 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/11501/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11501/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11501",
"html_url": "https://github.com/langchain-ai/langchain/pull/11501",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11501.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11501.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11500
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11500/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11500/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11500/events
|
https://github.com/langchain-ai/langchain/issues/11500
| 1,930,961,933 |
I_kwDOIPDwls5zGCQN
| 11,500 |
Retry limit is not respected
|
{
"login": "yutongp",
"id": 915849,
"node_id": "MDQ6VXNlcjkxNTg0OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/915849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yutongp",
"html_url": "https://github.com/yutongp",
"followers_url": "https://api.github.com/users/yutongp/followers",
"following_url": "https://api.github.com/users/yutongp/following{/other_user}",
"gists_url": "https://api.github.com/users/yutongp/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yutongp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yutongp/subscriptions",
"organizations_url": "https://api.github.com/users/yutongp/orgs",
"repos_url": "https://api.github.com/users/yutongp/repos",
"events_url": "https://api.github.com/users/yutongp/events{/privacy}",
"received_events_url": "https://api.github.com/users/yutongp/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-06T21:37:53 | 2023-10-06T21:44:16 | null |
NONE
| null |
### System Info
Langchain==0.0305
Mac
python == 3.9.6
### Who can help?
@hwchase17 @agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I have a simple web page summarize function basacilly followed example
```python
llm = OpenAI(temperature=0)
loader = WebBaseLoader(link)
docs = loader.load()
MAP_PROMPT = PromptTemplate(
template="""Write a concise summary of the following web page(keep all identifiable information about the main entities):
{text}
CONCISE SUMMARY:
""",
input_variables=["text"],
)
REDUCE_PROMPT = PromptTemplate(
template="""Based on the following text, write a concise summary(keep all identifiable information about the main entities)):
{text}
CONCISE SUMMARY:
""",
input_variables=["text"],
)
chain = load_summarize_chain(
llm,
chain_type="map_reduce",
return_intermediate_steps=True,
map_prompt=MAP_PROMPT,
combine_prompt=REDUCE_PROMPT,
)
text_splitter = RecursiveCharacterTextSplitter()
docs = text_splitter.split_documents(docs)
if len(docs) == 0:
return ""
result = chain(
text_splitter.split_documents(documents=docs),
return_only_outputs=True,
)
logging.debug(result)
return result["output_text"]
```
my program loaded in a pdf url link (https://www.fiserv.com/content/dam/fiserv-ent/final-files/marketing-collateral/case-studies/regions-bank-case-study-0623.pdf)
web based loader created 1 page document with a large number of tokens (13524539 characters)
I then started to get openai library error:
```
error_code=rate_limit_exceeded error_message='Rate limit reached for default-text-davinci-003 in organization org-a6hHivOPvKe9X60G8E6YqM5m on tokens_usage_based per min. Limit: 250000 / min. Current: 245411 / min. Contact us through our help center at help.openai.com if you continue to have issues.' error_param=None error_type=tokens_usage_based message='OpenAI API error received' stream_error=False
```
langchain kept retrying on this error definetly more than the default 6 times, I had `14` retry log from langchain in my terminal.
I think this is a quite critical bug, my OpenAI usage limit blew up the $120 limit under 10mins because of this.
### Expected behavior
retry limit should kick it to short circuit this situation or there should be some other method to prevent unexpected length of document being passed to openAI
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11500/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11500/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11499
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11499/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11499/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11499/events
|
https://github.com/langchain-ai/langchain/pull/11499
| 1,930,949,905 |
PR_kwDOIPDwls5cJnmO
| 11,499 |
Fetch up-to-date attributes for env-pulled kwargs during serialisation of OpenAI classes
|
{
"login": "dqbd",
"id": 1443449,
"node_id": "MDQ6VXNlcjE0NDM0NDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1443449?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dqbd",
"html_url": "https://github.com/dqbd",
"followers_url": "https://api.github.com/users/dqbd/followers",
"following_url": "https://api.github.com/users/dqbd/following{/other_user}",
"gists_url": "https://api.github.com/users/dqbd/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dqbd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dqbd/subscriptions",
"organizations_url": "https://api.github.com/users/dqbd/orgs",
"repos_url": "https://api.github.com/users/dqbd/repos",
"events_url": "https://api.github.com/users/dqbd/events{/privacy}",
"received_events_url": "https://api.github.com/users/dqbd/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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-06T21:23:47 | 2023-10-06T21:43:30 | 2023-10-06T21:43:29 |
CONTRIBUTOR
| null |
These attributes can be filled by an environment variable, but are not marked as a secret. Thus, when invoking serialisation, the values are not included in the output JSON.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11499/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11499/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11499",
"html_url": "https://github.com/langchain-ai/langchain/pull/11499",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11499.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11499.patch",
"merged_at": "2023-10-06T21:43:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11498
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11498/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11498/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11498/events
|
https://github.com/langchain-ai/langchain/pull/11498
| 1,930,949,539 |
PR_kwDOIPDwls5cJnhH
| 11,498 |
Make example work during pydantic transition
|
{
"login": "mvhensbergen",
"id": 46875782,
"node_id": "MDQ6VXNlcjQ2ODc1Nzgy",
"avatar_url": "https://avatars.githubusercontent.com/u/46875782?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mvhensbergen",
"html_url": "https://github.com/mvhensbergen",
"followers_url": "https://api.github.com/users/mvhensbergen/followers",
"following_url": "https://api.github.com/users/mvhensbergen/following{/other_user}",
"gists_url": "https://api.github.com/users/mvhensbergen/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mvhensbergen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mvhensbergen/subscriptions",
"organizations_url": "https://api.github.com/users/mvhensbergen/orgs",
"repos_url": "https://api.github.com/users/mvhensbergen/repos",
"events_url": "https://api.github.com/users/mvhensbergen/events{/privacy}",
"received_events_url": "https://api.github.com/users/mvhensbergen/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 | 3 | 2023-10-06T21:23:21 | 2023-10-12T01:44:55 | 2023-10-12T01:44:47 |
CONTRIBUTOR
| null |
**Description:**
Make the example extraction code on https://python.langchain.com/docs/use_cases/extraction work again by importing the langchain.pydantic_v1 lib instead of the v2.
**Issue:**
Solves issue https://github.com/langchain-ai/langchain/issues/11468
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11498/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11498/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11498",
"html_url": "https://github.com/langchain-ai/langchain/pull/11498",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11498.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11498.patch",
"merged_at": "2023-10-12T01:44:47"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11497
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11497/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11497/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11497/events
|
https://github.com/langchain-ai/langchain/pull/11497
| 1,930,949,515 |
PR_kwDOIPDwls5cJngy
| 11,497 |
Langsmith in readme update
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 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-06T21:23:19 | 2023-10-12T01:43:53 | 2023-10-12T01:43:52 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11497/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11497/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11497",
"html_url": "https://github.com/langchain-ai/langchain/pull/11497",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11497.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11497.patch",
"merged_at": "2023-10-12T01:43:52"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11496
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11496/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11496/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11496/events
|
https://github.com/langchain-ai/langchain/issues/11496
| 1,930,899,139 |
I_kwDOIPDwls5zFy7D
| 11,496 |
Redis Vectorestore.add_documents() should use embed_documents() instead of embed_query()
|
{
"login": "benchello",
"id": 17305396,
"node_id": "MDQ6VXNlcjE3MzA1Mzk2",
"avatar_url": "https://avatars.githubusercontent.com/u/17305396?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/benchello",
"html_url": "https://github.com/benchello",
"followers_url": "https://api.github.com/users/benchello/followers",
"following_url": "https://api.github.com/users/benchello/following{/other_user}",
"gists_url": "https://api.github.com/users/benchello/gists{/gist_id}",
"starred_url": "https://api.github.com/users/benchello/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benchello/subscriptions",
"organizations_url": "https://api.github.com/users/benchello/orgs",
"repos_url": "https://api.github.com/users/benchello/repos",
"events_url": "https://api.github.com/users/benchello/events{/privacy}",
"received_events_url": "https://api.github.com/users/benchello/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5955630415,
"node_id": "LA_kwDOIPDwls8AAAABYvu1Tw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis",
"name": "integration: redis",
"color": "F9D0C4",
"default": false,
"description": "Any integration that uses Redis"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-06T20:31:55 | 2023-11-06T22:17:18 | null |
CONTRIBUTOR
| null |
### Feature request
The Redis Vectorstore `add_documents()` method calls `add_texts()` which embeds documents one by one like:
```
embedding = (
embeddings[i] if embeddings else self._embeddings.embed_query(text)
)
```
The `add_documents()` method would seem to imply that it is a good way to jointly embed and upload a larger list of documents, but using an API call for each document as above is slow and prone to run into rate limits.
Redis `add_documents()` could pass a kwarg `from_documents=True`to `add_texts()` which would change embedding to
```
embedding = (
embeddings[i] if embeddings else self._embeddings.embed_documents(documents)
)
```
### Motivation
This would simplify the overall use of the Redis Vectorstore and would be more inline with how the example documents imply the add_documents() method should be used. Currently `add_documents()` is not suitable for something like a csv or a long list of smaller documents unless it is used like:
```
add_documents(
documents=split_documents,
embeddings=embedder.embed_documents(texts),
)
```
### Your contribution
I could create a PR for this issue if it makes sense!
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11496/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11496/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11495
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11495/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11495/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11495/events
|
https://github.com/langchain-ai/langchain/pull/11495
| 1,930,852,071 |
PR_kwDOIPDwls5cJSEc
| 11,495 |
raise openapi import 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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-06T19:49:40 | 2023-10-06T19:57:25 | 2023-10-06T19:57:24 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11495/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11495/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11495",
"html_url": "https://github.com/langchain-ai/langchain/pull/11495",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11495.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11495.patch",
"merged_at": "2023-10-06T19:57:24"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11494
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11494/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11494/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11494/events
|
https://github.com/langchain-ai/langchain/pull/11494
| 1,930,808,695 |
PR_kwDOIPDwls5cJIkH
| 11,494 |
Rename some last hwchase17/langchain links
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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-06T19:12:23 | 2023-10-06T19:34:31 | 2023-10-06T19:34:30 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11494/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11494/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11494",
"html_url": "https://github.com/langchain-ai/langchain/pull/11494",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11494.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11494.patch",
"merged_at": "2023-10-06T19:34:30"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11493
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11493/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11493/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11493/events
|
https://github.com/langchain-ai/langchain/pull/11493
| 1,930,790,376 |
PR_kwDOIPDwls5cJEjz
| 11,493 |
Remove optional from vectara source
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 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-06T18:56:29 | 2023-10-06T19:12:44 | 2023-10-06T19:12:44 |
COLLABORATOR
| null |
fyi @ofermend
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11493/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11493/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11493",
"html_url": "https://github.com/langchain-ai/langchain/pull/11493",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11493.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11493.patch",
"merged_at": "2023-10-06T19:12:44"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11492
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11492/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11492/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11492/events
|
https://github.com/langchain-ai/langchain/issues/11492
| 1,930,691,209 |
I_kwDOIPDwls5zFAKJ
| 11,492 |
await PGVectorStore throws an ts(1378) error.
|
{
"login": "diogotl",
"id": 52261348,
"node_id": "MDQ6VXNlcjUyMjYxMzQ4",
"avatar_url": "https://avatars.githubusercontent.com/u/52261348?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/diogotl",
"html_url": "https://github.com/diogotl",
"followers_url": "https://api.github.com/users/diogotl/followers",
"following_url": "https://api.github.com/users/diogotl/following{/other_user}",
"gists_url": "https://api.github.com/users/diogotl/gists{/gist_id}",
"starred_url": "https://api.github.com/users/diogotl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/diogotl/subscriptions",
"organizations_url": "https://api.github.com/users/diogotl/orgs",
"repos_url": "https://api.github.com/users/diogotl/repos",
"events_url": "https://api.github.com/users/diogotl/events{/privacy}",
"received_events_url": "https://api.github.com/users/diogotl/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-06T17:37:48 | 2023-10-06T17:42:55 | null |
NONE
| null |
### System Info
MacOS, PGVector, TypeScript, NodeJS.
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Hey!
I have been trying to reproduce the langchain's pgvector official documentation without success. For some reason when I try to use async await around PGVector it throws an error.
`const pgvectorStore = await PGVectorStore.initialize(
new OpenAIEmbeddings(),
config
);`
This is the official documentation.
`export const pgvectorStore = await PGVectorStore.initialize(
new OpenAIEmbeddings(),
config
);`
This is my version.
I'm using TypeScript and it recommends to change both module and target versions inside compilerOptions, **done both without success.**
`Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.ts(1378)`
This is the output if I try to run the code:
`node:internal/process/esm_loader:108
internalBinding('errors').triggerUncaughtException(
^
Error: Transform failed with 1 error:
/Users/diogo/Documents/www/ai-api/src/store.ts:34:29: ERROR: Top-level await is currently not supported with the "cjs" output format
at failureErrorWithLog (/Users/diogo/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:1649:15)
at /Users/diogo/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:847:29
at responseCallbacks.<computed> (/Users/diogo/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:703:9)
at handleIncomingPacket (/Users/diogo/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:762:9)
at Socket.readFromStdout (/Users/diogo/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:679:7)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:335:12)
at readableAddChunk (node:internal/streams/readable:308:9)
at Readable.push (node:internal/streams/readable:245:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
errors: [
{
detail: undefined,
id: '',
location: {
column: 29,
file: '/Users/diogo/Documents/www/ai-api/src/store.ts',
length: 5,
line: 34,
lineText: 'export const pgvectorStore = await PGVectorStore.initialize(',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'Top-level await is currently not supported with the "cjs" output format'
}
],
warnings: []
}_`
Would appreciate any help.
### Expected behavior
It should not throw an error.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/11492/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11492/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/11491
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/11491/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11491/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/11491/events
|
https://github.com/langchain-ai/langchain/pull/11491
| 1,930,672,307 |
PR_kwDOIPDwls5cIriX
| 11,491 |
Fix Open in Colab link for ClearML docs 2
|
{
"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": 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-06T17:24:42 | 2023-10-06T19:01:48 | 2023-10-06T19:01:48 |
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/11491/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/11491/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/11491",
"html_url": "https://github.com/langchain-ai/langchain/pull/11491",
"diff_url": "https://github.com/langchain-ai/langchain/pull/11491.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/11491.patch",
"merged_at": "2023-10-06T19:01:48"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.