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/14015 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14015/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14015/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14015/events | https://github.com/langchain-ai/langchain/issues/14015 | 2,016,008,120 | I_kwDOIPDwls54Kde4 | 14,015 | Issue: how to increase the conversation chain response length? | {
"login": "momocat-aric",
"id": 27841780,
"node_id": "MDQ6VXNlcjI3ODQxNzgw",
"avatar_url": "https://avatars.githubusercontent.com/u/27841780?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/momocat-aric",
"html_url": "https://github.com/momocat-aric",
"followers_url": "https://api.github.com/users/momocat-aric/followers",
"following_url": "https://api.github.com/users/momocat-aric/following{/other_user}",
"gists_url": "https://api.github.com/users/momocat-aric/gists{/gist_id}",
"starred_url": "https://api.github.com/users/momocat-aric/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/momocat-aric/subscriptions",
"organizations_url": "https://api.github.com/users/momocat-aric/orgs",
"repos_url": "https://api.github.com/users/momocat-aric/repos",
"events_url": "https://api.github.com/users/momocat-aric/events{/privacy}",
"received_events_url": "https://api.github.com/users/momocat-aric/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-11-29T07:49:03 | 2023-11-29T07:56:43 | null | NONE | null | ### Issue you'd like to raise.
When I call Llam2-70b-chat model using conversation chain, I got very short response from the model. But if I use LLMChain to call the model, it can give me a long response. So, is there any thing cut off or limit the response length in conversation chain? The model parameter about max_new_tokens I set as 4096, so I don't think that is caused by the model.
<img width="1589" alt="截屏2023-11-29 15 47 33" src="https://github.com/langchain-ai/langchain/assets/27841780/34eb62c5-ce1f-4296-9ff8-6298c0c031d6">
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14015/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14015/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14014 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14014/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14014/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14014/events | https://github.com/langchain-ai/langchain/issues/14014 | 2,016,000,077 | I_kwDOIPDwls54KbhN | 14,014 | UserWarning: WARNING! repetition_penalty is not default parameter. | {
"login": "weissenbacherpwc",
"id": 148848330,
"node_id": "U_kgDOCN8-yg",
"avatar_url": "https://avatars.githubusercontent.com/u/148848330?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/weissenbacherpwc",
"html_url": "https://github.com/weissenbacherpwc",
"followers_url": "https://api.github.com/users/weissenbacherpwc/followers",
"following_url": "https://api.github.com/users/weissenbacherpwc/following{/other_user}",
"gists_url": "https://api.github.com/users/weissenbacherpwc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/weissenbacherpwc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/weissenbacherpwc/subscriptions",
"organizations_url": "https://api.github.com/users/weissenbacherpwc/orgs",
"repos_url": "https://api.github.com/users/weissenbacherpwc/repos",
"events_url": "https://api.github.com/users/weissenbacherpwc/events{/privacy}",
"received_events_url": "https://api.github.com/users/weissenbacherpwc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-11-29T07:43:04 | 2023-11-29T07:49:15 | null | NONE | null | ### Issue you'd like to raise.
Hi,
I am using Langchain and LlamaCpp to load my models.
I have set "`mirostat`" and "`repitition_penalty`" in my model params and recently I am getting the following UserWarning:
```
UserWarning: WARNING! repetition_penalty is not default parameter.
repetition_penalty was transferred to model_kwargs.
Please confirm that repetition_penalty is what you intended.
```
and
```
UserWarning: WARNING! mirostat is not default parameter.
mirostat was transferred to model_kwargs.
Please confirm that mirostat is what you intended.
```
Here is my code:
```
import box
import yaml
from langchain.llms import LlamaCpp
from langchain.callbacks.manager import CallbackManager
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
def build_llm(model_path):
callback_manager = CallbackManager([StreamingStdOutCallbackHandler()])
n_gpu_layers = 1 # Metal set to 1 is enough.
n_batch = 512 # Should be between 1 and n_ctx, consider the amount of RAM of your Apple Silicon Chip.
if model_path == "/Users/mweissenba001/Documents/llama2/llama.cpp/models/7B/ggml-model-q4_0.bin":
context_size = 4000
if model_path == "/Users/mweissenba001/Documents/rag_example/Modelle/llama-2-13b-german-assistant-v2.Q5_K_M.gguf":
context_size = 4000
else:
context_size = 7000
llm = LlamaCpp(
max_tokens =cfg.MAX_TOKENS,
model_path=model_path,
temperature=cfg.TEMPERATURE,
f16_kv=True,
n_ctx=context_size, # 8k aber mann muss Platz lassen für Instruction, History etc.
n_gpu_layers=n_gpu_layers,
n_batch=n_batch,
callback_manager=callback_manager,
verbose=True, # Verbose is required to pass to the callback manager
top_p=0.75,
top_k=40,
repetition_penalty=1.1,
mirostat = 2,
)
return llm
llm = build_llm(model_path)
```
My current Langchain Version is:
`langchain-0.0.339`
Upgrading to `langchain-0.0.341` didn't help.
So what do I have to do to prevent the warnings? Where in model_kwargs to I have to set mirostat and repitition_penalty?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14014/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14014/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14013 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14013/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14013/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14013/events | https://github.com/langchain-ai/langchain/pull/14013 | 2,015,983,437 | PR_kwDOIPDwls5gowxf | 14,013 | Mask API key for ForeFrontAI LLM | {
"login": "mmahmad",
"id": 4930049,
"node_id": "MDQ6VXNlcjQ5MzAwNDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/4930049?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mmahmad",
"html_url": "https://github.com/mmahmad",
"followers_url": "https://api.github.com/users/mmahmad/followers",
"following_url": "https://api.github.com/users/mmahmad/following{/other_user}",
"gists_url": "https://api.github.com/users/mmahmad/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mmahmad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mmahmad/subscriptions",
"organizations_url": "https://api.github.com/users/mmahmad/orgs",
"repos_url": "https://api.github.com/users/mmahmad/repos",
"events_url": "https://api.github.com/users/mmahmad/events{/privacy}",
"received_events_url": "https://api.github.com/users/mmahmad/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-29T07:30:37 | 2023-11-29T21:12:20 | 2023-11-29T21:12:20 | CONTRIBUTOR | null | - **Description:** Mask API key for ForeFrontAI LLM and associated unit tests
- **Issue:** https://github.com/langchain-ai/langchain/issues/12165
- **Dependencies:** N/A
- **Tag maintainer:** @eyurtsev
- **Twitter handle:** `__mmahmad__`
I made the API key non-optional since linting required adding validation for None, but the key is required per documentation: https://python.langchain.com/docs/integrations/llms/forefrontai
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14013/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14013/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14013",
"html_url": "https://github.com/langchain-ai/langchain/pull/14013",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14013.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14013.patch",
"merged_at": "2023-11-29T21:12:20"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14012 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14012/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14012/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14012/events | https://github.com/langchain-ai/langchain/pull/14012 | 2,015,977,646 | PR_kwDOIPDwls5govhj | 14,012 | Added Slacktoolkit | {
"login": "ZyeG",
"id": 97558871,
"node_id": "U_kgDOBdChVw",
"avatar_url": "https://avatars.githubusercontent.com/u/97558871?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ZyeG",
"html_url": "https://github.com/ZyeG",
"followers_url": "https://api.github.com/users/ZyeG/followers",
"following_url": "https://api.github.com/users/ZyeG/following{/other_user}",
"gists_url": "https://api.github.com/users/ZyeG/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ZyeG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ZyeG/subscriptions",
"organizations_url": "https://api.github.com/users/ZyeG/orgs",
"repos_url": "https://api.github.com/users/ZyeG/repos",
"events_url": "https://api.github.com/users/ZyeG/events{/privacy}",
"received_events_url": "https://api.github.com/users/ZyeG/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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-11-29T07:26:07 | 2023-12-03T18:25:38 | 2023-12-03T18:25:38 | CONTRIBUTOR | null | - **Description:**
This PR introduces the Slack toolkit to LangChain, which allows users to read and write to Slack using the Slack API. Specifically, we've added the following tools.
1. get_channel: Provides a summary of all the channels in a workspace.
2. get_message: Gets the message history of a channel.
3. send_message: Sends a message to a channel.
4. schedule_message: Sends a message to a channel at a specific time and date.
- **Issue:** This pull request addresses [Add Slack Toolkit #11747](https://github.com/langchain-ai/langchain/issues/11747)
- **Dependencies:** package`slack_sdk`
Note: For this toolkit to function you will need to add a Slack app to your workspace. Additional info can be found [here](https://slack.com/help/articles/202035138-Add-apps-to-your-Slack-workspace). | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14012/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14012/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14012",
"html_url": "https://github.com/langchain-ai/langchain/pull/14012",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14012.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14012.patch",
"merged_at": "2023-12-03T18:25:38"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14011 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14011/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14011/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14011/events | https://github.com/langchain-ai/langchain/pull/14011 | 2,015,973,257 | PR_kwDOIPDwls5goukv | 14,011 | Update MLflow and Databricks docs | {
"login": "harupy",
"id": 17039389,
"node_id": "MDQ6VXNlcjE3MDM5Mzg5",
"avatar_url": "https://avatars.githubusercontent.com/u/17039389?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/harupy",
"html_url": "https://github.com/harupy",
"followers_url": "https://api.github.com/users/harupy/followers",
"following_url": "https://api.github.com/users/harupy/following{/other_user}",
"gists_url": "https://api.github.com/users/harupy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/harupy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harupy/subscriptions",
"organizations_url": "https://api.github.com/users/harupy/orgs",
"repos_url": "https://api.github.com/users/harupy/repos",
"events_url": "https://api.github.com/users/harupy/events{/privacy}",
"received_events_url": "https://api.github.com/users/harupy/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-11-29T07:22:38 | 2023-12-04T00:07:09 | 2023-12-04T00:07:09 | 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.
-->
Depends on #13699. Updates the existing mlflow and databricks examples. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14011/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14011/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14011",
"html_url": "https://github.com/langchain-ai/langchain/pull/14011",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14011.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14011.patch",
"merged_at": "2023-12-04T00:07:09"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14010 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14010/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14010/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14010/events | https://github.com/langchain-ai/langchain/pull/14010 | 2,015,900,454 | PR_kwDOIPDwls5goe7w | 14,010 | feat: mask api_key for konko | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | {
"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 | 3 | 2023-11-29T06:22:43 | 2024-01-01T21:42:49 | 2024-01-01T21:42:49 | CONTRIBUTOR | null | for https://github.com/langchain-ai/langchain/issues/12165 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14010/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14010/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14010",
"html_url": "https://github.com/langchain-ai/langchain/pull/14010",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14010.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14010.patch",
"merged_at": "2024-01-01T21:42:49"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14009 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14009/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14009/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14009/events | https://github.com/langchain-ai/langchain/pull/14009 | 2,015,863,033 | PR_kwDOIPDwls5goW0m | 14,009 | Ziqian/doc intelligence | {
"login": "zifeiq",
"id": 7711036,
"node_id": "MDQ6VXNlcjc3MTEwMzY=",
"avatar_url": "https://avatars.githubusercontent.com/u/7711036?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zifeiq",
"html_url": "https://github.com/zifeiq",
"followers_url": "https://api.github.com/users/zifeiq/followers",
"following_url": "https://api.github.com/users/zifeiq/following{/other_user}",
"gists_url": "https://api.github.com/users/zifeiq/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zifeiq/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zifeiq/subscriptions",
"organizations_url": "https://api.github.com/users/zifeiq/orgs",
"repos_url": "https://api.github.com/users/zifeiq/repos",
"events_url": "https://api.github.com/users/zifeiq/events{/privacy}",
"received_events_url": "https://api.github.com/users/zifeiq/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": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-29T05:46:55 | 2023-11-29T05:59:51 | 2023-11-29T05:59:51 | CONTRIBUTOR | null | - **Description:**
Add DocumentIntelligenceLoader & DocumentIntelligenceParser implementation using the latest Azure Document Intelligence SDK with markdown support.
The core logic resides in DocumentIntelligenceParser and DocumentIntelligenceLoader is a mere wrapper of the parser.
The parser will takes api_endpoint and api_key and creates DocumentIntelligenceClient for the user. 4 parsing modes are supported:
1. Markdown (default)
2. Single
3. Page
4. Object
UT and notebook are also updated accordingly.
- **Dependencies:** Azure Document Intelligence SDK: azure-ai-documentintelligence [azure-sdk-for-python/sdk/documentintelligence/azure-ai-documentintelligence at 7c42462ac662522a6fd21b17d2a20f4cd40d0356 · Azure/azure-sdk-for-python (github.com)](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-sdk-for-python%2Ftree%2F7c42462ac662522a6fd21b17d2a20f4cd40d0356%2Fsdk%2Fdocumentintelligence%2Fazure-ai-documentintelligence&data=05%7C01%7CZifei.Qian%40microsoft.com%7C298225aa3e31468a863108dbf07374ff%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638368150928704292%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=oE0Sl4HERnMKdbkV9KgBV46Z2xytcQAShdTWf7ZNl%2Bs%3D&reserved=0). | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14009/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14009/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14009",
"html_url": "https://github.com/langchain-ai/langchain/pull/14009",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14009.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14009.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14008 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14008/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14008/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14008/events | https://github.com/langchain-ai/langchain/pull/14008 | 2,015,844,460 | PR_kwDOIPDwls5goSxx | 14,008 | Add: Steam API tool | {
"login": "muntaqamahmood",
"id": 69706702,
"node_id": "MDQ6VXNlcjY5NzA2NzAy",
"avatar_url": "https://avatars.githubusercontent.com/u/69706702?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/muntaqamahmood",
"html_url": "https://github.com/muntaqamahmood",
"followers_url": "https://api.github.com/users/muntaqamahmood/followers",
"following_url": "https://api.github.com/users/muntaqamahmood/following{/other_user}",
"gists_url": "https://api.github.com/users/muntaqamahmood/gists{/gist_id}",
"starred_url": "https://api.github.com/users/muntaqamahmood/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/muntaqamahmood/subscriptions",
"organizations_url": "https://api.github.com/users/muntaqamahmood/orgs",
"repos_url": "https://api.github.com/users/muntaqamahmood/repos",
"events_url": "https://api.github.com/users/muntaqamahmood/events{/privacy}",
"received_events_url": "https://api.github.com/users/muntaqamahmood/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-29T05:26:39 | 2023-12-04T20:38:30 | 2023-12-04T20:27:39 | CONTRIBUTOR | null | - **Description:** Our PR is an integration of a Steam API Tool that makes recommendations on steam games based on user's Steam profile and provides information on games based on user provided queries.
- **Issue:** the issue # our PR implements: https://github.com/langchain-ai/langchain/issues/12120
- **Dependencies:** python-steam-api library, steamspypi library and decouple library
- **Tag maintainer:** @baskaryan, @hwchase17
- **Twitter handle:** N/A
Hello langchain Maintainers,
We are a team of 4 University of Toronto students contributing to langchain as part of our course [CSCD01 (link to course page)](https://cscd01.com/work/open-source-project). We hope our changes help the community. We have run make format, make lint and make test locally before submitting the PR. To our knowledge, our changes do not introduce any new errors.
Our PR integrates the python-steam-api, steamspypi and decouple packages. We have added integration tests to test our python API integration into langchain and an example notebook is also provided.
Our amazing team that contributed to this PR: @JohnY2002, @shenceyang, @andrewqian2001 and @muntaqamahmood
Thank you in advance to all the maintainers for reviewing our PR!
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14008/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14008/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14008",
"html_url": "https://github.com/langchain-ai/langchain/pull/14008",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14008.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14008.patch",
"merged_at": "2023-12-04T20:27:38"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14007 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14007/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14007/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14007/events | https://github.com/langchain-ai/langchain/pull/14007 | 2,015,842,256 | PR_kwDOIPDwls5goSTW | 14,007 | add validation error handler to `BaseTool` | {
"login": "hmasdev",
"id": 73353463,
"node_id": "MDQ6VXNlcjczMzUzNDYz",
"avatar_url": "https://avatars.githubusercontent.com/u/73353463?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hmasdev",
"html_url": "https://github.com/hmasdev",
"followers_url": "https://api.github.com/users/hmasdev/followers",
"following_url": "https://api.github.com/users/hmasdev/following{/other_user}",
"gists_url": "https://api.github.com/users/hmasdev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hmasdev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hmasdev/subscriptions",
"organizations_url": "https://api.github.com/users/hmasdev/orgs",
"repos_url": "https://api.github.com/users/hmasdev/repos",
"events_url": "https://api.github.com/users/hmasdev/events{/privacy}",
"received_events_url": "https://api.github.com/users/hmasdev/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | {
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-11-29T05:24:16 | 2023-12-20T16:59:42 | null | 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:** add a ValidationError handler as a field of [`BaseTool`](https://github.com/langchain-ai/langchain/blob/master/libs/core/langchain_core/tools.py#L101) and add unit tests for the code change.
- **Issue:** #12721 #13662
- **Dependencies:** None
- **Tag maintainer:**
- **Twitter handle:** @hmdev3
- **NOTE:**
- I'm wondering if the update of document is required.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14007/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14007/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14007",
"html_url": "https://github.com/langchain-ai/langchain/pull/14007",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14007.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14007.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14006 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14006/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14006/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14006/events | https://github.com/langchain-ai/langchain/pull/14006 | 2,015,820,668 | PR_kwDOIPDwls5goNsX | 14,006 | doc: update langchain version for mongodb integration | {
"login": "whitedogg13",
"id": 10307875,
"node_id": "MDQ6VXNlcjEwMzA3ODc1",
"avatar_url": "https://avatars.githubusercontent.com/u/10307875?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/whitedogg13",
"html_url": "https://github.com/whitedogg13",
"followers_url": "https://api.github.com/users/whitedogg13/followers",
"following_url": "https://api.github.com/users/whitedogg13/following{/other_user}",
"gists_url": "https://api.github.com/users/whitedogg13/gists{/gist_id}",
"starred_url": "https://api.github.com/users/whitedogg13/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/whitedogg13/subscriptions",
"organizations_url": "https://api.github.com/users/whitedogg13/orgs",
"repos_url": "https://api.github.com/users/whitedogg13/repos",
"events_url": "https://api.github.com/users/whitedogg13/events{/privacy}",
"received_events_url": "https://api.github.com/users/whitedogg13/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-11-29T04:59:14 | 2023-11-29T05:20:31 | 2023-11-29T05:20:31 | CONTRIBUTOR | null | - **Description:** update minimal supported langchain version for [mongodb atlast integration webpage](https://python.langchain.com/docs/integrations/vectorstores/mongodb_atlas)
- **Issue:** none
- **Dependencies:** none
-----
Just fixing a typo.
In [mongodb atlas vectorstore integration page](https://python.langchain.com/docs/integrations/vectorstores/mongodb_atlas), `langchain` support for `$vectorSearch MQL stage` should be `0.0.305` rather than `0.0.35` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14006/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14006/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14006",
"html_url": "https://github.com/langchain-ai/langchain/pull/14006",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14006.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14006.patch",
"merged_at": "2023-11-29T05:20:31"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14004 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14004/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14004/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14004/events | https://github.com/langchain-ai/langchain/pull/14004 | 2,015,734,904 | PR_kwDOIPDwls5gn6-2 | 14,004 | Improve file system blob loader and generic loader | {
"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": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-29T03:31:24 | 2023-12-02T02:23:42 | 2023-12-02T02:23:41 | COLLABORATOR | null | * Add support for passing a specific file to the file system blob loader
* Allow specifying a class parameter for the parser for the generic loader
```python
class AudioLoader(GenericLoader):
@staticmethod
def get_parser(**kwargs):
return MyAudioParser(**kwargs):
```
The intent of the GenericLoader is to provide on-ramps from different sources (e.g., web, s3, file system).
An alternative is to use pipelining syntax or creating a Pipeline
```
FileSystemBlobLoader(...) | MyAudioParser
```
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14004/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14004/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14004",
"html_url": "https://github.com/langchain-ai/langchain/pull/14004",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14004.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14004.patch",
"merged_at": "2023-12-02T02:23:41"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14003 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14003/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14003/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14003/events | https://github.com/langchain-ai/langchain/issues/14003 | 2,015,715,132 | I_kwDOIPDwls54JV88 | 14,003 | `Rephrase and Respond` | {
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-11-29T03:12:45 | 2023-11-29T03:13:07 | null | COLLABORATOR | null | ### Feature request
[Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselves](https://arxiv.org/abs/2311.04205)
",,,RaR is complementary to CoT and can be combined with CoT to achieve even better performance,,,"
- interesting prompt technique.
Could be implemented with LangChain.
### Motivation
to make LangChain more powerful?
### Your contribution
I can help with documentation | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14003/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14003/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14002 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14002/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14002/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14002/events | https://github.com/langchain-ai/langchain/pull/14002 | 2,015,704,071 | PR_kwDOIPDwls5gn0Q3 | 14,002 | Adding new StackExchange API integration | {
"login": "SauhaardW",
"id": 51324450,
"node_id": "MDQ6VXNlcjUxMzI0NDUw",
"avatar_url": "https://avatars.githubusercontent.com/u/51324450?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SauhaardW",
"html_url": "https://github.com/SauhaardW",
"followers_url": "https://api.github.com/users/SauhaardW/followers",
"following_url": "https://api.github.com/users/SauhaardW/following{/other_user}",
"gists_url": "https://api.github.com/users/SauhaardW/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SauhaardW/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SauhaardW/subscriptions",
"organizations_url": "https://api.github.com/users/SauhaardW/orgs",
"repos_url": "https://api.github.com/users/SauhaardW/repos",
"events_url": "https://api.github.com/users/SauhaardW/events{/privacy}",
"received_events_url": "https://api.github.com/users/SauhaardW/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-11-29T02:59:00 | 2023-11-29T18:32:07 | 2023-11-29T18:32:07 | CONTRIBUTOR | null | Implements [#12115](https://github.com/langchain-ai/langchain/issues/12115)
Who can review?
@baskaryan , @eyurtsev , @hwchase17
Integrated Stack Exchange API into Langchain, enabling access to diverse communities within the platform. This addition enhances Langchain's capabilities by allowing users to query Stack Exchange for specialized information and engage in discussions. The integration provides seamless interaction with Stack Exchange content, offering content from varied knowledge repositories.
A notebook example and test cases were included to demonstrate the functionality and reliability of this integration.
- Add StackExchange as a tool.
- Add unit test for the StackExchange wrapper and tool.
- Add documentation for the StackExchange wrapper and tool.
If you have time, could you please review the code and provide any feedback as necessary! My team is welcome to any suggestions. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14002/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14002/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14002",
"html_url": "https://github.com/langchain-ai/langchain/pull/14002",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14002.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14002.patch",
"merged_at": "2023-11-29T18:32:07"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14001 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14001/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14001/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14001/events | https://github.com/langchain-ai/langchain/pull/14001 | 2,015,649,856 | PR_kwDOIPDwls5gnou8 | 14,001 | docs `OpenAI` platform page update | {
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-29T01:56:56 | 2023-11-29T16:36:49 | 2023-11-29T03:08:21 | COLLABORATOR | null | Missed the OpenAI adapter reference in the OpenAI platform page
- Added this reference
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14001/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14001/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14001",
"html_url": "https://github.com/langchain-ai/langchain/pull/14001",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14001.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14001.patch",
"merged_at": "2023-11-29T03:08:21"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14000 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14000/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14000/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14000/events | https://github.com/langchain-ai/langchain/pull/14000 | 2,015,636,725 | PR_kwDOIPDwls5gnlyx | 14,000 | docs `microsoft` page updates | {
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-29T01:46:40 | 2023-11-29T16:38:16 | 2023-11-29T03:20:22 | COLLABORATOR | null | The Excel, PowerPoint and SharePoint document loaders were missed in the `Microsoft` platform page.
- added these references | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14000/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14000/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14000",
"html_url": "https://github.com/langchain-ai/langchain/pull/14000",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14000.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14000.patch",
"merged_at": "2023-11-29T03:20:22"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13999 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13999/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13999/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13999/events | https://github.com/langchain-ai/langchain/pull/13999 | 2,015,599,617 | PR_kwDOIPDwls5gnd6v | 13,999 | New model parameters and dynamic batching for VertexAIEmbeddings | {
"login": "vladkol",
"id": 4735184,
"node_id": "MDQ6VXNlcjQ3MzUxODQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/4735184?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vladkol",
"html_url": "https://github.com/vladkol",
"followers_url": "https://api.github.com/users/vladkol/followers",
"following_url": "https://api.github.com/users/vladkol/following{/other_user}",
"gists_url": "https://api.github.com/users/vladkol/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vladkol/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vladkol/subscriptions",
"organizations_url": "https://api.github.com/users/vladkol/orgs",
"repos_url": "https://api.github.com/users/vladkol/repos",
"events_url": "https://api.github.com/users/vladkol/events{/privacy}",
"received_events_url": "https://api.github.com/users/vladkol/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 6 | 2023-11-29T00:59:13 | 2023-12-18T03:24:22 | 2023-12-18T03:24:22 | CONTRIBUTOR | null | - **Description:** VertexAIEmbeddings performance improvements
- **Twitter handle:** @vladkol
## Improvements
- Dynamic batch size, starting from 250, lowering down to 5. Batch size varies across regions.
Some regions support larger batches, and it significantly improves performance.
When running large batches of texts in `us-central1`, performance gain can be up to 3.5x.
The dynamic batching also makes sure every batch is below 20K token limit.
- New model parameter `embeddings_type` that translates to `task_type` parameter of the API. Newer model versions support [different embeddings task types](https://cloud.google.com/vertex-ai/docs/generative-ai/embeddings/get-text-embeddings#api_changes_to_models_released_on_or_after_august_2023).
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13999/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13999/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13999",
"html_url": "https://github.com/langchain-ai/langchain/pull/13999",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13999.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13999.patch",
"merged_at": "2023-12-18T03:24:22"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13998 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13998/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13998/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13998/events | https://github.com/langchain-ai/langchain/pull/13998 | 2,015,591,587 | PR_kwDOIPDwls5gncQZ | 13,998 | infra[patch]: add base deps | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-29T00:49:05 | 2023-11-29T01:27:38 | 2023-11-29T01:27:38 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13998/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13998/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13998",
"html_url": "https://github.com/langchain-ai/langchain/pull/13998",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13998.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13998.patch",
"merged_at": "2023-11-29T01:27:38"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13997 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13997/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13997/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13997/events | https://github.com/langchain-ai/langchain/pull/13997 | 2,015,588,257 | PR_kwDOIPDwls5gnbiT | 13,997 | docs[patch]: format notebooks | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-29T00:44:46 | 2023-11-29T01:06:35 | 2023-11-29T01:06:35 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13997/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13997/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13997",
"html_url": "https://github.com/langchain-ai/langchain/pull/13997",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13997.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13997.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13996 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13996/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13996/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13996/events | https://github.com/langchain-ai/langchain/pull/13996 | 2,015,580,629 | PR_kwDOIPDwls5gnZ5d | 13,996 | Adding Initial Support for NVIDIA AI Playground LLMs | {
"login": "VKudlay",
"id": 32310964,
"node_id": "MDQ6VXNlcjMyMzEwOTY0",
"avatar_url": "https://avatars.githubusercontent.com/u/32310964?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/VKudlay",
"html_url": "https://github.com/VKudlay",
"followers_url": "https://api.github.com/users/VKudlay/followers",
"following_url": "https://api.github.com/users/VKudlay/following{/other_user}",
"gists_url": "https://api.github.com/users/VKudlay/gists{/gist_id}",
"starred_url": "https://api.github.com/users/VKudlay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/VKudlay/subscriptions",
"organizations_url": "https://api.github.com/users/VKudlay/orgs",
"repos_url": "https://api.github.com/users/VKudlay/repos",
"events_url": "https://api.github.com/users/VKudlay/events{/privacy}",
"received_events_url": "https://api.github.com/users/VKudlay/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
] | null | 8 | 2023-11-29T00:37:25 | 2023-12-14T05:26:02 | 2023-12-14T05:25:58 | CONTRIBUTOR | null | - **Description:** Added NVIDIA AI Playground Initial support for a selection of models (Llama models, Mistral, etc.)
- **Dependencies:** These models do depend on the AI Playground services in NVIDIA NGC. API keys with a significant amount of trial compute are available (10K queries as of the time of writing).
- Some additional tests can be ran in [this colab notebook](https://colab.research.google.com/drive/1I2xcp8Mq1x36BizAlzRCYDsEbCiQqRBL#revisionId=0B3KSICnsqLpGNHJVWTlVN1E4YkZyR3JLNG1yOG8xUDVkU0VvPQ)
- [A quick link to get a key](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/ai-foundation/models/codellama-13b/api) when you have an NGC account. Generate Key button at the top right of the code window.
Thanks so much for the help, and please let me know if you need anything :D | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13996/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13996/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13996",
"html_url": "https://github.com/langchain-ai/langchain/pull/13996",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13996.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13996.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13995 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13995/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13995/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13995/events | https://github.com/langchain-ai/langchain/issues/13995 | 2,015,551,448 | I_kwDOIPDwls54It_Y | 13,995 | DOC: streamlit memory parameters - memory_key and chat_history | {
"login": "annachrome",
"id": 84694222,
"node_id": "MDQ6VXNlcjg0Njk0MjIy",
"avatar_url": "https://avatars.githubusercontent.com/u/84694222?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/annachrome",
"html_url": "https://github.com/annachrome",
"followers_url": "https://api.github.com/users/annachrome/followers",
"following_url": "https://api.github.com/users/annachrome/following{/other_user}",
"gists_url": "https://api.github.com/users/annachrome/gists{/gist_id}",
"starred_url": "https://api.github.com/users/annachrome/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/annachrome/subscriptions",
"organizations_url": "https://api.github.com/users/annachrome/orgs",
"repos_url": "https://api.github.com/users/annachrome/repos",
"events_url": "https://api.github.com/users/annachrome/events{/privacy}",
"received_events_url": "https://api.github.com/users/annachrome/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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] | open | false | null | [] | null | 2 | 2023-11-29T00:14:13 | 2024-01-16T07:22:05 | null | NONE | null | ### Issue with current documentation:
Streamlit tutorial suggests
```
from langchain.memory import ConversationBufferMemory
from langchain.memory.chat_message_histories import StreamlitChatMessageHistory
# Optionally, specify your own session_state key for storing messages
msgs = StreamlitChatMessageHistory(key="special_app_key")
memory = ConversationBufferMemory(memory_key="history", chat_memory=msgs)
if len(msgs.messages) == 0:
msgs.add_ai_message("How can I help you?")
```
but in version 0.340, definition of ConversationBufferMemory only includes parameter memory_key but not chat_history.
I have noticed my model outputs being less accurate for the same script when streamlit is incorporated and I suspect this is the issue.
### Idea or request for content:
Please clarify how to best implement Streamlit with chat history. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13995/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13995/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13994 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13994/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13994/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13994/events | https://github.com/langchain-ai/langchain/issues/13994 | 2,015,530,321 | I_kwDOIPDwls54Io1R | 13,994 | SQLDatabaseChain returning Question and SQL Query instead of answer | {
"login": "NivedhaBalakrishnan",
"id": 50318272,
"node_id": "MDQ6VXNlcjUwMzE4Mjcy",
"avatar_url": "https://avatars.githubusercontent.com/u/50318272?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NivedhaBalakrishnan",
"html_url": "https://github.com/NivedhaBalakrishnan",
"followers_url": "https://api.github.com/users/NivedhaBalakrishnan/followers",
"following_url": "https://api.github.com/users/NivedhaBalakrishnan/following{/other_user}",
"gists_url": "https://api.github.com/users/NivedhaBalakrishnan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NivedhaBalakrishnan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NivedhaBalakrishnan/subscriptions",
"organizations_url": "https://api.github.com/users/NivedhaBalakrishnan/orgs",
"repos_url": "https://api.github.com/users/NivedhaBalakrishnan/repos",
"events_url": "https://api.github.com/users/NivedhaBalakrishnan/events{/privacy}",
"received_events_url": "https://api.github.com/users/NivedhaBalakrishnan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 2 | 2023-11-28T23:56:36 | 2023-11-29T07:46:50 | null | NONE | null | ### System Info
Code
db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True, return_sql=False, use_query_checker=True, prompt=prompt_template)
db_chain.run("What are some recently added dockets and their title?")
Verbose
> Entering new SQLDatabaseChain chain...
What are some recently added dockets and their title?
SQLQuery:SELECT id, title, modifyDate FROM docket ORDER BY modifyDate DESC LIMIT 5;
SQLResult: [('CMS-2023-0184', 'CY 2024 Inpatient Hospital Deductible and Hospital and Extended Care Services Coinsurance Amounts. CMS-8083-N', datetime.datetime(2023, 11, 1, 15, 34, 1)), ('CMS-2023-0183', '(CMS-10143) State Data for the Medicare Modernization Act (MMA)', datetime.datetime(2023, 11, 1, 10, 34, 24)), ('CMS-2023-0181', 'CHIP State Plan Eligibility (CMS-10398 #17)', datetime.datetime(2023, 11, 1, 10, 25, 35)), ('CMS-2023-0182', '(CMS-10434 #77) Medicaid and Continuous Eligibility for Children', datetime.datetime(2023, 11, 1, 10, 24, 56)), ('CMS-2023-0180', 'Virtual Groups for Merit Based Incentive Payment System (MIPS) (CMS-10652)', datetime.datetime(2023, 10, 31, 13, 8, 24))]
Answer:SELECT id, title, modifyDate FROM docket ORDER BY modifyDate DESC LIMIT 5;
> Finished chain.
Output:
'SELECT id, title, modifyDate FROM docket ORDER BY modifyDate DESC LIMIT 5;'
The chain is not returning the SQLResult in the chat format even though the query is executed correctly.
### 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
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
prompt_suffix = """
If asked for recent dockets, give 5 most recent ones.
Make sure the table name is in the database.
Table name: docket,
Use only these columns when selecting: id, title, modifyDate
"""
prompt_template = PromptTemplate.from_template(prompt_suffix)
db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True, return_sql=False, use_query_checker=True, prompt=prompt_template)
db_chain.run("What are some recently added dockets and their title?")
### Expected behavior
Example output:
The recently added dockets with their dates are:\n\n* CMS-2023-0181 - CY 2024 Inpatient Hospital Deductible and Hospital and Extended Care Services Coinsurance Amounts (November 1st, 2023' | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13994/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13994/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13993 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13993/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13993/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13993/events | https://github.com/langchain-ai/langchain/pull/13993 | 2,015,428,659 | PR_kwDOIPDwls5gm4vH | 13,993 | langchain[patch]: contributing test guide 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"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T22:25:22 | 2023-11-28T22:41:48 | 2023-11-28T22:38:12 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13993/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13993/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13993",
"html_url": "https://github.com/langchain-ai/langchain/pull/13993",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13993.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13993.patch",
"merged_at": "2023-11-28T22:38:12"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13992 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13992/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13992/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13992/events | https://github.com/langchain-ai/langchain/pull/13992 | 2,015,422,327 | PR_kwDOIPDwls5gm3Ts | 13,992 | langchain[patch]: release 0.0.342 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T22:20:36 | 2023-11-28T22:34:58 | 2023-11-28T22:34:57 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13992/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13992/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13992",
"html_url": "https://github.com/langchain-ai/langchain/pull/13992",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13992.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13992.patch",
"merged_at": "2023-11-28T22:34:57"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13991 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13991/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13991/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13991/events | https://github.com/langchain-ai/langchain/pull/13991 | 2,015,418,521 | PR_kwDOIPDwls5gm2fB | 13,991 | Add MongoDB database agent | {
"login": "amiaxys",
"id": 70973560,
"node_id": "MDQ6VXNlcjcwOTczNTYw",
"avatar_url": "https://avatars.githubusercontent.com/u/70973560?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/amiaxys",
"html_url": "https://github.com/amiaxys",
"followers_url": "https://api.github.com/users/amiaxys/followers",
"following_url": "https://api.github.com/users/amiaxys/following{/other_user}",
"gists_url": "https://api.github.com/users/amiaxys/gists{/gist_id}",
"starred_url": "https://api.github.com/users/amiaxys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amiaxys/subscriptions",
"organizations_url": "https://api.github.com/users/amiaxys/orgs",
"repos_url": "https://api.github.com/users/amiaxys/repos",
"events_url": "https://api.github.com/users/amiaxys/events{/privacy}",
"received_events_url": "https://api.github.com/users/amiaxys/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | 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 | 3 | 2023-11-28T22:17:08 | 2023-11-30T03:48:52 | 2023-11-30T03:28:15 | 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.
-->
**Description:** Created an agent designed to interact with and query a `MongoDB` database using PyMongo. The agent is very similar to [SQL Database](https://python.langchain.com/docs/integrations/toolkits/sql_database). Currently, it only supports one database per instance `MongoDatabase` class using URI, and the database name must be appended to the end of the URI.
See `docs/docs/integrations/toolkits/mongo_database.ipynb` for an example of usage.
**Note:** To run PyMongo queries, it checks the input string using regex that it follows the `db.collection.find ...` format and runs it using `eval()`, which is bad practice and may be dangerous (if anyone finds a better solution, feel free change that). Additionally, the tests pass locally due to having MongoDB installed since the tests use the `tmp/mongodb-27017.sock` Unix socket, but do not pass Github Actions test workflows for the same reason, and since we weren't sure whether it would be good practice to edit the workflow and haven't figured out a good way to mock PyMongo's MongoClient/Database that isn't unnecessarily complex or makes the unit tests superficial, we left it as is.
**Issue:** Closes [Connection with mongo db #3399](https://github.com/langchain-ai/langchain/issues/3399)
**Dependencies:** pymongo (dependency already existed, but changed from optional to not) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13991/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13991/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13991",
"html_url": "https://github.com/langchain-ai/langchain/pull/13991",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13991.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13991.patch",
"merged_at": "2023-11-30T03:28:15"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13990 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13990/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13990/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13990/events | https://github.com/langchain-ai/langchain/pull/13990 | 2,015,406,147 | PR_kwDOIPDwls5gmz68 | 13,990 | fix docs build | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T22:07:12 | 2023-11-28T22:36:23 | 2023-11-28T22:36:22 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13990/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13990/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13990",
"html_url": "https://github.com/langchain-ai/langchain/pull/13990",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13990.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13990.patch",
"merged_at": "2023-11-28T22:36:22"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13989 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13989/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13989/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13989/events | https://github.com/langchain-ai/langchain/pull/13989 | 2,015,383,523 | PR_kwDOIPDwls5gmu4k | 13,989 | core[patch]: release 0.0.7 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T21:51:15 | 2023-12-01T14:45:30 | 2023-11-28T22:05:01 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13989/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13989/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13989",
"html_url": "https://github.com/langchain-ai/langchain/pull/13989",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13989.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13989.patch",
"merged_at": "2023-11-28T22:05:01"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13988 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13988/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13988/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13988/events | https://github.com/langchain-ai/langchain/pull/13988 | 2,015,381,570 | PR_kwDOIPDwls5gmubp | 13,988 | Audio file loader implemented with Azure speech service | {
"login": "kzmain",
"id": 18718740,
"node_id": "MDQ6VXNlcjE4NzE4NzQw",
"avatar_url": "https://avatars.githubusercontent.com/u/18718740?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kzmain",
"html_url": "https://github.com/kzmain",
"followers_url": "https://api.github.com/users/kzmain/followers",
"following_url": "https://api.github.com/users/kzmain/following{/other_user}",
"gists_url": "https://api.github.com/users/kzmain/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kzmain/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kzmain/subscriptions",
"organizations_url": "https://api.github.com/users/kzmain/orgs",
"repos_url": "https://api.github.com/users/kzmain/repos",
"events_url": "https://api.github.com/users/kzmain/events{/privacy}",
"received_events_url": "https://api.github.com/users/kzmain/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": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | {
"login": "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
},
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-11-28T21:50:20 | 2023-12-31T16:03:57 | null | NONE | null | <!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** Audio file loader implemented with Azure speech service
- **Issue:** No,
- **Dependencies:** azure-cognitiveservices-speech,
- **Tag maintainer:** kzmain (see below),
- **Twitter handle:** @kzmain (Same id as the github) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13988/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13988/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13988",
"html_url": "https://github.com/langchain-ai/langchain/pull/13988",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13988.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13988.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13987 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13987/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13987/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13987/events | https://github.com/langchain-ai/langchain/issues/13987 | 2,015,378,058 | I_kwDOIPDwls54IDqK | 13,987 | Issue: Introduce Pinecone into my PDF reader LLM | {
"login": "ZinanYang1995",
"id": 149815088,
"node_id": "U_kgDOCO3_MA",
"avatar_url": "https://avatars.githubusercontent.com/u/149815088?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ZinanYang1995",
"html_url": "https://github.com/ZinanYang1995",
"followers_url": "https://api.github.com/users/ZinanYang1995/followers",
"following_url": "https://api.github.com/users/ZinanYang1995/following{/other_user}",
"gists_url": "https://api.github.com/users/ZinanYang1995/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ZinanYang1995/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ZinanYang1995/subscriptions",
"organizations_url": "https://api.github.com/users/ZinanYang1995/orgs",
"repos_url": "https://api.github.com/users/ZinanYang1995/repos",
"events_url": "https://api.github.com/users/ZinanYang1995/events{/privacy}",
"received_events_url": "https://api.github.com/users/ZinanYang1995/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": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
}
] | open | false | null | [] | null | 2 | 2023-11-28T21:48:49 | 2023-11-28T22:18:03 | null | NONE | null | ### Issue you'd like to raise.
Hi there,
Before I was using local pickle files as the source of storage of my PDFs and chat history. And now I am moving into next step where I want to using Pinecone as my vector database to store these. I have made couple changes and they are not working and giving my error message. Especially for the part where I check if the embeddings are already stored in Pinecone and only create new embeddings for new files.
Here is my code:
## Imports
import streamlit as st
import os
from apikey import apikey
import pickle
from PyPDF2 import PdfReader
# Streamlit - user interface
from streamlit_extras.add_vertical_space import add_vertical_space
# Langchain
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.vectorstores import FAISS
from langchain.llms import OpenAI
from langchain.chains.question_answering import load_qa_chain
from langchain.callbacks import get_openai_callback
from langchain.chat_models.openai import ChatOpenAI
from langchain.schema import (SystemMessage, HumanMessage, AIMessage)
# Pinecone
from langchain.vectorstores import Pinecone
import pinecone
os.environ['OPENAI_API_KEY'] = apikey
## User Interface
# Side Bar
with st.sidebar:
st.title('🚀 Zi-GPT Version 2.0')
st.markdown('''
## About
This app is an LLM-powered chatbot built using:
- [Streamlit](https://streamlit.io/)
- [LangChain](https://python.langchain.com/)
- [OpenAI](https://platform.openai.com/docs/models) LLM model
''')
add_vertical_space(5)
st.write('Made with ❤️ by Zi')
# Main Page
def main():
st.header("Zi's PDF Helper: Chat with PDF")
# upload a PDF file
pdf = st.file_uploader("Please upload your PDF here", type='pdf')
# st.write(pdf)
# read PDF
if pdf is not None:
pdf_reader = PdfReader(pdf)
# split document into chunks
# also can use text split: good for PDFs that do not contains charts and visuals
sections = []
for page in pdf_reader.pages:
# Split the page text by paragraphs (assuming two newlines indicate a new paragraph)
page_sections = page.extract_text().split('\n\n')
sections.extend(page_sections)
chunks = sections
# st.write(chunks)
## embeddings
# Set up Pinecone
pinecone.init(api_key='d8d78cba-fbf1-42c6-a761-9e89a5ed24eb', environment='gcp-starter')
index_name = 'langchainresearch'
if index_name not in pinecone.list_indexes():
pinecone.create_index(index_name, dimension=1536, metric="cosine") # Adjust the dimension as per your embeddings
index = pinecone.Index(index_name)
file_name = pdf.name[:-4]
# Check if embeddings are already stored in Pinecone
if index.exists(id=file_name):
# Fetch embeddings from Pinecone
VectorStore = index.fetch(ids=[file_name])[file_name]
st.write('Embeddings Loaded from Pinecone')
else:
# Compute embeddings
embeddings = OpenAIEmbeddings(model="text-embedding-ada-002")
VectorStore = FAISS.from_texts(chunks, embedding=embeddings)
# Store embeddings in Pinecone
vectors = VectorStore.get_all_vectors()
index.upsert(vectors={(file_name, vectors)})
st.write('Embeddings Computation Completed and Stored in Pinecone')
# Create chat history
# Pinecone Setup for Chat History
chat_history_index_name = 'chat_history'
if chat_history_index_name not in pinecone.list_indexes():
pinecone.create_index(chat_history_index_name, dimension=1) # Dimension is 1 as we're not storing vectors here
chat_history_index = pinecone.Index(chat_history_index_name)
# Create or Load Chat History from Pinecone
if pdf:
# Check if chat history exists in Pinecone
if chat_history_index.exists(id=pdf.name):
# Fetch chat history from Pinecone
chat_history = chat_history_index.fetch(ids=[pdf.name])[pdf.name]
st.write('Chat History Loaded from Pinecone')
else:
# Initialize empty chat history
chat_history = []
# Initialize chat_history in session_state if not present
if 'chat_history' not in st.session_state:
st.session_state.chat_history = []
# Check if 'prompt' is in session state
if 'last_input' not in st.session_state:
st.session_state.last_input = ''
# User Input
current_prompt = st.session_state.get('user_input', '')
prompt_placeholder = st.empty()
prompt = prompt_placeholder.text_area("Ask questions about your PDF:", value=current_prompt, placeholder="Send a message", key="user_input")
submit_button = st.button("Submit")
if submit_button and prompt:
# Update the last input in session state
st.session_state.last_input = prompt
docs = VectorStore.similarity_search(query=prompt, k=3)
#llm = OpenAI(temperature=0.9, model_name='gpt-3.5-turbo')
chat = ChatOpenAI(model='gpt-4', temperature=0.7, max_tokens=3000)
message = [
SystemMessage(content="You are a helpful assistant"),
HumanMessage(content=prompt)
]
chain = load_qa_chain(llm=chat, chain_type="stuff")
with get_openai_callback() as cb:
response = chain.run(input_documents=docs, question=message)
print(cb)
# st.write(response)
# st.write(docs)
# Process the response using AIMessage schema
# ai_message = AIMessage(content="AI message content")
# ai_message.content = response.generations[0].message.content
# Add to chat history
chat_entry = {
"user_message": prompt,
"bot_response": response
}
# Save chat history
# Generate a unique ID for the chat entry, e.g., using a timestamp or a UUID
chat_entry_id = generate_unique_id()
pinecone_upsert(chat_history_index, {chat_entry_id: chat_entry})
# Clear the input after processing
prompt_placeholder.text_area("Ask questions about your PDF:", value='', placeholder="Send a message", key="pdf_prompt")
# Display the entire chat
chat_history = pinecone_query(chat_history_index, query_params)
chat_content = ""
for entry in chat_history:
user_msg = entry["user_message"]
bot_resp = entry["bot_response"]
chat_content += f"<div style='background-color: #222222; color: white; padding: 10px;'>**You:** {user_msg}</div>"
chat_content += f"<div style='background-color: #333333; color: white; padding: 10px;'>**Zi GPT:** {bot_resp}</div>"
st.markdown(chat_content, unsafe_allow_html=True)
if __name__ == '__main__':
main()
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13987/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13987/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13986 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13986/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13986/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13986/events | https://github.com/langchain-ai/langchain/pull/13986 | 2,015,349,255 | PR_kwDOIPDwls5gmnMI | 13,986 | Update writer.py | {
"login": "Pannanja",
"id": 72413871,
"node_id": "MDQ6VXNlcjcyNDEzODcx",
"avatar_url": "https://avatars.githubusercontent.com/u/72413871?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Pannanja",
"html_url": "https://github.com/Pannanja",
"followers_url": "https://api.github.com/users/Pannanja/followers",
"following_url": "https://api.github.com/users/Pannanja/following{/other_user}",
"gists_url": "https://api.github.com/users/Pannanja/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Pannanja/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Pannanja/subscriptions",
"organizations_url": "https://api.github.com/users/Pannanja/orgs",
"repos_url": "https://api.github.com/users/Pannanja/repos",
"events_url": "https://api.github.com/users/Pannanja/events{/privacy}",
"received_events_url": "https://api.github.com/users/Pannanja/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-11-28T21:29:02 | 2023-11-28T23:14:54 | 2023-11-28T23:14:54 | NONE | null | fixed typos
<!-- 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/13986/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13986/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13986",
"html_url": "https://github.com/langchain-ai/langchain/pull/13986",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13986.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13986.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13985 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13985/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13985/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13985/events | https://github.com/langchain-ai/langchain/pull/13985 | 2,015,224,733 | PR_kwDOIPDwls5gmLl- | 13,985 | fix: InfoSQLDatabaseTool on openai functions mode sometimes calling tables instead of table_names as function arg | {
"login": "puigde",
"id": 83642160,
"node_id": "MDQ6VXNlcjgzNjQyMTYw",
"avatar_url": "https://avatars.githubusercontent.com/u/83642160?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/puigde",
"html_url": "https://github.com/puigde",
"followers_url": "https://api.github.com/users/puigde/followers",
"following_url": "https://api.github.com/users/puigde/following{/other_user}",
"gists_url": "https://api.github.com/users/puigde/gists{/gist_id}",
"starred_url": "https://api.github.com/users/puigde/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/puigde/subscriptions",
"organizations_url": "https://api.github.com/users/puigde/orgs",
"repos_url": "https://api.github.com/users/puigde/repos",
"events_url": "https://api.github.com/users/puigde/events{/privacy}",
"received_events_url": "https://api.github.com/users/puigde/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | open | false | null | [] | null | 5 | 2023-11-28T20:13:48 | 2024-01-17T12:37:41 | null | NONE | null | <!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
**Description:**
Improve the description for the InfoSQLDatabaseTool in order to ensure that the llm guesses the input properly on openai functions mode. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13985/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13985/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13985",
"html_url": "https://github.com/langchain-ai/langchain/pull/13985",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13985.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13985.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13984 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13984/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13984/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13984/events | https://github.com/langchain-ai/langchain/pull/13984 | 2,015,190,729 | PR_kwDOIPDwls5gmEMF | 13,984 | fix test deps | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T19:49:39 | 2023-11-28T21:26:16 | 2023-11-28T21:26:15 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13984/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13984/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13984",
"html_url": "https://github.com/langchain-ai/langchain/pull/13984",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13984.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13984.patch",
"merged_at": "2023-11-28T21:26:15"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13983 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13983/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13983/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13983/events | https://github.com/langchain-ai/langchain/pull/13983 | 2,015,163,026 | PR_kwDOIPDwls5gl99Q | 13,983 | Nc/28nov/revert ci changes | {
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T19:36:01 | 2023-11-28T22:13:24 | 2023-11-28T22:13:23 | 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/13983/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13983/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13983",
"html_url": "https://github.com/langchain-ai/langchain/pull/13983",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13983.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13983.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13982 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13982/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13982/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13982/events | https://github.com/langchain-ai/langchain/pull/13982 | 2,015,115,625 | PR_kwDOIPDwls5glznI | 13,982 | [Evals] Add Project Tags | {
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T19:03:18 | 2023-11-28T19:39:00 | 2023-11-28T19:38:59 | COLLABORATOR | null | Add them to project extra | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13982/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13982/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13982",
"html_url": "https://github.com/langchain-ai/langchain/pull/13982",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13982.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13982.patch",
"merged_at": "2023-11-28T19:38:59"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13981 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13981/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13981/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13981/events | https://github.com/langchain-ai/langchain/pull/13981 | 2,015,096,992 | PR_kwDOIPDwls5glvk8 | 13,981 | Mask api key for Together LLM | {
"login": "normand1",
"id": 1393261,
"node_id": "MDQ6VXNlcjEzOTMyNjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1393261?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/normand1",
"html_url": "https://github.com/normand1",
"followers_url": "https://api.github.com/users/normand1/followers",
"following_url": "https://api.github.com/users/normand1/following{/other_user}",
"gists_url": "https://api.github.com/users/normand1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/normand1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/normand1/subscriptions",
"organizations_url": "https://api.github.com/users/normand1/orgs",
"repos_url": "https://api.github.com/users/normand1/repos",
"events_url": "https://api.github.com/users/normand1/events{/privacy}",
"received_events_url": "https://api.github.com/users/normand1/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | {
"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 | 3 | 2023-11-28T18:51:17 | 2023-11-29T03:57:41 | 2023-11-29T03:57:40 | CONTRIBUTOR | null | - **Description:** Add unit tests and mask api key for Together LLM
- **Issue:** the issue https://github.com/langchain-ai/langchain/issues/12165 ,
- **Dependencies:** N/A
- **Tag maintainer:** ?,
- **Twitter handle:** N/A | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13981/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13981/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13981",
"html_url": "https://github.com/langchain-ai/langchain/pull/13981",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13981.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13981.patch",
"merged_at": "2023-11-29T03:57:40"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13980 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13980/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13980/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13980/events | https://github.com/langchain-ai/langchain/pull/13980 | 2,015,076,328 | PR_kwDOIPDwls5glrB7 | 13,980 | Add retriever for Knowledge Bases for Amazon Bedrock | {
"login": "dlqqq",
"id": 44106031,
"node_id": "MDQ6VXNlcjQ0MTA2MDMx",
"avatar_url": "https://avatars.githubusercontent.com/u/44106031?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dlqqq",
"html_url": "https://github.com/dlqqq",
"followers_url": "https://api.github.com/users/dlqqq/followers",
"following_url": "https://api.github.com/users/dlqqq/following{/other_user}",
"gists_url": "https://api.github.com/users/dlqqq/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dlqqq/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dlqqq/subscriptions",
"organizations_url": "https://api.github.com/users/dlqqq/orgs",
"repos_url": "https://api.github.com/users/dlqqq/repos",
"events_url": "https://api.github.com/users/dlqqq/events{/privacy}",
"received_events_url": "https://api.github.com/users/dlqqq/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T18:38:36 | 2023-12-01T20:54:13 | 2023-11-28T22:10:23 | CONTRIBUTOR | null | - **Description:** Adds a retriever implementation for [Knowledge Bases for Amazon Bedrock](https://aws.amazon.com/bedrock/knowledge-bases/), a new service announced at AWS re:Invent, shortly before this PR was opened. This depends on the `bedrock-agent-runtime` service, which will be included in a future version of `boto3` and of `botocore`. We will open a follow-up PR documenting the minimum required versions of `boto3` and `botocore` after that information is available.
- **Issue:** N/A
- **Dependencies:** `boto3>=1.33.2, botocore>=1.33.2`
- **Tag maintainer:** @baskaryan
- **Twitter handles:** `@pjain7` `@dead_letter_q`
This PR includes a documentation notebook under `docs/docs/integrations/retrievers`, which I (@dlqqq) have verified independently.
EDIT: `bedrock-agent-runtime` service is now included in `boto3>=1.33.2`: https://github.com/boto/boto3/commit/5cf793f49369607f2557fd11741c357df866e4a5 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13980/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13980/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13980",
"html_url": "https://github.com/langchain-ai/langchain/pull/13980",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13980.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13980.patch",
"merged_at": "2023-11-28T22:10:23"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13979 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13979/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13979/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13979/events | https://github.com/langchain-ai/langchain/pull/13979 | 2,015,040,981 | PR_kwDOIPDwls5gljE0 | 13,979 | Add Couchbase document loader | {
"login": "nithishr",
"id": 12782505,
"node_id": "MDQ6VXNlcjEyNzgyNTA1",
"avatar_url": "https://avatars.githubusercontent.com/u/12782505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nithishr",
"html_url": "https://github.com/nithishr",
"followers_url": "https://api.github.com/users/nithishr/followers",
"following_url": "https://api.github.com/users/nithishr/following{/other_user}",
"gists_url": "https://api.github.com/users/nithishr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nithishr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nithishr/subscriptions",
"organizations_url": "https://api.github.com/users/nithishr/orgs",
"repos_url": "https://api.github.com/users/nithishr/repos",
"events_url": "https://api.github.com/users/nithishr/events{/privacy}",
"received_events_url": "https://api.github.com/users/nithishr/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": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-11-28T18:22:11 | 2023-12-04T20:28:13 | 2023-12-04T20:28:12 | CONTRIBUTOR | null | **Description:**
Adds the document loader for [Couchbase](http://couchbase.com/), a distributed NoSQL database.
**Dependencies:**
Added the Couchbase SDK as an optional dependency.
**Twitter handle:** nithishr | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13979/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13979/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13979",
"html_url": "https://github.com/langchain-ai/langchain/pull/13979",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13979.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13979.patch",
"merged_at": "2023-12-04T20:28:12"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13977 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13977/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13977/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13977/events | https://github.com/langchain-ai/langchain/issues/13977 | 2,015,022,272 | I_kwDOIPDwls54GszA | 13,977 | Using langchain and LLaMA2 to QA with a large SQL DB | {
"login": "hellorp1990",
"id": 19805255,
"node_id": "MDQ6VXNlcjE5ODA1MjU1",
"avatar_url": "https://avatars.githubusercontent.com/u/19805255?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hellorp1990",
"html_url": "https://github.com/hellorp1990",
"followers_url": "https://api.github.com/users/hellorp1990/followers",
"following_url": "https://api.github.com/users/hellorp1990/following{/other_user}",
"gists_url": "https://api.github.com/users/hellorp1990/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hellorp1990/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hellorp1990/subscriptions",
"organizations_url": "https://api.github.com/users/hellorp1990/orgs",
"repos_url": "https://api.github.com/users/hellorp1990/repos",
"events_url": "https://api.github.com/users/hellorp1990/events{/privacy}",
"received_events_url": "https://api.github.com/users/hellorp1990/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 | 2 | 2023-11-28T18:11:46 | 2023-11-28T20:26:12 | null | NONE | null | I was working with a sqlite DB that I created for a large dataset (~150k rows).
Code snippets:
`db = SQLDatabase.from_uri("sqlite:///MLdata.sqlite")`
`SQLITE_PROMPT_TEXT = '''You are a SQLite expert. Given an input question, first create a
syntactically correct SQLite query to run, then look at the results of the query and return
the answer to the input question.
Unless the user specifies in the question a specific number of examples to obtain, query for
at most {top_k} results using the LIMIT clause as per SQLite. You can order the results to
return the most informative data in the database.
Never query for all columns from a table. You must query only the columns that are needed to
answer the question. Wrap each column name in double quotes (") to denote them as delimited
identifiers.
Pay attention to use only the column names you can see in the tables below. Be careful to not
query for columns that do not exist. Also, pay attention to which column is in which table.
Use the following format:
Question: Question here
SQLQuery: SQL Query to run
SQLResult: Result of the SQLQuery
Answer: Final answer here
Only use the following tables:
{table_info}
Question: {input}'''`
`SQLITE_PROMPT = PromptTemplate(input_variables=['input', 'table_info', 'top_k'], template=SQLITE_PROMPT_TEXT)
sql_chain = SQLDatabaseChain(llm=local_llm, database=db, prompt=SQLITE_PROMPT, return_direct=False, return_intermediate_steps=False, verbose=False)
res=sql_chain("How many rows is in this db?")`
Response: 'There are 142321 rows in the input_table of this db.'
Second query
`res=sql_chain("Count rows with 'Abdominal pain', VAX_TYPE='COVID19', SEX= 'F' and HOSPITAL= 'Y' is in the input_table of this db")`
Response: 'There are 115 rows in the input_table where Abdominal pain is present, VAX_TYPE is COVID19, Sex is Female, and Hospital is Yes.'
Third query I was trying to find the patient ID only instead of the count. But I am not able to get the patient ID.
`res=sql_chain("What is the VAERS_ID with 'Abdominal pain', VAX_TYPE='COVID19', SEX= 'F' and HOSPITAL= 'Y' in this db. ")`
But the output generated is same as my second query.
Seems like the counting is working fine but nothing more.
Can anyone help me in displaying table like output from sqlDbchain via langchain and llama2? | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13977/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13977/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13976 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13976/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13976/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13976/events | https://github.com/langchain-ai/langchain/pull/13976 | 2,014,856,416 | PR_kwDOIPDwls5gk6XW | 13,976 | Nvidia Triton + TRT-LLM Connector | {
"login": "jdye64",
"id": 2127235,
"node_id": "MDQ6VXNlcjIxMjcyMzU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2127235?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jdye64",
"html_url": "https://github.com/jdye64",
"followers_url": "https://api.github.com/users/jdye64/followers",
"following_url": "https://api.github.com/users/jdye64/following{/other_user}",
"gists_url": "https://api.github.com/users/jdye64/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jdye64/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jdye64/subscriptions",
"organizations_url": "https://api.github.com/users/jdye64/orgs",
"repos_url": "https://api.github.com/users/jdye64/repos",
"events_url": "https://api.github.com/users/jdye64/events{/privacy}",
"received_events_url": "https://api.github.com/users/jdye64/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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | closed | false | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
] | null | 9 | 2023-11-28T16:40:20 | 2023-12-25T19:26:15 | 2023-12-25T19:26:08 | CONTRIBUTOR | null | **Description**:
This PR includes a connector for using the [Nvidia TensorRT LLM](https://developer.nvidia.com/tensorrt) which allows for accelerated LLM optimization and performance.
**Issue**: This closes #13975
**Dependencies**:
triton-client library was added to pyproject.toml | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13976/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 1,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13976/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13976",
"html_url": "https://github.com/langchain-ai/langchain/pull/13976",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13976.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13976.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13975 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13975/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13975/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13975/events | https://github.com/langchain-ai/langchain/issues/13975 | 2,014,825,307 | I_kwDOIPDwls54F8tb | 13,975 | Nvidia TensorRT LLM Connector | {
"login": "jdye64",
"id": 2127235,
"node_id": "MDQ6VXNlcjIxMjcyMzU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2127235?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jdye64",
"html_url": "https://github.com/jdye64",
"followers_url": "https://api.github.com/users/jdye64/followers",
"following_url": "https://api.github.com/users/jdye64/following{/other_user}",
"gists_url": "https://api.github.com/users/jdye64/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jdye64/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jdye64/subscriptions",
"organizations_url": "https://api.github.com/users/jdye64/orgs",
"repos_url": "https://api.github.com/users/jdye64/repos",
"events_url": "https://api.github.com/users/jdye64/events{/privacy}",
"received_events_url": "https://api.github.com/users/jdye64/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-11-28T16:24:31 | 2023-12-20T18:29:43 | null | CONTRIBUTOR | null | ### Feature request
NVIDIA TensorRT is an open-source SDK for high-performance deep learning inference, includes a deep learning inference optimizer and runtime that delivers low latency and high throughput for inference applications. I propose that a connector be added to langchain allowing users to use TensorRT with minimal configuration.
### Motivation
There are several implementations of this connector floating around the internet. Lots of folks seem to want this. Rather than have everyone need to add that connector manually it seems to make sense to natively include it in Langchain.
### Your contribution
I am happy to open the PR for this and will do so shortly. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13975/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13975/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13974 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13974/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13974/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13974/events | https://github.com/langchain-ai/langchain/pull/13974 | 2,014,792,292 | PR_kwDOIPDwls5gksLU | 13,974 | Eval Error Key | {
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-11-28T16:08:49 | 2023-11-28T16:38:37 | 2023-11-28T16:38:30 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13974/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13974/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13974",
"html_url": "https://github.com/langchain-ai/langchain/pull/13974",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13974.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13974.patch",
"merged_at": "2023-11-28T16:38:30"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13973 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13973/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13973/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13973/events | https://github.com/langchain-ai/langchain/pull/13973 | 2,014,688,619 | PR_kwDOIPDwls5gkVTk | 13,973 | RELEASE: core 0.0.7 | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T15:20:42 | 2023-11-28T15:28:29 | 2023-11-28T15:28:29 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13973/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13973/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13973",
"html_url": "https://github.com/langchain-ai/langchain/pull/13973",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13973.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13973.patch",
"merged_at": "2023-11-28T15:28:28"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13972 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13972/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13972/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13972/events | https://github.com/langchain-ai/langchain/pull/13972 | 2,014,638,955 | PR_kwDOIPDwls5gkKV0 | 13,972 | Track RunnableAssign as a separate run trace | {
"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": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T14:57:33 | 2023-11-28T22:03:27 | 2023-11-28T22:02:31 | CONTRIBUTOR | null | Addressing incorrect order being sent to callbacks / tracers, due to the nature of threading | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13972/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13972/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13972",
"html_url": "https://github.com/langchain-ai/langchain/pull/13972",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13972.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13972.patch",
"merged_at": "2023-11-28T22:02:31"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13971 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13971/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13971/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13971/events | https://github.com/langchain-ai/langchain/issues/13971 | 2,014,572,602 | I_kwDOIPDwls54E_A6 | 13,971 | Singel object extraction | {
"login": "Yanni8",
"id": 99135388,
"node_id": "U_kgDOBeivnA",
"avatar_url": "https://avatars.githubusercontent.com/u/99135388?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Yanni8",
"html_url": "https://github.com/Yanni8",
"followers_url": "https://api.github.com/users/Yanni8/followers",
"following_url": "https://api.github.com/users/Yanni8/following{/other_user}",
"gists_url": "https://api.github.com/users/Yanni8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Yanni8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Yanni8/subscriptions",
"organizations_url": "https://api.github.com/users/Yanni8/orgs",
"repos_url": "https://api.github.com/users/Yanni8/repos",
"events_url": "https://api.github.com/users/Yanni8/events{/privacy}",
"received_events_url": "https://api.github.com/users/Yanni8/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6406915535,
"node_id": "LA_kwDOIPDwls8AAAABfeHFzw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/extraction",
"name": "extraction",
"color": "2C2E30",
"default": false,
"description": ""
}
] | open | false | null | [] | null | 1 | 2023-11-28T14:29:08 | 2024-01-08T20:30:16 | null | CONTRIBUTOR | null | ### Feature request
Currently, the extraction chain only supports the extraction of an Array of object.
For example
```python
from typing import Optional
from langchain.chains import create_extraction_chain_pydantic
from langchain.pydantic_v1 import BaseModel
# Pydantic data class
class Properties(BaseModel):
person_name: str
person_height: int
person_hair_color: str
dog_breed: Optional[str]
dog_name: Optional[str]
# Extraction
chain = create_extraction_chain_pydantic(pydantic_schema=Properties, llm=llm)
# Run
inp = """Alex is 5 feet tall. Claudia is 1 feet taller Alex and jumps higher than him. Claudia is a brunette and Alex is blonde."""
chain.run(inp)
# Results in
#
# [Properties(person_name='Alex', person_height=5, person_hair_color='blonde', dog_breed=None, dog_name=None),
# Properties(person_name='Claudia', person_height=6, person_hair_color='brunette', dog_breed=None, dog_name=None)]
#
````
There is currently no option available to just get one `Properties` object.
It would be nice if you could define at the beginning if you are interested in one object or an array of objects
For example
```` python
chain = create_extraction_chain_pydantic(pydantic_schema=List[Properties], llm=llm) -> Array of Properties
chain = create_extraction_chain_pydantic(pydantic_schema=Properties] llm=llm) -> Just one Propertie
`````
### Motivation
It would just make life easier when you knew that you were only dealing with one object.
It might also improve the response and prevent wrong or incomplete responses.
### Your contribution
I would create and submit a PR that contains this feature. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13971/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13971/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13970 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13970/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13970/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13970/events | https://github.com/langchain-ai/langchain/issues/13970 | 2,014,540,587 | I_kwDOIPDwls54E3Mr | 13,970 | AttributeError: module 'typing_extensions' has no attribute 'deprecated' when using ChatOpenAI | {
"login": "vlasvlasvlas",
"id": 4071796,
"node_id": "MDQ6VXNlcjQwNzE3OTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/4071796?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vlasvlasvlas",
"html_url": "https://github.com/vlasvlasvlas",
"followers_url": "https://api.github.com/users/vlasvlasvlas/followers",
"following_url": "https://api.github.com/users/vlasvlasvlas/following{/other_user}",
"gists_url": "https://api.github.com/users/vlasvlasvlas/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vlasvlasvlas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vlasvlasvlas/subscriptions",
"organizations_url": "https://api.github.com/users/vlasvlasvlas/orgs",
"repos_url": "https://api.github.com/users/vlasvlasvlas/repos",
"events_url": "https://api.github.com/users/vlasvlasvlas/events{/privacy}",
"received_events_url": "https://api.github.com/users/vlasvlasvlas/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-11-28T14:15:08 | 2023-11-28T14:22:25 | null | NONE | null | ### System Info
hi!
im getting this error 👍
`AttributeError Traceback (most recent call last)
File <command-3819272873890469>, line 7
1 # gpt-3.5-turbo-0613
2 # gpt-3.5-turbo-1106
3 # gpt-4
4 # gpt-4-1106-preview
5 llm_model = "gpt-3.5-turbo-1106"
----> 7 llm = ChatOpenAI(
8 temperature=0,
9 model=llm_model
10 )
File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain/load/serializable.py:97, in Serializable.__init__(self, **kwargs)
96 def __init__(self, **kwargs: Any) -> None:
---> 97 super().__init__(**kwargs)
98 self._lc_kwargs = kwargs
File /databricks/python/lib/python3.10/site-packages/pydantic/main.py:339, in pydantic.main.BaseModel.__init__()
File /databricks/python/lib/python3.10/site-packages/pydantic/main.py:1102, in pydantic.main.validate_model()
File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain/chat_models/openai.py:291, in ChatOpenAI.validate_environment(cls, values)
284 values["openai_proxy"] = get_from_dict_or_env(
285 values,
286 "openai_proxy",
287 "OPENAI_PROXY",
288 default="",
289 )
290 try:
--> 291 import openai
293 except ImportError:
294 raise ImportError(
295 "Could not import openai python package. "
296 "Please install it with `pip install openai`."
297 )
File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/openai/__init__.py:11
9 from ._types import NoneType, Transport, ProxiesTypes
10 from ._utils import file_from_path
---> 11 from ._client import (
12 Client,
13 OpenAI,
14 Stream,
15 Timeout,
16 Transport,
17 AsyncClient,
18 AsyncOpenAI,
19 AsyncStream,
20 RequestOptions,
21 )
22 from ._version import __title__, __version__
23 from ._exceptions import (
24 APIError,
25 OpenAIError,
(...)
37 APIResponseValidationError,
38 )
File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/openai/_client.py:12
8 from typing_extensions import override
10 import httpx
---> 12 from . import resources, _exceptions
13 from ._qs import Querystring
14 from ._types import (
15 NOT_GIVEN,
16 Omit,
(...)
21 RequestOptions,
22 )
File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/openai/resources/__init__.py:6
4 from .chat import Chat, AsyncChat, ChatWithRawResponse, AsyncChatWithRawResponse
5 from .audio import Audio, AsyncAudio, AudioWithRawResponse, AsyncAudioWithRawResponse
----> 6 from .edits import Edits, AsyncEdits, EditsWithRawResponse, AsyncEditsWithRawResponse
7 from .files import Files, AsyncFiles, FilesWithRawResponse, AsyncFilesWithRawResponse
8 from .images import (
9 Images,
10 AsyncImages,
11 ImagesWithRawResponse,
12 AsyncImagesWithRawResponse,
13 )
File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/openai/resources/edits.py:24
19 from .._client import OpenAI, AsyncOpenAI
21 __all__ = ["Edits", "AsyncEdits"]
---> 24 class Edits(SyncAPIResource):
25 with_raw_response: EditsWithRawResponse
27 def __init__(self, client: OpenAI) -> None:
File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/openai/resources/edits.py:31, in Edits()
28 super().__init__(client)
29 self.with_raw_response = EditsWithRawResponse(self)
---> 31 @typing_extensions.deprecated(
32 "The Edits API is deprecated; please use Chat Completions instead.\n\nhttps://openai.com/blog/gpt-4-api-general-availability#deprecation-of-the-edits-api\n"
33 )
34 def create(
35 self,
36 *,
37 instruction: str,
38 model: Union[str, Literal["text-davinci-edit-001", "code-davinci-edit-001"]],
39 input: Optional[str] | NotGiven = NOT_GIVEN,
40 n: Optional[int] | NotGiven = NOT_GIVEN,
41 temperature: Optional[float] | NotGiven = NOT_GIVEN,
42 top_p: Optional[float] | NotGiven = NOT_GIVEN,
43 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
44 # The extra values given here take precedence over values defined on the client or passed to this method.
45 extra_headers: Headers | None = None,
46 extra_query: Query | None = None,
47 extra_body: Body | None = None,
48 timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
49 ) -> Edit:
50 """
51 Creates a new edit for the provided input, instruction, and parameters.
52
(...)
81 timeout: Override the client-level default timeout for this request, in seconds
82 """
83 return self._post(
84 "/edits",
85 body=maybe_transform(
(...)
99 cast_to=Edit,
100 )
AttributeError: module 'typing_extensions' has no attribute 'deprecated'`
im using ChatOpenAI with the follwing libs:
![image](https://github.com/langchain-ai/langchain/assets/4071796/2569f6a9-924f-4a72-a933-221e43bfb48b)
and python version is
Python 3.10.12
until some days these worked great. and i didnt touch the code.
so, whats happening here?
thanks
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
llm_model = "gpt-4-1106-preview"
llm = ChatOpenAI(
temperature=0,
model=llm_model
)
-- using databricks, with langchain and openai
### Expected behavior
just an ok and chatopenai working | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13970/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13970/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13969 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13969/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13969/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13969/events | https://github.com/langchain-ai/langchain/issues/13969 | 2,014,537,056 | I_kwDOIPDwls54E2Vg | 13,969 | OutputParserException in extraction use case | {
"login": "nicoforteza",
"id": 23416891,
"node_id": "MDQ6VXNlcjIzNDE2ODkx",
"avatar_url": "https://avatars.githubusercontent.com/u/23416891?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nicoforteza",
"html_url": "https://github.com/nicoforteza",
"followers_url": "https://api.github.com/users/nicoforteza/followers",
"following_url": "https://api.github.com/users/nicoforteza/following{/other_user}",
"gists_url": "https://api.github.com/users/nicoforteza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nicoforteza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nicoforteza/subscriptions",
"organizations_url": "https://api.github.com/users/nicoforteza/orgs",
"repos_url": "https://api.github.com/users/nicoforteza/repos",
"events_url": "https://api.github.com/users/nicoforteza/events{/privacy}",
"received_events_url": "https://api.github.com/users/nicoforteza/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-11-28T14:13:25 | 2023-11-28T14:21:35 | null | NONE | null | ### System Info
Hi, i'm obtaining this error trace when performing a basic `create_extraction_chain` example.I'm using CTransformers (llama2 type), more specifically, this model here: https://huggingface.co/clibrain/Llama-2-13b-ft-instruct-es-gguf
Python version: 3.11
Environment:
```
accelerate 0.24.1
aiofiles 22.1.0
aiohttp 3.9.0
aiosignal 1.3.1
aiosqlite 0.19.0
alembic 1.9.4
anyio 3.7.1
appnope 0.1.3
argilla 1.19.0
argon2-cffi 23.1.0
argon2-cffi-bindings 21.2.0
arrow 1.3.0
asttokens 2.4.1
async-lru 2.0.4
attrs 23.1.0
Babel 2.13.1
backoff 1.11.1
bcrypt 4.0.1
beautifulsoup4 4.12.2
bleach 6.1.0
Brotli 1.1.0
brotli-asgi 1.2.0
certifi 2023.11.17
cffi 1.16.0
charset-normalizer 3.3.2
click 8.1.7
coloredlogs 15.0.1
comm 0.2.0
commonmark 0.9.1
cryptography 41.0.5
ctransformers 0.2.27
dataclasses-json 0.6.3
datasets 2.15.0
debugpy 1.8.0
decorator 5.1.1
defusedxml 0.7.1
Deprecated 1.2.14
dill 0.3.7
diskcache 5.6.3
ecdsa 0.18.0
elastic-transport 8.10.0
elasticsearch8 8.7.0
executing 2.0.1
fastapi 0.104.1
fastjsonschema 2.19.0
filelock 3.13.1
fqdn 1.5.1
frozenlist 1.4.0
fsspec 2023.10.0
greenlet 3.0.1
h11 0.14.0
httpcore 0.16.3
httptools 0.6.1
httpx 0.23.3
huggingface-hub 0.19.4
humanfriendly 10.0
idna 3.4
ipykernel 6.27.0
ipython 8.17.2
isoduration 20.11.0
jedi 0.19.1
Jinja2 3.1.2
joblib 1.3.2
json5 0.9.14
jsonpatch 1.33
jsonpointer 2.4
jsonschema 4.20.0
jsonschema-specifications 2023.11.1
jupyter_client 8.6.0
jupyter_core 5.5.0
jupyter-events 0.9.0
jupyter-lsp 2.2.0
jupyter_server 2.11.0
jupyter_server_terminals 0.4.4
jupyterlab 4.0.9
jupyterlab-pygments 0.2.2
jupyterlab_server 2.25.2
langchain 0.0.341
langchain-core 0.0.6
langsmith 0.0.67
llama_cpp_python 0.2.20
Mako 1.3.0
markdown-it-py 3.0.0
MarkupSafe 2.1.3
marshmallow 3.20.1
matplotlib-inline 0.1.6
mdurl 0.1.2
mistune 3.0.2
monotonic 1.6
mpmath 1.3.0
multidict 6.0.4
multiprocess 0.70.15
mypy-extensions 1.0.0
nbclient 0.9.0
nbconvert 7.11.0
nbformat 5.9.2
nest-asyncio 1.5.8
networkx 3.2.1
nltk 3.8.1
notebook_shim 0.2.3
numpy 1.23.5
opensearch-py 2.0.1
optimum 1.14.1
overrides 7.4.0
packaging 23.2
pandas 1.5.3
pandocfilters 1.5.0
parso 0.8.3
passlib 1.7.4
pexpect 4.8.0
Pillow 10.1.0
pip 23.3.1
platformdirs 4.0.0
prometheus-client 0.19.0
prompt-toolkit 3.0.41
protobuf 4.25.1
psutil 5.9.6
ptyprocess 0.7.0
pure-eval 0.2.2
py-cpuinfo 9.0.0
pyarrow 14.0.1
pyarrow-hotfix 0.6
pyasn1 0.5.1
pycparser 2.21
pydantic 1.10.13
Pygments 2.17.2
python-dateutil 2.8.2
python-dotenv 1.0.0
python-jose 3.3.0
python-json-logger 2.0.7
python-multipart 0.0.6
pytz 2023.3.post1
PyYAML 6.0.1
pyzmq 25.1.1
referencing 0.31.0
regex 2023.10.3
requests 2.31.0
rfc3339-validator 0.1.4
rfc3986 1.5.0
rfc3986-validator 0.1.1
rich 13.0.1
rpds-py 0.13.1
rsa 4.9
safetensors 0.4.0
scikit-learn 1.3.2
scipy 1.11.4
segment-analytics-python 2.2.0
Send2Trash 1.8.2
sentence-transformers 2.2.2
sentencepiece 0.1.99
setuptools 68.2.2
six 1.16.0
smart-open 6.4.0
sniffio 1.3.0
soupsieve 2.5
SQLAlchemy 2.0.23
stack-data 0.6.3
starlette 0.27.0
sympy 1.12
tenacity 8.2.3
terminado 0.18.0
threadpoolctl 3.2.0
tinycss2 1.2.1
tokenizers 0.15.0
torch 2.1.1
torchvision 0.16.1
tornado 6.3.3
tqdm 4.66.1
traitlets 5.13.0
transformers 4.35.2
typer 0.9.0
types-python-dateutil 2.8.19.14
typing_extensions 4.8.0
typing-inspect 0.9.0
uri-template 1.3.0
urllib3 1.26.18
uvicorn 0.20.0
uvloop 0.19.0
watchfiles 0.21.0
wcwidth 0.2.12
webcolors 1.13
webencodings 0.5.1
websocket-client 1.6.4
websockets 12.0
wrapt 1.14.1
xxhash 3.4.1
yarl 1.9.3
```
### 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
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Hi, i'm obtaining this error trace when performing a basic `create_extraction_chain` example.I'm using CTransformers (llama2 type), more specifically, this model here: https://huggingface.co/clibrain/Llama-2-13b-ft-instruct-es-gguf
```
OutputParserException Traceback (most recent call last)
Cell In[9], line 17
12 chain = create_extraction_chain(schema, llm)
14 inp = """Alex is 5 feet tall. Claudia is 1 feet taller Alex and jumps higher than him. Claudia is a brunette and Alex is blonde.
15 Willow is a German Shepherd that likes to play with other dogs and can always be found playing with Milo, a border collie that lives close by."""
---> 17 chain.run(inp)
File ~/Desktop/green-jobs/genv/lib/python3.11/site-packages/langchain/chains/base.py:507, in Chain.run(self, callbacks, tags, metadata, *args, **kwargs)
505 if len(args) != 1:
506 raise ValueError("`run` supports only one positional argument.")
--> 507 return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
508 _output_key
509 ]
511 if kwargs and not args:
512 return self(kwargs, callbacks=callbacks, tags=tags, metadata=metadata)[
513 _output_key
514 ]
File ~/Desktop/green-jobs/genv/lib/python3.11/site-packages/langchain/chains/base.py:312, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
310 except BaseException as e:
311 run_manager.on_chain_error(e)
--> 312 raise e
313 run_manager.on_chain_end(outputs)
314 final_outputs: Dict[str, Any] = self.prep_outputs(
315 inputs, outputs, return_only_outputs
316 )
File ~/Desktop/green-jobs/genv/lib/python3.11/site-packages/langchain/chains/base.py:306, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
299 run_manager = callback_manager.on_chain_start(
300 dumpd(self),
301 inputs,
302 name=run_name,
303 )
304 try:
305 outputs = (
--> 306 self._call(inputs, run_manager=run_manager)
307 if new_arg_supported
308 else self._call(inputs)
309 )
310 except BaseException as e:
311 run_manager.on_chain_error(e)
File ~/Desktop/green-jobs/genv/lib/python3.11/site-packages/langchain/chains/llm.py:104, in LLMChain._call(self, inputs, run_manager)
98 def _call(
99 self,
100 inputs: Dict[str, Any],
101 run_manager: Optional[CallbackManagerForChainRun] = None,
102 ) -> Dict[str, str]:
103 response = self.generate([inputs], run_manager=run_manager)
--> 104 return self.create_outputs(response)[0]
File ~/Desktop/green-jobs/genv/lib/python3.11/site-packages/langchain/chains/llm.py:258, in LLMChain.create_outputs(self, llm_result)
256 def create_outputs(self, llm_result: LLMResult) -> List[Dict[str, Any]]:
257 """Create outputs from response."""
--> 258 result = [
259 # Get the text of the top generated string.
260 {
261 self.output_key: self.output_parser.parse_result(generation),
262 "full_generation": generation,
263 }
264 for generation in llm_result.generations
265 ]
266 if self.return_final_only:
267 result = [{self.output_key: r[self.output_key]} for r in result]
File ~/Desktop/green-jobs/genv/lib/python3.11/site-packages/langchain/chains/llm.py:261, in <listcomp>(.0)
256 def create_outputs(self, llm_result: LLMResult) -> List[Dict[str, Any]]:
257 """Create outputs from response."""
258 result = [
259 # Get the text of the top generated string.
260 {
--> 261 self.output_key: self.output_parser.parse_result(generation),
262 "full_generation": generation,
263 }
264 for generation in llm_result.generations
265 ]
266 if self.return_final_only:
267 result = [{self.output_key: r[self.output_key]} for r in result]
File ~/Desktop/green-jobs/genv/lib/python3.11/site-packages/langchain/output_parsers/openai_functions.py:130, in JsonKeyOutputFunctionsParser.parse_result(self, result, partial)
129 def parse_result(self, result: List[Generation], *, partial: bool = False) -> Any:
--> 130 res = super().parse_result(result, partial=partial)
131 if partial and res is None:
132 return None
File ~/Desktop/green-jobs/genv/lib/python3.11/site-packages/langchain/output_parsers/openai_functions.py:68, in JsonOutputFunctionsParser.parse_result(self, result, partial)
66 generation = result[0]
67 if not isinstance(generation, ChatGeneration):
---> 68 raise OutputParserException(
69 "This output parser can only be used with a chat generation."
70 )
71 message = generation.message
72 try:
OutputParserException: This output parser can only be used with a chat generation.
```
Im using the following example:
```
schema = {
"properties": {
"person_name": {"type": "string"},
"person_height": {"type": "integer"},
"person_hair_color": {"type": "string"},
"dog_name": {"type": "string"},
"dog_breed": {"type": "string"},
},
"required": [],
}
chain = create_extraction_chain(schema, llm)
inp = """Alex is 5 feet tall. Claudia is 1 feet taller Alex and jumps higher than him. Claudia is a brunette and Alex is blonde.
Willow is a German Shepherd that likes to play with other dogs and can always be found playing with Milo, a border collie that lives close by."""
chain.run(inp)
```
### Expected behavior
I expect not to get an error when executing the code | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13969/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13969/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13968 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13968/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13968/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13968/events | https://github.com/langchain-ai/langchain/issues/13968 | 2,014,504,640 | I_kwDOIPDwls54EubA | 13,968 | Caused by NewConnectionError when using ZERO_SHOT_REACT_DESCRIPTION | {
"login": "HEYBOY789",
"id": 20195023,
"node_id": "MDQ6VXNlcjIwMTk1MDIz",
"avatar_url": "https://avatars.githubusercontent.com/u/20195023?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/HEYBOY789",
"html_url": "https://github.com/HEYBOY789",
"followers_url": "https://api.github.com/users/HEYBOY789/followers",
"following_url": "https://api.github.com/users/HEYBOY789/following{/other_user}",
"gists_url": "https://api.github.com/users/HEYBOY789/gists{/gist_id}",
"starred_url": "https://api.github.com/users/HEYBOY789/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HEYBOY789/subscriptions",
"organizations_url": "https://api.github.com/users/HEYBOY789/orgs",
"repos_url": "https://api.github.com/users/HEYBOY789/repos",
"events_url": "https://api.github.com/users/HEYBOY789/events{/privacy}",
"received_events_url": "https://api.github.com/users/HEYBOY789/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-11-28T13:57:21 | 2023-11-30T11:03:08 | 2023-11-30T11:03:07 | NONE | null | ### System Info
**python:** 3.11.6
**langchain:** 0.0.335
**openai:** 0.28.1
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I tried to create custom tools for Agent type ZERO_SHOT_REACT_DESCRIPTION but after executing the first chain, it keeps getting error Caused by NewConnectionError on the next chain. The tools work fine because I tested them with Agent type OPENAI.FUNTIONS
My first tool
```
def get_thing(u: str) -> str:
c, l = get_thing_ori(u, True)
r = c + '\n' + l
return r
class GetThingCheckInput(BaseModel):
u: str = Field(..., description='thing to get')
def get_thing_tool():
GetThingTool = StructuredTool.from_function(
name="get_thing",
description="Useful to get thing",
func=get_thing,
args_schema=GetThingCheckInput
)
return GetThingTool
```
My second tool
```
def get_S(t: str, l=str, c=str) -> str:
u_s, d_s = get_so()
result = ''
for u, d in zip(u_s, d_s):
result += f'U: {u}\nD: {d}\n\n'
return result
def parsing_get_S(string: str):
t, l, c = string.split(', ')
return (get_S(t, l, c))
class ParsingGetSCheckInput(BaseModel):
string: str = Field(..., description='A string contain a data in format: "T, L, C"')
def get_parsing_get_S_tool():
ParsingGetSTool = StructuredTool.from_function(
name = 'parsing_get_S',
description="Useful to get S. Input is a comma-seperated list contain data in format: 'T, L, C'",
func=parsing_get_S,
args_schema=ParsingGetSCheckInput
)
return ParsingGetSTool
```
This is my main
```
if __name__ == '__main__':
llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0, max_retries=5, timeout=100)
GetThingTool = get_thing_tool()
ParsingGetSTool = get_parsing_get_S_tool()
tools = [GetThingTool, ParsingGetSTool]
agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)
agent.run("Who is Leo DiCaprio's girlfriend? What is her current age raised to the 0.43 power?")
```
I try to add both `os.environ["LANGCHAIN_TRACING"] = "true"` and `os.environ["LANGCHAIN_TRACING"] = "true"` but it not working.
Full error is:
```
ERROR:root:download error: 'https://www.dailymail.co.uk/tvshowbiz/article-12792715/Leonardo-DiCaprio-low-key-glamorous-girlfriend-Vittoria-Ceretti-family-London.html' HTTPConnectionPool(host="'https", port=80): Max retries exceeded with url: //[www.dailymail.co.uk/tvshowbiz/article-12792715/Leonardo-DiCaprio-low-key-glamorous-girlfriend-Vittoria-Ceretti-family-London.html](https://file+.vscode-resource.vscode-cdn.net/d%3A/Python%20Project/www.dailymail.co.uk/tvshowbiz/article-12792715/Leonardo-DiCaprio-low-key-glamorous-girlfriend-Vittoria-Ceretti-family-London.html)' (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000018BEA481B90>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
```
### Expected behavior
As I use Agent type OPENAI.FUNTIONS, it completely returns a full answer, so that means there is nothing wrong with the tools, i guess. It should work for agent type ZERO_SHOT_REACT_DESCRIPTION. The reason I use zero shot is because the thinking part works better in different languages than agent-type OPENAI.FUNTIONS. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13968/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13968/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13967 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13967/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13967/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13967/events | https://github.com/langchain-ai/langchain/issues/13967 | 2,014,447,411 | I_kwDOIPDwls54Egcz | 13,967 | Issue: Passing context(previous question and answer) to the create_pandas_dataframe_agent function. | {
"login": "akash97715",
"id": 34799343,
"node_id": "MDQ6VXNlcjM0Nzk5MzQz",
"avatar_url": "https://avatars.githubusercontent.com/u/34799343?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akash97715",
"html_url": "https://github.com/akash97715",
"followers_url": "https://api.github.com/users/akash97715/followers",
"following_url": "https://api.github.com/users/akash97715/following{/other_user}",
"gists_url": "https://api.github.com/users/akash97715/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akash97715/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akash97715/subscriptions",
"organizations_url": "https://api.github.com/users/akash97715/orgs",
"repos_url": "https://api.github.com/users/akash97715/repos",
"events_url": "https://api.github.com/users/akash97715/events{/privacy}",
"received_events_url": "https://api.github.com/users/akash97715/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] | open | false | null | [] | null | 16 | 2023-11-28T13:30:17 | 2023-12-01T11:30:15 | null | NONE | null | ### Issue you'd like to raise.
Hello Team,
We are finding a way to pass the context, previous question and answer to **create_pandas_dataframe_agent**. Can u please help me understand how i can pass the context(previous question and answer) to the **create_pandas_dataframe_agent**. it will be helpful if you have any such example implementation
Thanks,
Akash
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13967/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13967/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13966 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13966/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13966/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13966/events | https://github.com/langchain-ai/langchain/pull/13966 | 2,014,426,847 | PR_kwDOIPDwls5gjbed | 13,966 | Add doc for the development of core and experimental sections | {
"login": "169",
"id": 10000925,
"node_id": "MDQ6VXNlcjEwMDAwOTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/169",
"html_url": "https://github.com/169",
"followers_url": "https://api.github.com/users/169/followers",
"following_url": "https://api.github.com/users/169/following{/other_user}",
"gists_url": "https://api.github.com/users/169/gists{/gist_id}",
"starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/169/subscriptions",
"organizations_url": "https://api.github.com/users/169/orgs",
"repos_url": "https://api.github.com/users/169/repos",
"events_url": "https://api.github.com/users/169/events{/privacy}",
"received_events_url": "https://api.github.com/users/169/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-11-28T13:21:42 | 2023-12-04T20:27:57 | 2023-12-04T20:27:57 | CONTRIBUTOR | null | ### **Description**
Hi, I just started learning the source code of `langchain` and hope to contribute code. However, according to the instructions in the [CONTRIBUTING.md](https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md) document, I could not run the test command `make test` to run normally. I found that many modules did not exist after [splitting `langchain_core`](https://github.com/langchain-ai/langchain/discussions/13823), so I updated the document.
### **Twitter handle**
lin_bob57617 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13966/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13966/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13966",
"html_url": "https://github.com/langchain-ai/langchain/pull/13966",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13966.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13966.patch",
"merged_at": "2023-12-04T20:27:57"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13965 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13965/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13965/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13965/events | https://github.com/langchain-ai/langchain/pull/13965 | 2,014,383,567 | PR_kwDOIPDwls5gjSA9 | 13,965 | Update CONTRIBUTING.md doc | {
"login": "169",
"id": 10000925,
"node_id": "MDQ6VXNlcjEwMDAwOTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/169",
"html_url": "https://github.com/169",
"followers_url": "https://api.github.com/users/169/followers",
"following_url": "https://api.github.com/users/169/following{/other_user}",
"gists_url": "https://api.github.com/users/169/gists{/gist_id}",
"starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/169/subscriptions",
"organizations_url": "https://api.github.com/users/169/orgs",
"repos_url": "https://api.github.com/users/169/repos",
"events_url": "https://api.github.com/users/169/events{/privacy}",
"received_events_url": "https://api.github.com/users/169/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T12:58:15 | 2023-11-29T00:32:26 | 2023-11-29T00:32:26 | CONTRIBUTOR | null | - **Description:** The new demo notebook should be placed in [docs/docs/modules](https://github.com/langchain-ai/langchain/tree/master/docs/docs/modules)
- **Twitter handle:** lin_bob57617
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13965/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13965/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13965",
"html_url": "https://github.com/langchain-ai/langchain/pull/13965",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13965.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13965.patch",
"merged_at": "2023-11-29T00:32:26"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13964 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13964/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13964/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13964/events | https://github.com/langchain-ai/langchain/issues/13964 | 2,014,369,520 | I_kwDOIPDwls54ENbw | 13,964 | Why does FAISS similarity search not fetch data with respect to alphanumeric keys like ORA-14300? | {
"login": "ShahzaibAhmedKhan31",
"id": 134971688,
"node_id": "U_kgDOCAuBKA",
"avatar_url": "https://avatars.githubusercontent.com/u/134971688?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShahzaibAhmedKhan31",
"html_url": "https://github.com/ShahzaibAhmedKhan31",
"followers_url": "https://api.github.com/users/ShahzaibAhmedKhan31/followers",
"following_url": "https://api.github.com/users/ShahzaibAhmedKhan31/following{/other_user}",
"gists_url": "https://api.github.com/users/ShahzaibAhmedKhan31/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShahzaibAhmedKhan31/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShahzaibAhmedKhan31/subscriptions",
"organizations_url": "https://api.github.com/users/ShahzaibAhmedKhan31/orgs",
"repos_url": "https://api.github.com/users/ShahzaibAhmedKhan31/repos",
"events_url": "https://api.github.com/users/ShahzaibAhmedKhan31/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShahzaibAhmedKhan31/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": 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": 5955630415,
"node_id": "LA_kwDOIPDwls8AAAABYvu1Tw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis",
"name": "integration: redis",
"color": "F9D0C4",
"default": false,
"description": "Any integration that uses Redis"
}
] | open | false | null | [] | null | 1 | 2023-11-28T12:50:29 | 2023-11-28T12:55:31 | null | NONE | null | ### Issue you'd like to raise.
**Summary:**
The FAISS similarity search in LangChain is encountering difficulties when processing alpha-numeric queries that involve numeric integers. While the search performs well for queries like "What are resolutions to problems related to SAF," it exhibits suboptimal behavior when processing queries such as "Give me complete details of L2-resolution against ORA-14300," which involve alpha-numeric combinations.
Note that we have already successfully embedded and indexed the above documents that includes alpha numeric key as well
such as "ORA-14300".
**Expected Behavior:**
The FAISS similarity search should accurately and effectively retrieve relevant information for alpha-numeric queries, providing precise results even when numeric integers are included in the query.
**Current Behavior:**
The search is not functioning correctly when processing alpha-numeric queries with numeric integers. It fails to accurately identify and retrieve relevant documents, leading to a suboptimal user experience.
![correct](https://github.com/langchain-ai/langchain/assets/134971688/362451a6-981f-4edc-b7e0-790fc50b93de)
![wrong](https://github.com/langchain-ai/langchain/assets/134971688/9f169624-4079-489e-9303-e2b3c840a2ca)
**Steps to Reproduce:**
Index CSV data containing both text and numerical values, and subsequently execute a query that includes an alphanumeric question.
**Additional Information:**
Environment: Langchain version (0.0.284)
**Impact:**
This issue affects the accuracy and reliability of the FAISS similarity search, particularly when handling alpha-numeric queries that include numeric integers. Users relying on LangChain for information retrieval may experience challenges when seeking relevant documents related to such queries.
**Priority:**
High
Are FAISS and Redis similarity searches capable of providing such high similarity search over the index? If not, please guide me on where I should turn to achieve better and more accurate results
Thank you for your attention to this matter. Feel free to request additional information if needed.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13964/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13964/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13963 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13963/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13963/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13963/events | https://github.com/langchain-ai/langchain/issues/13963 | 2,014,310,258 | I_kwDOIPDwls54D-9y | 13,963 | Issue: Chroma.from_documents does not save metadata properly | {
"login": "YanaSSS",
"id": 43813983,
"node_id": "MDQ6VXNlcjQzODEzOTgz",
"avatar_url": "https://avatars.githubusercontent.com/u/43813983?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/YanaSSS",
"html_url": "https://github.com/YanaSSS",
"followers_url": "https://api.github.com/users/YanaSSS/followers",
"following_url": "https://api.github.com/users/YanaSSS/following{/other_user}",
"gists_url": "https://api.github.com/users/YanaSSS/gists{/gist_id}",
"starred_url": "https://api.github.com/users/YanaSSS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/YanaSSS/subscriptions",
"organizations_url": "https://api.github.com/users/YanaSSS/orgs",
"repos_url": "https://api.github.com/users/YanaSSS/repos",
"events_url": "https://api.github.com/users/YanaSSS/events{/privacy}",
"received_events_url": "https://api.github.com/users/YanaSSS/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] | open | false | null | [] | null | 4 | 2023-11-28T12:16:56 | 2023-12-01T22:24:59 | null | NONE | null | ### Issue you'd like to raise.
I create my vector db using the following code:
```
db = Chroma.from_documents(
chunked_documents,
embeddings,
persist_directory=db_path + '/' + db_type,
client_settings=chroma_settings,)
```
`chunked_documents` is a list of elements of type Document.
I have added metadata which is a simple numerical id: `{'id': 1}`
```
embeddings = HuggingFaceInstructEmbeddings(
model_name=args.embedding_model,
model_kwargs={"device": args.device},
)
```
```
CHROMA_SETTINGS = Settings(
anonymized_telemetry=False,
is_persistent=True,
)
```
What happens is that I run `db.similarity_search(query, k=3)` and for part of the answers, the metadata dict is empty. Has anyone encountered such an issue?
Just to point out, when I create the db using the `from_texts()` method where I add raw texts and metadata separately I do not encounter the issue and when running `db.similarity_search()` the returned answer, contains the respective metadata.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13963/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13963/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13962 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13962/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13962/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13962/events | https://github.com/langchain-ai/langchain/pull/13962 | 2,014,276,204 | PR_kwDOIPDwls5gi6da | 13,962 | Remove `python_repl` from _BASE_TOOLS | {
"login": "169",
"id": 10000925,
"node_id": "MDQ6VXNlcjEwMDAwOTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/169",
"html_url": "https://github.com/169",
"followers_url": "https://api.github.com/users/169/followers",
"following_url": "https://api.github.com/users/169/following{/other_user}",
"gists_url": "https://api.github.com/users/169/gists{/gist_id}",
"starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/169/subscriptions",
"organizations_url": "https://api.github.com/users/169/orgs",
"repos_url": "https://api.github.com/users/169/repos",
"events_url": "https://api.github.com/users/169/events{/privacy}",
"received_events_url": "https://api.github.com/users/169/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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T11:57:14 | 2023-11-29T01:13:55 | 2023-11-29T01:13:55 | CONTRIBUTOR | null | ### **Description:**
Previously `python_repl` was a built-in tool, but now it has been moved to `langchain_experimental`.
When I use `load_tools` I get an error:
```python
In [1]: from langchain.agents import load_tools
In [2]: load_tools(["python_repl"])
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[2], line 1
----> 1 load_tools(["python_repl"])
File ~/workspace/langchain/libs/langchain/langchain/agents/load_tools.py:530, in load_tools(tool_names, llm, callbacks, **kwargs)
528 tool_names.extend(requests_method_tools)
529 elif name in _BASE_TOOLS:
--> 530 tools.append(_BASE_TOOLS[name]())
531 elif name in _LLM_TOOLS:
532 if llm is None:
File ~/workspace/langchain/libs/langchain/langchain/agents/load_tools.py:84, in _get_python_repl()
83 def _get_python_repl() -> BaseTool:
---> 84 raise ImportError(
85 "This tool has been moved to langchain experiment. "
86 "This tool has access to a python REPL. "
87 "For best practices make sure to sandbox this tool. "
88 "Read https://github.com/langchain-ai/langchain/blob/master/SECURITY.md "
89 "To keep using this code as is, install langchain experimental and "
90 "update relevant imports replacing 'langchain' with 'langchain_experimental'"
91 )
ImportError: This tool has been moved to langchain experiment. This tool has access to a python REPL. For best practices make sure to sandbox this tool. Read https://github.com/langchain-ai/langchain/blob/master/SECURITY.md To keep using this code as is, install langchain experimental and update relevant imports replacing 'langchain' with 'langchain_experimental'
```
In this case, it will be very confusing. I think it is no longer a built-in tool now, so it can be removed from `_BASE_TOOLS`
### **Issue:**
https://github.com/langchain-ai/langchain/issues/13858, https://github.com/langchain-ai/langchain/issues/13859, https://github.com/langchain-ai/langchain/issues/13856
### **Twitter handle:**
[lin_bob57617](https://twitter.com/lin_bob57617) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13962/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13962/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13962",
"html_url": "https://github.com/langchain-ai/langchain/pull/13962",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13962.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13962.patch",
"merged_at": "2023-11-29T01:13:55"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13961 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13961/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13961/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13961/events | https://github.com/langchain-ai/langchain/issues/13961 | 2,014,263,985 | I_kwDOIPDwls54Dzqx | 13,961 | Enable Limit False in Self Query Retriever doesn't have the expected behavior | {
"login": "bescada",
"id": 152276873,
"node_id": "U_kgDOCROPiQ",
"avatar_url": "https://avatars.githubusercontent.com/u/152276873?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bescada",
"html_url": "https://github.com/bescada",
"followers_url": "https://api.github.com/users/bescada/followers",
"following_url": "https://api.github.com/users/bescada/following{/other_user}",
"gists_url": "https://api.github.com/users/bescada/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bescada/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bescada/subscriptions",
"organizations_url": "https://api.github.com/users/bescada/orgs",
"repos_url": "https://api.github.com/users/bescada/repos",
"events_url": "https://api.github.com/users/bescada/events{/privacy}",
"received_events_url": "https://api.github.com/users/bescada/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"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-11-28T11:50:02 | 2023-11-28T12:32:28 | null | NONE | null | ### System Info
I am using the SelfQueryRetriever class to make questions about a set of documents. It seems that there is an issue with the use of the `enable_limit` argument
Versions:
Langchain Version: 0.0.340
openai 1.3.5
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [X] 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
enable_limit = False:
```python
retriever = SelfQueryRetriever.from_llm(
llm,
vectorstore,
document_content_description,
metadata_field_info,
enable_limit=False
)
query = "I want indentify thousand repairs with xxxx"
result = retriever.invoke(query)
len(result)
#Result: 4
```
If change enable_limit = True:
```python
retriever = SelfQueryRetriever.from_llm(
llm,
vectorstore,
document_content_description,
metadata_field_info,
enable_limit=True
)
query = "I want indentify thousand repairs with xxxx"
result = retriever.invoke(query)
len(result)
#Result: 1000
```
If enable_limit=True and change in query for "All":
```python
retriever = SelfQueryRetriever.from_llm(
llm,
vectorstore,
document_content_description,
metadata_field_info,
enable_limit=True
)
query = "I want indentify All repairs with xxxx"
result = retriever.invoke(query)
len(result)
#Result: 4
```
### Expected behavior
The expected behaviour with "enable_limit = False" was to show more than 1000 documents.
As there is no defined limit, all documents were expected as a result. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13961/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13961/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13960 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13960/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13960/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13960/events | https://github.com/langchain-ai/langchain/pull/13960 | 2,014,219,392 | PR_kwDOIPDwls5giuKz | 13,960 | Fixes for opengpts release | {
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T11:23:48 | 2023-11-28T21:49:44 | 2023-11-28T21:49:43 | 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/13960/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13960/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13960",
"html_url": "https://github.com/langchain-ai/langchain/pull/13960",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13960.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13960.patch",
"merged_at": "2023-11-28T21:49:43"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13958 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13958/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13958/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13958/events | https://github.com/langchain-ai/langchain/issues/13958 | 2,014,030,020 | I_kwDOIPDwls54C6jE | 13,958 | ImportError: cannot import name 'agenerate_from_stream' from 'langchain_core.language_models.chat_models' | {
"login": "nicoloboschi",
"id": 23314389,
"node_id": "MDQ6VXNlcjIzMzE0Mzg5",
"avatar_url": "https://avatars.githubusercontent.com/u/23314389?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nicoloboschi",
"html_url": "https://github.com/nicoloboschi",
"followers_url": "https://api.github.com/users/nicoloboschi/followers",
"following_url": "https://api.github.com/users/nicoloboschi/following{/other_user}",
"gists_url": "https://api.github.com/users/nicoloboschi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nicoloboschi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nicoloboschi/subscriptions",
"organizations_url": "https://api.github.com/users/nicoloboschi/orgs",
"repos_url": "https://api.github.com/users/nicoloboschi/repos",
"events_url": "https://api.github.com/users/nicoloboschi/events{/privacy}",
"received_events_url": "https://api.github.com/users/nicoloboschi/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | closed | false | null | [] | null | 5 | 2023-11-28T09:40:11 | 2023-11-29T13:33:23 | 2023-11-29T13:33:22 | CONTRIBUTOR | null | ### System Info
Current LangChain master commit:
https://github.com/langchain-ai/langchain/commits/391f200
### Who can help?
@hwchase17 @baskaryan
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Just run
```
from langchain.chat_models import BedrockChat
```
Stacktrace:
```
tests/e2e-tests/test_compatibility_matrix.py:10: in <module>
from langchain.chat_models import ChatOpenAI, AzureChatOpenAI, ChatVertexAI, BedrockChat
/tmp/venv/lib/python3.11/site-packages/langchain/chat_models/__init__.py:20: in <module>
from langchain.chat_models.anthropic import ChatAnthropic
/tmp/venv/lib/python3.11/site-packages/langchain/chat_models/anthropic.py:18: in <module>
from langchain.chat_models.base import (
/tmp/venv/lib/python3.11/site-packages/langchain/chat_models/base.py:1: in <module>
from langchain_core.language_models.chat_models import (
E ImportError: cannot import name 'agenerate_from_stream' from 'langchain_core.language_models.chat_models' (/tmp/venv/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py)
```
### Expected behavior
To being able to import the required modules | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13958/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13958/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13957 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13957/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13957/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13957/events | https://github.com/langchain-ai/langchain/pull/13957 | 2,013,946,167 | PR_kwDOIPDwls5ghy90 | 13,957 | Use langchain core in-tree as a dev dependency | {
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T08:52:02 | 2023-11-28T17:23:44 | 2023-11-28T17:23:43 | COLLABORATOR | null | Using the published version means master is broken for contributors whenever we make changes in one lib that depend on the other.
<!-- 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/13957/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13957/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13957",
"html_url": "https://github.com/langchain-ai/langchain/pull/13957",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13957.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13957.patch",
"merged_at": "2023-11-28T17:23:43"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13956 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13956/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13956/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13956/events | https://github.com/langchain-ai/langchain/issues/13956 | 2,013,904,967 | I_kwDOIPDwls54CcBH | 13,956 | Issue: Question about Deletion of Embeddings for Confluence Spaces | {
"login": "deepak-habilelabs",
"id": 137885024,
"node_id": "U_kgDOCDf1YA",
"avatar_url": "https://avatars.githubusercontent.com/u/137885024?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/deepak-habilelabs",
"html_url": "https://github.com/deepak-habilelabs",
"followers_url": "https://api.github.com/users/deepak-habilelabs/followers",
"following_url": "https://api.github.com/users/deepak-habilelabs/following{/other_user}",
"gists_url": "https://api.github.com/users/deepak-habilelabs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/deepak-habilelabs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deepak-habilelabs/subscriptions",
"organizations_url": "https://api.github.com/users/deepak-habilelabs/orgs",
"repos_url": "https://api.github.com/users/deepak-habilelabs/repos",
"events_url": "https://api.github.com/users/deepak-habilelabs/events{/privacy}",
"received_events_url": "https://api.github.com/users/deepak-habilelabs/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] | open | false | null | [] | null | 5 | 2023-11-28T08:26:59 | 2023-11-28T11:41:36 | null | NONE | null | ### Issue you'd like to raise.
I'm currently working on a project and have encountered an issue with the deletion functionality for Confluence
Spaces. I've implemented a function delete_embeddings that is supposed to delete embeddings based on the Confluence space key, but it doesn't seem to be working as expected.
Here's the relevant code snippet:
def delete_embeddings(file_path, persist_directory):
chroma_db = chromadb.PersistentClient(path=persist_directory)
collection = chroma_db.get_or_create_collection(name="langchain")
ids = collection.get(where={"source": file_path})['ids']
collection.delete(where={"source": file_path},ids=ids)
# chroma_db.delete_collection(name="langchain")
print("delete successfully")
And I'm calling this function as follows:
delete_embeddings(names, persist_directory)
I want to delete embeddings of Confluence Spaces when user request deletion confluence space.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13956/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13956/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13955 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13955/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13955/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13955/events | https://github.com/langchain-ai/langchain/issues/13955 | 2,013,887,941 | I_kwDOIPDwls54CX3F | 13,955 | Advance metadata filtering for PGVector | {
"login": "raghav-knowbe4",
"id": 152261650,
"node_id": "U_kgDOCRNUEg",
"avatar_url": "https://avatars.githubusercontent.com/u/152261650?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/raghav-knowbe4",
"html_url": "https://github.com/raghav-knowbe4",
"followers_url": "https://api.github.com/users/raghav-knowbe4/followers",
"following_url": "https://api.github.com/users/raghav-knowbe4/following{/other_user}",
"gists_url": "https://api.github.com/users/raghav-knowbe4/gists{/gist_id}",
"starred_url": "https://api.github.com/users/raghav-knowbe4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raghav-knowbe4/subscriptions",
"organizations_url": "https://api.github.com/users/raghav-knowbe4/orgs",
"repos_url": "https://api.github.com/users/raghav-knowbe4/repos",
"events_url": "https://api.github.com/users/raghav-knowbe4/events{/privacy}",
"received_events_url": "https://api.github.com/users/raghav-knowbe4/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
}
] | open | false | null | [] | null | 2 | 2023-11-28T08:15:46 | 2023-11-28T19:55:11 | null | NONE | null | ### Feature request
PGVector in Langchain does not support advance metadata filtering such as "OR" clause.
For now, there is no way to perform filters such as:
```
{
"$or": [
{"uploaded_by": {"$eq": "USER1"}},
{"org": {"$eq": "ORG"}},
]
}
```
### Motivation
Our team is unable to use langchain with PGVector due to its lack of support for "OR" filter.
Having advanced metadata filtering like that in Pinecone/Qdrant would really help
https://docs.pinecone.io/docs/metadata-filtering
### Your contribution
For now, I see existing PR: https://github.com/langchain-ai/langchain/pull/12977
This could possibly solve the issue. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13955/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13955/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13954 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13954/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13954/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13954/events | https://github.com/langchain-ai/langchain/issues/13954 | 2,013,781,829 | I_kwDOIPDwls54B99F | 13,954 | Issue: Question about Deletion Functionality for Confluence Spaces | {
"login": "deepak-habilelabs",
"id": 137885024,
"node_id": "U_kgDOCDf1YA",
"avatar_url": "https://avatars.githubusercontent.com/u/137885024?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/deepak-habilelabs",
"html_url": "https://github.com/deepak-habilelabs",
"followers_url": "https://api.github.com/users/deepak-habilelabs/followers",
"following_url": "https://api.github.com/users/deepak-habilelabs/following{/other_user}",
"gists_url": "https://api.github.com/users/deepak-habilelabs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/deepak-habilelabs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deepak-habilelabs/subscriptions",
"organizations_url": "https://api.github.com/users/deepak-habilelabs/orgs",
"repos_url": "https://api.github.com/users/deepak-habilelabs/repos",
"events_url": "https://api.github.com/users/deepak-habilelabs/events{/privacy}",
"received_events_url": "https://api.github.com/users/deepak-habilelabs/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"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-11-28T06:57:30 | 2023-11-28T08:03:54 | null | NONE | null | ### Issue you'd like to raise.
I'm currently working on a project and have encountered an issue with the deletion functionality for Confluence Spaces. I've implemented a function `delete_embeddings` that is supposed to delete embeddings based on the Confluence space key, but it doesn't seem to be working as expected.
Here's the relevant code snippet:
```python
def delete_embeddings(file_path, persist_directory):
chroma_db = chromadb.PersistentClient(path=persist_directory)
collection = chroma_db.get_or_create_collection(name="langchain")
ids = collection.get(where={"source": file_path})['ids']
collection.delete(where={"source": file_path},ids=ids)
# chroma_db.delete_collection(name="langchain")
print("delete successfully")
And I'm calling this function as follows:
delete_embeddings(names, persist_directory)
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13954/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13954/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13952 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13952/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13952/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13952/events | https://github.com/langchain-ai/langchain/issues/13952 | 2,013,737,662 | I_kwDOIPDwls54BzK- | 13,952 | DOC: Dropbox document loader functionality | {
"login": "llamasrock",
"id": 131513748,
"node_id": "U_kgDOB9a9lA",
"avatar_url": "https://avatars.githubusercontent.com/u/131513748?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/llamasrock",
"html_url": "https://github.com/llamasrock",
"followers_url": "https://api.github.com/users/llamasrock/followers",
"following_url": "https://api.github.com/users/llamasrock/following{/other_user}",
"gists_url": "https://api.github.com/users/llamasrock/gists{/gist_id}",
"starred_url": "https://api.github.com/users/llamasrock/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/llamasrock/subscriptions",
"organizations_url": "https://api.github.com/users/llamasrock/orgs",
"repos_url": "https://api.github.com/users/llamasrock/repos",
"events_url": "https://api.github.com/users/llamasrock/events{/privacy}",
"received_events_url": "https://api.github.com/users/llamasrock/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] | closed | false | null | [] | null | 7 | 2023-11-28T06:18:48 | 2023-12-03T22:19:38 | 2023-12-03T22:19:38 | NONE | null | ### Issue with current documentation:
I was hoping to use the Dropbox document loader for a large number of pdf and some docx documents, however I am not sure whether this loader supports these file types. I followed the instructions on https://python.langchain.com/docs/integrations/document_loaders/dropbox and installed the "unstructured[all-docs]" package but I keep getting the message that the loader skips these files.
> xxx.docx could not be decoded as text. Skipping.
> yyy.pdf could not be decoded as text. Skipping.
Does this loader only support .txt files? Is there an alternative? I see the Unstructured loader only works for individual files, is that the best alternative?
Many thanks!
### Idea or request for content:
File formats the loader supports needs to be clarified
unstructured package was given as a prerequisite for pdf files but I was getting missing package/method errors until I installed the "unstructured[all-docs]" package and still not able to load pdf files | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13952/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13952/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13951 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13951/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13951/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13951/events | https://github.com/langchain-ai/langchain/issues/13951 | 2,013,694,385 | I_kwDOIPDwls54Bomx | 13,951 | PineconeProtocolError: Failed to connect; did you specify the correct index name? | {
"login": "blockdev723",
"id": 47790805,
"node_id": "MDQ6VXNlcjQ3NzkwODA1",
"avatar_url": "https://avatars.githubusercontent.com/u/47790805?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/blockdev723",
"html_url": "https://github.com/blockdev723",
"followers_url": "https://api.github.com/users/blockdev723/followers",
"following_url": "https://api.github.com/users/blockdev723/following{/other_user}",
"gists_url": "https://api.github.com/users/blockdev723/gists{/gist_id}",
"starred_url": "https://api.github.com/users/blockdev723/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/blockdev723/subscriptions",
"organizations_url": "https://api.github.com/users/blockdev723/orgs",
"repos_url": "https://api.github.com/users/blockdev723/repos",
"events_url": "https://api.github.com/users/blockdev723/events{/privacy}",
"received_events_url": "https://api.github.com/users/blockdev723/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
}
] | open | false | null | [] | null | 2 | 2023-11-28T05:49:35 | 2023-11-29T11:03:57 | null | NONE | null | ### System Info
To train data in Pinecone, I used the function.
_pinecone = Pinecone.from_documents(docs, self.embeddings, index_name=self.index_name)
all the parameters have values always:
![image](https://github.com/langchain-ai/langchain/assets/47790805/da013cf4-a082-44d0-9505-0013835c4b90)
![image](https://github.com/langchain-ai/langchain/assets/47790805/6764a84c-a59c-43a5-9dfe-4ecea69e68ef)
But, this error occurs often like this:
![image](https://github.com/langchain-ai/langchain/assets/47790805/9aee7fed-49c4-4e6e-941f-94c3f442244c)
@hwchase17 , I am looking forward to fixing this issue asap. Thank you.
### 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
class PineConeIndexer:
def __init__(self):
self.embeddings = OpenAIEmbeddings()
# initialize pinecone
pinecone.init(
api_key=os.environ.get('PINECONE_API_KEY'),
environment=os.environ.get('PINECONE_ENV')
)
self.index_name = os.environ.get('PINECONE_INDEX_NAME')
def upsert_index_from_task(self, task):
try:
# get doc
....
_pinecone = Pinecone.from_documents(docs, self.embeddings, index_name=self.index_name)
return {"success": True, "error": None}
except Exception as e:
return {"success": False, "error": str(e)}
### Expected behavior
sometimes, this error occurs:
PineconeProtocolError
Failed to connect; did you specify the correct index name?
ProtocolError
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13951/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13951/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13950 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13950/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13950/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13950/events | https://github.com/langchain-ai/langchain/pull/13950 | 2,013,688,168 | PR_kwDOIPDwls5gg68L | 13,950 | Mathpix PDF loader supports arbitrary extra params | {
"login": "chadnorvell",
"id": 29340381,
"node_id": "MDQ6VXNlcjI5MzQwMzgx",
"avatar_url": "https://avatars.githubusercontent.com/u/29340381?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chadnorvell",
"html_url": "https://github.com/chadnorvell",
"followers_url": "https://api.github.com/users/chadnorvell/followers",
"following_url": "https://api.github.com/users/chadnorvell/following{/other_user}",
"gists_url": "https://api.github.com/users/chadnorvell/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chadnorvell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chadnorvell/subscriptions",
"organizations_url": "https://api.github.com/users/chadnorvell/orgs",
"repos_url": "https://api.github.com/users/chadnorvell/repos",
"events_url": "https://api.github.com/users/chadnorvell/events{/privacy}",
"received_events_url": "https://api.github.com/users/chadnorvell/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T05:42:54 | 2023-11-29T10:12:33 | 2023-11-29T10:12:33 | CONTRIBUTOR | null | - **Description:** Support providing whatever extra parameters you want to the Mathpix PDF loader API request.
- **Issue:** #12773
- **Dependencies:** None | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13950/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13950/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13950",
"html_url": "https://github.com/langchain-ai/langchain/pull/13950",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13950.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13950.patch",
"merged_at": "2023-11-29T10:12:32"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13949 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13949/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13949/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13949/events | https://github.com/langchain-ai/langchain/pull/13949 | 2,013,672,102 | PR_kwDOIPDwls5gg3Zz | 13,949 | Fix Mathpix PDF loader integration | {
"login": "chadnorvell",
"id": 29340381,
"node_id": "MDQ6VXNlcjI5MzQwMzgx",
"avatar_url": "https://avatars.githubusercontent.com/u/29340381?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chadnorvell",
"html_url": "https://github.com/chadnorvell",
"followers_url": "https://api.github.com/users/chadnorvell/followers",
"following_url": "https://api.github.com/users/chadnorvell/following{/other_user}",
"gists_url": "https://api.github.com/users/chadnorvell/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chadnorvell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chadnorvell/subscriptions",
"organizations_url": "https://api.github.com/users/chadnorvell/orgs",
"repos_url": "https://api.github.com/users/chadnorvell/repos",
"events_url": "https://api.github.com/users/chadnorvell/events{/privacy}",
"received_events_url": "https://api.github.com/users/chadnorvell/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T05:26:23 | 2023-12-03T18:36:50 | 2023-12-03T18:36:50 | CONTRIBUTOR | null | - **Description:** Fixes the Mathpix PDF loader API integration. Specifically, ensures that Mathpix auth headers are provided for every request, and ensures that we recognize all errors that can occur during a request. Also, the option to provide API keys as kwargs never actually worked before, but now that's fixed too.
- **Issue:** #11249
- **Dependencies:** None | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13949/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13949/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13949",
"html_url": "https://github.com/langchain-ai/langchain/pull/13949",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13949.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13949.patch",
"merged_at": "2023-12-03T18:36:50"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13948 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13948/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13948/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13948/events | https://github.com/langchain-ai/langchain/pull/13948 | 2,013,613,246 | PR_kwDOIPDwls5ggp_4 | 13,948 | Tmp | {
"login": "169",
"id": 10000925,
"node_id": "MDQ6VXNlcjEwMDAwOTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/169",
"html_url": "https://github.com/169",
"followers_url": "https://api.github.com/users/169/followers",
"following_url": "https://api.github.com/users/169/following{/other_user}",
"gists_url": "https://api.github.com/users/169/gists{/gist_id}",
"starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/169/subscriptions",
"organizations_url": "https://api.github.com/users/169/orgs",
"repos_url": "https://api.github.com/users/169/repos",
"events_url": "https://api.github.com/users/169/events{/privacy}",
"received_events_url": "https://api.github.com/users/169/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T04:46:46 | 2023-11-28T07:45:57 | 2023-11-28T07:45:57 | 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/13948/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13948/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13948",
"html_url": "https://github.com/langchain-ai/langchain/pull/13948",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13948.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13948.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13947 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13947/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13947/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13947/events | https://github.com/langchain-ai/langchain/issues/13947 | 2,013,606,586 | I_kwDOIPDwls54BTK6 | 13,947 | can you tell me how to calculate what will be cost for this input tokens in prompt and output tokens in prompt | {
"login": "Onkargaikwad11",
"id": 121924825,
"node_id": "U_kgDOB0Rs2Q",
"avatar_url": "https://avatars.githubusercontent.com/u/121924825?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Onkargaikwad11",
"html_url": "https://github.com/Onkargaikwad11",
"followers_url": "https://api.github.com/users/Onkargaikwad11/followers",
"following_url": "https://api.github.com/users/Onkargaikwad11/following{/other_user}",
"gists_url": "https://api.github.com/users/Onkargaikwad11/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Onkargaikwad11/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Onkargaikwad11/subscriptions",
"organizations_url": "https://api.github.com/users/Onkargaikwad11/orgs",
"repos_url": "https://api.github.com/users/Onkargaikwad11/repos",
"events_url": "https://api.github.com/users/Onkargaikwad11/events{/privacy}",
"received_events_url": "https://api.github.com/users/Onkargaikwad11/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-11-28T04:42:02 | 2023-11-28T04:47:14 | null | NONE | null | ### Issue with current documentation:
this is intput token (import pandas as pd
import json
from IPython.display import Markdown, display
from langchain.agents import create_csv_agent
from langchain.chat_models import ChatOpenAI
from langchain.llms import OpenAI
import os
os.environ["OPENAI_API_KEY"] = ""
# Load the dataset
df = pd.read_csv('Loan Collections - Sheet1.csv')
# Function to convert date and time columns to float
def convert_date_time_columns_to_float(df):
for column in df.select_dtypes(include=['object']).columns:
# Check if the column name contains 'date' or 'time'
if 'date' in column.lower() or 'time' in column.lower():
try:
# Convert the column to datetime
df[column] = pd.to_datetime(df[column], errors='coerce')
# Convert datetime to numerical representation (e.g., days since a reference date)
reference_date = pd.to_datetime('1900-01-01')
df[column] = (df[column] - reference_date).dt.total_seconds() / (24 * 60 * 60)
except ValueError:
# Handle errors during conversion
print(f"Error converting column '{column}' to float.")
# Convert 'date' and 'time' columns to float
convert_date_time_columns_to_float(df)
# Extract unique values for each column
unique_values_per_column = {}
for column in df.select_dtypes(include=['object']).columns:
unique_values_per_column[column] = df[column].unique().tolist()
# Convert the dictionary to JSON
json_data_train = json.dumps(unique_values_per_column, indent=4)
testData_fname = "Sample Retail Stores Data.csv"
# Load the dataset
df2 = pd.read_csv(testData_fname)
convert_date_time_columns_to_float(df2)
# Extract unique values for each column
unique_values_per_column = {}
for column in df2.select_dtypes(include=['object']).columns:
unique_values_per_column[column] = df2[column].unique().tolist()
# Convert the dictionary to JSON
json_data_test = json.dumps(unique_values_per_column, indent=4)
# Define user's question
user_question = "Percentage share of State by Value?"
# Define the prompt template
prompt_template = f'''If the dataset has the following columns: {json_data_train}'''+''' Understand user questions with different column names and convert them to a JSON format.
Question might not even mentioned column name at all, it would probably mention value of the column. so it has to figure it out columnn name based on that value.
Example1:
User Question1: top zone in the year 2019 with Loan Amt between 10k and 20k and tenure > 12 excluding Texas region?
{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Due Date",
"agg_columns": [],
"trend": "null",
"to_start_date": "null",
"to_end_date": "null",
"growth": "null",
"variables_grpby": ["Zone"],
"filters": {},
"not_in": {"Region": ["Texas"]},
"num_filter": {
"gt": [
["Loan Tenure", 12],
["Loan Amount", 10000]
],
"lt": [
["Loan Amount", 20000]
]
},
"percent": "false",
"top": "1",
"bottom": "null"
}
Note the following in the above example
- The word "top" in the User Question made the "top" key have the value as "1". If "highest" is mentioned in the User Question, even then "top" would have the value as "1". If "top" is not mentioned or not implied in the User Question, then it takes on the value "null". Similarly for "bottom" key in the System Response.
- The word "zone" in the User Question refers to a column "Zone" in the dataset and since it is a non-numeric column and we have to group by that column, the system response has it as one of the values of the list of the key "variables_grpby"
- The key "start_date" and "end_date" Since it is mentioned 2019 in the User Question as the timeframe, the "start_date" assumes the beginning of the year 2019 and "end_date" assumes the end of the year 2019. If no date related words are mentioned in the question, "start_date" would be "null" and "end_date" would be "null".
- The key "time_stamp_col" in the System Response should mention the relevant time related column name from the dataset according to the question if the question mentions a time related word.
- The key "agg_columns" in the System Response is a list of columns to be aggregated which should mention the numeric column names on which the question wants us to aggregate on.
- The key "trend" in the System Response, "trend" is set to "null" since the user question doesn't imply any trend analysis . If the question were about trends over time, this key would contain information about the trend, such as "upward," "downward," or "null" if no trend is specified.
- The key "filters" An empty dictionary in this case, as there are no explicit filters mentioned in the user question. If the user asked to filter data based on certain conditions (e.g. excluding a specific region), this key would contain the relevant filters.
- The key "to_start_date" and "to_end_date" Both set to "null" in this example because the user question specifies a single timeframe (2019). If the question mentioned a range (e.g. "from January 2019 to March 2019"), these keys would capture the specified range.
- The key "growth" Set to "null" in this example as there is no mention of growth in the user question. If the user inquired about growth or change over time, this key would provide information about the type of growth (e.g."monthly","yearly"," "absolute") or be set to "null" if not applicable.
- The key "not_in" Contains information about exclusion criteria based on the user's question. In this example, it excludes the "Texas" region. If the user question doesn't involve exclusions, this key would be an empty dictionary.
- The key "num_filter" Specifies numerical filters based on conditions in the user question. In this example, it filters loans with a tenure greater than 12 and loan amounts between 10k and 20k. If the user question doesn't involve numerical filters, this key would be an empty dictionary.
- The key "percent" Set to "false" in this example as there is no mention of percentage in the user question. If the user inquired about percentages, this key would contain information about the use of percentages in the response.
Similarly, below are more examples of user questions and their corresponding expected System Responses.
Example 2:
User Question: What is the Highest Loan Amount and Loan Outstanding by RM Name James in January 2020
{
"start_date": "01-01-2020",
"end_date": "31-01-2020",
"time_stamp_col": "Due Date",
"agg_columns": ["Loan Amount", "Loan Outstanding"],
"trend": "null",
"to_start_date": "null",
"to_end_date": "null",
"growth": "null",
"variables_grpby": [],
"filters": {"RM Name": ["James"]},
"not_in": {},
"num_filter": {},
"percent": "false",
"top": "1",
"bottom": "null"
}
Example 3:
User Question: Which RM Name with respect to Region has the Highest Interest Outstanding and Principal Outstanding in the year 2019
{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Due Date",
"agg_columns": ["Interest Outstanding", "Principal Outstanding"],
"trend": "null",
"to_start_date": "null",
"to_end_date": "null",
"growth": "null",
"variables_grpby": ["RM Name", "Region"],
"filters": {},
"not_in": {},
"num_filter": {},
"percent": "false",
"top": "1",
"bottom": "null"
}
Example 4:
User Question: Which Branch in North Carolina with respect to Cibil Score Bucket has the Highest Cibil Score in 2019
{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Due Date",
"agg_columns": ["Cibil Score", "DPD Bucket"],
"trend": "null",
"to_start_date": "null",
"to_end_date": "null",
"growth": "null",
"variables_grpby": ["Branch"],
"filters": {"Region": ["North Carolina"]},
"not_in": {},
"num_filter": {},
"percent": "false",
"top": "1",
"bottom": "null"
}
''
Example 5:
User Question: With respect to Zone, Region, Branch, RM Name what is the Highest Loan Amount, Loan Tenure, Loan Outstanding, EMI Pending, Principal Outstanding
{
"start_date": "null",
"end_date": "null",
"time_stamp_col": "null",
"agg_columns": ["Loan Amount", "Loan Tenure", "Loan Outstanding", "EMI Pending", "Principal Outstanding"],
"trend": "null",
"to_start_date": "null",
"to_end_date": "null",
"growth": "null",
"variables_grpby": ["Zone", "Region", "Branch", "RM Name"],
"filters": {},
"not_in": {},
"num_filter": {},
"percent": "false",
"top": "1",
"bottom": "null"
}
Example 6:
User Question: Top 2 zones by Housing Loan in the year 2019
{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Due Date",
"agg_columns": ["Housing Loan"],
"trend": "null",
"to_start_date": "null",
"to_end_date": "null",
"growth": "null",
"variables_grpby": ["Zone"],
"filters": {"Product": ["Home Loan"]},
"not_in": {},
"num_filter": {},
"percent": "false",
"top": "2",
"bottom": "null"
}
'''+ f'''Our test dataset has the following columns: {json_data_test}
User Question (to be converted): {user_question}'''
# Load the agent
agent = create_csv_agent(OpenAI(temperature=0), testData_fname, verbose=True)
gpt4_agent = create_csv_agent(ChatOpenAI(temperature=0, model_name="gpt-4-1106-preview"), testData_fname)
# Use the formatted question as the input to your agent
response = gpt4_agent.run(prompt_template)
# Print the response
print(user_question)
print(response)) and this is output token ( Percentage share of State by Value?
{
"start_date": "null",
"end_date": "null",
"time_stamp_col": "null",
"agg_columns": ["Value"],
"trend": "null",
"to_start_date": "null",
"to_end_date": "null",
"growth": "null",
"variables_grpby": ["State"],
"filters": {},
"not_in": {},
"num_filter": {},
"percent": "true",
"top": "null",
"bottom": "null"
})
### Idea or request for content:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13947/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13947/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13946 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13946/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13946/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13946/events | https://github.com/langchain-ai/langchain/pull/13946 | 2,013,573,622 | PR_kwDOIPDwls5gghYn | 13,946 | secretStr for baichuan chat model api key | {
"login": "nhywieza",
"id": 8528287,
"node_id": "MDQ6VXNlcjg1MjgyODc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8528287?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nhywieza",
"html_url": "https://github.com/nhywieza",
"followers_url": "https://api.github.com/users/nhywieza/followers",
"following_url": "https://api.github.com/users/nhywieza/following{/other_user}",
"gists_url": "https://api.github.com/users/nhywieza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nhywieza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nhywieza/subscriptions",
"organizations_url": "https://api.github.com/users/nhywieza/orgs",
"repos_url": "https://api.github.com/users/nhywieza/repos",
"events_url": "https://api.github.com/users/nhywieza/events{/privacy}",
"received_events_url": "https://api.github.com/users/nhywieza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | {
"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 | 3 | 2023-11-28T04:03:03 | 2023-11-29T02:22:13 | 2023-11-29T02:20:23 | CONTRIBUTOR | null | Description: This PR removes secrets present in raw format,
Issue: Baichuan api key was exposed when printing out the langchain object(https://github.com/langchain-ai/langchain/issues/12165)
Tag maintainer: @eyurtsev | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13946/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13946/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13946",
"html_url": "https://github.com/langchain-ai/langchain/pull/13946",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13946.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13946.patch",
"merged_at": "2023-11-29T02:20:23"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13945 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13945/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13945/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13945/events | https://github.com/langchain-ai/langchain/pull/13945 | 2,013,561,050 | PR_kwDOIPDwls5ggeut | 13,945 | feat: mask api key for nlpcloud | {
"login": "lujingxuansc",
"id": 31956487,
"node_id": "MDQ6VXNlcjMxOTU2NDg3",
"avatar_url": "https://avatars.githubusercontent.com/u/31956487?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lujingxuansc",
"html_url": "https://github.com/lujingxuansc",
"followers_url": "https://api.github.com/users/lujingxuansc/followers",
"following_url": "https://api.github.com/users/lujingxuansc/following{/other_user}",
"gists_url": "https://api.github.com/users/lujingxuansc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lujingxuansc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lujingxuansc/subscriptions",
"organizations_url": "https://api.github.com/users/lujingxuansc/orgs",
"repos_url": "https://api.github.com/users/lujingxuansc/repos",
"events_url": "https://api.github.com/users/lujingxuansc/events{/privacy}",
"received_events_url": "https://api.github.com/users/lujingxuansc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T03:46:22 | 2023-11-29T02:16:36 | 2023-11-29T02:16:36 | CONTRIBUTOR | null | for https://github.com/langchain-ai/langchain/issues/12165 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13945/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13945/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13945",
"html_url": "https://github.com/langchain-ai/langchain/pull/13945",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13945.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13945.patch",
"merged_at": "2023-11-29T02:16:36"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13944 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13944/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13944/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13944/events | https://github.com/langchain-ai/langchain/pull/13944 | 2,013,558,131 | PR_kwDOIPDwls5ggeHM | 13,944 | Secret str for baichuan | {
"login": "nhywieza",
"id": 8528287,
"node_id": "MDQ6VXNlcjg1MjgyODc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8528287?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nhywieza",
"html_url": "https://github.com/nhywieza",
"followers_url": "https://api.github.com/users/nhywieza/followers",
"following_url": "https://api.github.com/users/nhywieza/following{/other_user}",
"gists_url": "https://api.github.com/users/nhywieza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nhywieza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nhywieza/subscriptions",
"organizations_url": "https://api.github.com/users/nhywieza/orgs",
"repos_url": "https://api.github.com/users/nhywieza/repos",
"events_url": "https://api.github.com/users/nhywieza/events{/privacy}",
"received_events_url": "https://api.github.com/users/nhywieza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T03:42:34 | 2023-11-28T03:59:43 | 2023-11-28T03:59:43 | CONTRIBUTOR | null | - **Description:** This PR removes secrets present in raw format,
- **Issue:** Baichuan api key was exposed when printing out the langchain object(#12165)
- **Tag maintainer:** @eyurtsev
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13944/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13944/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13944",
"html_url": "https://github.com/langchain-ai/langchain/pull/13944",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13944.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13944.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13943 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13943/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13943/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13943/events | https://github.com/langchain-ai/langchain/issues/13943 | 2,013,546,758 | I_kwDOIPDwls54BEkG | 13,943 | 'HTTPClient' object has no attribute 'configuration' | {
"login": "crazyseabiscuit",
"id": 878788,
"node_id": "MDQ6VXNlcjg3ODc4OA==",
"avatar_url": "https://avatars.githubusercontent.com/u/878788?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/crazyseabiscuit",
"html_url": "https://github.com/crazyseabiscuit",
"followers_url": "https://api.github.com/users/crazyseabiscuit/followers",
"following_url": "https://api.github.com/users/crazyseabiscuit/following{/other_user}",
"gists_url": "https://api.github.com/users/crazyseabiscuit/gists{/gist_id}",
"starred_url": "https://api.github.com/users/crazyseabiscuit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/crazyseabiscuit/subscriptions",
"organizations_url": "https://api.github.com/users/crazyseabiscuit/orgs",
"repos_url": "https://api.github.com/users/crazyseabiscuit/repos",
"events_url": "https://api.github.com/users/crazyseabiscuit/events{/privacy}",
"received_events_url": "https://api.github.com/users/crazyseabiscuit/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 3 | 2023-11-28T03:28:12 | 2023-11-28T09:22:33 | null | NONE | null | ### System Info
machine: mackbook pro Sonoma 14.1.1
package:
python = "3.10.13"
openai = "^0.28.1"
pandas = "^2.1.1"
ipython = "^8.16.0"
langchain = "^0.0.306"
python-dotenv = "^1.0.0"
seaborn = "^0.13.0"
tqdm = "^4.66.1"
torch = "^2.1.0"
transformers = "^4.35.2"
accelerate = "^0.24.1"
sentencepiece = "^0.1.99"
openllm = "^0.4.27"
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
follow the instruction https://python.langchain.com/docs/integrations/llms/openllm
1)openllm start dolly-v2
2)
from langchain.llms import OpenLLM
server_url = "http://localhost:3000" # Replace with remote host if you are running on a remote server
llm = OpenLLM(server_url=server_url)
llm("what is the meaning of life")
error:
line 229 /langchain/llms/openllm.py 220
AtrributionError: "HttpClient" object has not attribute 'configuration'
### Expected behavior
return a response from LLM | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13943/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13943/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13942 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13942/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13942/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13942/events | https://github.com/langchain-ai/langchain/pull/13942 | 2,013,542,053 | PR_kwDOIPDwls5ggav8 | 13,942 | add volcengine endpoint for LLM | {
"login": "h3l",
"id": 1664952,
"node_id": "MDQ6VXNlcjE2NjQ5NTI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1664952?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/h3l",
"html_url": "https://github.com/h3l",
"followers_url": "https://api.github.com/users/h3l/followers",
"following_url": "https://api.github.com/users/h3l/following{/other_user}",
"gists_url": "https://api.github.com/users/h3l/gists{/gist_id}",
"starred_url": "https://api.github.com/users/h3l/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/h3l/subscriptions",
"organizations_url": "https://api.github.com/users/h3l/orgs",
"repos_url": "https://api.github.com/users/h3l/repos",
"events_url": "https://api.github.com/users/h3l/events{/privacy}",
"received_events_url": "https://api.github.com/users/h3l/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-11-28T03:22:35 | 2023-11-29T21:16:49 | 2023-11-29T21:16:42 | CONTRIBUTOR | null | - **Description:** Volc Engine MaaS serves as an enterprise-grade, large-model service platform designed for developers. You can visit its homepage at https://www.volcengine.com/docs/82379/1099455 for details. This change will facilitate developers to integrate quickly with the platform.
- **Issue:** None
- **Dependencies:** volcengine
- **Tag maintainer:** @baskaryan
- **Twitter handle:** @he1v3tica | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13942/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13942/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13942",
"html_url": "https://github.com/langchain-ai/langchain/pull/13942",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13942.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13942.patch",
"merged_at": "2023-11-29T21:16:42"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13941 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13941/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13941/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13941/events | https://github.com/langchain-ai/langchain/pull/13941 | 2,013,521,427 | PR_kwDOIPDwls5ggWG9 | 13,941 | Added Slack Toolkit | {
"login": "ZyeG",
"id": 97558871,
"node_id": "U_kgDOBdChVw",
"avatar_url": "https://avatars.githubusercontent.com/u/97558871?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ZyeG",
"html_url": "https://github.com/ZyeG",
"followers_url": "https://api.github.com/users/ZyeG/followers",
"following_url": "https://api.github.com/users/ZyeG/following{/other_user}",
"gists_url": "https://api.github.com/users/ZyeG/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ZyeG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ZyeG/subscriptions",
"organizations_url": "https://api.github.com/users/ZyeG/orgs",
"repos_url": "https://api.github.com/users/ZyeG/repos",
"events_url": "https://api.github.com/users/ZyeG/events{/privacy}",
"received_events_url": "https://api.github.com/users/ZyeG/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | 1 | 2023-11-28T03:06:41 | 2023-11-29T07:28:07 | 2023-11-29T07:28:06 | CONTRIBUTOR | null | This pull request addresses #11747
We added slack toolkit to lang chain.
Slack tools:
- get_message: get message history in a channel
- send_message: send a message on user's or bot's behalf to a channel
- get_channel: get a summary of all channels in workspace
Example: docs/integrations/toolkits/slack.ipynb | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13941/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13941/timeline | null | null | true | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13941",
"html_url": "https://github.com/langchain-ai/langchain/pull/13941",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13941.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13941.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13940 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13940/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13940/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13940/events | https://github.com/langchain-ai/langchain/pull/13940 | 2,013,520,514 | PR_kwDOIPDwls5ggV5t | 13,940 | Split out openai | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T03:06:08 | 2023-12-14T02:53:58 | 2023-12-14T02:53:58 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13940/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13940/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13940",
"html_url": "https://github.com/langchain-ai/langchain/pull/13940",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13940.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13940.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13939 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13939/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13939/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13939/events | https://github.com/langchain-ai/langchain/issues/13939 | 2,013,460,359 | I_kwDOIPDwls54AveH | 13,939 | To support open v1 SDK proxy setting | {
"login": "shadowlinyf",
"id": 13216079,
"node_id": "MDQ6VXNlcjEzMjE2MDc5",
"avatar_url": "https://avatars.githubusercontent.com/u/13216079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shadowlinyf",
"html_url": "https://github.com/shadowlinyf",
"followers_url": "https://api.github.com/users/shadowlinyf/followers",
"following_url": "https://api.github.com/users/shadowlinyf/following{/other_user}",
"gists_url": "https://api.github.com/users/shadowlinyf/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shadowlinyf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shadowlinyf/subscriptions",
"organizations_url": "https://api.github.com/users/shadowlinyf/orgs",
"repos_url": "https://api.github.com/users/shadowlinyf/repos",
"events_url": "https://api.github.com/users/shadowlinyf/events{/privacy}",
"received_events_url": "https://api.github.com/users/shadowlinyf/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 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-11-28T02:12:10 | 2023-11-28T02:17:38 | null | NONE | null | ### System Info
langchain 0.0.340
### Who can help?
@hwchase17 @agola11
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
After openai v1 sdk the previous method openai.proxy = {xxx} is no longer supported. But langchain is still using it.
It seems openai v1 sdk only support to set proxy on client level. see this issue on open ai sdk repo https://github.com/openai/openai-python/issues/825#issuecomment-1826047567
### Expected behavior
Should implement the way openai sdk required to set proxy | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13939/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13939/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13938 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13938/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13938/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13938/events | https://github.com/langchain-ai/langchain/pull/13938 | 2,013,443,383 | PR_kwDOIPDwls5ggFbd | 13,938 | Add Outline provider doc | {
"login": "yuskhan",
"id": 66191792,
"node_id": "MDQ6VXNlcjY2MTkxNzky",
"avatar_url": "https://avatars.githubusercontent.com/u/66191792?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yuskhan",
"html_url": "https://github.com/yuskhan",
"followers_url": "https://api.github.com/users/yuskhan/followers",
"following_url": "https://api.github.com/users/yuskhan/following{/other_user}",
"gists_url": "https://api.github.com/users/yuskhan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yuskhan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yuskhan/subscriptions",
"organizations_url": "https://api.github.com/users/yuskhan/orgs",
"repos_url": "https://api.github.com/users/yuskhan/repos",
"events_url": "https://api.github.com/users/yuskhan/events{/privacy}",
"received_events_url": "https://api.github.com/users/yuskhan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-28T01:51:18 | 2023-11-29T03:29:31 | 2023-11-29T03:29:30 | CONTRIBUTOR | null | - **Description:** Added a provider doc to `docs/integrations/providers` for the new Outline integration in #13889
- **Tag maintainer:** @baskaryan | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13938/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13938/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13938",
"html_url": "https://github.com/langchain-ai/langchain/pull/13938",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13938.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13938.patch",
"merged_at": "2023-11-29T03:29:30"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13937 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13937/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13937/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13937/events | https://github.com/langchain-ai/langchain/issues/13937 | 2,013,425,511 | I_kwDOIPDwls54Am9n | 13,937 | Issue: create agent takes multiple variables | {
"login": "xasxin",
"id": 113810081,
"node_id": "U_kgDOBsiaoQ",
"avatar_url": "https://avatars.githubusercontent.com/u/113810081?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xasxin",
"html_url": "https://github.com/xasxin",
"followers_url": "https://api.github.com/users/xasxin/followers",
"following_url": "https://api.github.com/users/xasxin/following{/other_user}",
"gists_url": "https://api.github.com/users/xasxin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xasxin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xasxin/subscriptions",
"organizations_url": "https://api.github.com/users/xasxin/orgs",
"repos_url": "https://api.github.com/users/xasxin/repos",
"events_url": "https://api.github.com/users/xasxin/events{/privacy}",
"received_events_url": "https://api.github.com/users/xasxin/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] | open | false | null | [] | null | 2 | 2023-11-28T01:27:57 | 2023-11-28T01:31:23 | null | NONE | null | ### Issue you'd like to raise.
It seems like that the agent can only take one variable "input".
I would like to create an agent with a custom prompt template that takes multiple variables whenever a user types something. like agent_executor.invoke({"input": "what is my name", "example":example, "user_profile":user_profile})
the custom prompt template looks like """
user input: {input}
example: {example}
user_profile : {user_profile}
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13937/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13937/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13936 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13936/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13936/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13936/events | https://github.com/langchain-ai/langchain/issues/13936 | 2,013,395,749 | I_kwDOIPDwls54Afsl | 13,936 | devcontainer fail to built | {
"login": "ZyeG",
"id": 97558871,
"node_id": "U_kgDOBdChVw",
"avatar_url": "https://avatars.githubusercontent.com/u/97558871?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ZyeG",
"html_url": "https://github.com/ZyeG",
"followers_url": "https://api.github.com/users/ZyeG/followers",
"following_url": "https://api.github.com/users/ZyeG/following{/other_user}",
"gists_url": "https://api.github.com/users/ZyeG/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ZyeG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ZyeG/subscriptions",
"organizations_url": "https://api.github.com/users/ZyeG/orgs",
"repos_url": "https://api.github.com/users/ZyeG/repos",
"events_url": "https://api.github.com/users/ZyeG/events{/privacy}",
"received_events_url": "https://api.github.com/users/ZyeG/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | closed | false | null | [] | null | 3 | 2023-11-28T00:57:23 | 2023-11-29T04:10:15 | 2023-11-29T04:10:15 | CONTRIBUTOR | null | ### Issue you'd like to raise.
trying building devcontainer following steps in doc ~/langchain/.devcontainer/README.md, but stuck at step10/11
<img width="876" alt="Screen Shot 2023-11-27 at 7 56 30 PM" src="https://github.com/langchain-ai/langchain/assets/97558871/3b8c803c-bdce-410d-8b7a-19fb0d1bc692">
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13936/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13936/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13935 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13935/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13935/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13935/events | https://github.com/langchain-ai/langchain/pull/13935 | 2,013,378,489 | PR_kwDOIPDwls5gf3dw | 13,935 | Added DGraphQAChain for DGraph databases | {
"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"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | open | false | null | [] | null | 1 | 2023-11-28T00:40:11 | 2023-12-01T05:24:27 | null | NONE | null | **Description:**
Added DGraphQAChain, a question answering chain for DGraph, a GraphQL powered database, extending LangChain's outreach to DGraph clients, and the DGraph community overall.
This pull request seamlessly integrates DGraph and DGraphQAChain, offering functionality similar to the other graph database integrations. Noteworthy differentiators include the introduction of an "experimental_dql_syntax_injection" flag. When activated, this feature injects text extracted from the DGraph Query Syntax guidelines page, providing valuable context to enhance the performance of less proficient Language Models and increase the likelihood of generating valid queries.
This pull requests also contains some sample queries which can be injected into the DGraphQAChain, with the use_generic_query_examples flag.
**issue**
https://github.com/langchain-ai/langchain/issues/11533
**Dependencies:**
[pydgraph](https://pypi.org/project/pydgraph/1.0.0a2/)
**Tag maintainer:**
@baskaryan
Apart of UofT's CSCD01: Engineering Large Software Course 😄 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13935/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/13935/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13935",
"html_url": "https://github.com/langchain-ai/langchain/pull/13935",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13935.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13935.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13934 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13934/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13934/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13934/events | https://github.com/langchain-ai/langchain/pull/13934 | 2,013,355,206 | PR_kwDOIPDwls5gfyYn | 13,934 | Extend serpapi tools | {
"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": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-11-28T00:14:55 | 2023-11-29T22:02:58 | 2023-11-29T22:02:57 | CONTRIBUTOR | null | - **Description:** Added some of the more endpoints supported by serpapi that are not suported on langchain at the moment, like google trends, google finance, google jobs, and google lens
- **Issue:** [Add support for many of the querying endpoints with serpapi #11811](https://github.com/langchain-ai/langchain/issues/11811)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13934/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13934/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13934",
"html_url": "https://github.com/langchain-ai/langchain/pull/13934",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13934.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13934.patch",
"merged_at": "2023-11-29T22:02:57"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13933 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13933/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13933/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13933/events | https://github.com/langchain-ai/langchain/pull/13933 | 2,013,305,649 | PR_kwDOIPDwls5gfnYk | 13,933 | Added DGraphQAChain for DGraph databases | {
"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"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-27T23:26:44 | 2023-11-28T00:54:42 | 2023-11-28T00:37:31 | NONE | null | **Description:**
Added DGraphQAChain, a question answering chain for DGraph, a GraphQL powered database, extending LangChain's outreach to DGraph clients, and the DGraph community overall.
This pull request seamlessly integrates DGraph and DGraphQAChain, offering functionality similar to the other graph database integrations. Noteworthy differentiators include the introduction of an "experimental_dql_syntax_injection" flag. When activated, this feature injects text extracted from the DGraph Query Syntax guidelines page, providing valuable context to enhance the performance of less proficient Language Models and increase the likelihood of generating valid queries.
**issue**
https://github.com/langchain-ai/langchain/issues/11533
**Dependencies:**
[pydgraph](https://pypi.org/project/pydgraph/1.0.0a2/)
**Tag maintainer:**
@baskaryan | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13933/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13933/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13933",
"html_url": "https://github.com/langchain-ai/langchain/pull/13933",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13933.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13933.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13932 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13932/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13932/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13932/events | https://github.com/langchain-ai/langchain/pull/13932 | 2,013,303,960 | PR_kwDOIPDwls5gfnAl | 13,932 | Make common utils public | {
"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": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-27T23:25:07 | 2023-11-27T23:34:47 | 2023-11-27T23:34:46 | COLLABORATOR | null | Needed for splitting out packages | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13932/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13932/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13932",
"html_url": "https://github.com/langchain-ai/langchain/pull/13932",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13932.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13932.patch",
"merged_at": "2023-11-27T23:34:46"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13931 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13931/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13931/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13931/events | https://github.com/langchain-ai/langchain/issues/13931 | 2,013,215,135 | I_kwDOIPDwls53_zmf | 13,931 | Issue: create_sql_agent omits and limits actual information retrieved from SQL tables | {
"login": "hamzaawan99",
"id": 61236622,
"node_id": "MDQ6VXNlcjYxMjM2NjIy",
"avatar_url": "https://avatars.githubusercontent.com/u/61236622?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hamzaawan99",
"html_url": "https://github.com/hamzaawan99",
"followers_url": "https://api.github.com/users/hamzaawan99/followers",
"following_url": "https://api.github.com/users/hamzaawan99/following{/other_user}",
"gists_url": "https://api.github.com/users/hamzaawan99/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hamzaawan99/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hamzaawan99/subscriptions",
"organizations_url": "https://api.github.com/users/hamzaawan99/orgs",
"repos_url": "https://api.github.com/users/hamzaawan99/repos",
"events_url": "https://api.github.com/users/hamzaawan99/events{/privacy}",
"received_events_url": "https://api.github.com/users/hamzaawan99/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 2 | 2023-11-27T22:16:47 | 2023-12-05T13:49:06 | null | NONE | null | ### Issue you'd like to raise.
When utilizing the create_sql_agent module by LangChain to interact with a SQL database and generate SQL queries from natural language, I've encountered an issue with the responses. Currently, when I execute queries, the SQL Agent responds with placeholder information, citing security reasons for omitting the actual data. However, for my use case, it is crucial to receive the real information retrieved from the SQL database tables.
Also, it limits the information as well even with `top_k=50`. The database return 50 records but in the output it only shows 10-12 with the following output: Please note that this is a partial list. There are more ...
langchain == 0.0.313
langchain-experimental == 0.0.32
```
dbmssql = SQLDatabase.from_uri(
connection_url,
include_tables=[
"table_1",
"table_2",
"table_3",
"table_4",
],
view_support=False
)
chat_llm = ChatOpenAI(
model="gpt-4",
temperature=0,
verbose=True,
openai_api_key=openai_api_key,
request_timeout=600
)
def create_mssql_db_agent(dbmssql):
few_shot_docs = [
Document(page_content=question, metadata={
"sql_query": few_shots[question]})
for question in few_shots.keys()
]
vector_db = FAISS.from_documents(few_shot_docs, embeddings)
retriever = vector_db.as_retriever()
tool_description = """
This tool will help you understand similar examples to adapt them to the user question.
Input to this tool should be the user question.
"""
retriever_tool = create_retriever_tool(
retriever, name="sql_get_similar_examples", description=tool_description
)
custom_tool_list = [retriever_tool]
custom_suffix = """
I should first get the similar examples I know.
If the examples are enough to construct the query, I can build it.
Otherwise, I can then look at the tables in the database to see what I can query.
Then I should query the schema of the most relevant tables
"""
agent = create_sql_agent(
agent_executor_kwargs={"return_intermediate_steps": True},
llm=chat_llm,
toolkit=SQLDatabaseToolkit(db=dbmssql, llm=chat_llm),
verbose=True,
agent_type=AgentType.OPENAI_FUNCTIONS,
extra_tools=custom_tool_list,
suffix=custom_suffix,
top_k=50,
# return_intermediate_steps=True
)
return agent
```
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13931/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13931/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13930 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13930/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13930/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13930/events | https://github.com/langchain-ai/langchain/pull/13930 | 2,013,152,823 | PR_kwDOIPDwls5gfFJF | 13,930 | Update prompt injection model | {
"login": "asofter",
"id": 1751809,
"node_id": "MDQ6VXNlcjE3NTE4MDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1751809?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/asofter",
"html_url": "https://github.com/asofter",
"followers_url": "https://api.github.com/users/asofter/followers",
"following_url": "https://api.github.com/users/asofter/following{/other_user}",
"gists_url": "https://api.github.com/users/asofter/gists{/gist_id}",
"starred_url": "https://api.github.com/users/asofter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/asofter/subscriptions",
"organizations_url": "https://api.github.com/users/asofter/orgs",
"repos_url": "https://api.github.com/users/asofter/repos",
"events_url": "https://api.github.com/users/asofter/events{/privacy}",
"received_events_url": "https://api.github.com/users/asofter/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-11-27T21:40:55 | 2023-11-27T22:56:53 | 2023-11-27T22:56:53 | CONTRIBUTOR | null | - **Description:** Existing model used for Prompt Injection is quite outdated but we fine-tuned and open-source a new model based on the same model deberta-v3-base from Microsoft - [laiyer/deberta-v3-base-prompt-injection](https://huggingface.co/laiyer/deberta-v3-base-prompt-injection). It supports more up-to-date injections and less prone to false-positives.
- **Dependencies:** No
- **Tag maintainer:** -
- **Twitter handle:** @alex_yaremchuk
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13930/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13930/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13930",
"html_url": "https://github.com/langchain-ai/langchain/pull/13930",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13930.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13930.patch",
"merged_at": "2023-11-27T22:56:53"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13929 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13929/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13929/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13929/events | https://github.com/langchain-ai/langchain/issues/13929 | 2,012,847,820 | I_kwDOIPDwls53-Z7M | 13,929 | Allow intercepting agents' final answers and reporting feedback to them | {
"login": "syedmoizurrehman",
"id": 17818950,
"node_id": "MDQ6VXNlcjE3ODE4OTUw",
"avatar_url": "https://avatars.githubusercontent.com/u/17818950?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/syedmoizurrehman",
"html_url": "https://github.com/syedmoizurrehman",
"followers_url": "https://api.github.com/users/syedmoizurrehman/followers",
"following_url": "https://api.github.com/users/syedmoizurrehman/following{/other_user}",
"gists_url": "https://api.github.com/users/syedmoizurrehman/gists{/gist_id}",
"starred_url": "https://api.github.com/users/syedmoizurrehman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/syedmoizurrehman/subscriptions",
"organizations_url": "https://api.github.com/users/syedmoizurrehman/orgs",
"repos_url": "https://api.github.com/users/syedmoizurrehman/repos",
"events_url": "https://api.github.com/users/syedmoizurrehman/events{/privacy}",
"received_events_url": "https://api.github.com/users/syedmoizurrehman/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 5 | 2023-11-27T18:23:38 | 2023-12-01T02:39:23 | null | NONE | null | ### Feature request
Allow intercepting agents' final answers and reporting any feedback on the final answers to the agents without ending the agent execution chain.
This will enable users to, for example, run validations on the final answer (e.g. whether the answer contains some keywords) or agent's state (whether agent has used a particular tool) and report issues to the agent so that it can fix the problems before ending the chain.
### Motivation
Today, we don't have a way to run an analysis on final answers and report problems (if any) to the agents so that they can fix the problems without losing the thoughts and observations of the current chain (if there's a way to achieve that today, please feel free to point me to it and close this issue). This feature will allow self-correction of final answers, further enhancing the capabilities of agents.
Some use cases I have in mind include
1. Validate the final answer to ensure that it conforms to some instructions, e.g. by making an LLM call.
2. Make sure the agent has used a set of tools to come up with the answer.
3. Apply some rules on the answer to determine whether answer is correct or not, e.g. whether the answer contains certain keywords.
### Your contribution
I'm not able to contribute currently, however, I might be able to pick this up in coming weeks if it seems useful to others as well. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13929/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13929/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13928 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13928/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13928/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13928/events | https://github.com/langchain-ai/langchain/pull/13928 | 2,012,833,707 | PR_kwDOIPDwls5gd-51 | 13,928 | Adding `infinity` embedding integration. | {
"login": "michaelfeil",
"id": 63565275,
"node_id": "MDQ6VXNlcjYzNTY1Mjc1",
"avatar_url": "https://avatars.githubusercontent.com/u/63565275?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/michaelfeil",
"html_url": "https://github.com/michaelfeil",
"followers_url": "https://api.github.com/users/michaelfeil/followers",
"following_url": "https://api.github.com/users/michaelfeil/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelfeil/gists{/gist_id}",
"starred_url": "https://api.github.com/users/michaelfeil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelfeil/subscriptions",
"organizations_url": "https://api.github.com/users/michaelfeil/orgs",
"repos_url": "https://api.github.com/users/michaelfeil/repos",
"events_url": "https://api.github.com/users/michaelfeil/events{/privacy}",
"received_events_url": "https://api.github.com/users/michaelfeil/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": 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": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 4 | 2023-11-27T18:14:03 | 2023-11-28T00:43:53 | 2023-11-28T00:43:47 | CONTRIBUTOR | null | This adds integation to https://github.com/michaelfeil/infinity. Users requested it in https://github.com/michaelfeil/infinity/issues/36 @saatvikshah
Follows my implementation of gradient.ai.
Feedback 1: Well done - I love your CI / repo / poetry setup - I adapted a lot in https://github.com/michaelfeil/infinity.
Feedback 2: Not so good: The openai integration contains to much reverse engineering - in general projects such as michaelfeil/infinity and huggingface/text-embeddings-inference are compatible to the `pip install openai` package.
Reverse engineering like this one is really hindering the use for me:
https://github.com/langchain-ai/langchain/blob/8e88ba16a88affc272da4bb99bd515b714781179/libs/langchain/langchain/embeddings/openai.py#L347
https://github.com/langchain-ai/langchain/blob/8e88ba16a88affc272da4bb99bd515b714781179/libs/langchain/langchain/embeddings/openai.py#L351 - it is about preventing 3rd party providers to use the same url + uses interfaces of openai, that are not publically documented.
<!-- 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/13928/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13928/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13928",
"html_url": "https://github.com/langchain-ai/langchain/pull/13928",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13928.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13928.patch",
"merged_at": "2023-11-28T00:43:47"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13927 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13927/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13927/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13927/events | https://github.com/langchain-ai/langchain/pull/13927 | 2,012,817,515 | PR_kwDOIPDwls5gd7ag | 13,927 | Document Runnable Binding | {
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-11-27T18:04:52 | 2023-11-27T18:21:28 | 2023-11-27T18:21:27 | COLLABORATOR | null | Document runnable binding
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13927/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13927/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13927",
"html_url": "https://github.com/langchain-ai/langchain/pull/13927",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13927.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13927.patch",
"merged_at": "2023-11-27T18:21:27"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13926 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13926/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13926/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13926/events | https://github.com/langchain-ai/langchain/pull/13926 | 2,012,783,290 | PR_kwDOIPDwls5gdz7u | 13,926 | RELEASE: 0.0.341 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-27T17:42:47 | 2023-11-27T17:51:14 | 2023-11-27T17:51:13 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13926/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13926/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13926",
"html_url": "https://github.com/langchain-ai/langchain/pull/13926",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13926.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13926.patch",
"merged_at": "2023-11-27T17:51:13"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13924 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13924/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13924/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13924/events | https://github.com/langchain-ai/langchain/issues/13924 | 2,012,745,465 | I_kwDOIPDwls53-A75 | 13,924 | Filtering Issue with ConversationRetrievalChain | {
"login": "akash130701",
"id": 92721700,
"node_id": "U_kgDOBYbSJA",
"avatar_url": "https://avatars.githubusercontent.com/u/92721700?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akash130701",
"html_url": "https://github.com/akash130701",
"followers_url": "https://api.github.com/users/akash130701/followers",
"following_url": "https://api.github.com/users/akash130701/following{/other_user}",
"gists_url": "https://api.github.com/users/akash130701/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akash130701/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akash130701/subscriptions",
"organizations_url": "https://api.github.com/users/akash130701/orgs",
"repos_url": "https://api.github.com/users/akash130701/repos",
"events_url": "https://api.github.com/users/akash130701/events{/privacy}",
"received_events_url": "https://api.github.com/users/akash130701/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": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 2 | 2023-11-27T17:19:53 | 2023-11-27T17:37:39 | null | NONE | null | Hi everyone,
I'm trying to do something and I haven´t found enough information on the internet to make it work properly with Langchain. Here it is:
I want to develop a QA chat using pdfs as knowledge source, using as relevant documents the ones corresponding to a certain pdf that the user will choose with a select box. To achieve that:
1. I've built a Azure Search vector store in which all the embeddings of different documents are stored.
Each document's metadata looks something like this:
{
"@odata.context": "https://blublu.search.windows.net/indexes('embeddings')/$metadata#docs(*)",
"@search.nextPageParameters": {
"search": "*",
"top": null,
"skip": 50
},
"value": [
{
"@search.score": 1,
"id": "doc_embeddings_7102233d903cd1ac7475a60c373a716b57bf1586",
"title": "https://blahblah.blob.core.windows.net/documents/converted/100.pdf.txt",
"content": " Officer | Immediate line manager | Region/Division head or VP of the corresponding vertical | KFSL HR | | CEO | \n|Assistant Manager | | \n|Manager | CEO.\nv",
"content_vector": [
-0.0014578825,
-0.0058897766],
"tag": "",
"metadata": "{\"source\": \"[https://ask}"
},...}
3.With all this I'm using a ConversationalRetrievalChain to retrieve info from the vector store and using an llm to answer questions entered via prompt:
class FilteredRetriever:
def __init__(self, retriever, filter_prefix):
self.retriever = retriever
self.filter_prefix = filter_prefix
def retrieve(self, *args, **kwargs):
results = self.retriever.retrieve(*args, **kwargs)
return [doc for doc in results if doc['value']['title'].startswith(self.filter_prefix)]
source='https://blahblah.blob.core.windows.net/documents/converted/100.pdf.txt'
filtered_retriever = FilteredRetriever(self.vector_store.as_retriever(), source)
chain = ConversationalRetrievalChain(
retriever=filtered_retriever,
question_generator=question_generator,
combine_docs_chain=doc_chain,
return_source_documents=True,
# top_k_docs_for_context= self.k
)
But this is raising: instance of BaseRetriever expected (type=type_error.arbitrary_type; expected_arbitrary_type=BaseRetriever)
### Suggestion:
Have already referred [Filtering retrieval with ConversationalRetrievalChain](https://github.com/langchain-ai/langchain/issues/7474#top)
#7474 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13924/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13924/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13923 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13923/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13923/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13923/events | https://github.com/langchain-ai/langchain/issues/13923 | 2,012,721,002 | I_kwDOIPDwls53969q | 13,923 | - | {
"login": "akashtcpl",
"id": 149153685,
"node_id": "U_kgDOCOPnlQ",
"avatar_url": "https://avatars.githubusercontent.com/u/149153685?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akashtcpl",
"html_url": "https://github.com/akashtcpl",
"followers_url": "https://api.github.com/users/akashtcpl/followers",
"following_url": "https://api.github.com/users/akashtcpl/following{/other_user}",
"gists_url": "https://api.github.com/users/akashtcpl/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akashtcpl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akashtcpl/subscriptions",
"organizations_url": "https://api.github.com/users/akashtcpl/orgs",
"repos_url": "https://api.github.com/users/akashtcpl/repos",
"events_url": "https://api.github.com/users/akashtcpl/events{/privacy}",
"received_events_url": "https://api.github.com/users/akashtcpl/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": 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"
}
] | closed | false | null | [] | null | 1 | 2023-11-27T17:04:38 | 2023-11-28T05:59:31 | 2023-11-28T05:59:31 | NONE | null | - | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13923/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13923/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13922 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13922/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13922/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13922/events | https://github.com/langchain-ai/langchain/pull/13922 | 2,012,718,979 | PR_kwDOIPDwls5gdl4I | 13,922 | Update root poetry lock with core | {
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 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": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-27T17:03:27 | 2023-11-27T17:30:46 | 2023-11-27T17:30:45 | 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/13922/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13922/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13922",
"html_url": "https://github.com/langchain-ai/langchain/pull/13922",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13922.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13922.patch",
"merged_at": "2023-11-27T17:30:45"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13921 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13921/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13921/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13921/events | https://github.com/langchain-ai/langchain/pull/13921 | 2,012,689,762 | PR_kwDOIPDwls5gdfi0 | 13,921 | Add rag google sensitive data protection template | {
"login": "juan-calvo-datatonic",
"id": 82172964,
"node_id": "MDQ6VXNlcjgyMTcyOTY0",
"avatar_url": "https://avatars.githubusercontent.com/u/82172964?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/juan-calvo-datatonic",
"html_url": "https://github.com/juan-calvo-datatonic",
"followers_url": "https://api.github.com/users/juan-calvo-datatonic/followers",
"following_url": "https://api.github.com/users/juan-calvo-datatonic/following{/other_user}",
"gists_url": "https://api.github.com/users/juan-calvo-datatonic/gists{/gist_id}",
"starred_url": "https://api.github.com/users/juan-calvo-datatonic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/juan-calvo-datatonic/subscriptions",
"organizations_url": "https://api.github.com/users/juan-calvo-datatonic/orgs",
"repos_url": "https://api.github.com/users/juan-calvo-datatonic/repos",
"events_url": "https://api.github.com/users/juan-calvo-datatonic/events{/privacy}",
"received_events_url": "https://api.github.com/users/juan-calvo-datatonic/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | closed | false | {
"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-11-27T16:46:41 | 2023-11-28T23:15:59 | 2023-11-28T23:15:58 | CONTRIBUTOR | null | This is a template demonstrating how to utilize Google Sensitive Data Protection in conjunction with ChatVertexAI(). Tagging you @efriis as you reviewed my last template. :) Thanks!
Proof of successful execution:
![image](https://github.com/langchain-ai/langchain/assets/82172964/e4d678aa-85c8-482b-b09d-81fe7e912dd4)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13921/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13921/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13921",
"html_url": "https://github.com/langchain-ai/langchain/pull/13921",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13921.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13921.patch",
"merged_at": "2023-11-28T23:15:58"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13920 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13920/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13920/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13920/events | https://github.com/langchain-ai/langchain/issues/13920 | 2,012,673,073 | I_kwDOIPDwls539vQx | 13,920 | Link to URL to load product details | {
"login": "yazanrisheh",
"id": 99576727,
"node_id": "U_kgDOBe9rlw",
"avatar_url": "https://avatars.githubusercontent.com/u/99576727?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yazanrisheh",
"html_url": "https://github.com/yazanrisheh",
"followers_url": "https://api.github.com/users/yazanrisheh/followers",
"following_url": "https://api.github.com/users/yazanrisheh/following{/other_user}",
"gists_url": "https://api.github.com/users/yazanrisheh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yazanrisheh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yazanrisheh/subscriptions",
"organizations_url": "https://api.github.com/users/yazanrisheh/orgs",
"repos_url": "https://api.github.com/users/yazanrisheh/repos",
"events_url": "https://api.github.com/users/yazanrisheh/events{/privacy}",
"received_events_url": "https://api.github.com/users/yazanrisheh/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": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] | open | false | null | [] | null | 6 | 2023-11-27T16:38:20 | 2023-11-29T10:12:18 | null | NONE | null | @dosu-bot
I have a project where I need to extract product details from product links online. What is the best url loader for this use case?
Also, for the previous links that I already appended to a csv file called "Lalal". How can I create embeddings only for the new URL link that I will extract so that I dont have to embed the entire document every single time.
Please write the code for me in python. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13920/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13920/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13919 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13919/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13919/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13919/events | https://github.com/langchain-ai/langchain/pull/13919 | 2,012,634,605 | PR_kwDOIPDwls5gdTfY | 13,919 | Update azure_cosmos_db.py | {
"login": "esoler-sage",
"id": 48916514,
"node_id": "MDQ6VXNlcjQ4OTE2NTE0",
"avatar_url": "https://avatars.githubusercontent.com/u/48916514?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/esoler-sage",
"html_url": "https://github.com/esoler-sage",
"followers_url": "https://api.github.com/users/esoler-sage/followers",
"following_url": "https://api.github.com/users/esoler-sage/following{/other_user}",
"gists_url": "https://api.github.com/users/esoler-sage/gists{/gist_id}",
"starred_url": "https://api.github.com/users/esoler-sage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/esoler-sage/subscriptions",
"organizations_url": "https://api.github.com/users/esoler-sage/orgs",
"repos_url": "https://api.github.com/users/esoler-sage/repos",
"events_url": "https://api.github.com/users/esoler-sage/events{/privacy}",
"received_events_url": "https://api.github.com/users/esoler-sage/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 5 | 2023-11-27T16:18:08 | 2023-11-27T20:51:08 | 2023-11-27T20:51:08 | CONTRIBUTOR | null | Description: Implement embedding key parametrisation
Issue: https://github.com/langchain-ai/langchain/issues/13918
Dependencies: None
Tag maintainer: @hwchase17 @izzymsft
Twitter handle:@MaddogoS
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13919/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13919/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13919",
"html_url": "https://github.com/langchain-ai/langchain/pull/13919",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13919.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13919.patch",
"merged_at": "2023-11-27T20:51:08"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13918 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13918/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13918/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13918/events | https://github.com/langchain-ai/langchain/issues/13918 | 2,012,621,829 | I_kwDOIPDwls539iwF | 13,918 | AzureCosmosDBVectorSearch index creation fixes document key | {
"login": "esoler-sage",
"id": 48916514,
"node_id": "MDQ6VXNlcjQ4OTE2NTE0",
"avatar_url": "https://avatars.githubusercontent.com/u/48916514?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/esoler-sage",
"html_url": "https://github.com/esoler-sage",
"followers_url": "https://api.github.com/users/esoler-sage/followers",
"following_url": "https://api.github.com/users/esoler-sage/following{/other_user}",
"gists_url": "https://api.github.com/users/esoler-sage/gists{/gist_id}",
"starred_url": "https://api.github.com/users/esoler-sage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/esoler-sage/subscriptions",
"organizations_url": "https://api.github.com/users/esoler-sage/orgs",
"repos_url": "https://api.github.com/users/esoler-sage/repos",
"events_url": "https://api.github.com/users/esoler-sage/events{/privacy}",
"received_events_url": "https://api.github.com/users/esoler-sage/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-11-27T16:11:15 | 2023-11-27T16:26:14 | null | CONTRIBUTOR | null | ### System Info
Langchain all versions
### Who can help?
@hwchase17 @izzymsft
### 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
Instantiate a new AzureCosmosDBVectorSearch with embeddings key different than vectorContent, and then you get this error
`Similarity index was not found for a vector similarity search query.`
This is because embeddings key is parametrised correctly
https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/vectorstores/azure_cosmos_db.py#L75
https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/vectorstores/azure_cosmos_db.py#L92
, but not used on index creation
https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/vectorstores/azure_cosmos_db.py#L224
### Expected behavior
The embedding_key param should be used to create the index properly | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13918/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13918/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13917 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13917/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13917/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13917/events | https://github.com/langchain-ai/langchain/pull/13917 | 2,012,614,744 | PR_kwDOIPDwls5gdPKj | 13,917 | fixed VertexAIModelGarden class | {
"login": "lkuligin",
"id": 11026406,
"node_id": "MDQ6VXNlcjExMDI2NDA2",
"avatar_url": "https://avatars.githubusercontent.com/u/11026406?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lkuligin",
"html_url": "https://github.com/lkuligin",
"followers_url": "https://api.github.com/users/lkuligin/followers",
"following_url": "https://api.github.com/users/lkuligin/following{/other_user}",
"gists_url": "https://api.github.com/users/lkuligin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lkuligin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lkuligin/subscriptions",
"organizations_url": "https://api.github.com/users/lkuligin/orgs",
"repos_url": "https://api.github.com/users/lkuligin/repos",
"events_url": "https://api.github.com/users/lkuligin/events{/privacy}",
"received_events_url": "https://api.github.com/users/lkuligin/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-11-27T16:07:27 | 2023-11-27T18:31:54 | 2023-11-27T18:31:54 | CONTRIBUTOR | null | Replace this entire comment with:
- **Description:** added support for various OSS images from Model Garden
- **Issue:** #13370
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13917/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13917/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13917",
"html_url": "https://github.com/langchain-ai/langchain/pull/13917",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13917.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13917.patch",
"merged_at": "2023-11-27T18:31:54"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13916 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13916/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13916/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13916/events | https://github.com/langchain-ai/langchain/issues/13916 | 2,012,607,901 | I_kwDOIPDwls539fWd | 13,916 | Addition of BinaryPyPdf Loader for Langchain Document Loaders | {
"login": "Rajaniraiyn",
"id": 72294760,
"node_id": "MDQ6VXNlcjcyMjk0NzYw",
"avatar_url": "https://avatars.githubusercontent.com/u/72294760?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Rajaniraiyn",
"html_url": "https://github.com/Rajaniraiyn",
"followers_url": "https://api.github.com/users/Rajaniraiyn/followers",
"following_url": "https://api.github.com/users/Rajaniraiyn/following{/other_user}",
"gists_url": "https://api.github.com/users/Rajaniraiyn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Rajaniraiyn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Rajaniraiyn/subscriptions",
"organizations_url": "https://api.github.com/users/Rajaniraiyn/orgs",
"repos_url": "https://api.github.com/users/Rajaniraiyn/repos",
"events_url": "https://api.github.com/users/Rajaniraiyn/events{/privacy}",
"received_events_url": "https://api.github.com/users/Rajaniraiyn/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-11-27T16:04:01 | 2023-11-27T16:04:21 | null | NONE | null | ### Feature request
I propose the addition of a new feature, a BinaryPyPdf loader, to the existing Langchain document loaders. This loader is designed to handle PDF files in a binary format, providing a more efficient and effective way of processing PDF documents within the Langchain project.
### Motivation
As a Langchain enthusiast, I noticed that the current document loaders lack a dedicated loader for handling PDF files in binary format. This often leads to inefficiencies and limitations when working with PDF documents. The addition of a BinaryPyPdf loader would address this gap and enhance the overall functionality and versatility of the Langchain document loaders.
### Your contribution
I have already developed a BinaryPyPdf loader using `pypdf` that is ready for integration into the Langchain project. I am prepared to submit a PR for this feature, following the guidelines outlined in the [`CONTRIBUTING.MD`](https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md). I look forward to the opportunity to contribute to the project and enhance its capabilities. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13916/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13916/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13915 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13915/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13915/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13915/events | https://github.com/langchain-ai/langchain/pull/13915 | 2,012,495,495 | PR_kwDOIPDwls5gc03i | 13,915 | Update openai.py: Fix the bug where openai_proxy is not effective. | {
"login": "leleboys",
"id": 148516251,
"node_id": "U_kgDOCNotmw",
"avatar_url": "https://avatars.githubusercontent.com/u/148516251?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leleboys",
"html_url": "https://github.com/leleboys",
"followers_url": "https://api.github.com/users/leleboys/followers",
"following_url": "https://api.github.com/users/leleboys/following{/other_user}",
"gists_url": "https://api.github.com/users/leleboys/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leleboys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leleboys/subscriptions",
"organizations_url": "https://api.github.com/users/leleboys/orgs",
"repos_url": "https://api.github.com/users/leleboys/repos",
"events_url": "https://api.github.com/users/leleboys/events{/privacy}",
"received_events_url": "https://api.github.com/users/leleboys/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-11-27T15:12:21 | 2023-11-27T22:20:47 | 2023-11-27T22:20:46 | NONE | null | Fix the bug where ChatOpenAI().openai_proxy = HTTP_PROXY is not effective.
Reproduce&Test:
from langchain.chat_models import ChatOpenAI
llm = ChatOpenAI()
llm.openai_proxy = "http://127.0.0.1:8001"
llm.predict("Hello")
<!-- 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/13915/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13915/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13915",
"html_url": "https://github.com/langchain-ai/langchain/pull/13915",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13915.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13915.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13914 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13914/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13914/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13914/events | https://github.com/langchain-ai/langchain/pull/13914 | 2,012,479,273 | PR_kwDOIPDwls5gcxSw | 13,914 | docs[patch]: RAG Cookbook example fix | {
"login": "waseemhnyc",
"id": 16570741,
"node_id": "MDQ6VXNlcjE2NTcwNzQx",
"avatar_url": "https://avatars.githubusercontent.com/u/16570741?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/waseemhnyc",
"html_url": "https://github.com/waseemhnyc",
"followers_url": "https://api.github.com/users/waseemhnyc/followers",
"following_url": "https://api.github.com/users/waseemhnyc/following{/other_user}",
"gists_url": "https://api.github.com/users/waseemhnyc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/waseemhnyc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/waseemhnyc/subscriptions",
"organizations_url": "https://api.github.com/users/waseemhnyc/orgs",
"repos_url": "https://api.github.com/users/waseemhnyc/repos",
"events_url": "https://api.github.com/users/waseemhnyc/events{/privacy}",
"received_events_url": "https://api.github.com/users/waseemhnyc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 4 | 2023-11-27T15:05:11 | 2023-11-29T01:37:04 | 2023-11-29T01:37:04 | CONTRIBUTOR | null | ### Description:
Hey 👋🏽 this is a small docs example fix. Hoping it helps future developers who are working with Langchain.
### Problem:
Take a look at the original example code. You were not able to get the `dialogue_turn[0]` while it was a tuple.
Original code:
```python
def _format_chat_history(chat_history: List[Tuple]) -> str:
buffer = ""
for dialogue_turn in chat_history:
human = "Human: " + dialogue_turn[0]
ai = "Assistant: " + dialogue_turn[1]
buffer += "\n" + "\n".join([human, ai])
return buffer
```
In the original code you were getting this error:
```bash
human = "Human: " + dialogue_turn[0].content
~~~~~~~~~~~~~^^^
TypeError: 'HumanMessage' object is not subscriptable
```
### Solution:
The fix is to just for loop over the chat history and look to see if its a human or ai message and add it to the buffer. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13914/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13914/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13914",
"html_url": "https://github.com/langchain-ai/langchain/pull/13914",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13914.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13914.patch",
"merged_at": "2023-11-29T01:37:04"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13913 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13913/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13913/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13913/events | https://github.com/langchain-ai/langchain/pull/13913 | 2,012,448,718 | PR_kwDOIPDwls5gcqrP | 13,913 | Add Cypher template diagrams | {
"login": "tomasonjo",
"id": 19948365,
"node_id": "MDQ6VXNlcjE5OTQ4MzY1",
"avatar_url": "https://avatars.githubusercontent.com/u/19948365?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tomasonjo",
"html_url": "https://github.com/tomasonjo",
"followers_url": "https://api.github.com/users/tomasonjo/followers",
"following_url": "https://api.github.com/users/tomasonjo/following{/other_user}",
"gists_url": "https://api.github.com/users/tomasonjo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tomasonjo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tomasonjo/subscriptions",
"organizations_url": "https://api.github.com/users/tomasonjo/orgs",
"repos_url": "https://api.github.com/users/tomasonjo/repos",
"events_url": "https://api.github.com/users/tomasonjo/events{/privacy}",
"received_events_url": "https://api.github.com/users/tomasonjo/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | {
"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-11-27T14:50:38 | 2023-11-27T15:18:51 | 2023-11-27T15:18:51 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13913/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13913/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13913",
"html_url": "https://github.com/langchain-ai/langchain/pull/13913",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13913.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13913.patch",
"merged_at": "2023-11-27T15:18:51"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13912 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13912/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13912/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13912/events | https://github.com/langchain-ai/langchain/issues/13912 | 2,012,359,254 | I_kwDOIPDwls538ipW | 13,912 | poetry install --with test issue | {
"login": "johnlarkin1",
"id": 18692931,
"node_id": "MDQ6VXNlcjE4NjkyOTMx",
"avatar_url": "https://avatars.githubusercontent.com/u/18692931?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/johnlarkin1",
"html_url": "https://github.com/johnlarkin1",
"followers_url": "https://api.github.com/users/johnlarkin1/followers",
"following_url": "https://api.github.com/users/johnlarkin1/following{/other_user}",
"gists_url": "https://api.github.com/users/johnlarkin1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/johnlarkin1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/johnlarkin1/subscriptions",
"organizations_url": "https://api.github.com/users/johnlarkin1/orgs",
"repos_url": "https://api.github.com/users/johnlarkin1/repos",
"events_url": "https://api.github.com/users/johnlarkin1/events{/privacy}",
"received_events_url": "https://api.github.com/users/johnlarkin1/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-11-27T14:07:30 | 2023-11-27T23:07:40 | 2023-11-27T23:07:40 | NONE | null | ### System Info
You cannot run `poetry install --with test` on a fresh build:
```
╭─ username@comp ~/path/to/coding
╰─➤ cd langchain2
ls
╭─username@comp ~/path/to/langchain2 ‹master›
╰─➤ ls
CITATION.cff Makefile cookbook libs pyproject.toml
LICENSE README.md docker poetry.lock templates
MIGRATE.md SECURITY.md docs poetry.toml
╭─username@comp ~/path/to/langchain2 ‹master›
╰─➤ poetry install --with test
Creating virtualenv langchain-monorepo in /path/to/langchain2/.venv
Installing dependencies from lock file
Package operations: 165 installs, 1 update, 0 removals
• Downgrading pip (23.3.1 -> 23.2.1)
• Installing attrs (23.1.0)
• Installing rpds-py (0.10.3)
• Installing referencing (0.30.2)
• Installing six (1.16.0)
• Installing jsonschema-specifications (2023.7.1)
• Installing platformdirs (3.11.0)
• Installing python-dateutil (2.8.2)
• Installing traitlets (5.11.1)
• Installing types-python-dateutil (2.8.19.14)
• Installing arrow (1.3.0)
• Installing entrypoints (0.4)
• Installing fastjsonschema (2.18.1)
• Installing jsonschema (4.19.1)
• Installing jupyter-core (5.3.2)
• Installing nest-asyncio (1.5.8)
• Installing pycparser (2.21)
• Installing pyzmq (25.1.1)
• Installing tornado (6.3.3)
• Installing cffi (1.16.0)
• Installing fqdn (1.5.1)
• Installing idna (3.4)
• Installing isoduration (20.11.0)
• Installing jsonpointer (2.4)
• Installing jupyter-client (7.4.9)
• Installing markupsafe (2.1.3)
• Installing nbformat (5.9.2)
• Installing ptyprocess (0.7.0)
• Installing rfc3339-validator (0.1.4)
• Installing rfc3986-validator (0.1.1)
• Installing soupsieve (2.5)
• Installing uri-template (1.3.0)
• Installing webcolors (1.13)
• Installing webencodings (0.5.1)
• Installing argon2-cffi-bindings (21.2.0): Pending...
• Installing argon2-cffi-bindings (21.2.0)
• Installing asttokens (2.4.0)
• Installing beautifulsoup4 (4.12.2)
• Installing bleach (6.0.0)
• Installing defusedxml (0.7.1)
• Installing executing (2.0.0)
• Installing jinja2 (3.1.2)
• Installing jupyterlab-pygments (0.2.2)
• Installing mistune (3.0.2)
• Installing nbclient (0.7.4)
• Installing packaging (23.2)
• Installing pandocfilters (1.5.0)
• Installing parso (0.8.3)
• Installing pure-eval (0.2.2)
• Installing pygments (2.16.1)
• Installing python-json-logger (2.0.7)
• Installing pyyaml (6.0.1)
• Installing sniffio (1.3.0)
• Installing terminado (0.17.1)
• Installing tinycss2 (1.2.1)
• Installing wcwidth (0.2.8)
• Installing anyio (3.7.1): Installing...
• Installing appnope (0.1.3): Installing...
• Installing anyio (3.7.1)
• Installing appnope (0.1.3)
• Installing argon2-cffi (23.1.0)
• Installing backcall (0.2.0)
• Installing certifi (2023.7.22)
• Installing charset-normalizer (3.3.0)
• Installing decorator (5.1.1)
• Installing jedi (0.19.1)
• Installing jupyter-events (0.7.0)
• Installing jupyter-server-terminals (0.4.4)
• Installing matplotlib-inline (0.1.6)
• Installing nbconvert (7.8.0)
• Installing overrides (7.4.0)
• Installing pexpect (4.8.0)
• Installing pickleshare (0.7.5)
• Installing prometheus-client (0.17.1)
• Installing prompt-toolkit (3.0.39)
• Installing send2trash (1.8.2)
• Installing stack-data (0.6.3)
• Installing urllib3 (2.0.6)
• Installing websocket-client (1.6.3)
• Installing babel (2.13.0)
• Installing comm (0.1.4)
• Installing debugpy (1.8.0)
• Installing ipython (8.12.3)
• Installing json5 (0.9.14)
• Installing jupyter-server (2.7.3)
• Installing psutil (5.9.5)
• Installing requests (2.31.0)
• Installing async-lru (2.0.4)
• Installing ipykernel (6.25.2)
• Installing jupyter-lsp (2.2.0)
• Installing jupyterlab-server (2.25.0)
• Installing notebook-shim (0.2.3)
• Installing fastcore (1.4.2)
• Installing ipython-genutils (0.2.0)
• Installing jupyterlab (4.0.6)
• Installing jupyterlab-widgets (3.0.9)
• Installing mdurl (0.1.2)
• Installing qtpy (2.4.0)
• Installing typing-extensions (4.8.0)
• Installing widgetsnbextension (4.0.9)
• Installing alabaster (0.7.13): Installing...
• Installing annotated-types (0.5.0): Pending...
• Installing alabaster (0.7.13)
• Installing annotated-types (0.5.0)
• Installing docutils (0.17.1)
• Installing frozenlist (1.4.0)
• Installing ghapi (0.1.22)
• Installing imagesize (1.4.1)
• Installing ipywidgets (8.1.1)
• Installing jupyter-console (6.6.3)
• Installing markdown-it-py (2.2.0)
• Installing multidict (6.0.4)
• Installing mypy-extensions (1.0.0)
• Installing notebook (7.0.4)
• Installing pydantic-core (2.10.1)
• Installing qtconsole (5.4.4)
• Installing sphinxcontrib-applehelp (1.0.4)
• Installing snowballstemmer (2.2.0)
• Installing sphinxcontrib-devhelp (1.0.2)
• Installing sphinxcontrib-htmlhelp (2.0.1)
• Installing sphinxcontrib-jsmath (1.0.1)
• Installing sphinxcontrib-qthelp (1.0.3)
• Installing sphinxcontrib-serializinghtml (1.1.5)
• Installing zipp (3.17.0)
• Installing aiosignal (1.3.1): Installing...
• Installing async-timeout (4.0.3): Pending...
• Installing aiosignal (1.3.1)
• Installing async-timeout (4.0.3)
• Installing click (8.1.7)
• Installing fastrelease (0.1.17)
• Installing importlib-metadata (6.8.0)
• Installing jupyter (1.0.0)
• Installing marshmallow (3.20.1)
• Installing mdit-py-plugins (0.3.5)
• Installing pathspec (0.11.2)
• Installing pydantic (2.4.2)
• Installing sphinx (4.5.0)
• Installing sqlalchemy (2.0.21)
• Installing tabulate (0.9.0)
• Installing tokenize-rt (5.2.0)
• Installing typing-inspect (0.9.0)
• Installing yarl (1.9.2)
• Installing aiohttp (3.8.5): Failed
ChefBuildError
Backend subprocess exited when trying to invoke build_wheel
*********************
* Accelerated build *
*********************
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-13-arm64-cpython-312
creating build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_ws.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/worker.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/multipart.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_response.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/client_ws.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/test_utils.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/tracing.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_exceptions.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_middlewares.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/http_exceptions.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_app.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/streams.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_protocol.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/log.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/client.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_urldispatcher.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_request.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/http_websocket.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/client_proto.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/locks.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/__init__.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_runner.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_server.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/base_protocol.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/payload.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/client_reqrep.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/http.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_log.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/resolver.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/formdata.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/payload_streamer.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_routedef.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/connector.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/client_exceptions.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/typedefs.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/hdrs.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/web_fileresponse.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/http_writer.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/tcp_helpers.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/helpers.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/http_parser.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/cookiejar.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/pytest_plugin.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/abc.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
running egg_info
writing aiohttp.egg-info/PKG-INFO
writing dependency_links to aiohttp.egg-info/dependency_links.txt
writing requirements to aiohttp.egg-info/requires.txt
writing top-level names to aiohttp.egg-info/top_level.txt
reading manifest file 'aiohttp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'aiohttp' anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.lib' found anywhere in distribution
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.a' found anywhere in distribution
warning: no previously-included files matching '*.obj' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp/*.html'
no previously-included directories found matching 'docs/_build'
adding license file 'LICENSE.txt'
writing manifest file 'aiohttp.egg-info/SOURCES.txt'
copying aiohttp/_cparser.pxd -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/_find_header.pxd -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/_headers.pxi -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/_helpers.pyi -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/_helpers.pyx -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/_http_parser.pyx -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/_http_writer.pyx -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/_websocket.pyx -> build/lib.macosx-13-arm64-cpython-312/aiohttp
copying aiohttp/py.typed -> build/lib.macosx-13-arm64-cpython-312/aiohttp
creating build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_cparser.pxd.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_find_header.pxd.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_helpers.pyi.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_helpers.pyx.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_http_parser.pyx.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_http_writer.pyx.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_websocket.pyx.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/hdrs.py.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
running build_ext
building 'aiohttp._websocket' extension
creating build/temp.macosx-13-arm64-cpython-312
creating build/temp.macosx-13-arm64-cpython-312/aiohttp
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/private/var/folders/z4/nphh3sds4zsckwzc8kcht7h00000gn/T/tmpmjkdtpaa/.venv/include -I/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c aiohttp/_websocket.c -o build/temp.macosx-13-arm64-cpython-312/aiohttp/_websocket.o
aiohttp/_websocket.c:1475:17: warning: 'Py_OptimizeFlag' is deprecated [-Wdeprecated-declarations]
if (unlikely(!Py_OptimizeFlag)) {
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pydebug.h:13:1: note: 'Py_OptimizeFlag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
aiohttp/_websocket.c:2680:27: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
^
aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) uint64_t ma_version_tag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
aiohttp/_websocket.c:2692:36: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
^
aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) uint64_t ma_version_tag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
aiohttp/_websocket.c:2696:56: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
^
aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) uint64_t ma_version_tag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
aiohttp/_websocket.c:2741:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
__PYX_PY_DICT_LOOKUP_IF_MODIFIED(
^
aiohttp/_websocket.c:1125:16: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
^
aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) uint64_t ma_version_tag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
aiohttp/_websocket.c:2741:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
__PYX_PY_DICT_LOOKUP_IF_MODIFIED(
^
aiohttp/_websocket.c:1129:30: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
__pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
^
aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) uint64_t ma_version_tag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
aiohttp/_websocket.c:3042:55: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)x)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
aiohttp/_websocket.c:3097:55: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)x)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
aiohttp/_websocket.c:3238:55: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)x)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
aiohttp/_websocket.c:3293:55: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)x)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
aiohttp/_websocket.c:3744:47: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)b)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
6 warnings and 5 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
at ~/.local/pipx/venvs/poetry/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
160│
161│ error = ChefBuildError("\n\n".join(message_parts))
162│
163│ if error is not None:
→ 164│ raise error from None
165│
166│ return path
167│
168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with aiohttp (3.8.5) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "aiohttp (==3.8.5)"'.
• Installing black (23.10.1)
• Installing colorama (0.4.6)
• Installing dataclasses-json (0.6.1)
• Installing dnspython (2.4.2)
• Installing jsonpatch (1.33)
• Installing jupyter-cache (0.6.1)
• Installing langsmith (0.0.63)
• Installing livereload (2.6.3)
• Installing myst-parser (0.18.1)
• Installing nbdev (1.2.0)
• Installing numpy (1.24.4): Failed
ChefBuildError
Backend 'setuptools.build_meta:__legacy__' is not available.
Traceback (most recent call last):
File "/Users/username/.local/pipx/venvs/poetry/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.0/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
File "<frozen importlib._bootstrap>", line 1304, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
File "<frozen importlib._bootstrap>", line 1325, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 929, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 994, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/private/var/folders/z4/nphh3sds4zsckwzc8kcht7h00000gn/T/tmphs3uy5rx/.venv/lib/python3.12/site-packages/setuptools/__init__.py", line 10, in <module>
import distutils.core
ModuleNotFoundError: No module named 'distutils'
at ~/.local/pipx/venvs/poetry/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
160│
161│ error = ChefBuildError("\n\n".join(message_parts))
162│
163│ if error is not None:
→ 164│ raise error from None
165│
166│ return path
167│
168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with numpy (1.24.4) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "numpy (==1.24.4)"'.
• Installing numpydoc (1.2)
• Installing pydata-sphinx-theme (0.8.1)
• Installing sphinxcontrib-jquery (4.1)
• Installing tenacity (8.2.3)
Warning: The file chosen for install of executing 2.0.0 (executing-2.0.0-py2.py3-none-any.whl) is yanked. Reason for being yanked: Released 2.0.1 which is equivalent but added 'python_requires = >=3.5' so that pip install with Python 2 uses the previous version 1.2.0.
```
Here is my poetry info:
```
╰─➤ poetry env info 1 ↵
Virtualenv
Python: 3.12.0
Implementation: CPython
Path: /Users/username/path/to/langchain2/.venv
Executable: /Users/username/path/to/langchain2/.venv/bin/python
Valid: True
```
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I believe you should be able to do:
1. git clone
2. poetry install --with test
### Expected behavior
I would expect that all packages specified by the lockfile could be installed successfully. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13912/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13912/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13910 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13910/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13910/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13910/events | https://github.com/langchain-ai/langchain/pull/13910 | 2,012,084,381 | PR_kwDOIPDwls5gbbPc | 13,910 | Pprados/rag vectorstore | {
"login": "pprados",
"id": 204694,
"node_id": "MDQ6VXNlcjIwNDY5NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pprados",
"html_url": "https://github.com/pprados",
"followers_url": "https://api.github.com/users/pprados/followers",
"following_url": "https://api.github.com/users/pprados/following{/other_user}",
"gists_url": "https://api.github.com/users/pprados/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pprados/subscriptions",
"organizations_url": "https://api.github.com/users/pprados/orgs",
"repos_url": "https://api.github.com/users/pprados/repos",
"events_url": "https://api.github.com/users/pprados/events{/privacy}",
"received_events_url": "https://api.github.com/users/pprados/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | open | false | null | [] | null | 2 | 2023-11-27T11:38:43 | 2023-12-01T07:54:37 | null | CONTRIBUTOR | null | **Description:**
The `ParentDocumentRetriever` class provides the `add_documents()` methods, which may seem unconventional for a retriever.
This deviation arises from the need to establish and maintain connections between document fragments and their various iterations. Consequently, the `parent_splitter` and `child_splitter` were introduced. As elaborated in this [pull request](https://github.com/langchain-ai/langchain/pull/11968), it's crucial not to confine oneself to text splitters exclusively. Instead, a preference is given to working with *transformations*, from which text splitters inherit.
However, my [initial proposal](https://github.com/langchain-ai/langchain/pull/11968) proved insufficient to fully leverage this concept with all the advanced features of Langchain. An [issue](https://github.com/langchain-ai/langchain/issues/11983) has been raised to address this limitation.
To enhance text selection, the proposed idea by `ParentDocumentRetriever` is as follows:
- Convert each text fragment into multiple versions to enhance proximity between questions and potential answers.
- Select corresponding fragments in the vector store.
- Return the original fragment for injection into the prompt.
For this purpose, maintaining a link between the original document, each document chunk, and every transformation
applied to each chunk is essential.
**My Proposition:**
The `RagVectorStore` class serves as a vector store wrapper with rules for transforming a document
into a chunk and each chunk into different versions. It closely resembles `ParentRetriever` but employs
a `VectorStore` instead of a `Retriever`.
This approach is advantageous due to its simplicity and compatibility with all advanced features of Langchain.
Feel free to explore the benefits of this solution in [this notebook](https://github.com/pprados/langchain-rag/blob/master/docs/integrations/vectorstores/rag_vectorstore.ipynb).
Compatibility includes:
- [Indexing API](https://python.langchain.com/docs/modules/data_connection/indexing)
- Advanced retrievers like [MultiQueryRetriever](https://python.langchain.com/docs/modules/data_connection/retrievers/MultiQueryRetriever), [Self Querying](https://python.langchain.com/docs/modules/data_connection/retrievers/self_query), etc.
The implementation required several changes and additional pull requests, each of which can be validated independently before merging into this one:
- [Adds an in-memory implementation of RecordStore](https://github.com/langchain-ai/langchain/pull/13200)
- [Add SQLDocStore](https://github.com/langchain-ai/langchain/pull/13181)
- [Add a Wrapper vectorstore, compatible with SelfQueryRetriever](https://github.com/langchain-ai/langchain/pull/13190)
- [Add *LCEL* Transformers](https://github.com/langchain-ai/langchain/pull/13819)
**Issues:**
- [Pull Request: 11968](https://github.com/langchain-ai/langchain/pull/11968)
- [Issue: 11983](https://github.com/langchain-ai/langchain/issues/11983)
**Dependencies:**
Any dependencies required for this change.
**Tag Maintainers:**
@baskaryan @hwchase17
**Twitter Handle:**
Twitter account: pprados
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13910/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13910/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13910",
"html_url": "https://github.com/langchain-ai/langchain/pull/13910",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13910.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13910.patch",
"merged_at": null
} |