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/10046
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10046/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10046/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10046/events
https://github.com/langchain-ai/langchain/pull/10046
1,875,422,616
PR_kwDOIPDwls5ZO5yW
10,046
Feature/add sqlite vss
{ "login": "philippe2803", "id": 4492530, "node_id": "MDQ6VXNlcjQ0OTI1MzA=", "avatar_url": "https://avatars.githubusercontent.com/u/4492530?v=4", "gravatar_id": "", "url": "https://api.github.com/users/philippe2803", "html_url": "https://github.com/philippe2803", "followers_url": "https://api.github.com/users/philippe2803/followers", "following_url": "https://api.github.com/users/philippe2803/following{/other_user}", "gists_url": "https://api.github.com/users/philippe2803/gists{/gist_id}", "starred_url": "https://api.github.com/users/philippe2803/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/philippe2803/subscriptions", "organizations_url": "https://api.github.com/users/philippe2803/orgs", "repos_url": "https://api.github.com/users/philippe2803/repos", "events_url": "https://api.github.com/users/philippe2803/events{/privacy}", "received_events_url": "https://api.github.com/users/philippe2803/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
1
2023-08-31T12:23:51
2023-08-31T12:24:11
2023-08-31T12:24:11
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. These live is docs/extras directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10046/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10046/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10046", "html_url": "https://github.com/langchain-ai/langchain/pull/10046", "diff_url": "https://github.com/langchain-ai/langchain/pull/10046.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10046.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10045
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10045/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10045/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10045/events
https://github.com/langchain-ai/langchain/issues/10045
1,875,375,970
I_kwDOIPDwls5vx_di
10,045
`create_pandas_dataframe_agent` does not pass the `handle_parsing_error` variable into the underlying Agent.
{ "login": "limgw1", "id": 60544264, "node_id": "MDQ6VXNlcjYwNTQ0MjY0", "avatar_url": "https://avatars.githubusercontent.com/u/60544264?v=4", "gravatar_id": "", "url": "https://api.github.com/users/limgw1", "html_url": "https://github.com/limgw1", "followers_url": "https://api.github.com/users/limgw1/followers", "following_url": "https://api.github.com/users/limgw1/following{/other_user}", "gists_url": "https://api.github.com/users/limgw1/gists{/gist_id}", "starred_url": "https://api.github.com/users/limgw1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/limgw1/subscriptions", "organizations_url": "https://api.github.com/users/limgw1/orgs", "repos_url": "https://api.github.com/users/limgw1/repos", "events_url": "https://api.github.com/users/limgw1/events{/privacy}", "received_events_url": "https://api.github.com/users/limgw1/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
6
2023-08-31T11:53:16
2023-09-03T21:31:02
2023-09-03T21:31:01
NONE
null
### System Info Python Version: 3.11.4 (main, Jul 5 2023, 08:40:20) [Clang 14.0.6 ] Langchain Version: 0.0.273 Jupyter Notebook Version: 5.3.0 ### Who can help? @hwchase17 @agola ### 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 - [X] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Steps to reproduce the behaviour: 1. Create a function to be used ``` def _handle_error(error) -> str: return str(error)[:50] ``` 2. Run `create_pandas_dataframe_agent`, pass in `handle_parsing_errors=_handle_error` ### Expected behavior I expect an output similar to the last section of https://python.langchain.com/docs/modules/agents/how_to/handle_parsing_errors, but instead I still get the normal OutputParserError
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10045/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10045/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10044
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10044/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10044/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10044/events
https://github.com/langchain-ai/langchain/issues/10044
1,875,323,135
I_kwDOIPDwls5vxyj_
10,044
Getting invalid URL post after updating langchain from 0.0.200 to 0.0.267
{ "login": "salexln", "id": 8012625, "node_id": "MDQ6VXNlcjgwMTI2MjU=", "avatar_url": "https://avatars.githubusercontent.com/u/8012625?v=4", "gravatar_id": "", "url": "https://api.github.com/users/salexln", "html_url": "https://github.com/salexln", "followers_url": "https://api.github.com/users/salexln/followers", "following_url": "https://api.github.com/users/salexln/following{/other_user}", "gists_url": "https://api.github.com/users/salexln/gists{/gist_id}", "starred_url": "https://api.github.com/users/salexln/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/salexln/subscriptions", "organizations_url": "https://api.github.com/users/salexln/orgs", "repos_url": "https://api.github.com/users/salexln/repos", "events_url": "https://api.github.com/users/salexln/events{/privacy}", "received_events_url": "https://api.github.com/users/salexln/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-08-31T11:17:31
2023-12-07T16:05:30
2023-12-07T16:05:29
NONE
null
### System Info `langchain` - 0.0.267 `openai` - 0.27.7 MacOS 13.4.1 (22F82) ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction This code was working when I used `langchain 0.0.200` (The call is to `AzureOpenAI` endpoint) ```python from langchain.chat_models import ChatOpenAI llm = ChatOpenAI(model_name=model_config.model_engine, deployment_id=model_config.model_engine, temperature=model_config.temperature, max_tokens=model_config.max_tokens_for_request, top_p=model_config.top_p, openai_api_key=endpoint_config.api_key.secret, api_base=endpoint_config.api_base, api_type=endpoint_config.api_type, api_version=endpoint_config.api_version) chat_prompt = [SystemMessage(...), HumanMessage(...)] response = llm(chat_prompt) ``` Once I updated `langchain` to `0.0.267`, I'm getting this error ```shell openai.error.InvalidRequestError: Invalid URL (POST /v1/openai/deployments/gpt-35-turbo/chat/completions) ``` The endpoint itself is working (once I reverted back to `0.0.200` all started to work again) ### Expected behavior I except to get an answer from the LLM
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10044/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10044/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10041
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10041/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10041/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10041/events
https://github.com/langchain-ai/langchain/pull/10041
1,875,250,044
PR_kwDOIPDwls5ZOT-B
10,041
fix wrong import line in cassandra doc page for vector store
{ "login": "hemidactylus", "id": 14221764, "node_id": "MDQ6VXNlcjE0MjIxNzY0", "avatar_url": "https://avatars.githubusercontent.com/u/14221764?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hemidactylus", "html_url": "https://github.com/hemidactylus", "followers_url": "https://api.github.com/users/hemidactylus/followers", "following_url": "https://api.github.com/users/hemidactylus/following{/other_user}", "gists_url": "https://api.github.com/users/hemidactylus/gists{/gist_id}", "starred_url": "https://api.github.com/users/hemidactylus/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hemidactylus/subscriptions", "organizations_url": "https://api.github.com/users/hemidactylus/orgs", "repos_url": "https://api.github.com/users/hemidactylus/repos", "events_url": "https://api.github.com/users/hemidactylus/events{/privacy}", "received_events_url": "https://api.github.com/users/hemidactylus/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-08-31T10:33:30
2023-09-01T12:53:08
2023-08-31T23:05:46
CONTRIBUTOR
null
This fixes the exampe import line in the general "cassandra" doc page mdx file. (it was erroneously a copy of the chat message history import statement found below).
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10041/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10041/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10041", "html_url": "https://github.com/langchain-ai/langchain/pull/10041", "diff_url": "https://github.com/langchain-ai/langchain/pull/10041.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10041.patch", "merged_at": "2023-08-31T23:05:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/10040
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10040/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10040/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10040/events
https://github.com/langchain-ai/langchain/issues/10040
1,875,216,407
I_kwDOIPDwls5vxYgX
10,040
Function calling use the wrong context
{ "login": "bertytobing", "id": 3992767, "node_id": "MDQ6VXNlcjM5OTI3Njc=", "avatar_url": "https://avatars.githubusercontent.com/u/3992767?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bertytobing", "html_url": "https://github.com/bertytobing", "followers_url": "https://api.github.com/users/bertytobing/followers", "following_url": "https://api.github.com/users/bertytobing/following{/other_user}", "gists_url": "https://api.github.com/users/bertytobing/gists{/gist_id}", "starred_url": "https://api.github.com/users/bertytobing/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bertytobing/subscriptions", "organizations_url": "https://api.github.com/users/bertytobing/orgs", "repos_url": "https://api.github.com/users/bertytobing/repos", "events_url": "https://api.github.com/users/bertytobing/events{/privacy}", "received_events_url": "https://api.github.com/users/bertytobing/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": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
4
2023-08-31T10:12:09
2023-12-07T16:05:35
2023-12-07T16:05:34
NONE
null
### Issue you'd like to raise. I'm using function calls to obtain and process data. I have two classes designed as follows: ```python class GetDataInput: user_input: str = Field(description="User input") class ProcessDataInput: data_url: str = Field(description="Link to the data") ``` Moreover, I'm employing the `ConversationBufferWindowMemory`. While the initial question posed to the bot yields the expected response, I encounter an issue when asking a subsequent question. Occasionally, instead of fetching new data, the bot utilizes the previous `data_url`. How can I effectively manage this kind of situation? Thank you for your assistance. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10040/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10040/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10039
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10039/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10039/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10039/events
https://github.com/langchain-ai/langchain/pull/10039
1,875,153,129
PR_kwDOIPDwls5ZN_BA
10,039
Impl chat message prompt type/dict (#10033)
{ "login": "skspark", "id": 118829871, "node_id": "U_kgDOBxUzLw", "avatar_url": "https://avatars.githubusercontent.com/u/118829871?v=4", "gravatar_id": "", "url": "https://api.github.com/users/skspark", "html_url": "https://github.com/skspark", "followers_url": "https://api.github.com/users/skspark/followers", "following_url": "https://api.github.com/users/skspark/following{/other_user}", "gists_url": "https://api.github.com/users/skspark/gists{/gist_id}", "starred_url": "https://api.github.com/users/skspark/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/skspark/subscriptions", "organizations_url": "https://api.github.com/users/skspark/orgs", "repos_url": "https://api.github.com/users/skspark/repos", "events_url": "https://api.github.com/users/skspark/events{/privacy}", "received_events_url": "https://api.github.com/users/skspark/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2023-08-31T09:35:45
2023-09-01T00:12:45
2023-09-01T00:12:44
CONTRIBUTOR
null
## Description Dumping BaseMessagePromptTemplate to json and loading to original Template is difficult, as retrieving exact type of message type from json is not possible. Therefore, I suggest adding _msg_type / _type property on BaseMessagePromptTemplate and utilized it on _dict and added load_message_prompt, like In [BasePromptTemplate dict method](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/schema/prompt_template.py#L108-L116). ## Issue #10033 ## Dependencies None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10039/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10039/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10039", "html_url": "https://github.com/langchain-ai/langchain/pull/10039", "diff_url": "https://github.com/langchain-ai/langchain/pull/10039.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10039.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10038
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10038/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10038/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10038/events
https://github.com/langchain-ai/langchain/issues/10038
1,875,139,090
I_kwDOIPDwls5vxFoS
10,038
streaming
{ "login": "poojitharamachandra", "id": 39840406, "node_id": "MDQ6VXNlcjM5ODQwNDA2", "avatar_url": "https://avatars.githubusercontent.com/u/39840406?v=4", "gravatar_id": "", "url": "https://api.github.com/users/poojitharamachandra", "html_url": "https://github.com/poojitharamachandra", "followers_url": "https://api.github.com/users/poojitharamachandra/followers", "following_url": "https://api.github.com/users/poojitharamachandra/following{/other_user}", "gists_url": "https://api.github.com/users/poojitharamachandra/gists{/gist_id}", "starred_url": "https://api.github.com/users/poojitharamachandra/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/poojitharamachandra/subscriptions", "organizations_url": "https://api.github.com/users/poojitharamachandra/orgs", "repos_url": "https://api.github.com/users/poojitharamachandra/repos", "events_url": "https://api.github.com/users/poojitharamachandra/events{/privacy}", "received_events_url": "https://api.github.com/users/poojitharamachandra/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" } ]
closed
false
null
[]
null
2
2023-08-31T09:27:42
2023-12-07T16:05:40
2023-12-07T16:05:39
NONE
null
### Issue you'd like to raise. is this implemented? https://github.com/langchain-ai/langchain/pull/1222/commits ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10038/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10038/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10037
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10037/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10037/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10037/events
https://github.com/langchain-ai/langchain/issues/10037
1,875,107,736
I_kwDOIPDwls5vw9-Y
10,037
Problems with using LangChain Sagemaker Embedding for Llama 2.0 Inference Endpoint in Sagemaker
{ "login": "StolzAlexander", "id": 91973162, "node_id": "U_kgDOBXtmKg", "avatar_url": "https://avatars.githubusercontent.com/u/91973162?v=4", "gravatar_id": "", "url": "https://api.github.com/users/StolzAlexander", "html_url": "https://github.com/StolzAlexander", "followers_url": "https://api.github.com/users/StolzAlexander/followers", "following_url": "https://api.github.com/users/StolzAlexander/following{/other_user}", "gists_url": "https://api.github.com/users/StolzAlexander/gists{/gist_id}", "starred_url": "https://api.github.com/users/StolzAlexander/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/StolzAlexander/subscriptions", "organizations_url": "https://api.github.com/users/StolzAlexander/orgs", "repos_url": "https://api.github.com/users/StolzAlexander/repos", "events_url": "https://api.github.com/users/StolzAlexander/events{/privacy}", "received_events_url": "https://api.github.com/users/StolzAlexander/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-08-31T09:09:17
2023-08-31T11:11:55
2023-08-31T11:11:55
NONE
null
### Issue you'd like to raise. Hi all😊 , I work in a network-isolated SageMaker environment. There I have hosted a llama 2.0 -7b chat Inference Endpoint (from [HF ](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf)) For a project I would like to work with LangChain. Currently I am failing with the embeddings. I can't use the HF embedding engine because of the network isolation. hf_embedding = HuggingFaceInstructEmbeddings() Alternatively I found a SageMaker embedding: https://python.langchain.com/docs/integrations/text_embedding/sagemaker-endpoint I used the same code from the docu: ```python from typing import Dict, List from langchain.embeddings import SagemakerEndpointEmbeddings from langchain.embeddings.sagemaker_endpoint import EmbeddingsContentHandler import json class ContentHandler(EmbeddingsContentHandler): content_type = "application/json" accepts = "application/json" def transform_input(self, inputs: list[str], model_kwargs: Dict) -> bytes: """ Transforms the input into bytes that can be consumed by SageMaker endpoint. Args: inputs: List of input strings. model_kwargs: Additional keyword arguments to be passed to the endpoint. Returns: The transformed bytes input. """ # Example: inference.py expects a JSON string with a "inputs" key: input_str = json.dumps({"inputs": inputs, **model_kwargs}) return input_str.encode("utf-8") def transform_output(self, output: bytes) -> List[List[float]]: """ Transforms the bytes output from the endpoint into a list of embeddings. Args: output: The bytes output from SageMaker endpoint. Returns: The transformed output - list of embeddings Note: The length of the outer list is the number of input strings. The length of the inner lists is the embedding dimension. """ # Example: inference.py returns a JSON string with the list of # embeddings in a "vectors" key: response_json = json.loads(output.read().decode("utf-8")) return response_json["vectors"]` content_handler = ContentHandler() embeddings = SagemakerEndpointEmbeddings( endpoint_name=ENDPOINT_NAME, region_name=REGION_NAME, content_handler=content_handler , ) query_result = embeddings.embed_query("foo") ``` But i get the following error: `--------------------------------------------------------------------------- ModelError Traceback (most recent call last) File /opt/conda/lib/python3.10/site-packages/langchain/embeddings/sagemaker_endpoint.py:153, in SagemakerEndpointEmbeddings._embedding_func(self, texts) [...] ModelError: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (422) from primary with message "Failed to deserialize the JSON body into the target type: inputs: invalid type: sequence, expected a string at line 1 column 11". See https://eu-central-1.console.aws.amazon.com/cloudwatch/home?xxxxx in account xxxxxx for more information.` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10037/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10037/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10035
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10035/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10035/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10035/events
https://github.com/langchain-ai/langchain/issues/10035
1,875,045,957
I_kwDOIPDwls5vwu5F
10,035
Conversational Retrieval Chain.from_llm integration with router chains
{ "login": "JoAmps", "id": 64706945, "node_id": "MDQ6VXNlcjY0NzA2OTQ1", "avatar_url": "https://avatars.githubusercontent.com/u/64706945?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JoAmps", "html_url": "https://github.com/JoAmps", "followers_url": "https://api.github.com/users/JoAmps/followers", "following_url": "https://api.github.com/users/JoAmps/following{/other_user}", "gists_url": "https://api.github.com/users/JoAmps/gists{/gist_id}", "starred_url": "https://api.github.com/users/JoAmps/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JoAmps/subscriptions", "organizations_url": "https://api.github.com/users/JoAmps/orgs", "repos_url": "https://api.github.com/users/JoAmps/repos", "events_url": "https://api.github.com/users/JoAmps/events{/privacy}", "received_events_url": "https://api.github.com/users/JoAmps/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-08-31T08:32:26
2023-12-07T16:05:44
2023-12-07T16:05:43
NONE
null
### Issue you'd like to raise. The idea is, that I have a vector store with a conversational retrieval chain.from_llm, and I want to create other functions such as send an email, etc. so that when a user queries for something, it determines if it should use the Conv retrieval chain or the other functions such as sending an email function, and it seems I need to use the router to achieve this, but when I do, I get a lot of errors such as ``` "default_chain -> prompt field required (type=value_error.missing) default_chain -> llm field required (type=value_error.missing) default_chain -> combine_docs_chain extra fields not permitted (type=value_error.extra) ``` How do i integrate with conv retrieval chain with routers to achieve my purpose, the only examples i have seen do not use conv retrieval chain ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10035/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10035/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10034
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10034/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10034/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10034/events
https://github.com/langchain-ai/langchain/issues/10034
1,875,031,907
I_kwDOIPDwls5vwrdj
10,034
context to pydantic_object
{ "login": "shon-otmazgin", "id": 17564565, "node_id": "MDQ6VXNlcjE3NTY0NTY1", "avatar_url": "https://avatars.githubusercontent.com/u/17564565?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shon-otmazgin", "html_url": "https://github.com/shon-otmazgin", "followers_url": "https://api.github.com/users/shon-otmazgin/followers", "following_url": "https://api.github.com/users/shon-otmazgin/following{/other_user}", "gists_url": "https://api.github.com/users/shon-otmazgin/gists{/gist_id}", "starred_url": "https://api.github.com/users/shon-otmazgin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shon-otmazgin/subscriptions", "organizations_url": "https://api.github.com/users/shon-otmazgin/orgs", "repos_url": "https://api.github.com/users/shon-otmazgin/repos", "events_url": "https://api.github.com/users/shon-otmazgin/events{/privacy}", "received_events_url": "https://api.github.com/users/shon-otmazgin/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-08-31T08:23:33
2023-12-07T16:05:50
2023-12-07T16:05:49
NONE
null
### Feature request while parsing LLM output with `pydantic_object` it would be nice to send to the `parse` function `context` object , like `pydantic` docs does here: https://docs.pydantic.dev/latest/usage/validators/#validation-context ### Motivation In order to do validation on LLM output rather than just parse it, in some cases to do the validation we need some context. ### Your contribution This change may require to support `pydantic` v2 not sure about backword capabilities. in `PydanticOutputParser.parse` function insted of `parse_obj` we should use `model_validate` then we could send context object(it can be optional) to `model_validate` from pydantic: ```python @typing_extensions.deprecated( 'The `parse_obj` method is deprecated; use `model_validate` instead.', category=PydanticDeprecatedSince20 ) def parse_obj(cls: type[Model], obj: Any) -> Model: # noqa: D102 warnings.warn('The `parse_obj` method is deprecated; use `model_validate` instead.', DeprecationWarning) return cls.model_validate(obj) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10034/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10034/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10033
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10033/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10033/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10033/events
https://github.com/langchain-ai/langchain/issues/10033
1,875,031,189
I_kwDOIPDwls5vwrSV
10,033
Add message type property method on BaseMessagePromptTemplate
{ "login": "skspark", "id": 118829871, "node_id": "U_kgDOBxUzLw", "avatar_url": "https://avatars.githubusercontent.com/u/118829871?v=4", "gravatar_id": "", "url": "https://api.github.com/users/skspark", "html_url": "https://github.com/skspark", "followers_url": "https://api.github.com/users/skspark/followers", "following_url": "https://api.github.com/users/skspark/following{/other_user}", "gists_url": "https://api.github.com/users/skspark/gists{/gist_id}", "starred_url": "https://api.github.com/users/skspark/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/skspark/subscriptions", "organizations_url": "https://api.github.com/users/skspark/orgs", "repos_url": "https://api.github.com/users/skspark/repos", "events_url": "https://api.github.com/users/skspark/events{/privacy}", "received_events_url": "https://api.github.com/users/skspark/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-08-31T08:23:10
2023-09-01T00:13:23
2023-09-01T00:13:23
CONTRIBUTOR
null
### Feature request I'm utilizing BaseMessagePromptTemplate with external DBs, for version control. However, dumping BaseMessagePromptTemplate to json and loading to original Template is difficult, as retrieving exact type of message type from json is not possible. Therefore, it would be useful to add _msg_type property on BaseMessagePromptTemplate, like In [BasePromptTemplate dict method](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/schema/prompt_template.py#L108-L116). ### Motivation Dumping ChatPromptTemplate to json and loading to original Template is difficult, as retrieving exact type of MessageLike (Union[BaseMessagePromptTemplate, BaseMessage, BaseChatPromptTemplate]) property is difficult. ### Your contribution If you allow me, I'd like to make a pull request regarding to this.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10033/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10033/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10031
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10031/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10031/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10031/events
https://github.com/langchain-ai/langchain/issues/10031
1,875,002,896
I_kwDOIPDwls5vwkYQ
10,031
Dynamic "search_kwargs" during RetrievalQAWithSourcesChain call
{ "login": "AguirreNicolas", "id": 37890346, "node_id": "MDQ6VXNlcjM3ODkwMzQ2", "avatar_url": "https://avatars.githubusercontent.com/u/37890346?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AguirreNicolas", "html_url": "https://github.com/AguirreNicolas", "followers_url": "https://api.github.com/users/AguirreNicolas/followers", "following_url": "https://api.github.com/users/AguirreNicolas/following{/other_user}", "gists_url": "https://api.github.com/users/AguirreNicolas/gists{/gist_id}", "starred_url": "https://api.github.com/users/AguirreNicolas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AguirreNicolas/subscriptions", "organizations_url": "https://api.github.com/users/AguirreNicolas/orgs", "repos_url": "https://api.github.com/users/AguirreNicolas/repos", "events_url": "https://api.github.com/users/AguirreNicolas/events{/privacy}", "received_events_url": "https://api.github.com/users/AguirreNicolas/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-08-31T08:06:10
2023-12-05T17:47:16
2023-12-05T17:47:08
NONE
null
### Feature request When using `RetrievalQAWithSourcesChain`, the chain call can't accept `search_kwargs` to pass then to the retriever like this: ```python response = chain({"question": query ,'search_kwargs': search_kwargs}) ``` In particular, I tried with `Milvus` and `MilvusRetriever` and natively could't find a way. ### Motivation Instead to create the same chain but with different `search_kwargs` to be sended to the retriever, it would be usefull to allow [optionally] the search_kwargs sendeed dynamically in the call. ### Your contribution I could allow this behaevoir with the following modification: Adding a `search_kwargs_key` to take `search_kwargs` that then will be sended to self.retriever.get_relevant_documents( ..., `**search_kwargs`,...). ```python class customRetrievalQAWithSourcesChain(RetrievalQAWithSourcesChain): search_kwargs_key:str = "search_kwargs" def _get_docs( self, inputs: Dict[str, Any], *, run_manager: CallbackManagerForChainRun ) -> List[Document]: question = inputs[self.question_key] search_kwargs = inputs[self.search_kwargs_key] docs = self.retriever.get_relevant_documents( question, **search_kwargs, callbacks=run_manager.get_child() ) return self._reduce_tokens_below_limit(docs) async def _aget_docs( self, inputs: Dict[str, Any], *, run_manager: AsyncCallbackManagerForChainRun ) -> List[Document]: question = inputs[self.question_key] search_kwargs = inputs[self.search_kwargs_key] docs = await self.retriever.aget_relevant_documents( question,**search_kwargs, callbacks=run_manager.get_child() ) return self._reduce_tokens_below_limit(docs) ``` And finally allowing to VectorStoreRetriever take `**search_kwargs` instead of `self.search_kwargs` ```python class customRetriever(VectorStoreRetriever): def _get_relevant_documents( self, query: str, *, run_manager: CallbackManagerForRetrieverRun, **search_kwargs: Any, ) -> List[Document]: if self.search_type == "similarity": docs = self.vectorstore.similarity_search(query, **search_kwargs) elif self.search_type == "similarity_score_threshold": docs_and_similarities = ( self.vectorstore.similarity_search_with_relevance_scores( query, **search_kwargs ) ) docs = [doc for doc, _ in docs_and_similarities] elif self.search_type == "mmr": docs = self.vectorstore.max_marginal_relevance_search( query, **search_kwargs ) else: raise ValueError(f"search_type of {self.search_type} not allowed.") return docs async def _aget_relevant_documents( self, query: str, *, run_manager: AsyncCallbackManagerForRetrieverRun, **search_kwargs: Any, ) -> List[Document]: if self.search_type == "similarity": docs = await self.vectorstore.asimilarity_search( query, **search_kwargs ) elif self.search_type == "similarity_score_threshold": docs_and_similarities = ( await self.vectorstore.asimilarity_search_with_relevance_scores( query, **search_kwargs ) ) docs = [doc for doc, _ in docs_and_similarities] elif self.search_type == "mmr": docs = await self.vectorstore.amax_marginal_relevance_search( query, **search_kwargs ) else: raise ValueError(f"search_type of {self.search_type} not allowed.") return docs ``` If you consider this usefull I could open a PR (confirm please). I not, maybe someone can find this usefull. Best regards,
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10031/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10031/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10029
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10029/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10029/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10029/events
https://github.com/langchain-ai/langchain/pull/10029
1,874,898,180
PR_kwDOIPDwls5ZNICl
10,029
Add AliCloudPaiEas class in langchain.llms to access alicloud pai-eas service.
{ "login": "hiigao", "id": 26385522, "node_id": "MDQ6VXNlcjI2Mzg1NTIy", "avatar_url": "https://avatars.githubusercontent.com/u/26385522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hiigao", "html_url": "https://github.com/hiigao", "followers_url": "https://api.github.com/users/hiigao/followers", "following_url": "https://api.github.com/users/hiigao/following{/other_user}", "gists_url": "https://api.github.com/users/hiigao/gists{/gist_id}", "starred_url": "https://api.github.com/users/hiigao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hiigao/subscriptions", "organizations_url": "https://api.github.com/users/hiigao/orgs", "repos_url": "https://api.github.com/users/hiigao/repos", "events_url": "https://api.github.com/users/hiigao/events{/privacy}", "received_events_url": "https://api.github.com/users/hiigao/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-08-31T06:54:43
2023-08-31T07:17:01
2023-08-31T07:17:01
CONTRIBUTOR
null
### Description This PR aims at adding new llm type AliCloudPaiEAS to support service accessing for alicloud product named pai-eas service. PAI-EAS can help users to deploy llm models on alicloud. ### Usage The user needs to start an eas service on alicloud and then set the service's access url and token as a params for AliCloudPaiEAS. Then AliCloudPaiEAS object as a llm object is passed to the Chain to run an output. The usage is like: `llm = AliCloudPaiEAS(eas_service_url="your_access_url",eas_service_token="your_access_token"` `llm_chain = LLMChain(prompt=prompt, llm=llm) ` `llm_chain.run("Hello there.")` ### Test and example The integration test case is located at libs/langchain/tests/integration_tests/llms/test_alicloud_eas.py The example notebook is located at docs/extras/integrations/lls/alicloud_api_eas.ipynb
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10029/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10029/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10029", "html_url": "https://github.com/langchain-ai/langchain/pull/10029", "diff_url": "https://github.com/langchain-ai/langchain/pull/10029.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10029.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10028
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10028/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10028/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10028/events
https://github.com/langchain-ai/langchain/issues/10028
1,874,888,777
I_kwDOIPDwls5vwIhJ
10,028
Does anyone created agent with tool which takes "dataframe" and "user_input" as input variables in langchain?
{ "login": "bmshambu", "id": 46180328, "node_id": "MDQ6VXNlcjQ2MTgwMzI4", "avatar_url": "https://avatars.githubusercontent.com/u/46180328?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bmshambu", "html_url": "https://github.com/bmshambu", "followers_url": "https://api.github.com/users/bmshambu/followers", "following_url": "https://api.github.com/users/bmshambu/following{/other_user}", "gists_url": "https://api.github.com/users/bmshambu/gists{/gist_id}", "starred_url": "https://api.github.com/users/bmshambu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bmshambu/subscriptions", "organizations_url": "https://api.github.com/users/bmshambu/orgs", "repos_url": "https://api.github.com/users/bmshambu/repos", "events_url": "https://api.github.com/users/bmshambu/events{/privacy}", "received_events_url": "https://api.github.com/users/bmshambu/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" } ]
closed
false
null
[]
null
3
2023-08-31T06:46:58
2023-12-07T16:05:55
2023-12-07T16:05:54
NONE
null
### Issue you'd like to raise. Does anyone created agent with tool which takes "dataframe" and "user_input" as input variables in langchain? I do not want use dataframe agent which is there already in langchain. As I need pass further instruction in the prompt template. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10028/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10028/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10027
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10027/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10027/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10027/events
https://github.com/langchain-ai/langchain/issues/10027
1,874,874,756
I_kwDOIPDwls5vwFGE
10,027
Issue: I dont know what the meaning of OPENAI_API_BASE and OPENAI_PROXY in ChatOpenAI
{ "login": "codeacme17", "id": 67408722, "node_id": "MDQ6VXNlcjY3NDA4NzIy", "avatar_url": "https://avatars.githubusercontent.com/u/67408722?v=4", "gravatar_id": "", "url": "https://api.github.com/users/codeacme17", "html_url": "https://github.com/codeacme17", "followers_url": "https://api.github.com/users/codeacme17/followers", "following_url": "https://api.github.com/users/codeacme17/following{/other_user}", "gists_url": "https://api.github.com/users/codeacme17/gists{/gist_id}", "starred_url": "https://api.github.com/users/codeacme17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/codeacme17/subscriptions", "organizations_url": "https://api.github.com/users/codeacme17/orgs", "repos_url": "https://api.github.com/users/codeacme17/repos", "events_url": "https://api.github.com/users/codeacme17/events{/privacy}", "received_events_url": "https://api.github.com/users/codeacme17/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" } ]
closed
false
null
[]
null
1
2023-08-31T06:35:39
2023-08-31T08:32:27
2023-08-31T08:32:27
NONE
null
Can anyone tell me the difference between these two parameters? When setting up the ChatOpenAI model
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10027/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10027/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10025
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10025/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10025/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10025/events
https://github.com/langchain-ai/langchain/issues/10025
1,874,819,757
I_kwDOIPDwls5vv3qt
10,025
Issue: AttributeError: 'list' object has no attribute 'embedding'
{ "login": "achilela", "id": 112531858, "node_id": "U_kgDOBrUZkg", "avatar_url": "https://avatars.githubusercontent.com/u/112531858?v=4", "gravatar_id": "", "url": "https://api.github.com/users/achilela", "html_url": "https://github.com/achilela", "followers_url": "https://api.github.com/users/achilela/followers", "following_url": "https://api.github.com/users/achilela/following{/other_user}", "gists_url": "https://api.github.com/users/achilela/gists{/gist_id}", "starred_url": "https://api.github.com/users/achilela/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/achilela/subscriptions", "organizations_url": "https://api.github.com/users/achilela/orgs", "repos_url": "https://api.github.com/users/achilela/repos", "events_url": "https://api.github.com/users/achilela/events{/privacy}", "received_events_url": "https://api.github.com/users/achilela/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-08-31T05:40:08
2023-12-07T16:06:00
2023-12-07T16:05:59
NONE
null
### Issue you'd like to raise. Hello, I am facing some issues with the code I am trying to run as it did run perfectly up until recently when an Error started being thrown out as AttributeError: 'list' object has no attribute 'embedding'. Below is the traceback if the error. Please do let me know if some code snippet excerpts will also be needed to facilitate debugging the code. Traceback: File "/home/ataliba/llm/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.__dict__) File "/home/ataliba/LLM_Workshop/Experimental_Lama_QA_Retrieval/Andro_GPT_Llama2.py", line 268, in <module> response = qa_chain.run(user_query, callbacks=[cb]) File "/home/ataliba/llm/lib/python3.10/site-packages/langchain/chains/base.py", line 481, in run return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[ File "/home/ataliba/llm/lib/python3.10/site-packages/langchain/chains/base.py", line 288, in __call__ raise e File "/home/ataliba/llm/lib/python3.10/site-packages/langchain/chains/base.py", line 282, in __call__ self._call(inputs, run_manager=run_manager) File "/home/ataliba/llm/lib/python3.10/site-packages/langchain/chains/conversational_retrieval/base.py", line 134, in _call docs = self._get_docs(new_question, inputs, run_manager=_run_manager) File "/home/ataliba/llm/lib/python3.10/site-packages/langchain/chains/conversational_retrieval/base.py", line 286, in _get_docs docs = self.retriever.get_relevant_documents( File "/home/ataliba/llm/lib/python3.10/site-packages/langchain/schema/retriever.py", line 208, in get_relevant_documents raise e File "/home/ataliba/llm/lib/python3.10/site-packages/langchain/schema/retriever.py", line 201, in get_relevant_documents result = self._get_relevant_documents( File "/home/ataliba/llm/lib/python3.10/site-packages/langchain/vectorstores/base.py", line 571, in _get_relevant_documents docs = self.vectorstore.max_marginal_relevance_search( File "/home/ataliba/llm/lib/python3.10/site-packages/langchain/vectorstores/docarray/base.py", line 197, in max_marginal_relevance_search np.array(query_embedding), docs.embedding, k=k ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10025/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10025/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10024
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10024/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10024/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10024/events
https://github.com/langchain-ai/langchain/pull/10024
1,874,817,574
PR_kwDOIPDwls5ZM20G
10,024
add bloomz_7b, llama-2-7b, llama-2-13b, llama-2-70b to ErnieBotChat
{ "login": "Hunsmore", "id": 12408465, "node_id": "MDQ6VXNlcjEyNDA4NDY1", "avatar_url": "https://avatars.githubusercontent.com/u/12408465?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Hunsmore", "html_url": "https://github.com/Hunsmore", "followers_url": "https://api.github.com/users/Hunsmore/followers", "following_url": "https://api.github.com/users/Hunsmore/following{/other_user}", "gists_url": "https://api.github.com/users/Hunsmore/gists{/gist_id}", "starred_url": "https://api.github.com/users/Hunsmore/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Hunsmore/subscriptions", "organizations_url": "https://api.github.com/users/Hunsmore/orgs", "repos_url": "https://api.github.com/users/Hunsmore/repos", "events_url": "https://api.github.com/users/Hunsmore/events{/privacy}", "received_events_url": "https://api.github.com/users/Hunsmore/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-08-31T05:37:31
2023-08-31T07:38:56
2023-08-31T07:38:55
CONTRIBUTOR
null
- Description: Add bloomz_7b, llama-2-7b, llama-2-13b, llama-2-70b to ErnieBotChat, which only supported ERNIE-Bot-turbo and ERNIE-Bot. - Issue: #10022, - Dependencies: no extra dependencies
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10024/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10024/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10024", "html_url": "https://github.com/langchain-ai/langchain/pull/10024", "diff_url": "https://github.com/langchain-ai/langchain/pull/10024.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10024.patch", "merged_at": "2023-08-31T07:38:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/10023
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10023/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10023/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10023/events
https://github.com/langchain-ai/langchain/pull/10023
1,874,814,732
PR_kwDOIPDwls5ZM2No
10,023
Fix link in Neo4j provider page
{ "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": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-31T05:34:02
2023-08-31T07:32:42
2023-08-31T07:32:42
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10023/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10023/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10023", "html_url": "https://github.com/langchain-ai/langchain/pull/10023", "diff_url": "https://github.com/langchain-ai/langchain/pull/10023.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10023.patch", "merged_at": "2023-08-31T07:32:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/10022
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10022/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10022/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10022/events
https://github.com/langchain-ai/langchain/issues/10022
1,874,805,344
I_kwDOIPDwls5vv0Jg
10,022
Support more models for ErnieBotChat
{ "login": "Hunsmore", "id": 12408465, "node_id": "MDQ6VXNlcjEyNDA4NDY1", "avatar_url": "https://avatars.githubusercontent.com/u/12408465?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Hunsmore", "html_url": "https://github.com/Hunsmore", "followers_url": "https://api.github.com/users/Hunsmore/followers", "following_url": "https://api.github.com/users/Hunsmore/following{/other_user}", "gists_url": "https://api.github.com/users/Hunsmore/gists{/gist_id}", "starred_url": "https://api.github.com/users/Hunsmore/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Hunsmore/subscriptions", "organizations_url": "https://api.github.com/users/Hunsmore/orgs", "repos_url": "https://api.github.com/users/Hunsmore/repos", "events_url": "https://api.github.com/users/Hunsmore/events{/privacy}", "received_events_url": "https://api.github.com/users/Hunsmore/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2023-08-31T05:22:17
2023-12-13T16:07:03
2023-12-13T16:07:02
CONTRIBUTOR
null
### Feature request The class ErnieBotChat defined in libs/langchain/langchain/chat_models/ernie.py only supports 2 models, which are ERNIE-Bot-turbo and ERNIE-Bot. While a bunch of new models are supported by BCE (Baidu Cloud Engine), such as llama-2-7b chat (https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Rlki1zlai). It would be better that this class supported more models. ### Motivation When I was using ErnieBotChat, I've found that ErnieBotChat cannot recognize models other than ERNIE-Bot-turbo and ERNIE-Bot. Instead, it raised an error "Got unknown model_name {self.model_name}". ### Your contribution If possible, I would be happy to help resolve this issue. I plan to add all models BCE (Baidu Cloud Engine) supports at this time(2023-8-31). The fixes will be simple, just add more cases around line 106 in the file libs/langchain/langchain/chat_models/ernie.py from the master branch.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10022/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10022/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10021
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10021/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10021/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10021/events
https://github.com/langchain-ai/langchain/pull/10021
1,874,803,645
PR_kwDOIPDwls5ZMz3U
10,021
Add integration TCs on bing search (#8068)
{ "login": "skspark", "id": 118829871, "node_id": "U_kgDOBxUzLw", "avatar_url": "https://avatars.githubusercontent.com/u/118829871?v=4", "gravatar_id": "", "url": "https://api.github.com/users/skspark", "html_url": "https://github.com/skspark", "followers_url": "https://api.github.com/users/skspark/followers", "following_url": "https://api.github.com/users/skspark/following{/other_user}", "gists_url": "https://api.github.com/users/skspark/gists{/gist_id}", "starred_url": "https://api.github.com/users/skspark/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/skspark/subscriptions", "organizations_url": "https://api.github.com/users/skspark/orgs", "repos_url": "https://api.github.com/users/skspark/repos", "events_url": "https://api.github.com/users/skspark/events{/privacy}", "received_events_url": "https://api.github.com/users/skspark/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-31T05:20:00
2023-08-31T07:34:07
2023-08-31T07:34:07
CONTRIBUTOR
null
## Description Added integration TCs on bing search utility ## Issue #8068 ## Dependencies None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10021/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10021/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10021", "html_url": "https://github.com/langchain-ai/langchain/pull/10021", "diff_url": "https://github.com/langchain-ai/langchain/pull/10021.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10021.patch", "merged_at": "2023-08-31T07:34:06" }
https://api.github.com/repos/langchain-ai/langchain/issues/10020
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10020/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10020/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10020/events
https://github.com/langchain-ai/langchain/pull/10020
1,874,788,586
PR_kwDOIPDwls5ZMwog
10,020
Fix Typo : `openai_api_key` -> `serpapi_api_key`
{ "login": "ANTARES-KOR", "id": 75557859, "node_id": "MDQ6VXNlcjc1NTU3ODU5", "avatar_url": "https://avatars.githubusercontent.com/u/75557859?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ANTARES-KOR", "html_url": "https://github.com/ANTARES-KOR", "followers_url": "https://api.github.com/users/ANTARES-KOR/followers", "following_url": "https://api.github.com/users/ANTARES-KOR/following{/other_user}", "gists_url": "https://api.github.com/users/ANTARES-KOR/gists{/gist_id}", "starred_url": "https://api.github.com/users/ANTARES-KOR/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ANTARES-KOR/subscriptions", "organizations_url": "https://api.github.com/users/ANTARES-KOR/orgs", "repos_url": "https://api.github.com/users/ANTARES-KOR/repos", "events_url": "https://api.github.com/users/ANTARES-KOR/events{/privacy}", "received_events_url": "https://api.github.com/users/ANTARES-KOR/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-31T04:59:56
2023-09-04T03:46:52
2023-08-31T07:33:13
CONTRIBUTOR
null
Fixed typo in the comments Notebook. (which says `openai_api_key` for SerpAPI)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10020/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10020/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10020", "html_url": "https://github.com/langchain-ai/langchain/pull/10020", "diff_url": "https://github.com/langchain-ai/langchain/pull/10020.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10020.patch", "merged_at": "2023-08-31T07:33:13" }
https://api.github.com/repos/langchain-ai/langchain/issues/10019
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10019/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10019/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10019/events
https://github.com/langchain-ai/langchain/issues/10019
1,874,719,531
I_kwDOIPDwls5vvfMr
10,019
fix: Loading documents from a Youtube Url
{ "login": "shawnesquivel", "id": 94336773, "node_id": "U_kgDOBZ93BQ", "avatar_url": "https://avatars.githubusercontent.com/u/94336773?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shawnesquivel", "html_url": "https://github.com/shawnesquivel", "followers_url": "https://api.github.com/users/shawnesquivel/followers", "following_url": "https://api.github.com/users/shawnesquivel/following{/other_user}", "gists_url": "https://api.github.com/users/shawnesquivel/gists{/gist_id}", "starred_url": "https://api.github.com/users/shawnesquivel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shawnesquivel/subscriptions", "organizations_url": "https://api.github.com/users/shawnesquivel/orgs", "repos_url": "https://api.github.com/users/shawnesquivel/repos", "events_url": "https://api.github.com/users/shawnesquivel/events{/privacy}", "received_events_url": "https://api.github.com/users/shawnesquivel/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-31T03:19:25
2023-12-07T16:06:10
2023-12-07T16:06:09
NONE
null
### System Info MacOS M2 13.4.1 (22F82) ### Who can help? @eyurtsev ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Steps to reproduce behaviour: 1. Run the [tutorial](https://python.langchain.com/docs/integrations/document_loaders/youtube_audio) with the default parameters `save_dir = "~/Downloads/YouTube"` 2. After calling `docs = loader.load()` the docs will be empty I have implemented a dummy fix for the interim. The error is here in this file: from langchain.document_loaders.blob_loaders.youtube_audio import YoutubeAudioLoader `YouTubeAudioLoader.yield_blobs` method loader = FileSystemBlobLoader(self.save_dir, glob="*.m4a") ``` # This doesn't always work (MacOS) loader = FileSystemBlobLoader(self.save_dir, glob="*.m4a") ``` The reason it doesn't work is that it's trying to use ~/Downloads/YouTube. The fix I propose is either: - Use the FULL file path in `save_dir` in the tutorial. - Replace the problematic line with this, so that it finds the actual directory, even if you prefer to use `~` for specifying file paths. ``` loader = FileSystemBlobLoader(os.path.expanduser(self.save_dir), glob="*.m4a") ``` ### Expected behavior There should be documents in the loader.load() variable. ### My Fix ``` # Yield the written blobs """ you could fix save_dir like this... (old) save_dir = "~/Downloads/YouTube" (new) "/Users/shawnesquivel/Downloads/YouTube" """ # This doesn't always work (MacOS) loader = FileSystemBlobLoader(self.save_dir, glob="*.m4a") # This works loader = FileSystemBlobLoader(os.path.expanduser(self.save_dir), glob="*.m4a") ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10019/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10019/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10017
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10017/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10017/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10017/events
https://github.com/langchain-ai/langchain/issues/10017
1,874,707,605
I_kwDOIPDwls5vvcSV
10,017
@dosu-bot
{ "login": "maggarwal25", "id": 135863452, "node_id": "U_kgDOCBkcnA", "avatar_url": "https://avatars.githubusercontent.com/u/135863452?v=4", "gravatar_id": "", "url": "https://api.github.com/users/maggarwal25", "html_url": "https://github.com/maggarwal25", "followers_url": "https://api.github.com/users/maggarwal25/followers", "following_url": "https://api.github.com/users/maggarwal25/following{/other_user}", "gists_url": "https://api.github.com/users/maggarwal25/gists{/gist_id}", "starred_url": "https://api.github.com/users/maggarwal25/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maggarwal25/subscriptions", "organizations_url": "https://api.github.com/users/maggarwal25/orgs", "repos_url": "https://api.github.com/users/maggarwal25/repos", "events_url": "https://api.github.com/users/maggarwal25/events{/privacy}", "received_events_url": "https://api.github.com/users/maggarwal25/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
7
2023-08-31T03:01:34
2023-12-07T16:06:15
2023-12-07T16:06:14
NONE
null
@dosu-bot The issue is that the "string indices must be indices", but your transformation does not deal with that. Here is the curretn code, please see below and change to avoid this error: ```from langchain.docstore.document import Document from typing import Dict from langchain import PromptTemplate, SagemakerEndpoint from langchain.llms.sagemaker_endpoint import LLMContentHandler from langchain.chains.question_answering import load_qa_chain import json example_doc_1 = """ string """ docs = [ Document( page_content=example_doc_1, ) ] query = """ prompt """ prompt_template = """Use the following pieces of context to answer the question at the end. {context} Question: {question} Answer:""" PROMPT = PromptTemplate( template=prompt_template, input_variables=["context", "question"] ) class ContentHandler(LLMContentHandler): content_type = "application/json" accepts = "application/json" def transform_input(self, prompt: str, model_kwargs: Dict) -> bytes: input_dict = {"inputs": prompt, "parameters": model_kwargs} return json.dumps(input_dict).encode('utf-8') def transform_output(self, output: bytes) -> str: response_json = json.loads(output.read().decode("utf-8")) print("output: ", response_json[0]) return response_json[0]["generation"] content_handler = ContentHandler() chain = load_qa_chain( llm=SagemakerEndpoint( endpoint_name="endpointname", credentials_profile_name="profilename", region_name="us-east-1", model_kwargs={"temperature": 1e-10, "max_length":500}, endpoint_kwargs={"CustomAttributes": "accept_eula=true"}, content_handler=content_handler, ), prompt=PROMPT, ) chain({"input_documents": docs, "question": query}, return_only_outputs=True)``` _Originally posted by @maggarwal25 in https://github.com/langchain-ai/langchain/issues/10012#issuecomment-1700300547_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10017/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10017/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10016
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10016/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10016/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10016/events
https://github.com/langchain-ai/langchain/pull/10016
1,874,701,323
PR_kwDOIPDwls5ZMeKO
10,016
fix scoring profile example
{ "login": "CameronVetter", "id": 7763701, "node_id": "MDQ6VXNlcjc3NjM3MDE=", "avatar_url": "https://avatars.githubusercontent.com/u/7763701?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CameronVetter", "html_url": "https://github.com/CameronVetter", "followers_url": "https://api.github.com/users/CameronVetter/followers", "following_url": "https://api.github.com/users/CameronVetter/following{/other_user}", "gists_url": "https://api.github.com/users/CameronVetter/gists{/gist_id}", "starred_url": "https://api.github.com/users/CameronVetter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CameronVetter/subscriptions", "organizations_url": "https://api.github.com/users/CameronVetter/orgs", "repos_url": "https://api.github.com/users/CameronVetter/repos", "events_url": "https://api.github.com/users/CameronVetter/events{/privacy}", "received_events_url": "https://api.github.com/users/CameronVetter/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-31T02:52:05
2023-08-31T07:35:06
2023-08-31T07:35:06
CONTRIBUTOR
null
- Description: A change in the documentation example for Azure Cognitive Vector Search with Scoring Profile so the example works as written - Issue: #10015 - Dependencies: None - Tag maintainer: @baskaryan @ruoccofabrizio - Twitter handle: @poshporcupine
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10016/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10016/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10016", "html_url": "https://github.com/langchain-ai/langchain/pull/10016", "diff_url": "https://github.com/langchain-ai/langchain/pull/10016.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10016.patch", "merged_at": "2023-08-31T07:35:06" }
https://api.github.com/repos/langchain-ai/langchain/issues/10015
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10015/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10015/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10015/events
https://github.com/langchain-ai/langchain/issues/10015
1,874,685,238
I_kwDOIPDwls5vvW02
10,015
Azure Cognitive Search Scoring Profile does not work as documented
{ "login": "CameronVetter", "id": 7763701, "node_id": "MDQ6VXNlcjc3NjM3MDE=", "avatar_url": "https://avatars.githubusercontent.com/u/7763701?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CameronVetter", "html_url": "https://github.com/CameronVetter", "followers_url": "https://api.github.com/users/CameronVetter/followers", "following_url": "https://api.github.com/users/CameronVetter/following{/other_user}", "gists_url": "https://api.github.com/users/CameronVetter/gists{/gist_id}", "starred_url": "https://api.github.com/users/CameronVetter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CameronVetter/subscriptions", "organizations_url": "https://api.github.com/users/CameronVetter/orgs", "repos_url": "https://api.github.com/users/CameronVetter/repos", "events_url": "https://api.github.com/users/CameronVetter/events{/privacy}", "received_events_url": "https://api.github.com/users/CameronVetter/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
5
2023-08-31T02:30:27
2023-12-08T16:05:06
2023-12-08T16:05:05
CONTRIBUTOR
null
### System Info langchain 0.0.277 azure-search-documents 11.4.0b8 python 3.1.0.11 ### Who can help? @baskaryan @ruoccofabrizio ### 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 Repro steps: 1. I took the code in https://github.com/langchain-ai/langchain/blob/master/docs/extras/integrations/vectorstores/azuresearch.ipynb and placed it in a python file and ran the chunk under "Create a new index with a Scoring profile" 2. I executed the code and got the following scores: ![image](https://github.com/langchain-ai/langchain/assets/7763701/b256a2cb-2310-4f77-a3c3-d7dff469fee5) 3. I went into the Azure Search Index and adjusted the "scoring_profile" to have a boost of 1000 instead of 100 and got the exact same scores. ### Expected behavior I expected all of the score to be 10 times larger than the scores I got. After much experimentation I do not believe that scoring profiles would with a vector search if a search term is specified. If "None" is specified the behavior is correct. Change the last line of the example to: ` res = vector_store.similarity_search(query="Test 1", k=3, search_type="similarity")` And the results respect the Scoring profile and behave as expected when the scoring profile is changed.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10015/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10015/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10014
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10014/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10014/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10014/events
https://github.com/langchain-ai/langchain/pull/10014
1,874,633,351
PR_kwDOIPDwls5ZMO88
10,014
`Yahoo Finance News` tool
{ "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" } ]
closed
false
null
[]
null
1
2023-08-31T01:55:26
2023-09-04T16:52:27
2023-09-03T21:43:57
COLLABORATOR
null
Added: - the `Yahoo Finance News` tool - Ut-s - An example
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10014/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10014/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10014", "html_url": "https://github.com/langchain-ai/langchain/pull/10014", "diff_url": "https://github.com/langchain-ai/langchain/pull/10014.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10014.patch", "merged_at": "2023-09-03T21:43:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/10013
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10013/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10013/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10013/events
https://github.com/langchain-ai/langchain/pull/10013
1,874,542,680
PR_kwDOIPDwls5ZL6_F
10,013
refactor: rename to OpaquePrompts
{ "login": "zizhong", "id": 3625100, "node_id": "MDQ6VXNlcjM2MjUxMDA=", "avatar_url": "https://avatars.githubusercontent.com/u/3625100?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zizhong", "html_url": "https://github.com/zizhong", "followers_url": "https://api.github.com/users/zizhong/followers", "following_url": "https://api.github.com/users/zizhong/following{/other_user}", "gists_url": "https://api.github.com/users/zizhong/gists{/gist_id}", "starred_url": "https://api.github.com/users/zizhong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zizhong/subscriptions", "organizations_url": "https://api.github.com/users/zizhong/orgs", "repos_url": "https://api.github.com/users/zizhong/repos", "events_url": "https://api.github.com/users/zizhong/events{/privacy}", "received_events_url": "https://api.github.com/users/zizhong/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-08-31T00:10:20
2023-08-31T21:55:35
2023-08-31T19:21:25
CONTRIBUTOR
null
Renamed to OpaquePrompts cc @baskaryan Thanks in advance!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10013/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10013/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10013", "html_url": "https://github.com/langchain-ai/langchain/pull/10013", "diff_url": "https://github.com/langchain-ai/langchain/pull/10013.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10013.patch", "merged_at": "2023-08-31T19:21:25" }
https://api.github.com/repos/langchain-ai/langchain/issues/10012
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10012/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10012/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10012/events
https://github.com/langchain-ai/langchain/issues/10012
1,874,476,223
I_kwDOIPDwls5vujy_
10,012
Issues with llama-2-7b-f
{ "login": "maggarwal25", "id": 135863452, "node_id": "U_kgDOCBkcnA", "avatar_url": "https://avatars.githubusercontent.com/u/135863452?v=4", "gravatar_id": "", "url": "https://api.github.com/users/maggarwal25", "html_url": "https://github.com/maggarwal25", "followers_url": "https://api.github.com/users/maggarwal25/followers", "following_url": "https://api.github.com/users/maggarwal25/following{/other_user}", "gists_url": "https://api.github.com/users/maggarwal25/gists{/gist_id}", "starred_url": "https://api.github.com/users/maggarwal25/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maggarwal25/subscriptions", "organizations_url": "https://api.github.com/users/maggarwal25/orgs", "repos_url": "https://api.github.com/users/maggarwal25/repos", "events_url": "https://api.github.com/users/maggarwal25/events{/privacy}", "received_events_url": "https://api.github.com/users/maggarwal25/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
10
2023-08-30T22:43:26
2023-11-30T13:20:12
null
NONE
null
### System Info latest versions for python and langchain ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [X] Callbacks/Tracing - [ ] Async ### Reproduction I used the demo code to run Sagemaker using Langchain for llama-2-7b-f However, I'm getting the following issues: ``` ValueError: Error raised by inference endpoint: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (424) from primary with message "{ "code":424, "message":"prediction failure", "error":"string indices must be integers" } ``` This is what is shown from AWS Logs: `[INFO ] PyProcess - W-80-model-stdout: [1,0]<stdout>:TypeError: string indices must be integers` How do I resolve this ### Expected behavior Shown: ``` ValueError: Error raised by inference endpoint: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (424) from primary with message "{ "code":424, "message":"prediction failure", "error":"string indices must be integers" } ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10012/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10012/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10011
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10011/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10011/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10011/events
https://github.com/langchain-ai/langchain/issues/10011
1,874,448,914
I_kwDOIPDwls5vudIS
10,011
No support for ConversationalRetrievalChain with passing in memory and system message
{ "login": "RishiMalhotra920", "id": 55925357, "node_id": "MDQ6VXNlcjU1OTI1MzU3", "avatar_url": "https://avatars.githubusercontent.com/u/55925357?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RishiMalhotra920", "html_url": "https://github.com/RishiMalhotra920", "followers_url": "https://api.github.com/users/RishiMalhotra920/followers", "following_url": "https://api.github.com/users/RishiMalhotra920/following{/other_user}", "gists_url": "https://api.github.com/users/RishiMalhotra920/gists{/gist_id}", "starred_url": "https://api.github.com/users/RishiMalhotra920/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RishiMalhotra920/subscriptions", "organizations_url": "https://api.github.com/users/RishiMalhotra920/orgs", "repos_url": "https://api.github.com/users/RishiMalhotra920/repos", "events_url": "https://api.github.com/users/RishiMalhotra920/events{/privacy}", "received_events_url": "https://api.github.com/users/RishiMalhotra920/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5774514459, "node_id": "LA_kwDOIPDwls8AAAABWDAZGw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/stale", "name": "stale", "color": "dadada", "default": false, "description": "Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
6
2023-08-30T22:14:38
2023-12-27T16:01:59
null
NONE
null
### System Info The latest langchain version ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I have written a script that initializes a chat which has access to a faiss index. I want to pass in a system prompt to the conversational agent. How do I add a system prompt to the conversational agent while making sure that the chat history is passed in and not stored and updated in memory. The code below shows details ``` from langchain.embeddings import OpenAIEmbeddings from langchain.vectorstores import Chroma from langchain.chat_models import AzureChatOpenAI from langchain.chains import ConversationalRetrievalChain from langchain.vectorstores import FAISS from dotenv import load_dotenv from langchain.schema import SystemMessage load_dotenv() import os system_message = SystemMessage( content="You are an AI that always writes text backwards e.g. 'hello' becomes 'olleh'." ) embeddings = OpenAIEmbeddings(deployment="embeddings", temperature=0, model="text-embedding-ada-002", openai_api_type="azure", openai_api_version="2023-03-15-preview", openai_api_base="https://azcore-kusto-bot-openai.openai.azure.com/", openai_api_key=os.getenv("OPENAI_API_KEY"), chunk_size = 1) vectorstore = FAISS.load_local("faiss_index", embeddings) prompt = "Your name is AzCoreKustoCopilot" llm=AzureChatOpenAI(deployment_name="16k-gpt-35", model="gpt-35-turbo-16k", openai_api_type="azure", openai_api_version="2023-03-15-preview", openai_api_base="https://azcore-kusto-bot-openai.openai.azure.com/", openai_api_key=os.getenv("OPENAI_API_KEY")) retriever = vectorstore.as_retriever() def initialize_chat(): # retriever = vectorstore.as_retriever() chat = ConversationalRetrievalChain.from_llm(llm, retriever=retriever) print('this is chat', chat) return chat def answer_query(chat, user_query, chat_history): """ user_query is the question chat_history is a list of lists: [[prev_prev_query, prev_prev_response], [prev_query, prev_response]] we convert this into a list of tuples """ chat_history_tups = [tuple(el) for el in chat_history] print(f"user_query:{user_query}, chat_history: {chat_history_tups}") result = chat({"question":user_query, "chat_history": chat_history_tups}) return result["answer"] ``` ### Expected behavior There is no way to pass in a system message and chat history to a ConversationalRetrievalChain. Why is that?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10011/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10011/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10007
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10007/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10007/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10007/events
https://github.com/langchain-ai/langchain/pull/10007
1,874,332,785
PR_kwDOIPDwls5ZLNe-
10,007
Bagatur/dereference tool schema
{ "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": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" } ]
closed
false
null
[]
null
1
2023-08-30T20:38:16
2023-08-31T07:48:13
2023-08-31T07:48:12
COLLABORATOR
null
fix for #9375
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10007/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10007/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10007", "html_url": "https://github.com/langchain-ai/langchain/pull/10007", "diff_url": "https://github.com/langchain-ai/langchain/pull/10007.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10007.patch", "merged_at": "2023-08-31T07:48:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/10006
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10006/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10006/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10006/events
https://github.com/langchain-ai/langchain/pull/10006
1,874,332,366
PR_kwDOIPDwls5ZLNZH
10,006
Add ne comparator
{ "login": "edcohen08", "id": 31940792, "node_id": "MDQ6VXNlcjMxOTQwNzky", "avatar_url": "https://avatars.githubusercontent.com/u/31940792?v=4", "gravatar_id": "", "url": "https://api.github.com/users/edcohen08", "html_url": "https://github.com/edcohen08", "followers_url": "https://api.github.com/users/edcohen08/followers", "following_url": "https://api.github.com/users/edcohen08/following{/other_user}", "gists_url": "https://api.github.com/users/edcohen08/gists{/gist_id}", "starred_url": "https://api.github.com/users/edcohen08/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/edcohen08/subscriptions", "organizations_url": "https://api.github.com/users/edcohen08/orgs", "repos_url": "https://api.github.com/users/edcohen08/repos", "events_url": "https://api.github.com/users/edcohen08/events{/privacy}", "received_events_url": "https://api.github.com/users/edcohen08/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-30T20:37:55
2023-09-03T21:45:11
2023-09-03T21:45:11
CONTRIBUTOR
null
Description: Adds the not comparator and operator to pinecone, chroma and deeplake. Issue: Not a registered issue but when using a selfqueryretriever with pinecone I got this error + stacktrace when I entered a query that asked to not include specific data: > raised following `error:` > Received unrecognized function ne. Valid functions are [<Operator.AND: 'and'>, <Operator.OR: 'or'>, <Operator.NOT: 'not'>, <Comparator.EQ: 'eq'>, <Comparator.GT: 'gt'>, <Comparator.GTE: 'gte'>, <Comparator.LT: 'lt'>, <Comparator.LTE: 'lte'>] I noticed that chroma and deeplake also support not equals/not filtering so I added it there as well [pinecone](https://docs.pinecone.io/docs/metadata-filtering#metadata-query-language) [chroma](https://docs.trychroma.com/usage-guide#filtering-by-metadata) [deeplake](https://docs.activeloop.ai/enterprise-features/compute-engine/querying-datasets/query-syntax#and-or-not)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10006/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10006/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10006", "html_url": "https://github.com/langchain-ai/langchain/pull/10006", "diff_url": "https://github.com/langchain-ai/langchain/pull/10006.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10006.patch", "merged_at": "2023-09-03T21:45:11" }
https://api.github.com/repos/langchain-ai/langchain/issues/10005
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10005/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10005/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10005/events
https://github.com/langchain-ai/langchain/pull/10005
1,874,144,920
PR_kwDOIPDwls5ZKkxD
10,005
guides docs nits
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-30T18:06:32
2023-08-30T19:33:40
2023-08-30T18:07:43
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10005/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10005/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10005", "html_url": "https://github.com/langchain-ai/langchain/pull/10005", "diff_url": "https://github.com/langchain-ai/langchain/pull/10005.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10005.patch", "merged_at": "2023-08-30T18:07:43" }
https://api.github.com/repos/langchain-ai/langchain/issues/10004
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10004/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10004/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10004/events
https://github.com/langchain-ai/langchain/pull/10004
1,874,126,698
PR_kwDOIPDwls5ZKg0q
10,004
rename local llm guide
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-08-30T17:52:40
2023-08-30T18:05:42
2023-08-30T17:52:47
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10004/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10004/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10004", "html_url": "https://github.com/langchain-ai/langchain/pull/10004", "diff_url": "https://github.com/langchain-ai/langchain/pull/10004.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10004.patch", "merged_at": "2023-08-30T17:52:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/10003
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10003/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10003/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10003/events
https://github.com/langchain-ai/langchain/pull/10003
1,874,114,185
PR_kwDOIPDwls5ZKeHs
10,003
make privacy guide section
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-30T17:42:50
2023-08-30T18:52:23
2023-08-30T17:49:20
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10003/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10003/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10003", "html_url": "https://github.com/langchain-ai/langchain/pull/10003", "diff_url": "https://github.com/langchain-ai/langchain/pull/10003.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10003.patch", "merged_at": "2023-08-30T17:49:20" }
https://api.github.com/repos/langchain-ai/langchain/issues/10002
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10002/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10002/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10002/events
https://github.com/langchain-ai/langchain/pull/10002
1,874,096,952
PR_kwDOIPDwls5ZKaX7
10,002
update moderation docs
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-30T17:30:10
2023-08-30T17:49:56
2023-08-30T17:34:26
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10002/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10002/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10002", "html_url": "https://github.com/langchain-ai/langchain/pull/10002", "diff_url": "https://github.com/langchain-ai/langchain/pull/10002.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10002.patch", "merged_at": "2023-08-30T17:34:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/10001
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10001/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10001/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10001/events
https://github.com/langchain-ai/langchain/pull/10001
1,874,063,727
PR_kwDOIPDwls5ZKTIU
10,001
docs(text_splitter): update document of character splitter with tiktoken
{ "login": "caopulan", "id": 48318302, "node_id": "MDQ6VXNlcjQ4MzE4MzAy", "avatar_url": "https://avatars.githubusercontent.com/u/48318302?v=4", "gravatar_id": "", "url": "https://api.github.com/users/caopulan", "html_url": "https://github.com/caopulan", "followers_url": "https://api.github.com/users/caopulan/followers", "following_url": "https://api.github.com/users/caopulan/following{/other_user}", "gists_url": "https://api.github.com/users/caopulan/gists{/gist_id}", "starred_url": "https://api.github.com/users/caopulan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/caopulan/subscriptions", "organizations_url": "https://api.github.com/users/caopulan/orgs", "repos_url": "https://api.github.com/users/caopulan/repos", "events_url": "https://api.github.com/users/caopulan/events{/privacy}", "received_events_url": "https://api.github.com/users/caopulan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-30T17:04:17
2023-09-03T21:45:46
2023-09-03T21:45:45
CONTRIBUTOR
null
The current document has not mentioned that splits larger than chunk size would happen. I update the related document and explain why it happens and how to solve it. related issue #1349 #3838 #2140
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10001/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10001/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10001", "html_url": "https://github.com/langchain-ai/langchain/pull/10001", "diff_url": "https://github.com/langchain-ai/langchain/pull/10001.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10001.patch", "merged_at": "2023-09-03T21:45:45" }
https://api.github.com/repos/langchain-ai/langchain/issues/10000
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10000/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10000/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10000/events
https://github.com/langchain-ai/langchain/pull/10000
1,874,049,470
PR_kwDOIPDwls5ZKQHR
10,000
docs: `google-drive-tool` example fix
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
4
2023-08-30T16:53:27
2023-09-01T20:45:10
2023-09-01T20:31:26
COLLABORATOR
null
This notebook was mistakenly placed in the `toolkits` folder and appears within `Agents & Toolkits` menu. But it should be in `Tools`. Moved example into `tools/`; updated title to consistent format.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10000/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10000/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10000", "html_url": "https://github.com/langchain-ai/langchain/pull/10000", "diff_url": "https://github.com/langchain-ai/langchain/pull/10000.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10000.patch", "merged_at": "2023-09-01T20:31:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/9999
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9999/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9999/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9999/events
https://github.com/langchain-ai/langchain/pull/9999
1,873,990,817
PR_kwDOIPDwls5ZKDte
9,999
Google drive integration (lite)
{ "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": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
1
2023-08-30T16:14:50
2023-09-03T22:54:42
2023-09-03T22:54:42
CONTRIBUTOR
null
My other [pull-request](https://github.com/langchain-ai/langchain/pull/5135) is too big to be acceptable. I propose another 'lite' version. I update only notebook to propose an integration with the external project [`langchain-googledrive`](https://github.com/pprados/langchain-googledrive).
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9999/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9999/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9999", "html_url": "https://github.com/langchain-ai/langchain/pull/9999", "diff_url": "https://github.com/langchain-ai/langchain/pull/9999.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9999.patch", "merged_at": "2023-09-03T22:54:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/9998
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9998/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9998/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9998/events
https://github.com/langchain-ai/langchain/pull/9998
1,873,976,366
PR_kwDOIPDwls5ZKApb
9,998
Buckler/dynamic retriever parameters
{ "login": "Buckler89", "id": 8536008, "node_id": "MDQ6VXNlcjg1MzYwMDg=", "avatar_url": "https://avatars.githubusercontent.com/u/8536008?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Buckler89", "html_url": "https://github.com/Buckler89", "followers_url": "https://api.github.com/users/Buckler89/followers", "following_url": "https://api.github.com/users/Buckler89/following{/other_user}", "gists_url": "https://api.github.com/users/Buckler89/gists{/gist_id}", "starred_url": "https://api.github.com/users/Buckler89/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Buckler89/subscriptions", "organizations_url": "https://api.github.com/users/Buckler89/orgs", "repos_url": "https://api.github.com/users/Buckler89/repos", "events_url": "https://api.github.com/users/Buckler89/events{/privacy}", "received_events_url": "https://api.github.com/users/Buckler89/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
4
2023-08-30T16:05:38
2023-09-05T09:06:39
2023-09-03T21:57:11
CONTRIBUTOR
null
Description: Enhance kwargs Support in Internal Retriever Method for EnsembleRetriever and MergerRetriever Classes This pull request introduces a valuable enhancement to the EnsembleRetriever and MergerRetriever classes by allowing the seamless flow of keyword arguments (**kwargs) to the internal _get_relevant_document method. This improvement empowers these classes with greater flexibility and customization when invoking the _get_relevant_document method. Changes Made: Previously, the internal _get_relevant_document method within the EnsembleRetriever and MergerRetriever classes did not directly receive keyword arguments. This enhancement addresses this limitation by enabling the propagation of **kwargs directly to the said method. This enables developers to conveniently pass additional arguments and options, extending the capabilities of these retriever classes. Benefits: Enhanced Flexibility: With this enhancement, users can now pass arbitrary keyword arguments when calling the _get_relevant_document method within the EnsembleRetriever and MergerRetriever classes. This facilitates customizations, configuration adjustments, and integration with other components in a more seamless manner. - Tag maintainer: @baskaryan - Twitter handle: Buckler89
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9998/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9998/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9998", "html_url": "https://github.com/langchain-ai/langchain/pull/9998", "diff_url": "https://github.com/langchain-ai/langchain/pull/9998.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9998.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/9997
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9997/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9997/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9997/events
https://github.com/langchain-ai/langchain/pull/9997
1,873,886,311
PR_kwDOIPDwls5ZJtK7
9,997
bump 277
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/release", "name": "release", "color": "07D4BE", "default": false, "description": "" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-08-30T15:13:27
2023-08-30T15:29:52
2023-08-30T15:29:51
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9997/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9997/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9997", "html_url": "https://github.com/langchain-ai/langchain/pull/9997", "diff_url": "https://github.com/langchain-ai/langchain/pull/9997.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9997.patch", "merged_at": "2023-08-30T15:29:51" }
https://api.github.com/repos/langchain-ai/langchain/issues/9996
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9996/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9996/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9996/events
https://github.com/langchain-ai/langchain/issues/9996
1,873,859,050
I_kwDOIPDwls5vsNHq
9,996
Solve the problem of working with incomplete document chunks and multiple documents
{ "login": "kripper", "id": 1479804, "node_id": "MDQ6VXNlcjE0Nzk4MDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1479804?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kripper", "html_url": "https://github.com/kripper", "followers_url": "https://api.github.com/users/kripper/followers", "following_url": "https://api.github.com/users/kripper/following{/other_user}", "gists_url": "https://api.github.com/users/kripper/gists{/gist_id}", "starred_url": "https://api.github.com/users/kripper/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kripper/subscriptions", "organizations_url": "https://api.github.com/users/kripper/orgs", "repos_url": "https://api.github.com/users/kripper/repos", "events_url": "https://api.github.com/users/kripper/events{/privacy}", "received_events_url": "https://api.github.com/users/kripper/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": 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
7
2023-08-30T14:58:47
2023-12-08T17:30:51
null
CONTRIBUTOR
null
### Feature request An agent for searching iteratively multiple documents without the problem of processing incomplete document chunks. An option to include the metadata (source references) in the prompt. ### Motivation Normally documents are split into chunks before being added to Chroma When the data is queried, Chroma returns these chunks of incomplete documents and feed them to the prompt. Thus, the LLM sometimes is not provided with the complete information and will fail to answer. This is a big problem, especially when the split occurs in the middle of a list (eg: a text listing the 10 commandments of god). The LLM won't have a chance to know they are 10. Besides, LangChain "stuff" retriever is just mixing all these chunks together, without even separating them nor adding the documents metadata of each chunk. Mixing different sentences could confuse the LLM. If this can be solved using document_prompt templates, this should be added to the documentation. I would also expect to include document souces into the prompt, so the LLM and provide the used sources (not all sources retrieved by the Chroma query). I blieve the queries should be processed by an agent with the ability to detect when there may be missing previous and/or following chunks in order to fetch them in a subsequent iteration if required. ### Your contribution I can help coding and testing, but I need feedback for the design and to know which other existing componentes could/should be used.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9996/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9996/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9995
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9995/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9995/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9995/events
https://github.com/langchain-ai/langchain/pull/9995
1,873,838,895
PR_kwDOIPDwls5ZJitf
9,995
refactor(document_loaders): abstract page evaluation logic in PlaywrightURLLoader
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" } ]
closed
false
null
[]
null
3
2023-08-30T14:47:30
2023-08-31T07:45:35
2023-08-31T07:45:34
COLLABORATOR
null
This PR brings structural updates to `PlaywrightURLLoader`, aiming at making the code more readable and extensible through the abstraction of page evaluation logic. These changes also align this implementation with a similar structure used in LangChain.js. The key enhancements include: 1. Introduction of 'PlaywrightEvaluator', an abstract base class for all evaluators. 2. Creation of 'UnstructuredHtmlEvaluator', a concrete class implementing 'PlaywrightEvaluator', which uses `unstructured` library for processing page's HTML content. 3. Extension of 'PlaywrightURLLoader' constructor to optionally accept an evaluator of the type 'PlaywrightEvaluator'. It defaults to 'UnstructuredHtmlEvaluator' if no evaluator is provided. 4. Refactoring of 'load' and 'aload' methods to use the 'evaluate' and 'evaluate_async' methods of the provided 'PageEvaluator' for page content handling. This update brings flexibility to 'PlaywrightURLLoader' as it can now utilize different evaluators for page processing depending on the requirement. The abstraction also improves code maintainability and readability. Please find the reference for LangChain.js implementation [here](https://github.com/hwchase17/langchainjs/blob/29f3ffdcb34acce1f1db78078f4e7d184eaec6b5/langchain/src/document_loaders/web/playwright.ts#L59). Maintainers for review: @rlancemartin, @eyurtsev Twitter: @ywkim
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9995/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9995/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9995", "html_url": "https://github.com/langchain-ai/langchain/pull/9995", "diff_url": "https://github.com/langchain-ai/langchain/pull/9995.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9995.patch", "merged_at": "2023-08-31T07:45:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/9993
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9993/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9993/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9993/events
https://github.com/langchain-ai/langchain/issues/9993
1,873,711,576
I_kwDOIPDwls5vrpHY
9,993
How to pass a custom prompt in graphQA or GraphCypherQA chain
{ "login": "pradeepdev-1995", "id": 41164884, "node_id": "MDQ6VXNlcjQxMTY0ODg0", "avatar_url": "https://avatars.githubusercontent.com/u/41164884?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pradeepdev-1995", "html_url": "https://github.com/pradeepdev-1995", "followers_url": "https://api.github.com/users/pradeepdev-1995/followers", "following_url": "https://api.github.com/users/pradeepdev-1995/following{/other_user}", "gists_url": "https://api.github.com/users/pradeepdev-1995/gists{/gist_id}", "starred_url": "https://api.github.com/users/pradeepdev-1995/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pradeepdev-1995/subscriptions", "organizations_url": "https://api.github.com/users/pradeepdev-1995/orgs", "repos_url": "https://api.github.com/users/pradeepdev-1995/repos", "events_url": "https://api.github.com/users/pradeepdev-1995/events{/privacy}", "received_events_url": "https://api.github.com/users/pradeepdev-1995/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" } ]
closed
false
null
[]
null
4
2023-08-30T13:42:34
2023-12-06T17:43:00
2023-12-06T17:42:59
NONE
null
### Feature request ``` from langchain.chat_models import ChatOpenAI from langchain.chains import GraphCypherQAChain from langchain.graphs import Neo4jGraph graph = Neo4jGraph( url="bolt://localhost:7687", username="neo4j", password="pleaseletmein" ) chain = GraphCypherQAChain.from_llm(ChatOpenAI(temperature=0), graph=graph, verbose=True) print(chain.run("Question to the graph")) ``` In the above Code, How can I pass my custom prompt as promptTemplate? Please give me an example ### Motivation Custom prompt support in Knowledge Graph QA ### Your contribution Custom prompt support in Knowledge Graph QA
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9993/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9993/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9992
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9992/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9992/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9992/events
https://github.com/langchain-ai/langchain/pull/9992
1,873,467,723
PR_kwDOIPDwls5ZIRSN
9,992
Extend the FalkorDB QA demo
{ "login": "gkorland", "id": 753206, "node_id": "MDQ6VXNlcjc1MzIwNg==", "avatar_url": "https://avatars.githubusercontent.com/u/753206?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gkorland", "html_url": "https://github.com/gkorland", "followers_url": "https://api.github.com/users/gkorland/followers", "following_url": "https://api.github.com/users/gkorland/following{/other_user}", "gists_url": "https://api.github.com/users/gkorland/gists{/gist_id}", "starred_url": "https://api.github.com/users/gkorland/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gkorland/subscriptions", "organizations_url": "https://api.github.com/users/gkorland/orgs", "repos_url": "https://api.github.com/users/gkorland/repos", "events_url": "https://api.github.com/users/gkorland/events{/privacy}", "received_events_url": "https://api.github.com/users/gkorland/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-30T11:20:04
2023-08-30T14:50:14
2023-08-30T14:13:18
CONTRIBUTOR
null
- Description: Extend the FalkorDB QA demo - Tag maintainer: @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9992/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9992/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9992", "html_url": "https://github.com/langchain-ai/langchain/pull/9992", "diff_url": "https://github.com/langchain-ai/langchain/pull/9992.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9992.patch", "merged_at": "2023-08-30T14:13:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/9989
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9989/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9989/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9989/events
https://github.com/langchain-ai/langchain/pull/9989
1,873,320,496
PR_kwDOIPDwls5ZHxHi
9,989
implement vectorstores by tencent vectordb
{ "login": "wlleiiwang", "id": 6872942, "node_id": "MDQ6VXNlcjY4NzI5NDI=", "avatar_url": "https://avatars.githubusercontent.com/u/6872942?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wlleiiwang", "html_url": "https://github.com/wlleiiwang", "followers_url": "https://api.github.com/users/wlleiiwang/followers", "following_url": "https://api.github.com/users/wlleiiwang/following{/other_user}", "gists_url": "https://api.github.com/users/wlleiiwang/gists{/gist_id}", "starred_url": "https://api.github.com/users/wlleiiwang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wlleiiwang/subscriptions", "organizations_url": "https://api.github.com/users/wlleiiwang/orgs", "repos_url": "https://api.github.com/users/wlleiiwang/repos", "events_url": "https://api.github.com/users/wlleiiwang/events{/privacy}", "received_events_url": "https://api.github.com/users/wlleiiwang/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
2
2023-08-30T09:43:53
2023-08-31T07:54:15
2023-08-31T07:48:26
NONE
null
Hi there! I'm excited to open this PR to add support for using 'Tencent Cloud VectorDB' as a vector store. Tencent Cloud VectorDB is a fully-managed, self-developed, enterprise-level distributed database service designed for storing, retrieving, and analyzing multi-dimensional vector data. The database supports multiple index types and similarity calculation methods, with a single index supporting vector scales up to 1 billion and capable of handling millions of QPS with millisecond-level query latency. Tencent Cloud VectorDB not only provides external knowledge bases for large models to improve their accuracy, but also has wide applications in AI fields such as recommendation systems, NLP services, computer vision, and intelligent customer service. The PR includes: Implementation of Vectorstore. I have read your [contributing guidelines](https://github.com/hwchase17/langchain/blob/72b7d76d79b0e187426787616d96257b64292119/.github/CONTRIBUTING.md). And I have passed the tests below make format make lint make coverage make test
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9989/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9989/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9989", "html_url": "https://github.com/langchain-ai/langchain/pull/9989", "diff_url": "https://github.com/langchain-ai/langchain/pull/9989.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9989.patch", "merged_at": "2023-08-31T07:48:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/9987
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9987/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9987/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9987/events
https://github.com/langchain-ai/langchain/issues/9987
1,873,221,947
I_kwDOIPDwls5vpxk7
9,987
AzureMLOnlineEndpoint not working, 404 error, but same url and api key works with standard http
{ "login": "levalencia", "id": 6962857, "node_id": "MDQ6VXNlcjY5NjI4NTc=", "avatar_url": "https://avatars.githubusercontent.com/u/6962857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/levalencia", "html_url": "https://github.com/levalencia", "followers_url": "https://api.github.com/users/levalencia/followers", "following_url": "https://api.github.com/users/levalencia/following{/other_user}", "gists_url": "https://api.github.com/users/levalencia/gists{/gist_id}", "starred_url": "https://api.github.com/users/levalencia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/levalencia/subscriptions", "organizations_url": "https://api.github.com/users/levalencia/orgs", "repos_url": "https://api.github.com/users/levalencia/repos", "events_url": "https://api.github.com/users/levalencia/events{/privacy}", "received_events_url": "https://api.github.com/users/levalencia/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-08-30T08:45:03
2023-11-03T14:14:44
2023-11-03T14:14:44
CONTRIBUTOR
null
### System Info 0.0.276 ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I have deployed llama2 in Azure ML endpoint and when I test it with langchain code I got a 404 Error. However using standard request library from python it works Below : askdocuments2 ---> no lanchain askdocuments --->langchain same endpoint url, same key. ``` def askdocuments2( question): # Request data goes here # The example below assumes JSON formatting which may be updated # depending on the format your endpoint expects. # More information can be found here: # https://docs.microsoft.com/azure/machine-learning/how-to-deploy-advanced-entry-script formatter = LlamaContentFormatter() data = formatter.format_request_payload(prompt=question, model_kwargs={"temperature": 0.1, "max_tokens": 300}) body = data url = 'https://llama-2-7b-test.westeurope.inference.ml.azure.com/score' # Replace this with the primary/secondary key or AMLToken for the endpoint api_key = '' if not api_key: raise Exception("A key should be provided to invoke the endpoint") # The azureml-model-deployment header will force the request to go to a specific deployment. # Remove this header to have the request observe the endpoint traffic rules headers = {'Content-Type': 'application/json', 'Authorization': ('Bearer ' + api_key), 'azureml-model-deployment': 'llama'} req = urllib.request.Request(url, body, headers) try: response = urllib.request.urlopen(req) result = response.read() decoded_data = json.loads(result.decode('utf-8')) text = decoded_data[0]["0"] return text except urllib.error.HTTPError as error: print("The request failed with status code: " + str(error.code)) # Print the headers - they include the requert ID and the timestamp, which are useful for debugging the failure print(error.info()) print(error.read().decode("utf8", 'ignore')) def askdocuments( question): try: content_formatter = LlamaContentFormatter() llm = AzureMLOnlineEndpoint( endpoint_api_key="", deployment_name="llama-2-7b-test", endpoint_url="https://llama-2-7b-test.westeurope.inference.ml.azure.com/score", model_kwargs={"temperature": 0.8, "max_tokens": 300}, content_formatter=content_formatter ) formatter_template = "Write a {word_count} word essay about {topic}." prompt = PromptTemplate( input_variables=["word_count", "topic"], template=formatter_template ) chain = LLMChain(llm=llm, prompt=prompt) response = chain.run({"word_count": 100, "topic": "how to make friends"}) return response except requests.exceptions.RequestException as e: # Handle any requests-related errors (e.g., network issues, invalid URL) raise ValueError(f"Error with the API request: {e}") except json.JSONDecodeError as e: # Handle any JSON decoding errors (e.g., invalid JSON format) raise ValueError(f"Error decoding API response as JSON: {e}") except Exception as e: # Handle any other errors raise ValueError(f"Error: {e}") ``` ### Expected behavior According to the documentation I am doing everything correctly, so not sure why its showing a 404 error in a valid url
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9987/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9987/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9986
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9986/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9986/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9986/events
https://github.com/langchain-ai/langchain/pull/9986
1,873,200,435
PR_kwDOIPDwls5ZHW6N
9,986
TextGen is missing async methods.
{ "login": "GMartin-dev", "id": 1821407, "node_id": "MDQ6VXNlcjE4MjE0MDc=", "avatar_url": "https://avatars.githubusercontent.com/u/1821407?v=4", "gravatar_id": "", "url": "https://api.github.com/users/GMartin-dev", "html_url": "https://github.com/GMartin-dev", "followers_url": "https://api.github.com/users/GMartin-dev/followers", "following_url": "https://api.github.com/users/GMartin-dev/following{/other_user}", "gists_url": "https://api.github.com/users/GMartin-dev/gists{/gist_id}", "starred_url": "https://api.github.com/users/GMartin-dev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GMartin-dev/subscriptions", "organizations_url": "https://api.github.com/users/GMartin-dev/orgs", "repos_url": "https://api.github.com/users/GMartin-dev/repos", "events_url": "https://api.github.com/users/GMartin-dev/events{/privacy}", "received_events_url": "https://api.github.com/users/GMartin-dev/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "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-08-30T08:34:04
2023-09-03T21:57:40
2023-09-03T21:57:40
CONTRIBUTOR
null
Adding _acall and _astream method that were missing. Preventing streaming during async executions. @rlancemartin.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9986/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9986/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9986", "html_url": "https://github.com/langchain-ai/langchain/pull/9986", "diff_url": "https://github.com/langchain-ai/langchain/pull/9986.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9986.patch", "merged_at": "2023-09-03T21:57:40" }
https://api.github.com/repos/langchain-ai/langchain/issues/9985
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9985/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9985/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9985/events
https://github.com/langchain-ai/langchain/issues/9985
1,873,154,024
I_kwDOIPDwls5vpg_o
9,985
ImportError: cannot import name 'HnswVectorSearchAlgorithmConfiguration' from 'azure.search.documents.indexes.models'
{ "login": "kennywongck", "id": 139125195, "node_id": "U_kgDOCErhyw", "avatar_url": "https://avatars.githubusercontent.com/u/139125195?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kennywongck", "html_url": "https://github.com/kennywongck", "followers_url": "https://api.github.com/users/kennywongck/followers", "following_url": "https://api.github.com/users/kennywongck/following{/other_user}", "gists_url": "https://api.github.com/users/kennywongck/gists{/gist_id}", "starred_url": "https://api.github.com/users/kennywongck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennywongck/subscriptions", "organizations_url": "https://api.github.com/users/kennywongck/orgs", "repos_url": "https://api.github.com/users/kennywongck/repos", "events_url": "https://api.github.com/users/kennywongck/events{/privacy}", "received_events_url": "https://api.github.com/users/kennywongck/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
8
2023-08-30T08:07:19
2023-12-02T03:48:15
null
NONE
null
### System Info I tried to use langchain with Azure Cognitive Search as vector store and got the following Import Error. langchain version: 0.0.276 azure documents: 11.4.0b8 python version: 3.8 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I tried to use the Azure Cognitive Search as vector store ``` model: str = "text-embedding-ada-002" search_service = os.environ["AZURE_COGNITIVE_SEARCH_SERVICE_NAME"] search_api_key = os.environ["AZURE_COGNITIVE_SEARCH_API_KEY"] vector_store_address: str = f"https://{search_service}.search.windows.net" vector_store_password: str = search_api_key # define embedding model for calculating the embeddings model: str = "text-embedding-ada-002" embeddings: OpenAIEmbeddings = OpenAIEmbeddings(deployment=model, chunk_size=1) embedding_function = embeddings.embed_query # define schema of the json file stored on the index fields = [ SimpleField( name="id", type=SearchFieldDataType.String, key=True, filterable=True, ), SearchableField( name="content", type=SearchFieldDataType.String, searchable=True, ), SearchField( name="content_vector", type=SearchFieldDataType.Collection(SearchFieldDataType.Single), searchable=True, vector_search_dimensions=len(embedding_function("Text")), vector_search_configuration="default", ), SearchableField( name="metadata", type=SearchFieldDataType.String, searchable=True, ), ] vector_store: AzureSearch = AzureSearch( azure_search_endpoint=vector_store_address, azure_search_key=vector_store_password, index_name=index_name, embedding_function=embedding_function, fields=fields, ) ``` And I got the following import error ``` Cell In[17], line 72, in azure_search_by_index(question, index_name) 21 # define schema of the json file stored on the index 22 fields = [ 23 SimpleField( 24 name="id", (...) 69 ), 70 ] ---> 72 vector_store: AzureSearch = AzureSearch( 73 azure_search_endpoint=vector_store_address, 74 azure_search_key=vector_store_password, 75 index_name=index_name, 76 embedding_function=embedding_function, 77 fields=fields, 78 ) 80 relevant_documentation = vector_store.similarity_search(query=question, k=1, search_type="similarity") 82 context = "\n".join([doc.page_content for doc in relevant_documentation])[:10000] File /anaconda/envs/jupyter_env/lib/python3.8/site-packages/langchain/vectorstores/azuresearch.py:234, in AzureSearch.__init__(self, azure_search_endpoint, azure_search_key, index_name, embedding_function, search_type, semantic_configuration_name, semantic_query_language, fields, vector_search, semantic_settings, scoring_profiles, default_scoring_profile, **kwargs) 232 if "user_agent" in kwargs and kwargs["user_agent"]: 233 user_agent += " " + kwargs["user_agent"] --> 234 self.client = _get_search_client( 235 azure_search_endpoint, 236 azure_search_key, 237 index_name, 238 semantic_configuration_name=semantic_configuration_name, 239 fields=fields, 240 vector_search=vector_search, 241 semantic_settings=semantic_settings, 242 scoring_profiles=scoring_profiles, 243 default_scoring_profile=default_scoring_profile, 244 default_fields=default_fields, 245 user_agent=user_agent, 246 ) 247 self.search_type = search_type 248 self.semantic_configuration_name = semantic_configuration_name File /anaconda/envs/jupyter_env/lib/python3.8/site-packages/langchain/vectorstores/azuresearch.py:83, in _get_search_client(endpoint, key, index_name, semantic_configuration_name, fields, vector_search, semantic_settings, scoring_profiles, default_scoring_profile, default_fields, user_agent) 81 from azure.search.documents import SearchClient 82 from azure.search.documents.indexes import SearchIndexClient ---> 83 from azure.search.documents.indexes.models import ( 84 HnswVectorSearchAlgorithmConfiguration, 85 PrioritizedFields, 86 SearchIndex, 87 SemanticConfiguration, 88 SemanticField, 89 SemanticSettings, 90 VectorSearch, 91 ) 93 default_fields = default_fields or [] 94 if key is None: ImportError: cannot import name 'HnswVectorSearchAlgorithmConfiguration' from 'azure.search.documents.indexes.models' (/anaconda/envs/jupyter_env/lib/python3.8/site-packages/azure/search/documents/indexes/models/__init__.py) ``` ### Expected behavior No import error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9985/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9985/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9982
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9982/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9982/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9982/events
https://github.com/langchain-ai/langchain/issues/9982
1,873,068,703
I_kwDOIPDwls5vpMKf
9,982
AttributeError: 'kendra' object has no attribute 'retrieve'
{ "login": "j-sieger", "id": 9985334, "node_id": "MDQ6VXNlcjk5ODUzMzQ=", "avatar_url": "https://avatars.githubusercontent.com/u/9985334?v=4", "gravatar_id": "", "url": "https://api.github.com/users/j-sieger", "html_url": "https://github.com/j-sieger", "followers_url": "https://api.github.com/users/j-sieger/followers", "following_url": "https://api.github.com/users/j-sieger/following{/other_user}", "gists_url": "https://api.github.com/users/j-sieger/gists{/gist_id}", "starred_url": "https://api.github.com/users/j-sieger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/j-sieger/subscriptions", "organizations_url": "https://api.github.com/users/j-sieger/orgs", "repos_url": "https://api.github.com/users/j-sieger/repos", "events_url": "https://api.github.com/users/j-sieger/events{/privacy}", "received_events_url": "https://api.github.com/users/j-sieger/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
4
2023-08-30T07:14:43
2023-12-19T00:48:53
2023-12-19T00:48:52
NONE
null
### System Info ``` import boto3 from langchain.retrievers import AmazonKendraRetriever retriever = AmazonKendraRetriever(index_id="xxxxxxxxxxxxxxxxxxxx") retriever.get_relevant_documents("what is the tax") ``` **Facing the below error** ---------------------------------------- ``` AttributeError Traceback (most recent call last) Cell In[48], line 9 5 # retriever = AmazonKendraRetriever(kendraindex='dfba3dce-b6eb-4fec-b98c-abe17a58cf30', 6 # awsregion='us-east-1', 7 # return_source_documents=True) 8 retriever = AmazonKendraRetriever(index_id="7835d77a-470b-4545-9613-508ed8fe82d3") ----> 9 retriever.get_relevant_documents("What is dog") File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain/schema/retriever.py:208, in BaseRetriever.get_relevant_documents(self, query, callbacks, tags, metadata, **kwargs) 206 except Exception as e: 207 run_manager.on_retriever_error(e) --> 208 raise e 209 else: 210 run_manager.on_retriever_end( 211 result, 212 **kwargs, 213 ) File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain/schema/retriever.py:201, in BaseRetriever.get_relevant_documents(self, query, callbacks, tags, metadata, **kwargs) 199 _kwargs = kwargs if self._expects_other_args else {} 200 if self._new_arg_supported: --> 201 result = self._get_relevant_documents( 202 query, run_manager=run_manager, **_kwargs 203 ) 204 else: 205 result = self._get_relevant_documents(query, **_kwargs) File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain/retrievers/kendra.py:421, in AmazonKendraRetriever._get_relevant_documents(self, query, run_manager) 407 def _get_relevant_documents( 408 self, 409 query: str, 410 *, 411 run_manager: CallbackManagerForRetrieverRun, 412 ) -> List[Document]: 413 """Run search on Kendra index and get top k documents 414 415 Example: (...) 419 420 """ --> 421 result_items = self._kendra_query(query) 422 top_k_docs = self._get_top_k_docs(result_items) 423 return top_k_docs File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain/retrievers/kendra.py:390, in AmazonKendraRetriever._kendra_query(self, query) 387 if self.user_context is not None: 388 kendra_kwargs["UserContext"] = self.user_context --> 390 response = self.client.retrieve(**kendra_kwargs) 391 r_result = RetrieveResult.parse_obj(response) 392 if r_result.ResultItems: File ~/anaconda3/envs/python3/lib/python3.10/site-packages/botocore/client.py:875, in BaseClient._getattr_(self, item) 872 if event_response is not None: 873 return event_response --> 875 raise AttributeError( 876 f"'{self._class.name_}' object has no attribute '{item}'" 877 ) ``` ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Create an kendra index and then use it to run the below code. import boto3 from langchain.retrievers import AmazonKendraRetriever retriever = AmazonKendraRetriever(index_id="xxxxxxxxxxxxxxxxxxxx") retriever.get_relevant_documents("what is the tax") ### Expected behavior Fetch the document from the index and retrun it like it was happening in previous version.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9982/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9982/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9981
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9981/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9981/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9981/events
https://github.com/langchain-ai/langchain/issues/9981
1,872,965,623
I_kwDOIPDwls5voy_3
9,981
Document Comparison toolkit is not working
{ "login": "abgonzalez", "id": 6552739, "node_id": "MDQ6VXNlcjY1NTI3Mzk=", "avatar_url": "https://avatars.githubusercontent.com/u/6552739?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abgonzalez", "html_url": "https://github.com/abgonzalez", "followers_url": "https://api.github.com/users/abgonzalez/followers", "following_url": "https://api.github.com/users/abgonzalez/following{/other_user}", "gists_url": "https://api.github.com/users/abgonzalez/gists{/gist_id}", "starred_url": "https://api.github.com/users/abgonzalez/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abgonzalez/subscriptions", "organizations_url": "https://api.github.com/users/abgonzalez/orgs", "repos_url": "https://api.github.com/users/abgonzalez/repos", "events_url": "https://api.github.com/users/abgonzalez/events{/privacy}", "received_events_url": "https://api.github.com/users/abgonzalez/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
13
2023-08-30T06:02:22
2024-01-17T17:59:58
null
NONE
null
### System Info First, Thank you so much for your work on Langchain, it's very good. I am trying to compare two documents following the guide from langchain https://python.langchain.com/docs/integrations/toolkits/document_comparison_toolkit I have done exactly the same code: I have one class to use for the args_schema on the tools creation: ``` class DocumentInput(BaseModel): question: str = Field() ``` I have created the tools : ``` tools.append( Tool( args_schema=DocumentInput, name=file_name, description=f"useful when you want to answer questions about {file_name}", func=RetrievalQA.from_chain_type(llm=llm, retriever=retriever) ) ) ``` ``` agent = initialize_agent( agent=AgentType.OPENAI_FUNCTIONS, tools=tools, llm=llm, verbose=True, ) ``` And here I am getting the error: "1 validation error for Tool\nargs_schema\n subclass of BaseModel expected (type=type_error.subclass; expected_class=BaseModel)", I have changed the args_schema class to : ``` from abc import ABC from langchain.tools import BaseTool from pydantic import Field class DocumentInput(BaseTool, ABC): question: str = Field() ``` And now the error, I am getting is: ("Value not declarable with JSON Schema, field: name='_callbacks_List[langchain.callbacks.base.BaseCallbackHandler]' type=BaseCallbackHandler required=True",) I only want to compare the content between two documents, Do you have some example to compare two files which is working? Maybe I am calling wrong the creation of the tools. ### Who can help? @yajunDai ### 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 - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I have follow exactly the guide for ->https://python.langchain.com/docs/integrations/toolkits/document_comparison_toolkit to compare two documents, and I am getting the error : "1 validation error for Tool\nargs_schema\n subclass of BaseModel expected (type=type_error.subclass; expected_class=BaseModel)", The args_schema class is : ``` class DocumentInput(BaseModel): question: str = Field() ``` I trying to create the tools : ``` tools.append( Tool( args_schema=DocumentInput, name=file_name, description=f"useful when you want to answer questions about {file_name}", func=RetrievalQA.from_chain_type(llm=llm, retriever=retriever) ) ) ``` and here I am getting the error: "1 validation error for Tool\nargs_schema\n subclass of BaseModel expected (type=type_error.subclass; expected_class=BaseModel)", After that I am doing this, but I can't get to initialize_agent ``` agent = initialize_agent( agent=AgentType.OPENAI_FUNCTIONS, tools=tools, llm=llm, verbose=True, ) ``` It's exactly the guide for the Document comparsion on Langchain ### Expected behavior Expected behaviour, that I can compare the content for two documents without error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9981/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9981/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9980
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9980/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9980/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9980/events
https://github.com/langchain-ai/langchain/issues/9980
1,872,945,320
I_kwDOIPDwls5vouCo
9,980
Chroma - retrieve all documents
{ "login": "rjtmehta99", "id": 22117807, "node_id": "MDQ6VXNlcjIyMTE3ODA3", "avatar_url": "https://avatars.githubusercontent.com/u/22117807?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rjtmehta99", "html_url": "https://github.com/rjtmehta99", "followers_url": "https://api.github.com/users/rjtmehta99/followers", "following_url": "https://api.github.com/users/rjtmehta99/following{/other_user}", "gists_url": "https://api.github.com/users/rjtmehta99/gists{/gist_id}", "starred_url": "https://api.github.com/users/rjtmehta99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rjtmehta99/subscriptions", "organizations_url": "https://api.github.com/users/rjtmehta99/orgs", "repos_url": "https://api.github.com/users/rjtmehta99/repos", "events_url": "https://api.github.com/users/rjtmehta99/events{/privacy}", "received_events_url": "https://api.github.com/users/rjtmehta99/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
1
2023-08-30T05:44:19
2023-12-06T17:43:05
2023-12-06T17:43:04
NONE
null
### Feature request When using Chroma vector store, the stored documents can only be retrieved when using a search query. There is no method which allows to load all documents. ### Motivation The closest thing to retrieving all documents is using `vectordb._collection.get()` for which the output is a dictionary instead of document. This prevents filtering based on other retrievers which Chroma does not support like TF-IDF and BM25. ### Your contribution Not yet.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9980/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9980/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9979
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9979/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9979/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9979/events
https://github.com/langchain-ai/langchain/pull/9979
1,872,926,826
PR_kwDOIPDwls5ZGbQF
9,979
Diffbot Graph Transformer / Neo4j Graph document ingestion
{ "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": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
2
2023-08-30T05:24:06
2023-09-06T20:35:45
2023-09-06T20:33:00
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9979/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9979/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9979", "html_url": "https://github.com/langchain-ai/langchain/pull/9979", "diff_url": "https://github.com/langchain-ai/langchain/pull/9979.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9979.patch", "merged_at": "2023-09-06T20:33:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/9978
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9978/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9978/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9978/events
https://github.com/langchain-ai/langchain/pull/9978
1,872,901,905
PR_kwDOIPDwls5ZGV6y
9,978
Add where filter in weaviate similarity search with score
{ "login": "Naearp777", "id": 59884329, "node_id": "MDQ6VXNlcjU5ODg0MzI5", "avatar_url": "https://avatars.githubusercontent.com/u/59884329?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Naearp777", "html_url": "https://github.com/Naearp777", "followers_url": "https://api.github.com/users/Naearp777/followers", "following_url": "https://api.github.com/users/Naearp777/following{/other_user}", "gists_url": "https://api.github.com/users/Naearp777/gists{/gist_id}", "starred_url": "https://api.github.com/users/Naearp777/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Naearp777/subscriptions", "organizations_url": "https://api.github.com/users/Naearp777/orgs", "repos_url": "https://api.github.com/users/Naearp777/repos", "events_url": "https://api.github.com/users/Naearp777/events{/privacy}", "received_events_url": "https://api.github.com/users/Naearp777/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
3
2023-08-30T04:57:06
2023-09-01T23:09:20
2023-09-01T23:09:20
CONTRIBUTOR
null
- Description: Add where filter in weaviate similarity search with score - Issue: #9853 - Dependencies: - - Tag maintainer: - - Twitter handle: -
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9978/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9978/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9978", "html_url": "https://github.com/langchain-ai/langchain/pull/9978", "diff_url": "https://github.com/langchain-ai/langchain/pull/9978.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9978.patch", "merged_at": "2023-09-01T23:09:20" }
https://api.github.com/repos/langchain-ai/langchain/issues/9977
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9977/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9977/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9977/events
https://github.com/langchain-ai/langchain/issues/9977
1,872,899,721
I_kwDOIPDwls5voi6J
9,977
mportError: cannot import name 'BaseLanguageModel' from 'langchain.schema' (/usr/local/lib/python3.10/dist-packages/langchain/schema/init.py)
{ "login": "andysingal", "id": 20493493, "node_id": "MDQ6VXNlcjIwNDkzNDkz", "avatar_url": "https://avatars.githubusercontent.com/u/20493493?v=4", "gravatar_id": "", "url": "https://api.github.com/users/andysingal", "html_url": "https://github.com/andysingal", "followers_url": "https://api.github.com/users/andysingal/followers", "following_url": "https://api.github.com/users/andysingal/following{/other_user}", "gists_url": "https://api.github.com/users/andysingal/gists{/gist_id}", "starred_url": "https://api.github.com/users/andysingal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andysingal/subscriptions", "organizations_url": "https://api.github.com/users/andysingal/orgs", "repos_url": "https://api.github.com/users/andysingal/repos", "events_url": "https://api.github.com/users/andysingal/events{/privacy}", "received_events_url": "https://api.github.com/users/andysingal/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-08-30T04:54:31
2023-12-06T17:43:10
2023-12-06T17:43:09
NONE
null
### System Info colab notebook ### Who can help? @hwchase17 @agola ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` getting error: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-25-74e62d788fe7> in <cell line: 9>() 7 import openai 8 from langchain.chains import LLMBashChain, LLMChain, RetrievalQA, SimpleSequentialChain ----> 9 from langchain.chains.summarize import load_summarize_chain 10 from langchain.chat_models import ChatOpenAI 11 from langchain.docstore.document import Document /usr/local/lib/python3.10/dist-packages/langchain/chains/summarize/init.py in <module> 9 from langchain.chains.summarize import map_reduce_prompt, refine_prompts, stuff_prompt 10 from langchain.prompts.base import BasePromptTemplate ---> 11 from langchain.schema import BaseLanguageModel 12 13 ImportError: cannot import name 'BaseLanguageModel' from 'langchain.schema' (/usr/local/lib/python3.10/dist-packages/langchain/schema/init.py) --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ``` ``` https://colab.research.google.com/drive/1xH7coRd2AnZFdejGQ2nyJWuNrTNMdvSa?usp=sharing ``` ### Expected behavior basic issues running the libraries
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9977/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9977/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9976
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9976/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9976/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9976/events
https://github.com/langchain-ai/langchain/issues/9976
1,872,890,614
I_kwDOIPDwls5vogr2
9,976
Generative Agents in LangChain Tool Integration
{ "login": "ShubhamVerma16", "id": 46774613, "node_id": "MDQ6VXNlcjQ2Nzc0NjEz", "avatar_url": "https://avatars.githubusercontent.com/u/46774613?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ShubhamVerma16", "html_url": "https://github.com/ShubhamVerma16", "followers_url": "https://api.github.com/users/ShubhamVerma16/followers", "following_url": "https://api.github.com/users/ShubhamVerma16/following{/other_user}", "gists_url": "https://api.github.com/users/ShubhamVerma16/gists{/gist_id}", "starred_url": "https://api.github.com/users/ShubhamVerma16/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShubhamVerma16/subscriptions", "organizations_url": "https://api.github.com/users/ShubhamVerma16/orgs", "repos_url": "https://api.github.com/users/ShubhamVerma16/repos", "events_url": "https://api.github.com/users/ShubhamVerma16/events{/privacy}", "received_events_url": "https://api.github.com/users/ShubhamVerma16/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
14
2023-08-30T04:43:59
2023-12-14T16:06:18
2023-12-14T16:06:17
NONE
null
### Feature request The generative Agents demo shows the generic individual conversation. There are 2 features that I need clarity on. If these exist (if yes how to implement the same) or need to be worked on: 1. Tool integration of the agents. If the agents can integrate to some tool like a calendar or a clock to get the real time actions. 2. The agents wait for the response or the action to be completed by the other agent. Currently the agents reply to the response which is mostly a text response. The requirement here being is that the agents wait for the other agent's action to be completed which is non textual. ### Motivation The motivation here is the autonomous world simulation that hoes beyond the textual conversation between the agents. Tool integration can bring in more realistic solutions to come into picture. ### Your contribution I have read the paper and know the approach. I can contribute on the development of the feature of that does not exist yet.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9976/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/9976/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9975
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9975/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9975/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9975/events
https://github.com/langchain-ai/langchain/issues/9975
1,872,845,768
I_kwDOIPDwls5voVvI
9,975
GCSFileLoader need to read blob's metadata and populate it to documents metadata
{ "login": "bharatl", "id": 9513328, "node_id": "MDQ6VXNlcjk1MTMzMjg=", "avatar_url": "https://avatars.githubusercontent.com/u/9513328?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bharatl", "html_url": "https://github.com/bharatl", "followers_url": "https://api.github.com/users/bharatl/followers", "following_url": "https://api.github.com/users/bharatl/following{/other_user}", "gists_url": "https://api.github.com/users/bharatl/gists{/gist_id}", "starred_url": "https://api.github.com/users/bharatl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bharatl/subscriptions", "organizations_url": "https://api.github.com/users/bharatl/orgs", "repos_url": "https://api.github.com/users/bharatl/repos", "events_url": "https://api.github.com/users/bharatl/events{/privacy}", "received_events_url": "https://api.github.com/users/bharatl/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": 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" } ]
open
false
null
[]
null
3
2023-08-30T03:58:52
2023-10-17T09:53:04
null
CONTRIBUTOR
null
### Feature request GCS blobs can have custom metadata defined either in google console or programatic way as shown below ``` from google.cloud import storage storage_client = storage.Client() bucket = storage_client.bucket(bucket_name) blob = bucket.blob(destination_blob_name) metadata = {'from_source': 'https://localhost', 'genre': 'sci-fi'} blob.metadata = metadata blob.upload_from_filename("/home/jupyter/svc-mlp-staging.json", if_generation_match=0) ``` GCSFileLoader can get blob's metadata if present and populate the same to document's metadata before returning docs. ### Motivation 1. This feature can help load the documents with the required custom metadata. 2. Splits (based on splitter) and vector embeddings of splits will be identified by custom metadata in vector store ### Your contribution Interested in taking this up
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9975/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9975/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9974
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9974/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9974/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9974/events
https://github.com/langchain-ai/langchain/pull/9974
1,872,816,079
PR_kwDOIPDwls5ZGDex
9,974
rm mutable defaults
{ "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": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-30T03:20:12
2023-08-30T03:36:28
2023-08-30T03:36:27
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9974/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9974/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9974", "html_url": "https://github.com/langchain-ai/langchain/pull/9974", "diff_url": "https://github.com/langchain-ai/langchain/pull/9974.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9974.patch", "merged_at": "2023-08-30T03:36:27" }
https://api.github.com/repos/langchain-ai/langchain/issues/9973
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9973/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9973/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9973/events
https://github.com/langchain-ai/langchain/issues/9973
1,872,811,739
I_kwDOIPDwls5voNbb
9,973
azure.search.documents.indexes.models._edm no attribute "Single" under Langchain.AzureSearch()
{ "login": "Mart1nZg", "id": 143574927, "node_id": "U_kgDOCI7Hjw", "avatar_url": "https://avatars.githubusercontent.com/u/143574927?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Mart1nZg", "html_url": "https://github.com/Mart1nZg", "followers_url": "https://api.github.com/users/Mart1nZg/followers", "following_url": "https://api.github.com/users/Mart1nZg/following{/other_user}", "gists_url": "https://api.github.com/users/Mart1nZg/gists{/gist_id}", "starred_url": "https://api.github.com/users/Mart1nZg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Mart1nZg/subscriptions", "organizations_url": "https://api.github.com/users/Mart1nZg/orgs", "repos_url": "https://api.github.com/users/Mart1nZg/repos", "events_url": "https://api.github.com/users/Mart1nZg/events{/privacy}", "received_events_url": "https://api.github.com/users/Mart1nZg/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
4
2023-08-30T03:14:22
2023-11-07T08:04:12
null
NONE
null
### System Info Platform: MacOS 13.5 Python Version: 3.10.11 Langchain: 0.0.257 Azure Search: 1.0.0b2 Azure Search Documents: 11.4.0b6 Openai: 0.27.8 Issue: AttributeError: module 'azure.search.documents.indexes.models._edm' has no attribute 'Single' Code: `az_search = AzureSearch(azure_search_endpoint=os.getenv('AZURE_COGNITIVE_SEARCH_SERVICE_NAME'), azure_search_key=os.getenv('AZURE_COGNITIVE_SEARCH_API_KEY'), index_name=os.getenv('AZURE_COGNITIVE_SEARCH_INDEX_NAME'), embedding_function=embeddings.embed_query)` I read from another post here: [https://github.com/langchain-ai/langchain/issues/8917](url) that this is caused by a version miss match. So I downgraded my Azure search-documents package version to 11.4.0b6. But the same error occurred. I've also tried using langchin==0.0.245 or langchain==0.0.247 but didn't solve the issue. ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` os.environ["AZURE_COGNITIVE_SEARCH_INDEX_NAME"]="vectordb001index" embeddings = OpenAIEmbeddings(deployment_id="vectorDBembedding", chunk_size=1) az_search = AzureSearch(azure_search_endpoint=os.getenv('AZURE_COGNITIVE_SEARCH_SERVICE_NAME'), azure_search_key=os.getenv('AZURE_COGNITIVE_SEARCH_API_KEY'), index_name=os.getenv('AZURE_COGNITIVE_SEARCH_INDEX_NAME'), embedding_function=embeddings.embed_query) ``` **Error Output** ``` File [~/Desktop/.../azuresearch.py:221](https://file+.vscode-resource.vscode-cdn.net/.../azuresearch.py:221), in AzureSearch.__init__(self, azure_search_endpoint, azure_search_key, index_name, embedding_function, search_type, semantic_configuration_name, semantic_query_language, fields, vector_search, semantic_settings, scoring_profiles, default_scoring_profile, **kwargs) 206 # Initialize base class 207 self.embedding_function = embedding_function 208 default_fields = [ 209 SimpleField( 210 name=FIELDS_ID, 211 type=SearchFieldDataType.String, 212 key=True, 213 filterable=True, 214 ), 215 SearchableField( 216 name=FIELDS_CONTENT, 217 type=SearchFieldDataType.String, 218 ), ... 230 ] 231 user_agent = "langchain" 232 if "user_agent" in kwargs and kwargs["user_agent"]: AttributeError: module 'azure.search.documents.indexes.models._edm' has no attribute 'Single' ``` ### Expected behavior Program running with no error interruption
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9973/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9973/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9972
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9972/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9972/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9972/events
https://github.com/langchain-ai/langchain/issues/9972
1,872,777,987
I_kwDOIPDwls5voFMD
9,972
create_structured_output_chain does not work with with AzureChatOpenAI model?
{ "login": "10E-4m2", "id": 3620867, "node_id": "MDQ6VXNlcjM2MjA4Njc=", "avatar_url": "https://avatars.githubusercontent.com/u/3620867?v=4", "gravatar_id": "", "url": "https://api.github.com/users/10E-4m2", "html_url": "https://github.com/10E-4m2", "followers_url": "https://api.github.com/users/10E-4m2/followers", "following_url": "https://api.github.com/users/10E-4m2/following{/other_user}", "gists_url": "https://api.github.com/users/10E-4m2/gists{/gist_id}", "starred_url": "https://api.github.com/users/10E-4m2/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/10E-4m2/subscriptions", "organizations_url": "https://api.github.com/users/10E-4m2/orgs", "repos_url": "https://api.github.com/users/10E-4m2/repos", "events_url": "https://api.github.com/users/10E-4m2/events{/privacy}", "received_events_url": "https://api.github.com/users/10E-4m2/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-08-30T02:28:18
2023-11-01T10:18:32
null
NONE
null
### System Info Python 3.11.4 langchain-0.0.276 currently troubleshooting on a Windows 11 workstation in a notebook in VSCode. ### Who can help? @hwchase17 @ag ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I'm trying to use a structured output chain with some defined Pydantic classes. The chain works when using ChatOpenAI model but not AzureChatOpenAI. I'm able to generate non-chained chat completions with AzureChatOpenAI, so I'm pretty confident the issue isn't with my configuration of the AzureChatOpenAI model. Representative code: ``` # ChatOpenAI using native OpenAI endpoint openai_model = ChatOpenAI(model="gpt-3.5-turbo", temperature=0) # AzureChatOpenAI using private endpoint through Azure OpenAI Service azure_model = AzureChatOpenAI( openai_api_base="[hiding my api base]", openai_api_version="2023-07-01-preview", deployment_name="[hiding my model deployment name]", model_name = "[hiding my model name]", openai_api_key="[hiding my API key]", openai_api_type="azure", temperature = 1 ) # define representative singleton class class GeneratedItem(BaseModel): """Information about a generated item.""" item_nickname: str = Field(..., description="A creative nickname for an item that might be found in some room") item_purpose: str = Field(..., description="The purpose of the item") # define the plural class as a Sequence of the above singletons class GeneratedItems(BaseModel): """information about all items generated""" items: Sequence[GeneratedItem] = Field(..., description="A sequence of items") # define messages for a prompt prompt_msgs = [ SystemMessage( content="You are a world class algorithm for generating information in structured formats." ), HumanMessage( content="Use the given format to generate 2 items that might be in a room described as follows" ), HumanMessagePromptTemplate.from_template("{input}"), HumanMessage(content="Tips: Make sure to answer in the correct format"), ] # define the prompt using ChatPromptTemplate prompt = ChatPromptTemplate(messages=prompt_msgs) # define and execute structured output chain with ChatOpenAI model chain1 = create_structured_output_chain(GeneratedItems, openai_model, prompt, verbose=False) chain1.run("A living room with green chairs and a wooden coffee table") # define and execute structued output chain with AzureChatOpenAI model chain2 = create_structured_output_chain(GeneratedItems, azure_model, prompt, verbose=False) chain2.run("A living room with green chairs and a wooden coffee table") ``` ### Expected behavior In the above code, the `chain1.run()` using ChatOpenAI executes successfully returning something like the below: {'items': [{'item_nickname': 'green chairs', 'item_purpose': 'seating'}, {'item_nickname': 'wooden coffee table', 'item_purpose': 'surface'}]} However, when executing `chain2.run()` which uses AzureChatOpenAI, this behavior is not replicated. Instead, I receive the below errors (including full traceback to help troubleshoot) ``` KeyError Traceback (most recent call last) Cell In[23], line 55 50 # chain1 = create_structured_output_chain(GeneratedItems, openai_model, prompt, verbose=False) 51 # chain1.run("A living room with green chairs and a wooden coffee table") 54 chain2 = create_structured_output_chain(GeneratedItems, azure_model, prompt, verbose=False) ---> 55 chain2.run("A living room with green chairs and a wooden coffee table") File ...\.venv\Lib\site-packages\langchain\chains\base.py:441, in Chain.run(self, callbacks, tags, metadata, *args, **kwargs) 439 if len(args) != 1: 440 raise ValueError("`run` supports only one positional argument.") --> 441 return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[ 442 _output_key 443 ] 445 if kwargs and not args: 446 return self(kwargs, callbacks=callbacks, tags=tags, metadata=metadata)[ 447 _output_key 448 ] File ...\.venv\Lib\site-packages\langchain\chains\base.py:244, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, include_run_info) 242 except (KeyboardInterrupt, Exception) as e: 243 run_manager.on_chain_error(e) --> 244 raise e 245 run_manager.on_chain_end(outputs) 246 final_outputs: Dict[str, Any] = self.prep_outputs( ... --> 103 content = _dict["content"] or "" # OpenAI returns None for tool invocations 104 if _dict.get("function_call"): 105 additional_kwargs = {"function_call": dict(_dict["function_call"])} KeyError: 'content' ``` Ideally this would return structured output for AzureChatOpenAI model in exactly the same manner as it does when using a ChatOpenAI model. Maybe I missed something in the docs, but thinking this is a source-side issue with AzureChatOpenAI not containing/creating the `content` key in the `_dict` dictionary. Please let me know if there are any workarounds or solutions I should attempt and/or some documentation I may not have found.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9972/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9972/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9971
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9971/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9971/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9971/events
https://github.com/langchain-ai/langchain/pull/9971
1,872,777,195
PR_kwDOIPDwls5ZF7W0
9,971
Check memory address
{ "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": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-30T02:27:08
2023-08-30T22:30:24
2023-08-30T22:30:23
COLLABORATOR
null
Don't want to dup the collector but can have multiple
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9971/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9971/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9971", "html_url": "https://github.com/langchain-ai/langchain/pull/9971", "diff_url": "https://github.com/langchain-ai/langchain/pull/9971.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9971.patch", "merged_at": "2023-08-30T22:30:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/9970
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9970/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9970/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9970/events
https://github.com/langchain-ai/langchain/pull/9970
1,872,776,933
PR_kwDOIPDwls5ZF7TU
9,970
Update error message
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-30T02:26:46
2023-08-31T00:42:56
2023-08-31T00:42:55
COLLABORATOR
null
in evals
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9970/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9970/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9970", "html_url": "https://github.com/langchain-ai/langchain/pull/9970", "diff_url": "https://github.com/langchain-ai/langchain/pull/9970.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9970.patch", "merged_at": "2023-08-31T00:42:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/9969
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9969/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9969/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9969/events
https://github.com/langchain-ai/langchain/pull/9969
1,872,762,294
PR_kwDOIPDwls5ZF4Nd
9,969
update_forward_refs for Run
{ "login": "robert-perrotta", "id": 104582251, "node_id": "U_kgDOBjvMaw", "avatar_url": "https://avatars.githubusercontent.com/u/104582251?v=4", "gravatar_id": "", "url": "https://api.github.com/users/robert-perrotta", "html_url": "https://github.com/robert-perrotta", "followers_url": "https://api.github.com/users/robert-perrotta/followers", "following_url": "https://api.github.com/users/robert-perrotta/following{/other_user}", "gists_url": "https://api.github.com/users/robert-perrotta/gists{/gist_id}", "starred_url": "https://api.github.com/users/robert-perrotta/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/robert-perrotta/subscriptions", "organizations_url": "https://api.github.com/users/robert-perrotta/orgs", "repos_url": "https://api.github.com/users/robert-perrotta/repos", "events_url": "https://api.github.com/users/robert-perrotta/events{/privacy}", "received_events_url": "https://api.github.com/users/robert-perrotta/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-08-30T02:06:22
2023-08-31T22:25:59
2023-08-31T22:25:59
CONTRIBUTOR
null
Adds a call to Pydantic's `update_forward_refs` for the `Run` class (in addition to the `ChainRun` and `ToolRun` classes, for which that method is already called). Without it, the self-reference of child classes (type `List[Run]`) is problematic. For example: ```python from langchain.callbacks import StdOutCallbackHandler from langchain.chains import LLMChain from langchain.llms import OpenAI from langchain.prompts import PromptTemplate from wandb.integration.langchain import WandbTracer llm = OpenAI() prompt = PromptTemplate.from_template("1 + {number} = ") chain = LLMChain(llm=llm, prompt=prompt, callbacks=[StdOutCallbackHandler(), WandbTracer()]) print(chain.run(number=2)) ``` results in the following output before the change ``` WARNING:root:Error in on_chain_start callback: field "child_runs" not yet prepared so type is still a ForwardRef, you might need to call Run.update_forward_refs(). > Entering new LLMChain chain... Prompt after formatting: 1 + 2 = WARNING:root:Error in on_chain_end callback: No chain Run found to be traced > Finished chain. 3 ``` but afterwards the callback error messages are gone.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9969/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9969/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9969", "html_url": "https://github.com/langchain-ai/langchain/pull/9969", "diff_url": "https://github.com/langchain-ai/langchain/pull/9969.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9969.patch", "merged_at": "2023-08-31T22:25:59" }
https://api.github.com/repos/langchain-ai/langchain/issues/9968
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9968/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9968/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9968/events
https://github.com/langchain-ai/langchain/pull/9968
1,872,754,726
PR_kwDOIPDwls5ZF2oZ
9,968
fixed openai_functions api_response format args err
{ "login": "dafu-wu", "id": 38685037, "node_id": "MDQ6VXNlcjM4Njg1MDM3", "avatar_url": "https://avatars.githubusercontent.com/u/38685037?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dafu-wu", "html_url": "https://github.com/dafu-wu", "followers_url": "https://api.github.com/users/dafu-wu/followers", "following_url": "https://api.github.com/users/dafu-wu/following{/other_user}", "gists_url": "https://api.github.com/users/dafu-wu/gists{/gist_id}", "starred_url": "https://api.github.com/users/dafu-wu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dafu-wu/subscriptions", "organizations_url": "https://api.github.com/users/dafu-wu/orgs", "repos_url": "https://api.github.com/users/dafu-wu/repos", "events_url": "https://api.github.com/users/dafu-wu/events{/privacy}", "received_events_url": "https://api.github.com/users/dafu-wu/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-08-30T01:55:50
2023-08-31T07:49:24
2023-08-31T07:49:20
CONTRIBUTOR
null
root cause: args may not have a key (params) resulting in an error <!-- Thank you for contributing to LangChain! Replace this entire comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. These live is docs/extras directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9968/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9968/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9968", "html_url": "https://github.com/langchain-ai/langchain/pull/9968", "diff_url": "https://github.com/langchain-ai/langchain/pull/9968.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9968.patch", "merged_at": "2023-08-31T07:49:20" }
https://api.github.com/repos/langchain-ai/langchain/issues/9967
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9967/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9967/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9967/events
https://github.com/langchain-ai/langchain/pull/9967
1,872,713,227
PR_kwDOIPDwls5ZFt5z
9,967
Bagatur/vearch
{ "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": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
1
2023-08-30T00:59:51
2023-08-30T01:12:04
2023-08-30T01:02:32
COLLABORATOR
null
CI not running on original pr
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9967/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9967/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9967", "html_url": "https://github.com/langchain-ai/langchain/pull/9967", "diff_url": "https://github.com/langchain-ai/langchain/pull/9967.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9967.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/9966
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9966/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9966/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9966/events
https://github.com/langchain-ai/langchain/pull/9966
1,872,654,744
PR_kwDOIPDwls5ZFhTu
9,966
Bagatur/add data anonymizer
{ "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" } ]
closed
false
null
[]
null
1
2023-08-29T23:52:02
2023-08-31T07:49:37
2023-08-31T07:49:37
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. These live is docs/extras directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9966/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9966/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9966", "html_url": "https://github.com/langchain-ai/langchain/pull/9966", "diff_url": "https://github.com/langchain-ai/langchain/pull/9966.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9966.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/9965
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9965/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9965/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9965/events
https://github.com/langchain-ai/langchain/pull/9965
1,872,597,206
PR_kwDOIPDwls5ZFVcA
9,965
docs: `integrations/tools` consistency
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-29T22:41:48
2023-08-30T01:35:15
2023-08-30T01:04:02
COLLABORATOR
null
Updated titles, descriptions into consistent format.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9965/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9965/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9965", "html_url": "https://github.com/langchain-ai/langchain/pull/9965", "diff_url": "https://github.com/langchain-ai/langchain/pull/9965.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9965.patch", "merged_at": "2023-08-30T01:04:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/9964
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9964/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9964/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9964/events
https://github.com/langchain-ai/langchain/pull/9964
1,872,595,511
PR_kwDOIPDwls5ZFVEz
9,964
Feat/add bedrock claude chat (resolve conflicts with master)
{ "login": "shabie", "id": 30535146, "node_id": "MDQ6VXNlcjMwNTM1MTQ2", "avatar_url": "https://avatars.githubusercontent.com/u/30535146?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shabie", "html_url": "https://github.com/shabie", "followers_url": "https://api.github.com/users/shabie/followers", "following_url": "https://api.github.com/users/shabie/following{/other_user}", "gists_url": "https://api.github.com/users/shabie/gists{/gist_id}", "starred_url": "https://api.github.com/users/shabie/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shabie/subscriptions", "organizations_url": "https://api.github.com/users/shabie/orgs", "repos_url": "https://api.github.com/users/shabie/repos", "events_url": "https://api.github.com/users/shabie/events{/privacy}", "received_events_url": "https://api.github.com/users/shabie/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-08-29T22:39:30
2023-08-29T22:44:03
2023-08-29T22:43:44
NONE
null
This is a follow-up PR that resolves merge conflicts with the master for #8017
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9964/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9964/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9964", "html_url": "https://github.com/langchain-ai/langchain/pull/9964", "diff_url": "https://github.com/langchain-ai/langchain/pull/9964.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9964.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/9963
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9963/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9963/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9963/events
https://github.com/langchain-ai/langchain/pull/9963
1,872,579,339
PR_kwDOIPDwls5ZFRhq
9,963
don't emit none from eval config
{ "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": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-08-29T22:20:09
2023-08-29T23:14:34
2023-08-29T23:14:33
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9963/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9963/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9963", "html_url": "https://github.com/langchain-ai/langchain/pull/9963", "diff_url": "https://github.com/langchain-ai/langchain/pull/9963.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9963.patch", "merged_at": "2023-08-29T23:14:32" }
https://api.github.com/repos/langchain-ai/langchain/issues/9961
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9961/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9961/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9961/events
https://github.com/langchain-ai/langchain/pull/9961
1,872,544,288
PR_kwDOIPDwls5ZFJ2r
9,961
Bagatur/activeloopai runtime arg
{ "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": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-29T21:53:56
2023-08-29T22:01:47
2023-08-29T22:01:47
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9961/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9961/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9961", "html_url": "https://github.com/langchain-ai/langchain/pull/9961", "diff_url": "https://github.com/langchain-ai/langchain/pull/9961.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9961.patch", "merged_at": "2023-08-29T22:01:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/9960
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9960/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9960/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9960/events
https://github.com/langchain-ai/langchain/pull/9960
1,872,511,936
PR_kwDOIPDwls5ZFCh3
9,960
docs: `llms/google vertex AI` example 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": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-08-29T21:33:08
2023-08-29T22:24:10
2023-08-29T22:07:18
COLLABORATOR
null
Updated title, description, added sections.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9960/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9960/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9960", "html_url": "https://github.com/langchain-ai/langchain/pull/9960", "diff_url": "https://github.com/langchain-ai/langchain/pull/9960.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9960.patch", "merged_at": "2023-08-29T22:07:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/9959
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9959/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9959/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9959/events
https://github.com/langchain-ai/langchain/issues/9959
1,872,502,344
I_kwDOIPDwls5vnB5I
9,959
SQL Chain Result - Error
{ "login": "evelinerod", "id": 143556564, "node_id": "U_kgDOCI5_1A", "avatar_url": "https://avatars.githubusercontent.com/u/143556564?v=4", "gravatar_id": "", "url": "https://api.github.com/users/evelinerod", "html_url": "https://github.com/evelinerod", "followers_url": "https://api.github.com/users/evelinerod/followers", "following_url": "https://api.github.com/users/evelinerod/following{/other_user}", "gists_url": "https://api.github.com/users/evelinerod/gists{/gist_id}", "starred_url": "https://api.github.com/users/evelinerod/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/evelinerod/subscriptions", "organizations_url": "https://api.github.com/users/evelinerod/orgs", "repos_url": "https://api.github.com/users/evelinerod/repos", "events_url": "https://api.github.com/users/evelinerod/events{/privacy}", "received_events_url": "https://api.github.com/users/evelinerod/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" } ]
closed
false
null
[]
null
4
2023-08-29T21:27:00
2023-08-30T19:39:38
2023-08-30T19:32:09
NONE
null
### System Info **### I´m directly providing these arguments to the LLMs via the prompt:** **SOURCE CODE:** from langchain import OpenAI, SQLDatabase from langchain_experimental.sql import SQLDatabaseChain from langchain.chains import create_sql_query_chain from langchain.prompts.prompt import PromptTemplate import environ env = environ.Env() environ.Env.read_env() API_KEY = env('OPENAI_API_KEY') db = SQLDatabase.from_uri( f"postgresql+psycopg2://postgres:{env('DBPASS')}@localhost:5432/{env('DATABASE')}", ) llm = OpenAI(temperature=0, openai_api_key=API_KEY) _DEFAULT_TEMPLATE = """Given an input question, first create a syntactically correct {dialect} query to run, then look at the results of the query and return the answer. 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} If someone asks for the table foobar, they really mean the tasks table. Question: {input}""" PROMPT = PromptTemplate( input_variables=["input", "table_info", "dialect"], template=_DEFAULT_TEMPLATE ) db_chain = SQLDatabaseChain.from_llm(llm, db, prompt=PROMPT, verbose=True, use_query_checker=True) def get_prompt(): print("Digite 'exit' para sair") while True: prompt = input("Entre c/ uma pergunta (prompt): ") if prompt.lower() == 'exit': print('Saindo...') break else: try: result = db_chain(prompt) print(result) except Exception as e: print(e) get_prompt() **BUT THE RESULT IS WITH [ ] AND NUMBERS:** ←[1m> Entering new SQLDatabaseChain chain...←[0m how many tasks do we have? SQLQuery:←[32;1m←[1;3mSELECT COUNT(*) FROM tasks;←[0m SQLResult: ←[33;1m←[1;3m[(6,)]←[0m Answer:←[32;1m←[1;3mWe have 6 tasks.←[0m ←[1m> Finished chain.←[0m **HOW CAN I FIX IT?** ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I need the answes without these numbers: [32;1m←[1;3m ### Expected behavior I need the answes without these numbers: [32;1m←[1;3m
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9959/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9959/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9958
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9958/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9958/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9958/events
https://github.com/langchain-ai/langchain/pull/9958
1,872,491,296
PR_kwDOIPDwls5ZE90t
9,958
docs: `youtube_search` tool example 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": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-29T21:20:57
2023-09-01T20:45:26
2023-09-01T20:32:28
COLLABORATOR
null
Added a link to source package; updated title, description.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9958/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9958/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9958", "html_url": "https://github.com/langchain-ai/langchain/pull/9958", "diff_url": "https://github.com/langchain-ai/langchain/pull/9958.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9958.patch", "merged_at": "2023-09-01T20:32:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/9957
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9957/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9957/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9957/events
https://github.com/langchain-ai/langchain/pull/9957
1,872,458,532
PR_kwDOIPDwls5ZE2Wx
9,957
fix #3117
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-08-29T21:02:54
2023-08-31T14:29:51
2023-08-31T14:29:50
COLLABORATOR
null
fix #3117
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9957/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9957/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9957", "html_url": "https://github.com/langchain-ai/langchain/pull/9957", "diff_url": "https://github.com/langchain-ai/langchain/pull/9957.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9957.patch", "merged_at": "2023-08-31T14:29:50" }
https://api.github.com/repos/langchain-ai/langchain/issues/9956
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9956/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9956/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9956/events
https://github.com/langchain-ai/langchain/issues/9956
1,872,444,158
I_kwDOIPDwls5vmzr-
9,956
Multi Tenant Support for Weaviate
{ "login": "dudanogueira", "id": 1761174, "node_id": "MDQ6VXNlcjE3NjExNzQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1761174?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dudanogueira", "html_url": "https://github.com/dudanogueira", "followers_url": "https://api.github.com/users/dudanogueira/followers", "following_url": "https://api.github.com/users/dudanogueira/following{/other_user}", "gists_url": "https://api.github.com/users/dudanogueira/gists{/gist_id}", "starred_url": "https://api.github.com/users/dudanogueira/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dudanogueira/subscriptions", "organizations_url": "https://api.github.com/users/dudanogueira/orgs", "repos_url": "https://api.github.com/users/dudanogueira/repos", "events_url": "https://api.github.com/users/dudanogueira/events{/privacy}", "received_events_url": "https://api.github.com/users/dudanogueira/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": 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
4
2023-08-29T20:56:22
2023-11-24T22:39:28
null
CONTRIBUTOR
null
### Feature request Weaviate introduced multi-tenancy support in version 1.20 https://weaviate.io/blog/multi-tenancy-vector-search ### Motivation This can help users using Langchain + Weaviate at scale, ingesting documents and attaching tenants to it. ### Your contribution I have implemented, but would need some help to check if everything is ok and in accordance with LangChain. Also, I would like help on the as_retriver, as I was not able to implement multitenant on it, Yet. the code is living here: https://github.com/dudanogueira/langchain/tree/weaviate-multitenant
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9956/reactions", "total_count": 8, "+1": 8, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9956/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9955
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9955/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9955/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9955/events
https://github.com/langchain-ai/langchain/pull/9955
1,872,395,396
PR_kwDOIPDwls5ZEo4H
9,955
Update __init__.py
{ "login": "programmersEmperor", "id": 110212291, "node_id": "U_kgDOBpG0ww", "avatar_url": "https://avatars.githubusercontent.com/u/110212291?v=4", "gravatar_id": "", "url": "https://api.github.com/users/programmersEmperor", "html_url": "https://github.com/programmersEmperor", "followers_url": "https://api.github.com/users/programmersEmperor/followers", "following_url": "https://api.github.com/users/programmersEmperor/following{/other_user}", "gists_url": "https://api.github.com/users/programmersEmperor/gists{/gist_id}", "starred_url": "https://api.github.com/users/programmersEmperor/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/programmersEmperor/subscriptions", "organizations_url": "https://api.github.com/users/programmersEmperor/orgs", "repos_url": "https://api.github.com/users/programmersEmperor/repos", "events_url": "https://api.github.com/users/programmersEmperor/events{/privacy}", "received_events_url": "https://api.github.com/users/programmersEmperor/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" } ]
closed
false
null
[]
null
7
2023-08-29T20:33:14
2023-09-05T21:39:08
2023-09-03T22:02:59
CONTRIBUTOR
null
Add SQLDatabaseSequentialChain Class to __init__.py so it can be accessed and used <!-- Thank you for contributing to LangChain! Replace this entire comment with: - Description: SQLDatabaseSequentialChain is not found when importing Langchain_experimental package, when I open __init__.py Langchain_expermental.sql, I found that SQLDatabaseSequentialChain is imported and add to __all__ list - Issue: SQLDatabaseSequentialChain is not found in Langchain_experimental package - Dependencies: None, - Tag maintainer: None, - Twitter handle: None, Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. These live is docs/extras directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9955/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9955/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9955", "html_url": "https://github.com/langchain-ai/langchain/pull/9955", "diff_url": "https://github.com/langchain-ai/langchain/pull/9955.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9955.patch", "merged_at": "2023-09-03T22:02:59" }
https://api.github.com/repos/langchain-ai/langchain/issues/9954
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9954/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9954/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9954/events
https://github.com/langchain-ai/langchain/pull/9954
1,872,393,312
PR_kwDOIPDwls5ZEoZf
9,954
Weakref to tracer
{ "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": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-29T20:32:14
2023-08-30T02:27:24
2023-08-30T02:27:23
COLLABORATOR
null
Prevent memory/thread leakage
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9954/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9954/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9954", "html_url": "https://github.com/langchain-ai/langchain/pull/9954", "diff_url": "https://github.com/langchain-ai/langchain/pull/9954.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9954.patch", "merged_at": "2023-08-30T02:27:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/9953
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9953/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9953/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9953/events
https://github.com/langchain-ai/langchain/pull/9953
1,872,353,444
PR_kwDOIPDwls5ZEfUf
9,953
mv base cache to schema
{ "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" } ]
closed
false
null
[]
null
1
2023-08-29T20:11:10
2023-08-30T15:10:53
2023-08-30T15:10:52
COLLABORATOR
null
if you remove all other imports from langchain.init it exposes this circular dep ```console File "/Users/bagatur/langchain/libs/langchain/langchain/__init__.py", line 6, in <module> from langchain.cache import BaseCache File "/Users/bagatur/langchain/libs/langchain/langchain/cache.py", line 56, in <module> from langchain.embeddings.base import Embeddings File "/Users/bagatur/langchain/libs/langchain/langchain/embeddings/__init__.py", line 51, in <module> from langchain.embeddings.sagemaker_endpoint import SagemakerEndpointEmbeddings File "/Users/bagatur/langchain/libs/langchain/langchain/embeddings/sagemaker_endpoint.py", line 4, in <module> from langchain.llms.sagemaker_endpoint import ContentHandlerBase File "/Users/bagatur/langchain/libs/langchain/langchain/llms/__init__.py", line 22, in <module> from langchain.llms.ai21 import AI21 File "/Users/bagatur/langchain/libs/langchain/langchain/llms/ai21.py", line 6, in <module> from langchain.llms.base import LLM File "/Users/bagatur/langchain/libs/langchain/langchain/llms/base.py", line 50, in <module> from langchain.prompts.base import StringPromptValue File "/Users/bagatur/langchain/libs/langchain/langchain/prompts/__init__.py", line 40, in <module> from langchain.prompts.example_selector import ( File "/Users/bagatur/langchain/libs/langchain/langchain/prompts/example_selector/__init__.py", line 4, in <module> from langchain.prompts.example_selector.semantic_similarity import ( File "/Users/bagatur/langchain/libs/langchain/langchain/prompts/example_selector/semantic_similarity.py", line 9, in <module> from langchain.vectorstores.base import VectorStore File "/Users/bagatur/langchain/libs/langchain/langchain/vectorstores/__init__.py", line 50, in <module> from langchain.vectorstores.matching_engine import MatchingEngine File "/Users/bagatur/langchain/libs/langchain/langchain/vectorstores/matching_engine.py", line 10, in <module> from langchain.embeddings import TensorflowHubEmbeddings ImportError: cannot import name 'TensorflowHubEmbeddings' from partially initialized module 'langchain.embeddings' (most likely due to a circular import) (/Users/bagatur/langchain/libs/langchain/langchain/embeddings/__init__.py) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9953/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9953/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9953", "html_url": "https://github.com/langchain-ai/langchain/pull/9953", "diff_url": "https://github.com/langchain-ai/langchain/pull/9953.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9953.patch", "merged_at": "2023-08-30T15:10:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/9952
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9952/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9952/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9952/events
https://github.com/langchain-ai/langchain/issues/9952
1,872,339,935
I_kwDOIPDwls5vmaPf
9,952
ConversationalRetrievalChain [got multiple argument for question_generator]
{ "login": "abhi474731", "id": 141150548, "node_id": "U_kgDOCGnJVA", "avatar_url": "https://avatars.githubusercontent.com/u/141150548?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abhi474731", "html_url": "https://github.com/abhi474731", "followers_url": "https://api.github.com/users/abhi474731/followers", "following_url": "https://api.github.com/users/abhi474731/following{/other_user}", "gists_url": "https://api.github.com/users/abhi474731/gists{/gist_id}", "starred_url": "https://api.github.com/users/abhi474731/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abhi474731/subscriptions", "organizations_url": "https://api.github.com/users/abhi474731/orgs", "repos_url": "https://api.github.com/users/abhi474731/repos", "events_url": "https://api.github.com/users/abhi474731/events{/privacy}", "received_events_url": "https://api.github.com/users/abhi474731/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
4
2023-08-29T20:03:57
2023-10-01T13:32:43
null
NONE
null
### System Info Getting error: got multiple values for keyword argument- question_generator . return cls(\nTypeError: langchain.chains.conversational_retrieval.base.ConversationalRetrievalChain() got multiple values for keyword argument \'question_generator\'', 'SystemError' `Qtemplate = ( "Combine the chat history and follow up question into " "a standalone question. Chat History: {chat_history}" "Follow up question: {question} withoud changing the real meaning of the question itself." ) CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template(Qtemplate) question_generator_chain = LLMChain(llm=OpenAI(openai_api_key=openai.api_key), prompt=CONDENSE_QUESTION_PROMPT) chain = ConversationalRetrievalChain.from_llm( llm=llm, retriever=self.vector_store.as_retriever(), combine_docs_chain_kwargs=chain_type_kwargs, verbose=True, return_source_documents=True, get_chat_history=lambda h: h, memory=window_memory, question_generator=question_generator_chain )` ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Steps to reproduct the behaviour: 1. Generate standalone question, which does not change the meaning of question, if it is changing meaning of question, keep question as it is. 2. Generate output using memory and get most accurate answer. ### Expected behavior Expecting the right code for implementing same functionality.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9952/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9952/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9951
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9951/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9951/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9951/events
https://github.com/langchain-ai/langchain/pull/9951
1,872,308,461
PR_kwDOIPDwls5ZEYoK
9,951
docs: Azure AD Authentication for Azure OpenAI
{ "login": "chutch1122", "id": 3986362, "node_id": "MDQ6VXNlcjM5ODYzNjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3986362?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chutch1122", "html_url": "https://github.com/chutch1122", "followers_url": "https://api.github.com/users/chutch1122/followers", "following_url": "https://api.github.com/users/chutch1122/following{/other_user}", "gists_url": "https://api.github.com/users/chutch1122/gists{/gist_id}", "starred_url": "https://api.github.com/users/chutch1122/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chutch1122/subscriptions", "organizations_url": "https://api.github.com/users/chutch1122/orgs", "repos_url": "https://api.github.com/users/chutch1122/repos", "events_url": "https://api.github.com/users/chutch1122/events{/privacy}", "received_events_url": "https://api.github.com/users/chutch1122/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-08-29T19:47:48
2023-08-29T21:29:28
2023-08-29T21:29:28
CONTRIBUTOR
null
# Description This PR adds additional documentation on how to use Azure Active Directory to authenticate to an OpenAI service within Azure. This method of authentication allows organizations with more complex security requirements to use Azure OpenAI. # Issue N/A # Dependencies N/A # Twitter https://twitter.com/CamAHutchison
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9951/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9951/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9951", "html_url": "https://github.com/langchain-ai/langchain/pull/9951", "diff_url": "https://github.com/langchain-ai/langchain/pull/9951.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9951.patch", "merged_at": "2023-08-29T21:29:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/9950
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9950/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9950/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9950/events
https://github.com/langchain-ai/langchain/pull/9950
1,872,213,492
PR_kwDOIPDwls5ZEHGK
9,950
fix intro docs
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-29T18:49:03
2023-08-29T19:29:23
2023-08-29T18:50:08
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9950/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9950/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9950", "html_url": "https://github.com/langchain-ai/langchain/pull/9950", "diff_url": "https://github.com/langchain-ai/langchain/pull/9950.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9950.patch", "merged_at": "2023-08-29T18:50:08" }
https://api.github.com/repos/langchain-ai/langchain/issues/9949
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9949/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9949/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9949/events
https://github.com/langchain-ai/langchain/pull/9949
1,872,209,982
PR_kwDOIPDwls5ZEGWQ
9,949
docs: `memory types` menu
{ "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": 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": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-29T18:46:20
2023-08-29T22:23:46
2023-08-29T22:05:23
COLLABORATOR
null
The [Memory Types](https://python.langchain.com/docs/modules/memory/types/) menu is clogged with unnecessary wording. I've made it more concise by simplifying titles of the example notebooks. As results, menu is shorter and better for comprehend.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9949/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/9949/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9949", "html_url": "https://github.com/langchain-ai/langchain/pull/9949", "diff_url": "https://github.com/langchain-ai/langchain/pull/9949.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9949.patch", "merged_at": "2023-08-29T22:05:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/9948
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9948/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9948/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9948/events
https://github.com/langchain-ai/langchain/pull/9948
1,872,163,366
PR_kwDOIPDwls5ZD8YJ
9,948
feat: PromptGuard takes a list of str
{ "login": "zizhong", "id": 3625100, "node_id": "MDQ6VXNlcjM2MjUxMDA=", "avatar_url": "https://avatars.githubusercontent.com/u/3625100?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zizhong", "html_url": "https://github.com/zizhong", "followers_url": "https://api.github.com/users/zizhong/followers", "following_url": "https://api.github.com/users/zizhong/following{/other_user}", "gists_url": "https://api.github.com/users/zizhong/gists{/gist_id}", "starred_url": "https://api.github.com/users/zizhong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zizhong/subscriptions", "organizations_url": "https://api.github.com/users/zizhong/orgs", "repos_url": "https://api.github.com/users/zizhong/repos", "events_url": "https://api.github.com/users/zizhong/events{/privacy}", "received_events_url": "https://api.github.com/users/zizhong/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-08-29T18:10:37
2023-08-29T19:22:30
2023-08-29T19:22:30
CONTRIBUTOR
null
Recently we made the decision that PromptGuard takes a list of strings instead of a string. @ggroode implemented the integration change. cc @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9948/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9948/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9948", "html_url": "https://github.com/langchain-ai/langchain/pull/9948", "diff_url": "https://github.com/langchain-ai/langchain/pull/9948.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9948.patch", "merged_at": "2023-08-29T19:22:30" }
https://api.github.com/repos/langchain-ai/langchain/issues/9947
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9947/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9947/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9947/events
https://github.com/langchain-ai/langchain/pull/9947
1,872,099,632
PR_kwDOIPDwls5ZDuty
9,947
docs: `memory` menu
{ "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": 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": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-29T17:24:01
2023-08-29T22:23:59
2023-08-29T22:06:11
COLLABORATOR
null
The [Memory](https://python.langchain.com/docs/modules/memory/) menu is clogged with unnecessary wording. I've made it more concise by simplifying titles of the example notebooks. As results, menu is shorter and better for comprehend.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9947/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9947/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9947", "html_url": "https://github.com/langchain-ai/langchain/pull/9947", "diff_url": "https://github.com/langchain-ai/langchain/pull/9947.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9947.patch", "merged_at": "2023-08-29T22:06:11" }
https://api.github.com/repos/langchain-ai/langchain/issues/9946
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9946/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9946/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9946/events
https://github.com/langchain-ai/langchain/pull/9946
1,872,045,574
PR_kwDOIPDwls5ZDi3y
9,946
Sort by most recent chatIDs
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[ { "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false } ]
null
1
2023-08-29T16:46:36
2023-09-03T22:00:22
2023-09-03T22:00:21
COLLABORATOR
null
When we `lazy_load` iMessage chats, return chats w/ most recent msg first (matches what is visualized in app).
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9946/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9946/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9946", "html_url": "https://github.com/langchain-ai/langchain/pull/9946", "diff_url": "https://github.com/langchain-ai/langchain/pull/9946.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9946.patch", "merged_at": "2023-09-03T22:00:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/9945
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9945/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9945/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9945/events
https://github.com/langchain-ai/langchain/pull/9945
1,872,039,977
PR_kwDOIPDwls5ZDhqo
9,945
Fix import
{ "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": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-08-29T16:42:38
2023-08-29T19:38:43
2023-08-29T19:38:42
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9945/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9945/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9945", "html_url": "https://github.com/langchain-ai/langchain/pull/9945", "diff_url": "https://github.com/langchain-ai/langchain/pull/9945.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9945.patch", "merged_at": "2023-08-29T19:38:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/9944
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9944/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9944/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9944/events
https://github.com/langchain-ai/langchain/pull/9944
1,872,033,912
PR_kwDOIPDwls5ZDgWC
9,944
Fix json parsing error of MULTI_PROMPT_ROUTER_TEMPLATE
{ "login": "lucarp", "id": 33057050, "node_id": "MDQ6VXNlcjMzMDU3MDUw", "avatar_url": "https://avatars.githubusercontent.com/u/33057050?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lucarp", "html_url": "https://github.com/lucarp", "followers_url": "https://api.github.com/users/lucarp/followers", "following_url": "https://api.github.com/users/lucarp/following{/other_user}", "gists_url": "https://api.github.com/users/lucarp/gists{/gist_id}", "starred_url": "https://api.github.com/users/lucarp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lucarp/subscriptions", "organizations_url": "https://api.github.com/users/lucarp/orgs", "repos_url": "https://api.github.com/users/lucarp/repos", "events_url": "https://api.github.com/users/lucarp/events{/privacy}", "received_events_url": "https://api.github.com/users/lucarp/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-08-29T16:38:56
2023-09-03T22:00:50
2023-09-03T22:00:50
CONTRIBUTOR
null
The output at times lacks the closing markdown code block. The prompt is changed to explicitly request the closing backticks. <!-- Thank you for contributing to LangChain! Replace this entire comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. These live is docs/extras directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9944/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9944/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9944", "html_url": "https://github.com/langchain-ai/langchain/pull/9944", "diff_url": "https://github.com/langchain-ai/langchain/pull/9944.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9944.patch", "merged_at": "2023-09-03T22:00:50" }
https://api.github.com/repos/langchain-ai/langchain/issues/9943
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9943/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9943/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9943/events
https://github.com/langchain-ai/langchain/pull/9943
1,872,022,615
PR_kwDOIPDwls5ZDd6I
9,943
Speed up openai tests
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-08-29T16:30:30
2023-08-29T21:30:42
2023-08-29T21:30:41
COLLABORATOR
null
Saves ~8-10 seconds from total unit tests times
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9943/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9943/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9943", "html_url": "https://github.com/langchain-ai/langchain/pull/9943", "diff_url": "https://github.com/langchain-ai/langchain/pull/9943.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9943.patch", "merged_at": "2023-08-29T21:30:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/9942
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9942/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9942/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9942/events
https://github.com/langchain-ai/langchain/issues/9942
1,872,021,415
I_kwDOIPDwls5vlMen
9,942
Optional Arguments Treated as Required by "format_tool_to_openai_function"
{ "login": "ahmed-3li", "id": 51079661, "node_id": "MDQ6VXNlcjUxMDc5NjYx", "avatar_url": "https://avatars.githubusercontent.com/u/51079661?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ahmed-3li", "html_url": "https://github.com/ahmed-3li", "followers_url": "https://api.github.com/users/ahmed-3li/followers", "following_url": "https://api.github.com/users/ahmed-3li/following{/other_user}", "gists_url": "https://api.github.com/users/ahmed-3li/gists{/gist_id}", "starred_url": "https://api.github.com/users/ahmed-3li/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ahmed-3li/subscriptions", "organizations_url": "https://api.github.com/users/ahmed-3li/orgs", "repos_url": "https://api.github.com/users/ahmed-3li/repos", "events_url": "https://api.github.com/users/ahmed-3li/events{/privacy}", "received_events_url": "https://api.github.com/users/ahmed-3li/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2023-08-29T16:29:41
2023-12-06T17:43:15
2023-12-06T17:43:14
NONE
null
### System Info I have a tool with one required argument _chart_data_ and one optional argument _chart_title_. The tool is defined using the BaseModel class from Pydantic and is decorated with @tool("charts", args_schema=ChartInput). However, optional arguments are pushed into the 'required' list that is being passed to OpenAI. Do you have any suggestions for resolving this issue? GPT-3.5 consistently prompts for the chart_title argument, even though it's supposed to be optional. ### 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 Here's the code snippet: langchain==0.0.274 ``` class ChartInput(BaseModel): chart_data: list = Field(..., description="Data for chart") chart_title: Optional[str] = Field(None, description="The title for the chart.") @tool("charts", args_schema=ChartInput) def charts_tool(chart_data: list, chart_title: Optional[str]=None): '''useful when creating charts''' return 'chart image url' ``` ### Expected behavior When printing out the output of: format_tool_to_openai_function(charts_tool) , I see can chart_title which is an optional argument is pushed into the required args list. `{'name': 'charts', 'description': 'charts(chart_data: list, chart_title: Optional[str] = None) - useful when creating charts', 'parameters': {'type': 'object', 'properties': {'chart_data': {'title': 'Chart Data', 'description': 'data for chart', 'type': 'array', 'items': {}}, 'chart_title': {'title': 'Chart Title', 'description': 'The title for the chart.', 'type': 'string'}}, 'required': ['chart_data', 'chart_title']}}`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9942/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9942/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9941
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9941/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9941/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9941/events
https://github.com/langchain-ai/langchain/pull/9941
1,872,009,278
PR_kwDOIPDwls5ZDbEr
9,941
Add neo4j provider page
{ "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": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-08-29T16:21:21
2023-08-29T17:09:52
2023-08-29T17:09:52
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9941/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9941/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9941", "html_url": "https://github.com/langchain-ai/langchain/pull/9941", "diff_url": "https://github.com/langchain-ai/langchain/pull/9941.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9941.patch", "merged_at": "2023-08-29T17:09:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/9940
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9940/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9940/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9940/events
https://github.com/langchain-ai/langchain/pull/9940
1,872,004,545
PR_kwDOIPDwls5ZDaE5
9,940
perf: update repositories
{ "login": "JavierPaz11044", "id": 69182156, "node_id": "MDQ6VXNlcjY5MTgyMTU2", "avatar_url": "https://avatars.githubusercontent.com/u/69182156?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JavierPaz11044", "html_url": "https://github.com/JavierPaz11044", "followers_url": "https://api.github.com/users/JavierPaz11044/followers", "following_url": "https://api.github.com/users/JavierPaz11044/following{/other_user}", "gists_url": "https://api.github.com/users/JavierPaz11044/gists{/gist_id}", "starred_url": "https://api.github.com/users/JavierPaz11044/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JavierPaz11044/subscriptions", "organizations_url": "https://api.github.com/users/JavierPaz11044/orgs", "repos_url": "https://api.github.com/users/JavierPaz11044/repos", "events_url": "https://api.github.com/users/JavierPaz11044/events{/privacy}", "received_events_url": "https://api.github.com/users/JavierPaz11044/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-29T16:18:13
2023-08-29T16:22:07
2023-08-29T16:18:36
NONE
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. These live is docs/extras directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9940/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9940/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9940", "html_url": "https://github.com/langchain-ai/langchain/pull/9940", "diff_url": "https://github.com/langchain-ai/langchain/pull/9940.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9940.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/9939
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9939/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9939/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9939/events
https://github.com/langchain-ai/langchain/pull/9939
1,871,995,976
PR_kwDOIPDwls5ZDYRT
9,939
addition of cosine distance function for faiss
{ "login": "JL-B", "id": 63152896, "node_id": "MDQ6VXNlcjYzMTUyODk2", "avatar_url": "https://avatars.githubusercontent.com/u/63152896?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JL-B", "html_url": "https://github.com/JL-B", "followers_url": "https://api.github.com/users/JL-B/followers", "following_url": "https://api.github.com/users/JL-B/following{/other_user}", "gists_url": "https://api.github.com/users/JL-B/gists{/gist_id}", "starred_url": "https://api.github.com/users/JL-B/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JL-B/subscriptions", "organizations_url": "https://api.github.com/users/JL-B/orgs", "repos_url": "https://api.github.com/users/JL-B/repos", "events_url": "https://api.github.com/users/JL-B/events{/privacy}", "received_events_url": "https://api.github.com/users/JL-B/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
3
2023-08-29T16:12:29
2023-09-01T09:57:21
2023-08-29T17:29:52
CONTRIBUTOR
null
- Description: added the _cosine_relevance_score_fn to _select_relevance_score_fn of faiss.py to enable the use of cosine distance for similarity for this vector store and to comply with the Error Message, that implies, that cosine should be a valid distance strategy - Issue: no relevant Issue found, but needed this function myself and tested it in a private repo - Dependencies: none
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9939/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9939/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9939", "html_url": "https://github.com/langchain-ai/langchain/pull/9939", "diff_url": "https://github.com/langchain-ai/langchain/pull/9939.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9939.patch", "merged_at": "2023-08-29T17:29:51" }
https://api.github.com/repos/langchain-ai/langchain/issues/9938
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9938/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9938/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9938/events
https://github.com/langchain-ai/langchain/pull/9938
1,871,984,334
PR_kwDOIPDwls5ZDV1F
9,938
Add security notices on PAL and CPAL experimental chains.
{ "login": "obi1kenobi", "id": 2348618, "node_id": "MDQ6VXNlcjIzNDg2MTg=", "avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4", "gravatar_id": "", "url": "https://api.github.com/users/obi1kenobi", "html_url": "https://github.com/obi1kenobi", "followers_url": "https://api.github.com/users/obi1kenobi/followers", "following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}", "gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}", "starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions", "organizations_url": "https://api.github.com/users/obi1kenobi/orgs", "repos_url": "https://api.github.com/users/obi1kenobi/repos", "events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}", "received_events_url": "https://api.github.com/users/obi1kenobi/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-29T16:04:54
2023-08-29T17:51:58
2023-08-29T17:51:57
COLLABORATOR
null
Clearly document that the PAL and CPAL techniques involve generating code, and that such code must be properly sandboxed and given appropriate narrowly-scoped credentials in order to ensure security. While our implementations include some mitigations, Python and SQL sandboxing is well-known to be a very hard problem and our mitigations are no replacement for proper sandboxing and permissions management. The implementation of such techniques must be performed outside the scope of the Python process where this package's code runs, so its correct setup and administration must therefore be the responsibility of the user of this code.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9938/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9938/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9938", "html_url": "https://github.com/langchain-ai/langchain/pull/9938", "diff_url": "https://github.com/langchain-ai/langchain/pull/9938.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9938.patch", "merged_at": "2023-08-29T17:51:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/9937
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9937/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9937/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9937/events
https://github.com/langchain-ai/langchain/pull/9937
1,871,956,402
PR_kwDOIPDwls5ZDQBo
9,937
lint for pydantic imports
{ "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": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
2
2023-08-29T15:48:31
2023-08-31T19:55:30
2023-08-31T19:55:29
COLLABORATOR
null
Catch pydantic imports
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9937/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9937/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9937", "html_url": "https://github.com/langchain-ai/langchain/pull/9937", "diff_url": "https://github.com/langchain-ai/langchain/pull/9937.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9937.patch", "merged_at": "2023-08-31T19:55:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/9936
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9936/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9936/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9936/events
https://github.com/langchain-ai/langchain/pull/9936
1,871,924,128
PR_kwDOIPDwls5ZDJPU
9,936
Add notice about security-sensitive experimental code to experimental README.
{ "login": "obi1kenobi", "id": 2348618, "node_id": "MDQ6VXNlcjIzNDg2MTg=", "avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4", "gravatar_id": "", "url": "https://api.github.com/users/obi1kenobi", "html_url": "https://github.com/obi1kenobi", "followers_url": "https://api.github.com/users/obi1kenobi/followers", "following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}", "gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}", "starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions", "organizations_url": "https://api.github.com/users/obi1kenobi/orgs", "repos_url": "https://api.github.com/users/obi1kenobi/repos", "events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}", "received_events_url": "https://api.github.com/users/obi1kenobi/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-29T15:30:30
2023-08-29T18:21:31
2023-08-29T18:21:30
COLLABORATOR
null
It renders like this: https://github.com/langchain-ai/langchain/tree/pg/experimental-readme/libs/experimental ![image](https://github.com/langchain-ai/langchain/assets/2348618/a5f9569d-96f6-44c6-8559-921adb3e337d)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9936/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9936/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9936", "html_url": "https://github.com/langchain-ai/langchain/pull/9936", "diff_url": "https://github.com/langchain-ai/langchain/pull/9936.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9936.patch", "merged_at": "2023-08-29T18:21:30" }
https://api.github.com/repos/langchain-ai/langchain/issues/9933
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9933/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9933/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9933/events
https://github.com/langchain-ai/langchain/pull/9933
1,871,897,163
PR_kwDOIPDwls5ZDDko
9,933
Add indexing support for postgresql
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-29T15:16:07
2023-08-31T14:27:10
2023-08-31T14:27:09
COLLABORATOR
null
Add support to postgresql for the SQL Manager Record This code was tested locally. I'm looking at how to add testing with postgres in a separate PR.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9933/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9933/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9933", "html_url": "https://github.com/langchain-ai/langchain/pull/9933", "diff_url": "https://github.com/langchain-ai/langchain/pull/9933.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9933.patch", "merged_at": "2023-08-31T14:27:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/9932
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9932/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9932/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9932/events
https://github.com/langchain-ai/langchain/issues/9932
1,871,868,517
I_kwDOIPDwls5vknJl
9,932
Functionality for prompts based on decision tree / flow charts.
{ "login": "jsbryaniv", "id": 19722638, "node_id": "MDQ6VXNlcjE5NzIyNjM4", "avatar_url": "https://avatars.githubusercontent.com/u/19722638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jsbryaniv", "html_url": "https://github.com/jsbryaniv", "followers_url": "https://api.github.com/users/jsbryaniv/followers", "following_url": "https://api.github.com/users/jsbryaniv/following{/other_user}", "gists_url": "https://api.github.com/users/jsbryaniv/gists{/gist_id}", "starred_url": "https://api.github.com/users/jsbryaniv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jsbryaniv/subscriptions", "organizations_url": "https://api.github.com/users/jsbryaniv/orgs", "repos_url": "https://api.github.com/users/jsbryaniv/repos", "events_url": "https://api.github.com/users/jsbryaniv/events{/privacy}", "received_events_url": "https://api.github.com/users/jsbryaniv/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" } ]
closed
false
null
[]
null
10
2023-08-29T15:02:20
2024-01-10T12:27:24
2023-12-21T16:06:54
NONE
null
### Feature request I want to request functionality for decision tree / flow chart like prompt architecture. The idea is that there would be a Prompt Tree that starts on a specific branch then allows the LLM to select new branches as part of its toolkit. Each branch would have its own prompts meaning that the AI does not need to be given all the information up front and instead can break down its commands into bite sized chunks that it sees at each branch in the tree. ### Motivation This would help chatbot workflows by limiting the amount of information the LLM sees at each point in time, it can collect variables through different branches of the tree that it will use later, and it would improve reliability with LLM outputs because it would be easier to implement checks. It also could eliminate the need for a scratchpad, which can become costly if abused by the LLM. Also, this is a feature that is available in other systems such as [LLMFlows](https://github.com/stoyan-stoyanov/llmflows) and [Amazon Lex](https://aws.amazon.com/lex/). And from what I have seen it is frequently on message boards here. ### Your contribution I have made a simple example script to show how this could work in principle. However, I do not have experience contributing to open source projects so I am not sure what formatting mistakes I may be making, nor where exactly in the object heirarchy this should belong (is this a type of Prompt? Or Agent?). I would love to learn about what is needed to incorporate this into the LangChain functionality. In my example I make a PromptTree class which stores the state and can access the current prompt. Inside the tree are a variety of branches which point to eachother according to a dictionary. Each branch produces a tool which allows the AI to switch branches by updating the prompttree. ```python # Import libraries import ast from pydantic.v1 import BaseModel, Field from langchain.tools import Tool from langchain.schema import HumanMessage, AIMessage, SystemMessage, FunctionMessage from langchain.tools import format_tool_to_openai_function from langchain.chat_models import ChatOpenAI ### Define PromptBranch ### # Declare function name variable SELECT_BRANCH = 'select_branch' UPDATE_INSIGHT = 'update_insight' # Create PromptTreeBranch class class PromptBranch: """A branch in the PromptTree.""" # Declare PromptBranch variables description = None # Default description of the branch header = None # Header prompt footer = None # Footer prompt children = {} # Dictionary of children branches with descriptions. Format={name: description (None for default)} initial_state = {} # Initial state of the branch pass_info = {} # Additional info to be passed to children insights = {} # Dictionary of insights that the AI can update. Format={name: description} # Get branch ID @property def branch_id(self): """Get the branch ID.""" return type(self).__name__ def __init__(self, parent, **kwargs): """Initialize the PromptBranch.""" self.parent = parent self.initialize_state(**kwargs) return def initialize_state(self, **kwargs): """Initialize the branch state.""" # We allow kwargs to be passed in case the branch needs to be initialized with additional info self.state = { **self.initial_state, 'insights': {x: None for x in self.insights.keys()} # Initialize insights to None } return def __call__(self, messages): """Call the PromptBranch.""" return ( self.get_prompt(messages), self.get_tools(), ) def get_pass_info(self): """Pass info to children.""" return self.pass_info def get_prompt(self, messages): """Get the prompt.""" # Initialze prompt prompt = [] # Add preamble preamble = self.parent.preamble if preamble is not None: prompt.append(SystemMessage(content=preamble)) # Add header header = self.get_header() if header is not None: prompt.append(SystemMessage(content=header)) # Add messages prompt += messages # Add footer footer = self.get_footer() if footer is not None: prompt.append(SystemMessage(content=footer)) # Add insights insights = self.get_insights() if insights is not None: prompt.append(SystemMessage(content=insights)) # Return return prompt def get_header(self): """Get header.""" return self.header def get_footer(self): """Get footer.""" return self.footer def get_insights(self): """Get insights.""" if len(self.insights) == 0: return None else: insights = f"Your insights so far are:" for name, state in self.state['insights'].items(): insights += f"\n{name}: {state}" return insights def get_tools(self): """Get tools.""" # Initialize tools tools = [] # Add switch branch tool if len(self.children) > 0: tools.append(self._tool_switch_branch()) # Add update insights tool if len(self.insights) > 0: tools.append(self._tool_update_insight()) # Return return tools def _tool_switch_branch(self): """Create tool to select next branch.""" # Get variables tool_name = SELECT_BRANCH children = self.children # Create tool function tool_func = self.switch_branch # Create tool description tool_description = "Select the next branch to continue the conversation. Your options are:" for branch_id, branch_description in children.items(): if branch_description is None: branch_description = self.parent.all_branches[branch_id].description tool_description += f"\n{branch_id}: {branch_description}" # Create tool schema class ToolSchema(BaseModel): branch: str = Field( description="Select next branch.", enum=list(children.keys()), ) # Create tool tool_obj = Tool( name=tool_name, func=tool_func, description=tool_description, args_schema=ToolSchema, ) # Return return tool_obj def _tool_update_insight(self): """Create tool to update an insight.""" # Get variables tool_name = UPDATE_INSIGHT insights = self.insights # Create tool function tool_func = self.update_insight # Create tool description tool_description = "Update an insight. You can choose to update any of the following insights:" for name, state in insights.items(): tool_description += f"\n{name}: {state}" # Create tool schema class ToolSchema(BaseModel): insight: str = Field( description="Select insight to update.", enum=list(insights.keys()), ) value: str = Field( description="New value of the insight.", ) # Create tool tool_obj = Tool( name=tool_name, func=tool_func, description=tool_description, args_schema=ToolSchema, ) # Return return tool_obj def switch_branch(self, branch): """Switch to a new branch.""" # Switch parent tree branch self.parent.branch = self.parent.all_branches[branch](parent=self.parent, **self.get_pass_info()) # Return function message message = FunctionMessage( name=SELECT_BRANCH, content=f"You have switched to the {branch} branch.", additional_kwargs={'internal_function': True}, ) return message def update_insight(self, insight, value): """Update an insight.""" # Update insight self.state['insights'][insight] = value # Return function message message = FunctionMessage( name=UPDATE_INSIGHT, content=f"You have updated the {insight} insight to {value}.", additional_kwargs={'internal_function': True}, ) return message ### Define PromptTree ### # Create PromptTree class class PromptTree: """A decision tree for prompting the AI.""" # Declare PromptTree variables preamble = None # System prompt to put before each branch prompt first_branch = None # Name of first branch to start the prompt tree all_branches = {} # Dictionary of all branches in the tree. Format={branch_id: branch_class} def __init__(self): """Initialize the PromptTree branch state.""" self.branch = self.all_branches[self.first_branch](parent=self) return def __call__(self, messages, **kwargs): """Call the PromptTree.""" return self.branch(messages, **kwargs) def get_state(self): """Get the current branch state.""" return { 'branch_id': self.branch.branch_id, 'branch_state': self.branch.state, } def load_state(self, state): """Load a branch from the state.""" branch_id = state['branch_id'] branch_state = state['branch_state'] if branch_id not in self.all_branches: raise ValueError(f"Unknown branch_id: {branch_id}") self.branch = self.all_branches[branch_id](parent=self) self.branch.state = branch_state return ### Define TreeAgent ### # Create TreeAgent class class TreeAgent: """An AI agent based on the PromptTree class.""" def __init__(self, tree, model): """Initialize the TreeAgent.""" self.tree = tree self.model = model return def __call__(self, messages, **kwargs): """Call the TreeAgent.""" return self.respond(messages, **kwargs) def get_state(self): """Get the current state of the TreeAgent.""" return self.tree.get_state() def load_state(self, state): """Load the state of the TreeAgent.""" self.tree.load_state(state) return def respond(self, messages): """Respond to the messages.""" # Initialize new messages new_messages = [] # Loop until no function calls while True: # Get the prompt prompt, tools = self.tree(messages+new_messages) # Get the response funcs = [format_tool_to_openai_function(t) for t in tools] response = self.model.predict_messages(prompt, functions=funcs) new_messages.append(response) # Check for function calls if 'function_call' in new_messages[-1].additional_kwargs: # Get function call func_call = new_messages[-1].additional_kwargs['function_call'] func_name = func_call['name'] func_args = ast.literal_eval(func_call['arguments']) func = [x.func for x in tools if x.name == func_name][0] # Call the function func_response = func(**func_args) new_messages.append(func_response) continue else: # If no function call, break break # Return return new_messages #################################################################################################### #################################################################################################### ### EXAMPLE ### # Create PromptBranches class BranchA(PromptBranch): header = "You love icecream, but you only like vanilla icecream." footer = "If you choose to respond make sure you mention icecream." description = "A Branch to talk about icecream." children = { 'BranchB': 'If someone mentions anything fancy, be sure to switch to this branch.', 'BranchC': None, } class BranchB(PromptBranch): header = "You love fine wines, but only if they are over 10 years old." footer = "If you choose to respond make sure you mention wine." description = "A Branch to talk about wine." children = { 'BranchA': None, 'BranchC': None, } class BranchC(PromptBranch): header = "You love going to the beach all the time no matter what." footer = "If you choose to respond make sure you mention that you love the beach." description = "A Branch to talk about the beach." children = { 'BranchA': None, 'BranchB': None, } # Create PromptTree class MyPromptTree(PromptTree): preamble = "You are an AI who is obsessed with a few things." first_branch = 'BranchA' all_branches = { 'BranchA': BranchA, 'BranchB': BranchB, 'BranchC': BranchC, } ### CONVERSATION ### # Initialize the AI llm = ChatOpenAI(model="gpt-3.5-turbo-0613") tree = MyPromptTree() agent = TreeAgent(tree, llm) # Create sample conversation messages = [] while True: # Human input user_message = input("You: ") messages += [HumanMessage(content=user_message)] # AI response new_messages = agent(messages) for m in new_messages: print("AI:", m) messages += new_messages ``` While this may not be a perfect way to go about things, it does demonstrate that with a relatively small amount of code we can work with existing LangChain arcitecture to implement a toy model. I think that with a little bit of work this could be made into something very useful. I would love to learn more about if/how I can help contribute to incorporate this.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9932/reactions", "total_count": 6, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 3 }
https://api.github.com/repos/langchain-ai/langchain/issues/9932/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9931
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9931/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9931/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9931/events
https://github.com/langchain-ai/langchain/pull/9931
1,871,851,733
PR_kwDOIPDwls5ZC57u
9,931
bump 276
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/release", "name": "release", "color": "07D4BE", "default": false, "description": "" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-08-29T14:53:43
2023-08-29T15:00:40
2023-08-29T15:00:38
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9931/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9931/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9931", "html_url": "https://github.com/langchain-ai/langchain/pull/9931", "diff_url": "https://github.com/langchain-ai/langchain/pull/9931.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9931.patch", "merged_at": "2023-08-29T15:00:38" }
https://api.github.com/repos/langchain-ai/langchain/issues/9930
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9930/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9930/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9930/events
https://github.com/langchain-ai/langchain/pull/9930
1,871,803,660
PR_kwDOIPDwls5ZCvmw
9,930
fix pydantic import
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-08-29T14:28:14
2023-08-29T14:53:03
2023-08-29T14:53:02
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9930/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9930/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9930", "html_url": "https://github.com/langchain-ai/langchain/pull/9930", "diff_url": "https://github.com/langchain-ai/langchain/pull/9930.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9930.patch", "merged_at": "2023-08-29T14:53:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/9929
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9929/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9929/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9929/events
https://github.com/langchain-ai/langchain/issues/9929
1,871,751,039
I_kwDOIPDwls5vkKd_
9,929
Issue: ParentDocumentRetriever is slow with FAISS because add_documents uses embed_query without batching
{ "login": "oegedijk", "id": 27999937, "node_id": "MDQ6VXNlcjI3OTk5OTM3", "avatar_url": "https://avatars.githubusercontent.com/u/27999937?v=4", "gravatar_id": "", "url": "https://api.github.com/users/oegedijk", "html_url": "https://github.com/oegedijk", "followers_url": "https://api.github.com/users/oegedijk/followers", "following_url": "https://api.github.com/users/oegedijk/following{/other_user}", "gists_url": "https://api.github.com/users/oegedijk/gists{/gist_id}", "starred_url": "https://api.github.com/users/oegedijk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oegedijk/subscriptions", "organizations_url": "https://api.github.com/users/oegedijk/orgs", "repos_url": "https://api.github.com/users/oegedijk/repos", "events_url": "https://api.github.com/users/oegedijk/events{/privacy}", "received_events_url": "https://api.github.com/users/oegedijk/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": 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
7
2023-08-29T14:04:47
2023-11-14T03:53:51
null
CONTRIBUTOR
null
### Issue you'd like to raise. I wanted to use the new `ParentDocumentRetriever` but found the indexing extremely slow. I think the reason is this line here https://github.com/langchain-ai/langchain/blob/e80834d783c6306a68df54e6251d9fc307aee87c/libs/langchain/langchain/retrievers/parent_document_retriever.py#L112 the `add_documents` for FAISS calls the `embed_texts` function in a list comprehension here https://github.com/langchain-ai/langchain/blob/e80834d783c6306a68df54e6251d9fc307aee87c/libs/langchain/langchain/vectorstores/faiss.py#L166 This only embeds a single chunk of text at a time which is really slow, especially when using OpenAIEmbeddings. Replacing this with a call to OpenAIEmbeddings.embed_documents(docs) would result in a huge speedup as it batches things up per API call (default batch size of a 1000). I replaced the `self.vectorstore.add_documents(docs)` with ```python texts = [doc.page_content for doc in docs] metadatas = [doc.metadata for doc in docs] embeddings = OpenAIEmbeddings().embed_documents([doc.page_content for doc in docs]) self.vectorstore._FAISS__add(texts, embeddings, metadatas) ``` But a more general solution would be needed where because on initialisation only the `embed_function` is stored and not the underlying embedding model itself. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9929/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9929/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/9928
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/9928/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/9928/comments
https://api.github.com/repos/langchain-ai/langchain/issues/9928/events
https://github.com/langchain-ai/langchain/pull/9928
1,871,733,294
PR_kwDOIPDwls5ZCgHO
9,928
fix a link name format to the dependents document
{ "login": "liaokongVFX", "id": 13622183, "node_id": "MDQ6VXNlcjEzNjIyMTgz", "avatar_url": "https://avatars.githubusercontent.com/u/13622183?v=4", "gravatar_id": "", "url": "https://api.github.com/users/liaokongVFX", "html_url": "https://github.com/liaokongVFX", "followers_url": "https://api.github.com/users/liaokongVFX/followers", "following_url": "https://api.github.com/users/liaokongVFX/following{/other_user}", "gists_url": "https://api.github.com/users/liaokongVFX/gists{/gist_id}", "starred_url": "https://api.github.com/users/liaokongVFX/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/liaokongVFX/subscriptions", "organizations_url": "https://api.github.com/users/liaokongVFX/orgs", "repos_url": "https://api.github.com/users/liaokongVFX/repos", "events_url": "https://api.github.com/users/liaokongVFX/events{/privacy}", "received_events_url": "https://api.github.com/users/liaokongVFX/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-29T13:55:58
2023-08-29T22:20:06
2023-08-29T22:20:06
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/9928/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/9928/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9928", "html_url": "https://github.com/langchain-ai/langchain/pull/9928", "diff_url": "https://github.com/langchain-ai/langchain/pull/9928.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/9928.patch", "merged_at": "2023-08-29T22:20:06" }