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/12253
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12253/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12253/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12253/events
https://github.com/langchain-ai/langchain/pull/12253
1,960,709,413
PR_kwDOIPDwls5dt3m4
12,253
refactor: DeterministicFakeEmbedding -> DeterministicFakeEmbeddings
{ "login": "antoniolanza1996", "id": 40452030, "node_id": "MDQ6VXNlcjQwNDUyMDMw", "avatar_url": "https://avatars.githubusercontent.com/u/40452030?v=4", "gravatar_id": "", "url": "https://api.github.com/users/antoniolanza1996", "html_url": "https://github.com/antoniolanza1996", "followers_url": "https://api.github.com/users/antoniolanza1996/followers", "following_url": "https://api.github.com/users/antoniolanza1996/following{/other_user}", "gists_url": "https://api.github.com/users/antoniolanza1996/gists{/gist_id}", "starred_url": "https://api.github.com/users/antoniolanza1996/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/antoniolanza1996/subscriptions", "organizations_url": "https://api.github.com/users/antoniolanza1996/orgs", "repos_url": "https://api.github.com/users/antoniolanza1996/repos", "events_url": "https://api.github.com/users/antoniolanza1996/events{/privacy}", "received_events_url": "https://api.github.com/users/antoniolanza1996/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": 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" } ]
open
false
null
[]
null
1
2023-10-25T07:13:02
2023-10-25T07:15:02
null
NONE
null
**Description:** I simply add an "s" to the current `DeterministicFakeEmbedding` in order to have a unique naming that is aligned to ALL `Embeddings` classes. Note: right now, there are also `AlephAlphaAsymmetricSemanticEmbedding` and `AlephAlphaSymmetricSemanticEmbedding` classes that don't have this "s". If you want, I can also align them as well.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12253/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12253/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12253", "html_url": "https://github.com/langchain-ai/langchain/pull/12253", "diff_url": "https://github.com/langchain-ai/langchain/pull/12253.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12253.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12252
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12252/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12252/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12252/events
https://github.com/langchain-ai/langchain/pull/12252
1,960,612,428
PR_kwDOIPDwls5dtieE
12,252
Update vectorstore.mdx[Make an improvement]
{ "login": "SilvaXiang", "id": 22973642, "node_id": "MDQ6VXNlcjIyOTczNjQy", "avatar_url": "https://avatars.githubusercontent.com/u/22973642?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SilvaXiang", "html_url": "https://github.com/SilvaXiang", "followers_url": "https://api.github.com/users/SilvaXiang/followers", "following_url": "https://api.github.com/users/SilvaXiang/following{/other_user}", "gists_url": "https://api.github.com/users/SilvaXiang/gists{/gist_id}", "starred_url": "https://api.github.com/users/SilvaXiang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SilvaXiang/subscriptions", "organizations_url": "https://api.github.com/users/SilvaXiang/orgs", "repos_url": "https://api.github.com/users/SilvaXiang/repos", "events_url": "https://api.github.com/users/SilvaXiang/events{/privacy}", "received_events_url": "https://api.github.com/users/SilvaXiang/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-10-25T06:06:19
2023-10-25T19:00:53
2023-10-25T19:00:53
CONTRIBUTOR
null
correct some grammatical errors <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12252/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12252/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12252", "html_url": "https://github.com/langchain-ai/langchain/pull/12252", "diff_url": "https://github.com/langchain-ai/langchain/pull/12252.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12252.patch", "merged_at": "2023-10-25T19:00:53" }
https://api.github.com/repos/langchain-ai/langchain/issues/12251
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12251/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12251/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12251/events
https://github.com/langchain-ai/langchain/pull/12251
1,960,592,200
PR_kwDOIPDwls5dteAn
12,251
Allow disablling `safe_len_embeddings`(OpenAIEmbeddings)
{ "login": "mokeyish", "id": 16131917, "node_id": "MDQ6VXNlcjE2MTMxOTE3", "avatar_url": "https://avatars.githubusercontent.com/u/16131917?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mokeyish", "html_url": "https://github.com/mokeyish", "followers_url": "https://api.github.com/users/mokeyish/followers", "following_url": "https://api.github.com/users/mokeyish/following{/other_user}", "gists_url": "https://api.github.com/users/mokeyish/gists{/gist_id}", "starred_url": "https://api.github.com/users/mokeyish/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mokeyish/subscriptions", "organizations_url": "https://api.github.com/users/mokeyish/orgs", "repos_url": "https://api.github.com/users/mokeyish/repos", "events_url": "https://api.github.com/users/mokeyish/events{/privacy}", "received_events_url": "https://api.github.com/users/mokeyish/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
open
false
null
[]
null
4
2023-10-25T05:51:30
2024-01-16T02:08:53
null
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> For servers compatible with OpenAI API may not support `safe_len_embedding`. With this PR, we can add `disable_safe_len_embeddings=True` to `OpenAIEmbeddings(...)` to disable using `safe_len_embedding`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12251/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12251/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12251", "html_url": "https://github.com/langchain-ai/langchain/pull/12251", "diff_url": "https://github.com/langchain-ai/langchain/pull/12251.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12251.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12250
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12250/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12250/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12250/events
https://github.com/langchain-ai/langchain/issues/12250
1,960,535,933
I_kwDOIPDwls5022d9
12,250
Vertex AI Models Throws AttributeError: After Langchain 0.0295 Version
{ "login": "rsandeesh", "id": 61399861, "node_id": "MDQ6VXNlcjYxMzk5ODYx", "avatar_url": "https://avatars.githubusercontent.com/u/61399861?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rsandeesh", "html_url": "https://github.com/rsandeesh", "followers_url": "https://api.github.com/users/rsandeesh/followers", "following_url": "https://api.github.com/users/rsandeesh/following{/other_user}", "gists_url": "https://api.github.com/users/rsandeesh/gists{/gist_id}", "starred_url": "https://api.github.com/users/rsandeesh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rsandeesh/subscriptions", "organizations_url": "https://api.github.com/users/rsandeesh/orgs", "repos_url": "https://api.github.com/users/rsandeesh/repos", "events_url": "https://api.github.com/users/rsandeesh/events{/privacy}", "received_events_url": "https://api.github.com/users/rsandeesh/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-10-25T04:55:22
2023-10-25T05:03:18
null
NONE
null
### System Info 1 I have been working with LangChain for some time, and after updating my LangChain module to version 0.0.295 or higher, my Vertex AI models throw an error in my application. The error is File "E:\Office\2023\AI-Platform\kaya-aia-general-bot\venv\Lib\site-packages\langchain\llms\vertexai.py", line 301, in _generate generations.append([_response_to_generation(r) for r in res.candidates]) ^^^^^^^^^^^^^^ AttributeError: 'TextGenerationResponse' object has no attribute 'candidates' I was expecting my previous implementation to work seamlessly. This is how I initialized the chain with the vertex model. case 'public_general_palm': llm = ChatVertexAI(model_name="chat-bison", temperature=0) chain = self.__initialize_basic_chain(llm, self.chain_memory) return chain(request.msg, return_only_outputs=True) This is the __initialize_basic_chain method. def __initialize_basic_chain(self, llm, memory): return ConversationChain(llm=llm, memory=memory) However, I have been unable to find a solution for this error. Kindly assist in resolving this issue to ensure the smooth operation of the application. ### 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 - [X] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Update langchain module 0.315 and higher. 1. Initialize llm with the ChatVertexAI(model_name="chat-bison", temperature=0). 2. Pass into a basic chain or an agent with the input messages ### Expected behavior Throws an internal module error called File "E:\Office\2023\AI-Platform\kaya-aia-general-bot\venv\Lib\site-packages\langchain\llms\vertexai.py", line 301, in _generate generations.append([_response_to_generation(r) for r in res.candidates]) ^^^^^^^^^^^^^^ AttributeError: 'TextGenerationResponse' object has no attribute 'candidates'
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12250/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/12250/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12249
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12249/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12249/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12249/events
https://github.com/langchain-ai/langchain/issues/12249
1,960,484,085
I_kwDOIPDwls502pz1
12,249
Integration Doctran: DoctranPropertyExtractor class methods transform_documents() and atransform_documents() error
{ "login": "leegang1990", "id": 8429281, "node_id": "MDQ6VXNlcjg0MjkyODE=", "avatar_url": "https://avatars.githubusercontent.com/u/8429281?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leegang1990", "html_url": "https://github.com/leegang1990", "followers_url": "https://api.github.com/users/leegang1990/followers", "following_url": "https://api.github.com/users/leegang1990/following{/other_user}", "gists_url": "https://api.github.com/users/leegang1990/gists{/gist_id}", "starred_url": "https://api.github.com/users/leegang1990/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leegang1990/subscriptions", "organizations_url": "https://api.github.com/users/leegang1990/orgs", "repos_url": "https://api.github.com/users/leegang1990/repos", "events_url": "https://api.github.com/users/leegang1990/events{/privacy}", "received_events_url": "https://api.github.com/users/leegang1990/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-10-25T03:58:43
2023-10-25T04:04:34
null
NONE
null
### System Info Under doctran_text_extract.py, DoctranPropertyExtractor class. The methods for the class contains errors. The first method transform_documents() does not have any operations and simply returns a NotImplementedError. This method should be working and implemented, with the following code: ``` def transform_documents( self, documents: Sequence[Document], **kwargs: Any ) -> Sequence[Document]: """Extracts properties from text documents using doctran.""" try: from doctran import Doctran, ExtractProperty doctran = Doctran( openai_api_key=self.openai_api_key, openai_model=self.openai_api_model ) except ImportError: raise ImportError( "Install doctran to use this parser. (pip install doctran)" ) properties = [ExtractProperty(**property) for property in self.properties] for d in documents: doctran_doc = ( doctran.parse(content=d.page_content) .extract(properties=properties) .execute() ) d.metadata["extracted_properties"] = doctran_doc.extracted_properties return documents ``` For the second method atransform_documents(), doctran currently does not support async so this should raise a NotImplementedError instead. ### Who can help? @agola11 ### Information - [X] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [X] Async ### Reproduction https://python.langchain.com/docs/integrations/document_transformers/doctran_extract_properties official code does not reproduce the displayed behavior ### Expected behavior official code does not reproduce the displayed behavior. Modified source code as mentioned above and used the class method transform_documents works with the displayed outcome.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12249/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12249/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12248
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12248/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12248/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12248/events
https://github.com/langchain-ai/langchain/pull/12248
1,960,480,289
PR_kwDOIPDwls5dtF1G
12,248
rfc: make ChatModel._generate a batch method
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-10-25T03:53:39
2023-10-26T18:44:11
2023-10-26T18:44:11
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12248/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12248/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12248", "html_url": "https://github.com/langchain-ai/langchain/pull/12248", "diff_url": "https://github.com/langchain-ai/langchain/pull/12248.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12248.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12247
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12247/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12247/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12247/events
https://github.com/langchain-ai/langchain/pull/12247
1,960,479,331
PR_kwDOIPDwls5dtFoH
12,247
Update README.md - fixed two grammatical mistakes in README.
{ "login": "ayushrakesh", "id": 115995339, "node_id": "U_kgDOBunyyw", "avatar_url": "https://avatars.githubusercontent.com/u/115995339?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ayushrakesh", "html_url": "https://github.com/ayushrakesh", "followers_url": "https://api.github.com/users/ayushrakesh/followers", "following_url": "https://api.github.com/users/ayushrakesh/following{/other_user}", "gists_url": "https://api.github.com/users/ayushrakesh/gists{/gist_id}", "starred_url": "https://api.github.com/users/ayushrakesh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ayushrakesh/subscriptions", "organizations_url": "https://api.github.com/users/ayushrakesh/orgs", "repos_url": "https://api.github.com/users/ayushrakesh/repos", "events_url": "https://api.github.com/users/ayushrakesh/events{/privacy}", "received_events_url": "https://api.github.com/users/ayushrakesh/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-10-25T03:52:27
2023-11-03T12:55:02
2023-11-03T12:55:02
NONE
null
I have noticed two small grammatical issues in **README.md** file inside section "**Breaking changes for select chains**". "**but we are remaining backwards compatible...**" should be "**but we are remaining backward compatible..**" and also "**On that date, we will remove functionality from langchain..**" should be "**On that date, we will remove the functionality from langchain..**" Below I have attached a screenshot of it. ![Screenshot (89)](https://github.com/langchain-ai/langchain/assets/115995339/6d3cb198-a7f8-461a-93c0-b342aba20697)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12247/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12247/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12247", "html_url": "https://github.com/langchain-ai/langchain/pull/12247", "diff_url": "https://github.com/langchain-ai/langchain/pull/12247.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12247.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12246
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12246/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12246/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12246/events
https://github.com/langchain-ai/langchain/issues/12246
1,960,397,303
I_kwDOIPDwls502Un3
12,246
Add URL's to the output of TelegramChatAPILoader 🙏
{ "login": "ChvckN0rri5", "id": 99159971, "node_id": "U_kgDOBekPow", "avatar_url": "https://avatars.githubusercontent.com/u/99159971?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ChvckN0rri5", "html_url": "https://github.com/ChvckN0rri5", "followers_url": "https://api.github.com/users/ChvckN0rri5/followers", "following_url": "https://api.github.com/users/ChvckN0rri5/following{/other_user}", "gists_url": "https://api.github.com/users/ChvckN0rri5/gists{/gist_id}", "starred_url": "https://api.github.com/users/ChvckN0rri5/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ChvckN0rri5/subscriptions", "organizations_url": "https://api.github.com/users/ChvckN0rri5/orgs", "repos_url": "https://api.github.com/users/ChvckN0rri5/repos", "events_url": "https://api.github.com/users/ChvckN0rri5/events{/privacy}", "received_events_url": "https://api.github.com/users/ChvckN0rri5/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
0
2023-10-25T02:22:45
2023-10-25T06:11:24
null
NONE
null
### Feature request Currently the `TelegramChatAPILoader` returns the Date, Sender, and Text of each message. Adding the URL of each message would very helpful for a Natural Language Search Engine for a large Channel. SOURCE: `langchain.document_loaders.telegram` ### Motivation We are building a Natural Language assistant for a large channel on Telegram. The users currently search by key words and hashtags. The Language model can only return a URL if it's contained in the text of the message. With the URL's we would be able to easily direct the user to the relevant information with a Natural Language query instead of the archaic methods of the days before Ai. ### Your contribution I do not know Telethon, however we can see that the URL can be pulled in the `fetch_data_from_telegram` function in the [langchain.document_loaders.telegram ](https://api.python.langchain.com/en/latest/_modules/langchain/document_loaders/telegram.html#TelegramChatApiLoader.fetch_data_from_telegram)class. We thank you for LangChain and wish we could spare the time to contribute more. We may have a pull request in the future regarding Telegram Loaders for media messages. It's a feature that we will have to incorporate as we get closer to a public release of what we're working on.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12246/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12246/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12245
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12245/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12245/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12245/events
https://github.com/langchain-ai/langchain/pull/12245
1,960,365,533
PR_kwDOIPDwls5dstha
12,245
Runnable traceable
{ "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
2
2023-10-25T01:57:12
2023-10-25T18:44:35
2023-10-25T18:44:35
COLLABORATOR
null
If passing in a traceable function, this will place the trace in the appropriate hierarchy.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12245/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12245/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12245", "html_url": "https://github.com/langchain-ai/langchain/pull/12245", "diff_url": "https://github.com/langchain-ai/langchain/pull/12245.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12245.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12244
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12244/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12244/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12244/events
https://github.com/langchain-ai/langchain/issues/12244
1,960,309,220
I_kwDOIPDwls501_Hk
12,244
retriever.get_relevant_documents
{ "login": "darthShana", "id": 8716198, "node_id": "MDQ6VXNlcjg3MTYxOTg=", "avatar_url": "https://avatars.githubusercontent.com/u/8716198?v=4", "gravatar_id": "", "url": "https://api.github.com/users/darthShana", "html_url": "https://github.com/darthShana", "followers_url": "https://api.github.com/users/darthShana/followers", "following_url": "https://api.github.com/users/darthShana/following{/other_user}", "gists_url": "https://api.github.com/users/darthShana/gists{/gist_id}", "starred_url": "https://api.github.com/users/darthShana/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/darthShana/subscriptions", "organizations_url": "https://api.github.com/users/darthShana/orgs", "repos_url": "https://api.github.com/users/darthShana/repos", "events_url": "https://api.github.com/users/darthShana/events{/privacy}", "received_events_url": "https://api.github.com/users/darthShana/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-10-25T00:47:28
2023-10-25T23:49:14
2023-10-25T23:49:14
NONE
null
### System Info langchain in /opt/conda/lib/python3.11/site-packages (0.0.322) Python 3.11.6 installed on image: jupyter/datascience-notebook ### 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 As per the documentation retriever = SelfQueryRetriever.from_llm(llm, vectorstore, document_content_description, metadata_field_info, verbose=True) retriever.get_relevant_documents("What are some movies about dinosaurs") ### Expected behavior We would see verbose output such as ` query=' ' filter=Comparison(comparator=<Comparator.GT: 'gt'>, attribute='rating', value=8.5) ` however no verbose output is printed
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12244/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12244/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12243
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12243/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12243/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12243/events
https://github.com/langchain-ai/langchain/pull/12243
1,960,305,380
PR_kwDOIPDwls5dshvQ
12,243
fix: typo in pgvector.ipynb
{ "login": "AdamEECS", "id": 20256018, "node_id": "MDQ6VXNlcjIwMjU2MDE4", "avatar_url": "https://avatars.githubusercontent.com/u/20256018?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AdamEECS", "html_url": "https://github.com/AdamEECS", "followers_url": "https://api.github.com/users/AdamEECS/followers", "following_url": "https://api.github.com/users/AdamEECS/following{/other_user}", "gists_url": "https://api.github.com/users/AdamEECS/gists{/gist_id}", "starred_url": "https://api.github.com/users/AdamEECS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AdamEECS/subscriptions", "organizations_url": "https://api.github.com/users/AdamEECS/orgs", "repos_url": "https://api.github.com/users/AdamEECS/repos", "events_url": "https://api.github.com/users/AdamEECS/events{/privacy}", "received_events_url": "https://api.github.com/users/AdamEECS/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-25T00:42:13
2023-10-25T04:26:45
2023-10-25T04:26:45
CONTRIBUTOR
null
fix: typo in docs/docs/integrations/vectorstores/pgvector.ipynb
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12243/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12243/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12243", "html_url": "https://github.com/langchain-ai/langchain/pull/12243", "diff_url": "https://github.com/langchain-ai/langchain/pull/12243.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12243.patch", "merged_at": "2023-10-25T04:26:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/12242
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12242/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12242/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12242/events
https://github.com/langchain-ai/langchain/pull/12242
1,960,282,757
PR_kwDOIPDwls5dsdMl
12,242
Check for ls project in run tree context
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-10-25T00:12:48
2023-10-25T00:19:00
2023-10-25T00:18:59
COLLABORATOR
null
If I go traceable -> runnable when the project is manually specified, the runnable wont be logged. This makes sure the session/project is threaded through appropriately.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12242/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12242/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12242", "html_url": "https://github.com/langchain-ai/langchain/pull/12242", "diff_url": "https://github.com/langchain-ai/langchain/pull/12242.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12242.patch", "merged_at": "2023-10-25T00:18:59" }
https://api.github.com/repos/langchain-ai/langchain/issues/12240
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12240/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12240/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12240/events
https://github.com/langchain-ai/langchain/issues/12240
1,960,264,037
I_kwDOIPDwls5010Fl
12,240
Issue: Problems getting filtering to work with langchain, OpenSearchVectorSearch, similarity_search_with_score
{ "login": "jrabyIBM", "id": 61446642, "node_id": "MDQ6VXNlcjYxNDQ2NjQy", "avatar_url": "https://avatars.githubusercontent.com/u/61446642?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jrabyIBM", "html_url": "https://github.com/jrabyIBM", "followers_url": "https://api.github.com/users/jrabyIBM/followers", "following_url": "https://api.github.com/users/jrabyIBM/following{/other_user}", "gists_url": "https://api.github.com/users/jrabyIBM/gists{/gist_id}", "starred_url": "https://api.github.com/users/jrabyIBM/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jrabyIBM/subscriptions", "organizations_url": "https://api.github.com/users/jrabyIBM/orgs", "repos_url": "https://api.github.com/users/jrabyIBM/repos", "events_url": "https://api.github.com/users/jrabyIBM/events{/privacy}", "received_events_url": "https://api.github.com/users/jrabyIBM/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": 5959659008, "node_id": "LA_kwDOIPDwls8AAAABYzkuAA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws", "name": "integration: aws", "color": "C5DEF5", "default": false, "description": "Related to Amazon Web Services (AWS) integrations" } ]
open
false
null
[]
null
14
2023-10-24T23:46:34
2023-11-15T15:38:12
null
NONE
null
### Issue you'd like to raise. Using langchain on AWS lambda function to call an AWS OpenSearch Serverless vector index. I did not file as a bug, as I suspect that this is a usage problem, but it might be a bug. I have built an OpenSearch vector index, using AWS OpenSearch Serverless, and are using it to perform vector queries against document chunks. This is all working well. I would now like to add the ability to filter these searches by document (there may be hundreds or thousands of vector entries per document). There is metadata included with each entry, which includes a DocumentId field, which is a string-ized guid. I thought it would be simple to filter against this metadata attribute, but cannot get it working. The call I am making is: ``` docs = vsearch.similarity_search_with_score( theQuery, index_name="vector-index2", vector_field = "vector_field", search_type="script_scoring", pre_filter=filter_dict, space_type="cosinesimil", engine="faiss", k = 3 ) ``` Typical unfiltered output: {"doc": {"page_content": "seat is installed ... facing", "metadata": {"DocumentId": "{8B5D5890-0000-C1E8-B0B6-678C8509665D}", "DocumentTitle": "2023-Toyota-RAV4-OM.pdf", "DocClassName": "Document"}}, "score": 1.8776696}] For filter_dict, I have tried: filter_dict = {'DocumentId':theDocId} <-- Gets an error filter_dict = {'bool': {'must': {'term': {'DocumentId': theDocId} } } } <-- doesn’t find anything filter_dict = {'bool': {'must': {'match': {'DocumentId': theDocId} } } } <-- doesn’t find anything filter_dict = {'must': {'match': {'DocumentId': theDocId} } } <-- Gets an error filter_dict = {'match': {'DocumentId': theDocId} } <-- doesn’t find anything theDocId is a string set to an input parameter and looks like this: {8B5D5890-0000-C1E8-B0B6-678C8509665D}. Results are the same if I use a string constant (i.e. '{8B5D5890-0000-C1E8-B0B6-678C8509665D}') Same results if I use search_type=”approximate_search” in conjunction with boolean_filter=filter_dict Any suggestions on how to get this to work? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12240/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/12240/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12239
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12239/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12239/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12239/events
https://github.com/langchain-ai/langchain/issues/12239
1,960,253,141
I_kwDOIPDwls501xbV
12,239
`StructuredOutputParser.get_format_instructions` missing commas
{ "login": "jamesbraza", "id": 8990777, "node_id": "MDQ6VXNlcjg5OTA3Nzc=", "avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jamesbraza", "html_url": "https://github.com/jamesbraza", "followers_url": "https://api.github.com/users/jamesbraza/followers", "following_url": "https://api.github.com/users/jamesbraza/following{/other_user}", "gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}", "starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions", "organizations_url": "https://api.github.com/users/jamesbraza/orgs", "repos_url": "https://api.github.com/users/jamesbraza/repos", "events_url": "https://api.github.com/users/jamesbraza/events{/privacy}", "received_events_url": "https://api.github.com/users/jamesbraza/received_events", "type": "User", "site_admin": false }
[ { "id": 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
0
2023-10-24T23:31:54
2023-10-24T23:34:01
null
CONTRIBUTOR
null
### System Info n/a ### 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 - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction https://github.com/langchain-ai/langchain/blob/v0.0.322/libs/langchain/langchain/output_parsers/structured.py#L86 This line doesn't append commas in the expected JSON schema. ```none # What it does { "foo": List[string] // a list of strings "bar": string // a string } # What it should do I think { "foo": List[string], // a list of strings "bar": string // a string } ``` ### Expected behavior I think the suggestion to a LLM to be close to valid JSON (even though it has JSON comments).
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12239/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12239/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12238
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12238/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12238/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12238/events
https://github.com/langchain-ai/langchain/pull/12238
1,960,247,409
PR_kwDOIPDwls5dsWMC
12,238
Adding `STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS` missing backticks
{ "login": "jamesbraza", "id": 8990777, "node_id": "MDQ6VXNlcjg5OTA3Nzc=", "avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jamesbraza", "html_url": "https://github.com/jamesbraza", "followers_url": "https://api.github.com/users/jamesbraza/followers", "following_url": "https://api.github.com/users/jamesbraza/following{/other_user}", "gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}", "starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions", "organizations_url": "https://api.github.com/users/jamesbraza/orgs", "repos_url": "https://api.github.com/users/jamesbraza/repos", "events_url": "https://api.github.com/users/jamesbraza/events{/privacy}", "received_events_url": "https://api.github.com/users/jamesbraza/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
2
2023-10-24T23:24:11
2023-10-25T05:20:28
2023-10-25T04:30:26
CONTRIBUTOR
null
This PR fixes the fact that `STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS` was missing backticks at the end
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12238/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12238/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12238", "html_url": "https://github.com/langchain-ai/langchain/pull/12238", "diff_url": "https://github.com/langchain-ai/langchain/pull/12238.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12238.patch", "merged_at": "2023-10-25T04:30:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/12237
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12237/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12237/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12237/events
https://github.com/langchain-ai/langchain/issues/12237
1,960,229,561
I_kwDOIPDwls501rq5
12,237
ModuleNotFoundError: No module named 'rapidfuzz'
{ "login": "jamesbraza", "id": 8990777, "node_id": "MDQ6VXNlcjg5OTA3Nzc=", "avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jamesbraza", "html_url": "https://github.com/jamesbraza", "followers_url": "https://api.github.com/users/jamesbraza/followers", "following_url": "https://api.github.com/users/jamesbraza/following{/other_user}", "gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}", "starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions", "organizations_url": "https://api.github.com/users/jamesbraza/orgs", "repos_url": "https://api.github.com/users/jamesbraza/repos", "events_url": "https://api.github.com/users/jamesbraza/events{/privacy}", "received_events_url": "https://api.github.com/users/jamesbraza/received_events", "type": "User", "site_admin": false }
[ { "id": 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
10
2023-10-24T23:05:16
2024-01-10T14:37:01
null
CONTRIBUTOR
null
### System Info https://github.com/langchain-ai/langchain/tree/d2cb95c39d5569019ab3c6aa368aa937d8dcc465 (just above `v0.0.322`) MacBook Pro, M1 chip, macOS Ventura 13.5.2 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction With Python 3.10.11: ```bash python -m venv venv source venv/bin/activate pip install poetry poetry install --with test make test ``` This gets: ``` poetry run pytest --disable-socket --allow-unix-socket tests/unit_tests/ Traceback (most recent call last): File "/Users/james.braza/code/langchain/venv/bin/poetry", line 5, in <module> from poetry.console.application import main File "/Users/james.braza/code/langchain/venv/lib/python3.10/site-packages/poetry/console/application.py", line 11, in <module> from cleo.application import Application as BaseApplication File "/Users/james.braza/code/langchain/venv/lib/python3.10/site-packages/cleo/application.py", line 12, in <module> from cleo.commands.completions_command import CompletionsCommand File "/Users/james.braza/code/langchain/venv/lib/python3.10/site-packages/cleo/commands/completions_command.py", line 10, in <module> from cleo import helpers File "/Users/james.braza/code/langchain/venv/lib/python3.10/site-packages/cleo/helpers.py", line 5, in <module> from cleo.io.inputs.argument import Argument File "/Users/james.braza/code/langchain/venv/lib/python3.10/site-packages/cleo/io/inputs/argument.py", line 5, in <module> from cleo.exceptions import CleoLogicError File "/Users/james.braza/code/langchain/venv/lib/python3.10/site-packages/cleo/exceptions/__init__.py", line 3, in <module> from cleo._utils import find_similar_names File "/Users/james.braza/code/langchain/venv/lib/python3.10/site-packages/cleo/_utils.py", line 8, in <module> from rapidfuzz.distance import Levenshtein ModuleNotFoundError: No module named 'rapidfuzz' ``` ### Expected behavior I expected installation to install everything necessary to run tests
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12237/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12237/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12236
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12236/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12236/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12236/events
https://github.com/langchain-ai/langchain/pull/12236
1,960,160,600
PR_kwDOIPDwls5dsDcU
12,236
use snippet search optionally
{ "login": "sam-h-bean", "id": 43734688, "node_id": "MDQ6VXNlcjQzNzM0Njg4", "avatar_url": "https://avatars.githubusercontent.com/u/43734688?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sam-h-bean", "html_url": "https://github.com/sam-h-bean", "followers_url": "https://api.github.com/users/sam-h-bean/followers", "following_url": "https://api.github.com/users/sam-h-bean/following{/other_user}", "gists_url": "https://api.github.com/users/sam-h-bean/gists{/gist_id}", "starred_url": "https://api.github.com/users/sam-h-bean/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sam-h-bean/subscriptions", "organizations_url": "https://api.github.com/users/sam-h-bean/orgs", "repos_url": "https://api.github.com/users/sam-h-bean/repos", "events_url": "https://api.github.com/users/sam-h-bean/events{/privacy}", "received_events_url": "https://api.github.com/users/sam-h-bean/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-10-24T22:10:02
2023-10-25T20:37:29
2023-10-25T20:37:29
CONTRIBUTOR
null
Add an additional flag which allows for hitting our new endpoint.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12236/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12236/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12236", "html_url": "https://github.com/langchain-ai/langchain/pull/12236", "diff_url": "https://github.com/langchain-ai/langchain/pull/12236.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12236.patch", "merged_at": "2023-10-25T20:37:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/12235
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12235/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12235/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12235/events
https://github.com/langchain-ai/langchain/pull/12235
1,960,153,717
PR_kwDOIPDwls5dsCCv
12,235
demonstrate use of RetrievalQAWithSourcesChain.from_chain
{ "login": "richarda23", "id": 22676399, "node_id": "MDQ6VXNlcjIyNjc2Mzk5", "avatar_url": "https://avatars.githubusercontent.com/u/22676399?v=4", "gravatar_id": "", "url": "https://api.github.com/users/richarda23", "html_url": "https://github.com/richarda23", "followers_url": "https://api.github.com/users/richarda23/followers", "following_url": "https://api.github.com/users/richarda23/following{/other_user}", "gists_url": "https://api.github.com/users/richarda23/gists{/gist_id}", "starred_url": "https://api.github.com/users/richarda23/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/richarda23/subscriptions", "organizations_url": "https://api.github.com/users/richarda23/orgs", "repos_url": "https://api.github.com/users/richarda23/repos", "events_url": "https://api.github.com/users/richarda23/events{/privacy}", "received_events_url": "https://api.github.com/users/richarda23/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-10-24T22:03:31
2023-10-25T04:33:35
2023-10-25T04:33:35
CONTRIBUTOR
null
**Description:** Documents further usage of RetrievalQAWithSourcesChain in an existing test. I'd not found much documented usage of RetrievalQAWithSourcesChain and how to get the sources out. This additional code will hopefully be useful to other potential users of this retriever. **Issue:** No raised issue **Dependencies:** No new dependencies needed to run the test (it already needs `open-ai`, `faiss-cpu` and `unstructured`). Note - `make lint` showed 8 linting errors in unrelated files
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12235/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12235/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12235", "html_url": "https://github.com/langchain-ai/langchain/pull/12235", "diff_url": "https://github.com/langchain-ai/langchain/pull/12235.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12235.patch", "merged_at": "2023-10-25T04:33:35" }
https://api.github.com/repos/langchain-ai/langchain/issues/12234
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12234/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12234/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12234/events
https://github.com/langchain-ai/langchain/pull/12234
1,960,129,452
PR_kwDOIPDwls5dr8zq
12,234
Docs: add lcel to sequential chain
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-24T21:46:20
2023-10-24T22:15:36
2023-10-24T22:15:36
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12234/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12234/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12234", "html_url": "https://github.com/langchain-ai/langchain/pull/12234", "diff_url": "https://github.com/langchain-ai/langchain/pull/12234.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12234.patch", "merged_at": "2023-10-24T22:15:36" }
https://api.github.com/repos/langchain-ai/langchain/issues/12233
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12233/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12233/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12233/events
https://github.com/langchain-ai/langchain/pull/12233
1,960,097,193
PR_kwDOIPDwls5dr17L
12,233
Bagatur/e2b integration2
{ "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-10-24T21:20:43
2023-10-25T04:15:48
2023-10-25T04:15:48
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12233/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12233/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12233", "html_url": "https://github.com/langchain-ai/langchain/pull/12233", "diff_url": "https://github.com/langchain-ai/langchain/pull/12233.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12233.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12232
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12232/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12232/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12232/events
https://github.com/langchain-ai/langchain/pull/12232
1,960,089,806
PR_kwDOIPDwls5dr0Wc
12,232
Improve Redis add_documents efficiency
{ "login": "tylerhutcherson", "id": 20304844, "node_id": "MDQ6VXNlcjIwMzA0ODQ0", "avatar_url": "https://avatars.githubusercontent.com/u/20304844?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tylerhutcherson", "html_url": "https://github.com/tylerhutcherson", "followers_url": "https://api.github.com/users/tylerhutcherson/followers", "following_url": "https://api.github.com/users/tylerhutcherson/following{/other_user}", "gists_url": "https://api.github.com/users/tylerhutcherson/gists{/gist_id}", "starred_url": "https://api.github.com/users/tylerhutcherson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tylerhutcherson/subscriptions", "organizations_url": "https://api.github.com/users/tylerhutcherson/orgs", "repos_url": "https://api.github.com/users/tylerhutcherson/repos", "events_url": "https://api.github.com/users/tylerhutcherson/events{/privacy}", "received_events_url": "https://api.github.com/users/tylerhutcherson/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5955630415, "node_id": "LA_kwDOIPDwls8AAAABYvu1Tw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis", "name": "integration: redis", "color": "F9D0C4", "default": false, "description": "Any integration that uses Redis" } ]
closed
false
null
[]
null
3
2023-10-24T21:14:48
2023-10-26T19:05:05
2023-10-26T19:03:46
CONTRIBUTOR
null
- **Description:** Small fix to make the `add_documents` functionality a bit more performant regarding embedding creation - **Issue:** https://github.com/langchain-ai/langchain/issues/11496 - **Dependencies:** nothing new - **Tag maintainer:** @baskaryan @Spartee - **Twitter handle:** N/A Addresses the inefficiency noted in the tagged issue when `add_documents()` is used on the Redis vectorstore.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12232/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12232/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12232", "html_url": "https://github.com/langchain-ai/langchain/pull/12232", "diff_url": "https://github.com/langchain-ai/langchain/pull/12232.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12232.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12231
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12231/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12231/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12231/events
https://github.com/langchain-ai/langchain/pull/12231
1,960,087,150
PR_kwDOIPDwls5drzwK
12,231
clean up deprecated agents
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-24T21:13:31
2023-10-27T17:52:51
2023-10-27T17:52:50
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12231/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12231/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12231", "html_url": "https://github.com/langchain-ai/langchain/pull/12231", "diff_url": "https://github.com/langchain-ai/langchain/pull/12231.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12231.patch", "merged_at": "2023-10-27T17:52:50" }
https://api.github.com/repos/langchain-ai/langchain/issues/12229
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12229/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12229/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12229/events
https://github.com/langchain-ai/langchain/pull/12229
1,960,050,409
PR_kwDOIPDwls5drr3L
12,229
add experimental test release gha
{ "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-10-24T20:48:26
2023-10-24T20:49:18
2023-10-24T20:49:17
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12229/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12229/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12229", "html_url": "https://github.com/langchain-ai/langchain/pull/12229", "diff_url": "https://github.com/langchain-ai/langchain/pull/12229.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12229.patch", "merged_at": "2023-10-24T20:49:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/12228
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12228/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12228/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12228/events
https://github.com/langchain-ai/langchain/pull/12228
1,960,046,506
PR_kwDOIPDwls5drrDC
12,228
bump 322 and 34
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-10-24T20:45:32
2023-10-24T20:52:18
2023-10-24T20:52:17
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12228/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12228/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12228", "html_url": "https://github.com/langchain-ai/langchain/pull/12228", "diff_url": "https://github.com/langchain-ai/langchain/pull/12228.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12228.patch", "merged_at": "2023-10-24T20:52:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/12227
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12227/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12227/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12227/events
https://github.com/langchain-ai/langchain/issues/12227
1,960,043,531
I_kwDOIPDwls500-QL
12,227
Issue: can I only use ConversationSummaryMemory in a chain as context without renew it
{ "login": "xasxin", "id": 113810081, "node_id": "U_kgDOBsiaoQ", "avatar_url": "https://avatars.githubusercontent.com/u/113810081?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xasxin", "html_url": "https://github.com/xasxin", "followers_url": "https://api.github.com/users/xasxin/followers", "following_url": "https://api.github.com/users/xasxin/following{/other_user}", "gists_url": "https://api.github.com/users/xasxin/gists{/gist_id}", "starred_url": "https://api.github.com/users/xasxin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xasxin/subscriptions", "organizations_url": "https://api.github.com/users/xasxin/orgs", "repos_url": "https://api.github.com/users/xasxin/repos", "events_url": "https://api.github.com/users/xasxin/events{/privacy}", "received_events_url": "https://api.github.com/users/xasxin/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
1
2023-10-24T20:43:18
2023-10-24T20:52:58
null
NONE
null
### Issue you'd like to raise. Hi, I was wondering if there is a mechanism that I can only use the ConversationSummaryMemory in a chain as the context of a conversation. After the chain is completed, I can retain the old memory without adding the new conversation to it. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12227/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12227/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12226
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12226/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12226/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12226/events
https://github.com/langchain-ai/langchain/pull/12226
1,960,021,073
PR_kwDOIPDwls5drlrq
12,226
updated `integrations/providers/google`
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
3
2023-10-24T20:26:04
2023-11-03T02:00:22
2023-11-03T01:35:32
COLLABORATOR
null
Added missed integrations. Updated formats.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12226/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12226/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12226", "html_url": "https://github.com/langchain-ai/langchain/pull/12226", "diff_url": "https://github.com/langchain-ai/langchain/pull/12226.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12226.patch", "merged_at": "2023-11-03T01:35:32" }
https://api.github.com/repos/langchain-ai/langchain/issues/12225
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12225/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12225/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12225/events
https://github.com/langchain-ai/langchain/pull/12225
1,960,017,647
PR_kwDOIPDwls5drk-I
12,225
Fix exec command in langserve Dockerfile template
{ "login": "TimChild", "id": 48571510, "node_id": "MDQ6VXNlcjQ4NTcxNTEw", "avatar_url": "https://avatars.githubusercontent.com/u/48571510?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TimChild", "html_url": "https://github.com/TimChild", "followers_url": "https://api.github.com/users/TimChild/followers", "following_url": "https://api.github.com/users/TimChild/following{/other_user}", "gists_url": "https://api.github.com/users/TimChild/gists{/gist_id}", "starred_url": "https://api.github.com/users/TimChild/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TimChild/subscriptions", "organizations_url": "https://api.github.com/users/TimChild/orgs", "repos_url": "https://api.github.com/users/TimChild/repos", "events_url": "https://api.github.com/users/TimChild/events{/privacy}", "received_events_url": "https://api.github.com/users/TimChild/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
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false } ]
null
2
2023-10-24T20:23:25
2023-10-26T21:38:14
2023-10-26T15:24:28
NONE
null
@eyurtsev -- This is a super quick and easy fix. This is my first contribution, so please let me know if I have missed doing anything that I should have! Description: Add `poetry run` to the the Dockerfile template file final exec command ``` CMD exec poetry run uvicorn test_serve.server:app --host 0.0.0.0 --port $PORT ``` instead of just ``` CMD exec uvicorn test_serve.server:app --host 0.0.0.0 --port $PORT ``` Issue: Without the `poetry run` added, `uvicorn` is not found at the exec line when running `docker compose up`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12225/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12225/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12225", "html_url": "https://github.com/langchain-ai/langchain/pull/12225", "diff_url": "https://github.com/langchain-ai/langchain/pull/12225.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12225.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12224
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12224/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12224/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12224/events
https://github.com/langchain-ai/langchain/pull/12224
1,960,001,772
PR_kwDOIPDwls5drhoY
12,224
docs: Google Cloud Documentation Cleanup
{ "login": "holtskinner", "id": 13262395, "node_id": "MDQ6VXNlcjEzMjYyMzk1", "avatar_url": "https://avatars.githubusercontent.com/u/13262395?v=4", "gravatar_id": "", "url": "https://api.github.com/users/holtskinner", "html_url": "https://github.com/holtskinner", "followers_url": "https://api.github.com/users/holtskinner/followers", "following_url": "https://api.github.com/users/holtskinner/following{/other_user}", "gists_url": "https://api.github.com/users/holtskinner/gists{/gist_id}", "starred_url": "https://api.github.com/users/holtskinner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/holtskinner/subscriptions", "organizations_url": "https://api.github.com/users/holtskinner/orgs", "repos_url": "https://api.github.com/users/holtskinner/repos", "events_url": "https://api.github.com/users/holtskinner/events{/privacy}", "received_events_url": "https://api.github.com/users/holtskinner/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-24T20:12:05
2023-10-25T17:20:39
2023-10-24T21:54:44
CONTRIBUTOR
null
- Move Document AI provider to the Google provider page - Change Vertex AI Matching Engine to Vector Search - Change references from GCP to Google Cloud - Add Gmail chat loader to Google provider page - Change Serper page title to "Serper - Google Search API" since it is not a Google product.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12224/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12224/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12224", "html_url": "https://github.com/langchain-ai/langchain/pull/12224", "diff_url": "https://github.com/langchain-ai/langchain/pull/12224.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12224.patch", "merged_at": "2023-10-24T21:54:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/12223
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12223/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12223/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12223/events
https://github.com/langchain-ai/langchain/pull/12223
1,959,936,466
PR_kwDOIPDwls5drTnY
12,223
Fix redis vectorfield schema defaults
{ "login": "tylerhutcherson", "id": 20304844, "node_id": "MDQ6VXNlcjIwMzA0ODQ0", "avatar_url": "https://avatars.githubusercontent.com/u/20304844?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tylerhutcherson", "html_url": "https://github.com/tylerhutcherson", "followers_url": "https://api.github.com/users/tylerhutcherson/followers", "following_url": "https://api.github.com/users/tylerhutcherson/following{/other_user}", "gists_url": "https://api.github.com/users/tylerhutcherson/gists{/gist_id}", "starred_url": "https://api.github.com/users/tylerhutcherson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tylerhutcherson/subscriptions", "organizations_url": "https://api.github.com/users/tylerhutcherson/orgs", "repos_url": "https://api.github.com/users/tylerhutcherson/repos", "events_url": "https://api.github.com/users/tylerhutcherson/events{/privacy}", "received_events_url": "https://api.github.com/users/tylerhutcherson/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5955630415, "node_id": "LA_kwDOIPDwls8AAAABYvu1Tw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis", "name": "integration: redis", "color": "F9D0C4", "default": false, "description": "Any integration that uses Redis" } ]
closed
false
null
[]
null
2
2023-10-24T19:29:04
2023-10-27T13:05:31
2023-10-26T19:17:59
CONTRIBUTOR
null
- **Description:** refactors the redis vector field schema to properly handle default values, includes a new unit test suite. - **Issue:** N/A - **Dependencies:** nothing new. - **Tag maintainer:** @baskaryan @Spartee - **Twitter handle:** this is a tiny fix/improvement :) This issue was causing some clients/cuatomers issues when building a vector index on Redis on smaller db instances (due to fault default values in index configuration). It would raise an error like: ```redis.exceptions.ResponseError: Vector index initial capacity 20000 exceeded server limit (852 with the given parameters)``` This PR will address this moving forward.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12223/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12223/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12223", "html_url": "https://github.com/langchain-ai/langchain/pull/12223", "diff_url": "https://github.com/langchain-ai/langchain/pull/12223.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12223.patch", "merged_at": "2023-10-26T19:17:59" }
https://api.github.com/repos/langchain-ai/langchain/issues/12222
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12222/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12222/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12222/events
https://github.com/langchain-ai/langchain/issues/12222
1,959,912,928
I_kwDOIPDwls500eXg
12,222
I encountered an issue with SQLDatabaseToolkit where I couldn't configure it to execute multiple SQL queries based on the previously retrieved value from a column in the initial query
{ "login": "akashkumar398", "id": 24894328, "node_id": "MDQ6VXNlcjI0ODk0MzI4", "avatar_url": "https://avatars.githubusercontent.com/u/24894328?v=4", "gravatar_id": "", "url": "https://api.github.com/users/akashkumar398", "html_url": "https://github.com/akashkumar398", "followers_url": "https://api.github.com/users/akashkumar398/followers", "following_url": "https://api.github.com/users/akashkumar398/following{/other_user}", "gists_url": "https://api.github.com/users/akashkumar398/gists{/gist_id}", "starred_url": "https://api.github.com/users/akashkumar398/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/akashkumar398/subscriptions", "organizations_url": "https://api.github.com/users/akashkumar398/orgs", "repos_url": "https://api.github.com/users/akashkumar398/repos", "events_url": "https://api.github.com/users/akashkumar398/events{/privacy}", "received_events_url": "https://api.github.com/users/akashkumar398/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
1
2023-10-24T19:13:22
2023-10-24T19:24:20
null
NONE
null
### System Info aws ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.prompts.chat import ChatPromptTemplate updated_prompt = ChatPromptTemplate.from_messages( [ ("system", """ You are identifying information from the 'customer' table in the SQL Database. You should query the schema of the 'customer' table only once. Here's the list of relevant column names and their column description from schema 'customer' and their descriptions: - column name: "job" column description: "Job Number or Job Identifier. - column name: "job_type" - column description: "This column provides information about the status of a job. you can check this column for any of the following job status values: 'Progress' 'Complete' Use the following context to create the SQL query. Context: 1.Comprehend the column names and their respective descriptions provided for the purpose of selecting columns when crafting an SQL query. 2.If the user inquires about the type of job select only the columns mapped to job_status and respond to the user: job_type= 'Progress, then fetch 'name' and 'start time' job_status = 'Complete' , then fetch 'name', 'completed', and 'date' """ ), ("user", "{question}\n ai: "), ] ) os.environ["OPENAI_CHAT_MODEL"] = 'gpt-3.5-turbo-16k' llm = ChatOpenAI(model=os.getenv("OPENAI_CHAT_MODEL"), temperature=0) def run_sql_query_prompt(query, db): greeting_response = detect_greeting_or_gratitude(query) if greeting_response: return greeting_response try: llm = ChatOpenAI(model=os.getenv("OPENAI_CHAT_MODEL"), temperature=0) sql_toolkit = SQLDatabaseToolkit(db=db, llm=llm) sql_toolkit.get_tools() sqldb_agent = create_sql_agent( llm=llm, toolkit=sql_toolkit, agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION, #verbose=True, handle_parsing_errors=True, use_query_checker=True, ) formatted_prompt = updated_prompt.format(question=query) result = sqldb_agent.run(formatted_prompt) return result except Exception as e: return f"Error executing SQL query: {str(e)}" ### Expected behavior it should first fetch the job_type to understand whether it's 'Progress' or 'Complete' then if job_type= 'Progress, then fetch 'name' and 'start time' columns job_status = 'Complete' , then fetch 'name', 'completed', and 'date' columns
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12222/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12222/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12221
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12221/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12221/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12221/events
https://github.com/langchain-ai/langchain/pull/12221
1,959,797,524
PR_kwDOIPDwls5dq1tu
12,221
Fix code block in runnable doc
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-24T18:06:33
2023-10-24T20:11:59
2023-10-24T20:11:58
COLLABORATOR
null
Fix code block syntax in runnable doc-string
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12221/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12221/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12221", "html_url": "https://github.com/langchain-ai/langchain/pull/12221", "diff_url": "https://github.com/langchain-ai/langchain/pull/12221.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12221.patch", "merged_at": "2023-10-24T20:11:58" }
https://api.github.com/repos/langchain-ai/langchain/issues/12220
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12220/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12220/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12220/events
https://github.com/langchain-ai/langchain/pull/12220
1,959,784,428
PR_kwDOIPDwls5dqy-L
12,220
Add type to Generation and sub-classes, handle root validator
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-10-24T17:57:24
2023-10-24T20:42:52
2023-10-24T20:21:00
COLLABORATOR
null
* Add a type literal for the generation and sub-classes for serialization purposes. * Fix the root validator of ChatGeneration to return ValueError instead of KeyError or Attribute error if intialized improperly. * This change is done for langserve to make sure that llm related callbacks can be serialized/deserialized properly.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12220/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12220/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12220", "html_url": "https://github.com/langchain-ai/langchain/pull/12220", "diff_url": "https://github.com/langchain-ai/langchain/pull/12220.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12220.patch", "merged_at": "2023-10-24T20:21:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/12219
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12219/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12219/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12219/events
https://github.com/langchain-ai/langchain/pull/12219
1,959,763,611
PR_kwDOIPDwls5dqukf
12,219
Bagatur/js ts nav
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-24T17:44:04
2023-10-24T19:28:09
2023-10-24T19:28:08
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12219/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12219/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12219", "html_url": "https://github.com/langchain-ai/langchain/pull/12219", "diff_url": "https://github.com/langchain-ai/langchain/pull/12219.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12219.patch", "merged_at": "2023-10-24T19:28:08" }
https://api.github.com/repos/langchain-ai/langchain/issues/12218
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12218/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12218/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12218/events
https://github.com/langchain-ai/langchain/issues/12218
1,959,747,839
I_kwDOIPDwls50z2D_
12,218
OPENAI_API_KEY_PATH is not supported
{ "login": "pierreis", "id": 203973, "node_id": "MDQ6VXNlcjIwMzk3Mw==", "avatar_url": "https://avatars.githubusercontent.com/u/203973?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pierreis", "html_url": "https://github.com/pierreis", "followers_url": "https://api.github.com/users/pierreis/followers", "following_url": "https://api.github.com/users/pierreis/following{/other_user}", "gists_url": "https://api.github.com/users/pierreis/gists{/gist_id}", "starred_url": "https://api.github.com/users/pierreis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pierreis/subscriptions", "organizations_url": "https://api.github.com/users/pierreis/orgs", "repos_url": "https://api.github.com/users/pierreis/repos", "events_url": "https://api.github.com/users/pierreis/events{/privacy}", "received_events_url": "https://api.github.com/users/pierreis/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-10-24T17:34:43
2023-10-24T17:45:14
null
NONE
null
### System Info Langchain HEAD ### Who can help? @hwchase17 @ag ### Information - [X] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction OpenAI uses a standard `OPENAI_API_KEY_PATH` environment variable that can be used to provide a key located in a file. This is useful for instance for generating short-lived, automatically renewed keys. Currently, Langchain complains that an API key must be provided even when this environment variable is set. ### Expected behavior Langchain should use the value of OPENAPI_API_KEY_PATH with a higher priority than OPENAI_API_KEY when set.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12218/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12218/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12217
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12217/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12217/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12217/events
https://github.com/langchain-ai/langchain/pull/12217
1,959,723,466
PR_kwDOIPDwls5dqmFl
12,217
mv old integration 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-10-24T17:19:52
2023-10-24T19:38:17
2023-10-24T19:38:16
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12217/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12217/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12217", "html_url": "https://github.com/langchain-ai/langchain/pull/12217", "diff_url": "https://github.com/langchain-ai/langchain/pull/12217.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12217.patch", "merged_at": "2023-10-24T19:38:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/12215
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12215/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12215/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12215/events
https://github.com/langchain-ai/langchain/pull/12215
1,959,681,063
PR_kwDOIPDwls5dqdMz
12,215
Fix Anthropic Functions ainvoke
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "id": 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
1
2023-10-24T16:50:01
2023-10-24T17:07:03
2023-10-24T17:07:02
COLLABORATOR
null
Removes custom `NotImplementedError` in experimental anthropic functions, allowing it to fallback on default `ainvoke` implementation.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12215/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12215/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12215", "html_url": "https://github.com/langchain-ai/langchain/pull/12215", "diff_url": "https://github.com/langchain-ai/langchain/pull/12215.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12215.patch", "merged_at": "2023-10-24T17:07:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/12214
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12214/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12214/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12214/events
https://github.com/langchain-ai/langchain/pull/12214
1,959,578,345
PR_kwDOIPDwls5dqGzm
12,214
fix note callout
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-24T15:55:07
2023-10-24T16:17:20
2023-10-24T16:17:19
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12214/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12214/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12214", "html_url": "https://github.com/langchain-ai/langchain/pull/12214", "diff_url": "https://github.com/langchain-ai/langchain/pull/12214.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12214.patch", "merged_at": "2023-10-24T16:17:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/12213
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12213/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12213/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12213/events
https://github.com/langchain-ai/langchain/pull/12213
1,959,531,579
PR_kwDOIPDwls5dp8wM
12,213
Docs: Add LCEL to chains/foundational/llm
{ "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-10-24T15:29:36
2023-10-24T15:53:57
2023-10-24T15:53:56
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12213/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12213/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12213", "html_url": "https://github.com/langchain-ai/langchain/pull/12213", "diff_url": "https://github.com/langchain-ai/langchain/pull/12213.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12213.patch", "merged_at": "2023-10-24T15:53:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/12212
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12212/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12212/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12212/events
https://github.com/langchain-ai/langchain/pull/12212
1,959,527,762
PR_kwDOIPDwls5dp78c
12,212
Docs: Add LCEL to chains/foundational/transform
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-24T15:27:31
2023-10-24T15:52:48
2023-10-24T15:52:47
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12212/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12212/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12212", "html_url": "https://github.com/langchain-ai/langchain/pull/12212", "diff_url": "https://github.com/langchain-ai/langchain/pull/12212.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12212.patch", "merged_at": "2023-10-24T15:52:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/12211
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12211/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12211/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12211/events
https://github.com/langchain-ai/langchain/pull/12211
1,959,514,049
PR_kwDOIPDwls5dp44g
12,211
Docs: add LCEL to chains/foundational/router
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-24T15:22:26
2023-10-24T15:51:13
2023-10-24T15:51:12
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12211/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12211/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12211", "html_url": "https://github.com/langchain-ai/langchain/pull/12211", "diff_url": "https://github.com/langchain-ai/langchain/pull/12211.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12211.patch", "merged_at": "2023-10-24T15:51:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/12210
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12210/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12210/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12210/events
https://github.com/langchain-ai/langchain/pull/12210
1,959,493,118
PR_kwDOIPDwls5dp0VH
12,210
Allowing openapi agent to communicate with multiple APIs
{ "login": "IdoNit", "id": 89972132, "node_id": "MDQ6VXNlcjg5OTcyMTMy", "avatar_url": "https://avatars.githubusercontent.com/u/89972132?v=4", "gravatar_id": "", "url": "https://api.github.com/users/IdoNit", "html_url": "https://github.com/IdoNit", "followers_url": "https://api.github.com/users/IdoNit/followers", "following_url": "https://api.github.com/users/IdoNit/following{/other_user}", "gists_url": "https://api.github.com/users/IdoNit/gists{/gist_id}", "starred_url": "https://api.github.com/users/IdoNit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/IdoNit/subscriptions", "organizations_url": "https://api.github.com/users/IdoNit/orgs", "repos_url": "https://api.github.com/users/IdoNit/repos", "events_url": "https://api.github.com/users/IdoNit/events{/privacy}", "received_events_url": "https://api.github.com/users/IdoNit/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
2
2023-10-24T15:12:03
2023-11-07T23:12:31
null
NONE
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** Changed planner and API_PLANNER_PROMPT in planner_prompt to enable create_openapi_agent communication with multiple APIs (list of ReducedOpenAPISpec). This is useful when more than one API is required to complete a task, for example in a software that is built on micro services. In addition, I changed the README in the devcontainer folder to clarify how to use the link of VS Code Dev Container (before that the following were not shown: /<yourusername>/<yourclonedreponame>). - **Issue:** - **Dependencies:** - **Tag maintainer:** @baskaryan , @eyurtsev , @hwchase17 - **Twitter handle:** @Ido_Nitsan Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12210/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12210/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12210", "html_url": "https://github.com/langchain-ai/langchain/pull/12210", "diff_url": "https://github.com/langchain-ai/langchain/pull/12210.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12210.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12209
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12209/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12209/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12209/events
https://github.com/langchain-ai/langchain/pull/12209
1,959,459,533
PR_kwDOIPDwls5dptdF
12,209
Update epsilla.py
{ "login": "beddows", "id": 13971636, "node_id": "MDQ6VXNlcjEzOTcxNjM2", "avatar_url": "https://avatars.githubusercontent.com/u/13971636?v=4", "gravatar_id": "", "url": "https://api.github.com/users/beddows", "html_url": "https://github.com/beddows", "followers_url": "https://api.github.com/users/beddows/followers", "following_url": "https://api.github.com/users/beddows/following{/other_user}", "gists_url": "https://api.github.com/users/beddows/gists{/gist_id}", "starred_url": "https://api.github.com/users/beddows/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/beddows/subscriptions", "organizations_url": "https://api.github.com/users/beddows/orgs", "repos_url": "https://api.github.com/users/beddows/repos", "events_url": "https://api.github.com/users/beddows/events{/privacy}", "received_events_url": "https://api.github.com/users/beddows/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
2
2023-10-24T14:56:35
2023-10-24T23:38:37
null
NONE
null
Description: Including collection_name as an input variable. Issue: Previously, wasn't accepting collection_name as an input variable. Tag maintainer: @hwchase17 Was unable to perform `make test` locally. Ran 'poetry install --with test', but there's no group called "test" in 'pyproject.toml'. Sorry, new to PRs...
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12209/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12209/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12209", "html_url": "https://github.com/langchain-ai/langchain/pull/12209", "diff_url": "https://github.com/langchain-ai/langchain/pull/12209.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12209.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12207
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12207/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12207/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12207/events
https://github.com/langchain-ai/langchain/pull/12207
1,959,418,835
PR_kwDOIPDwls5dpkbx
12,207
Update extraction.py
{ "login": "lu-wo", "id": 71704466, "node_id": "MDQ6VXNlcjcxNzA0NDY2", "avatar_url": "https://avatars.githubusercontent.com/u/71704466?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lu-wo", "html_url": "https://github.com/lu-wo", "followers_url": "https://api.github.com/users/lu-wo/followers", "following_url": "https://api.github.com/users/lu-wo/following{/other_user}", "gists_url": "https://api.github.com/users/lu-wo/gists{/gist_id}", "starred_url": "https://api.github.com/users/lu-wo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lu-wo/subscriptions", "organizations_url": "https://api.github.com/users/lu-wo/orgs", "repos_url": "https://api.github.com/users/lu-wo/repos", "events_url": "https://api.github.com/users/lu-wo/events{/privacy}", "received_events_url": "https://api.github.com/users/lu-wo/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
2
2023-10-24T14:40:20
2023-10-24T15:25:15
2023-10-24T15:25:15
CONTRIBUTOR
null
Description: Pass tags as argument to create_extraction_chain Issue: create_extraction_chain does not pass tags to chain yet @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12207/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12207/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12207", "html_url": "https://github.com/langchain-ai/langchain/pull/12207", "diff_url": "https://github.com/langchain-ai/langchain/pull/12207.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12207.patch", "merged_at": "2023-10-24T15:25:15" }
https://api.github.com/repos/langchain-ai/langchain/issues/12206
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12206/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12206/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12206/events
https://github.com/langchain-ai/langchain/issues/12206
1,959,412,927
I_kwDOIPDwls50ykS_
12,206
Router + BaseCombineDocumentsChain output_key
{ "login": "Ulfzerk", "id": 26842884, "node_id": "MDQ6VXNlcjI2ODQyODg0", "avatar_url": "https://avatars.githubusercontent.com/u/26842884?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ulfzerk", "html_url": "https://github.com/Ulfzerk", "followers_url": "https://api.github.com/users/Ulfzerk/followers", "following_url": "https://api.github.com/users/Ulfzerk/following{/other_user}", "gists_url": "https://api.github.com/users/Ulfzerk/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ulfzerk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ulfzerk/subscriptions", "organizations_url": "https://api.github.com/users/Ulfzerk/orgs", "repos_url": "https://api.github.com/users/Ulfzerk/repos", "events_url": "https://api.github.com/users/Ulfzerk/events{/privacy}", "received_events_url": "https://api.github.com/users/Ulfzerk/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-10-24T14:38:00
2023-10-24T14:50:14
null
NONE
null
### System Info Hi! I have been trying to create a router chain which will route to StuffDocumentsChains. It seems that default output_key for BaseCombineDocumentsChain is output_text instead of 'text' like in typical chains. ```py class BaseCombineDocumentsChain(Chain, ABC): """Base interface for chains combining documents. Subclasses of this chain deal with combining documents in a variety of ways. This base class exists to add some uniformity in the interface these types of chains should expose. Namely, they expect an input key related to the documents to use (default `input_documents`), and then also expose a method to calculate the length of a prompt from documents (useful for outside callers to use to determine whether it's safe to pass a list of documents into this chain or whether that will longer than the context length). """ input_key: str = "input_documents" #: :meta private: output_key: str = "output_text" #: :meta private: ``` ### Question: Is it done on purpose or is just inconsistency? --- On the other hand MultiPromptChain has hardcoded output_keys as 'text'. ```py class MultiPromptChain(MultiRouteChain): """A multi-route chain that uses an LLM router chain to choose amongst prompts.""" @property def output_keys(self) -> List[str]: return ["text"] ``` So it is necessary to always change output_key in any CombineDocuments like chains. ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Create a router chain that routes to StuffDocumentsChain accordingly with documentation. ### Expected behavior BaseCombineDocumentsChain should have conssistent default outputs keys as other chains. Or MultiPromptChain/MultiRouteChain should not have hardcoded output keys
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12206/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12206/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12205
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12205/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12205/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12205/events
https://github.com/langchain-ai/langchain/issues/12205
1,959,382,324
I_kwDOIPDwls50yc00
12,205
RetryWithErrorOutputParser for chains and summary memory
{ "login": "fabiancpl", "id": 4214432, "node_id": "MDQ6VXNlcjQyMTQ0MzI=", "avatar_url": "https://avatars.githubusercontent.com/u/4214432?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fabiancpl", "html_url": "https://github.com/fabiancpl", "followers_url": "https://api.github.com/users/fabiancpl/followers", "following_url": "https://api.github.com/users/fabiancpl/following{/other_user}", "gists_url": "https://api.github.com/users/fabiancpl/gists{/gist_id}", "starred_url": "https://api.github.com/users/fabiancpl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fabiancpl/subscriptions", "organizations_url": "https://api.github.com/users/fabiancpl/orgs", "repos_url": "https://api.github.com/users/fabiancpl/repos", "events_url": "https://api.github.com/users/fabiancpl/events{/privacy}", "received_events_url": "https://api.github.com/users/fabiancpl/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": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-10-24T14:24:02
2023-10-24T14:33:40
null
NONE
null
### Feature request Is it possible to support scenarios for using `RetryWithErrorOutputParser` when prompt is injected in a chain or a summary memory so this prompt is not directly formatted? ### Motivation I am trying to support complex prompts, multi-chain and combined memory scenarios causing errors regularly when the LLM generate content response in a different structure as stablished in the format instructions. ### Your contribution I could make the PR with some basic implementation guidelines.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12205/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12205/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12204
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12204/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12204/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12204/events
https://github.com/langchain-ai/langchain/pull/12204
1,959,381,435
PR_kwDOIPDwls5dpcSb
12,204
fix typo
{ "login": "DayuanJiang", "id": 34411969, "node_id": "MDQ6VXNlcjM0NDExOTY5", "avatar_url": "https://avatars.githubusercontent.com/u/34411969?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DayuanJiang", "html_url": "https://github.com/DayuanJiang", "followers_url": "https://api.github.com/users/DayuanJiang/followers", "following_url": "https://api.github.com/users/DayuanJiang/following{/other_user}", "gists_url": "https://api.github.com/users/DayuanJiang/gists{/gist_id}", "starred_url": "https://api.github.com/users/DayuanJiang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DayuanJiang/subscriptions", "organizations_url": "https://api.github.com/users/DayuanJiang/orgs", "repos_url": "https://api.github.com/users/DayuanJiang/repos", "events_url": "https://api.github.com/users/DayuanJiang/events{/privacy}", "received_events_url": "https://api.github.com/users/DayuanJiang/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-24T14:23:39
2023-10-24T19:51:52
2023-10-24T19:51:52
CONTRIBUTOR
null
fix typo in langchain/cookbook/stepback-qa.ipynb
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12204/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12204/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12204", "html_url": "https://github.com/langchain-ai/langchain/pull/12204", "diff_url": "https://github.com/langchain-ai/langchain/pull/12204.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12204.patch", "merged_at": "2023-10-24T19:51:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/12203
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12203/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12203/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12203/events
https://github.com/langchain-ai/langchain/issues/12203
1,959,375,762
I_kwDOIPDwls50ybOS
12,203
Unable to use LlamCpp from langchain
{ "login": "sancelot", "id": 122811, "node_id": "MDQ6VXNlcjEyMjgxMQ==", "avatar_url": "https://avatars.githubusercontent.com/u/122811?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sancelot", "html_url": "https://github.com/sancelot", "followers_url": "https://api.github.com/users/sancelot/followers", "following_url": "https://api.github.com/users/sancelot/following{/other_user}", "gists_url": "https://api.github.com/users/sancelot/gists{/gist_id}", "starred_url": "https://api.github.com/users/sancelot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sancelot/subscriptions", "organizations_url": "https://api.github.com/users/sancelot/orgs", "repos_url": "https://api.github.com/users/sancelot/repos", "events_url": "https://api.github.com/users/sancelot/events{/privacy}", "received_events_url": "https://api.github.com/users/sancelot/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
2
2023-10-24T14:21:08
2023-10-24T16:32:42
null
NONE
null
### System Info Here is a native python llama cpp example ``` """ Ask to generate 4 questions related to a given content """ from llama_cpp import Llama mpath="/home/mac/llama-2-7b-32k-instruct.Q5_K_S.gguf" # define n_ctx manually to permit larger contexts LLM = Llama(model_path=mpath, n_ctx=512,verbose=False) # create a text prompt context = """ Nous sommes dans les Yvelines Il fait beau Nous sommes a quelques km d'un joli lac le boulanger est sympatique Il y a également une boucherie """ prompt = """[INST]\nYou are a Teacher/ Professor. Your task is to setup 4 questions for an upcoming quiz/examination. The questions should be diverse in nature across the document. Restrict the questions to the context provided. Context is provided below : %s [/INST]\n\n """ % context print(prompt) # set max_tokens to 0 to remove the response size limit output = LLM(prompt, max_tokens=512,stop=["INST"]) # display the response print(output["choices"][0]["text"]) print("---------------") print(output) ``` and here is the "langchain version" ``` from langchain.llms import LlamaCpp from langchain.prompts import PromptTemplate from langchain.chains import LLMChain prompt_template ="""[INST]\nYou are a Teacher/ Professor. Your task is to setup 4 questions for an upcoming quiz/examination. The questions should be diverse in nature across the document. Restrict the questions to the context provided. Context is provided below : {context} [/INST]\n\n """ PROMPT = PromptTemplate( template=prompt_template, input_variables=["context"]) path_to_ggml_model = "/home/mac/llama-2-7b-32k-instruct.Q5_K_S.gguf" context = """ Nous sommes dans les Yvelines Il fait beau Nous sommes a quelques km d'un joli lac le boulanger est sympatique Il y a également une boucherie """ llm = LlamaCpp(model_path=path_to_ggml_model,temperature=0.8,verbose=True,echo=True,n_ctx=512) chain = LLMChain(llm=llm,prompt=PROMPT) answer = chain.run(context=context,stop="[/INST]",max_tokens=512) print(answer) ``` unfortunately the langchain version does not return anything I suspect mismatching or defautlt overriden parameters sent to Llama ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` from langchain.llms import LlamaCpp from langchain.prompts import PromptTemplate from langchain.chains import LLMChain prompt_template ="""[INST]\nYou are a Teacher/ Professor. Your task is to setup 4 questions for an upcoming quiz/examination. The questions should be diverse in nature across the document. Restrict the questions to the context provided. Context is provided below : {context} [/INST]\n\n """ PROMPT = PromptTemplate( template=prompt_template, input_variables=["context"]) path_to_ggml_model = "/home/mac/llama-2-7b-32k-instruct.Q5_K_S.gguf" context = """ Nous sommes dans les Yvelines Il fait beau Nous sommes a quelques km d'un joli lac le boulanger est sympatique Il y a également une boucherie """ # echo : echo prompt llm = LlamaCpp(model_path=path_to_ggml_model,temperature=0.8,verbose=True,echo=True,n_ctx=512) chain = LLMChain(llm=llm,prompt=PROMPT) answer = chain.run(context=context,stop="[/INST]",max_tokens=512) print(answer) ``` ### Expected behavior should answer a quiz similar to this : Sure, here are four questions that can be used for an upcoming quiz or examination related to the context provided: 1. What is the name of the lake located nearby? 2. Describe the type of bread sold at the boulanger? 3. How would you describe the personality of the baker? 4. What kind of meat do they sell at the boucherie?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12203/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12203/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12202
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12202/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12202/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12202/events
https://github.com/langchain-ai/langchain/issues/12202
1,959,365,429
I_kwDOIPDwls50yYs1
12,202
Issue: RSSFeedLoader unreliable publish date
{ "login": "sgordon16", "id": 38845299, "node_id": "MDQ6VXNlcjM4ODQ1Mjk5", "avatar_url": "https://avatars.githubusercontent.com/u/38845299?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sgordon16", "html_url": "https://github.com/sgordon16", "followers_url": "https://api.github.com/users/sgordon16/followers", "following_url": "https://api.github.com/users/sgordon16/following{/other_user}", "gists_url": "https://api.github.com/users/sgordon16/gists{/gist_id}", "starred_url": "https://api.github.com/users/sgordon16/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sgordon16/subscriptions", "organizations_url": "https://api.github.com/users/sgordon16/orgs", "repos_url": "https://api.github.com/users/sgordon16/repos", "events_url": "https://api.github.com/users/sgordon16/events{/privacy}", "received_events_url": "https://api.github.com/users/sgordon16/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
1
2023-10-24T14:16:40
2023-10-24T15:39:05
null
NONE
null
### Issue you'd like to raise. The `publish_date` field returned in the metadata seems unreliable and is very often empty for many news sites. The publish date can easily be parsed directly from the RSS feed from the `pubDate` tag which, although optional, is pretty standard and is much more reliable than trying to pull it from the article itself which is currently being done using the `NewsURLLoader`. ### Suggestion: We can override the `publish_date` coming from the `NewsURLLoader` metadata with the `published` field from the feed entry in the `RSSFeedLoader`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12202/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12202/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12201
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12201/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12201/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12201/events
https://github.com/langchain-ai/langchain/pull/12201
1,959,206,198
PR_kwDOIPDwls5do2Dd
12,201
Added GigaChat chat model support
{ "login": "Mikelarg", "id": 8142467, "node_id": "MDQ6VXNlcjgxNDI0Njc=", "avatar_url": "https://avatars.githubusercontent.com/u/8142467?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Mikelarg", "html_url": "https://github.com/Mikelarg", "followers_url": "https://api.github.com/users/Mikelarg/followers", "following_url": "https://api.github.com/users/Mikelarg/following{/other_user}", "gists_url": "https://api.github.com/users/Mikelarg/gists{/gist_id}", "starred_url": "https://api.github.com/users/Mikelarg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Mikelarg/subscriptions", "organizations_url": "https://api.github.com/users/Mikelarg/orgs", "repos_url": "https://api.github.com/users/Mikelarg/repos", "events_url": "https://api.github.com/users/Mikelarg/events{/privacy}", "received_events_url": "https://api.github.com/users/Mikelarg/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-10-24T13:03:35
2023-10-24T19:53:51
2023-10-24T19:53:51
CONTRIBUTOR
null
- **Description:** Added integration with [GigaChat](https://developers.sber.ru/portal/products/gigachat) language model. - **Twitter handle:** @dvoshansky
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12201/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12201/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12201", "html_url": "https://github.com/langchain-ai/langchain/pull/12201", "diff_url": "https://github.com/langchain-ai/langchain/pull/12201.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12201.patch", "merged_at": "2023-10-24T19:53:51" }
https://api.github.com/repos/langchain-ai/langchain/issues/12200
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12200/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12200/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12200/events
https://github.com/langchain-ai/langchain/pull/12200
1,959,198,711
PR_kwDOIPDwls5do0bZ
12,200
fixed error message and a check for processor name
{ "login": "lkuligin", "id": 11026406, "node_id": "MDQ6VXNlcjExMDI2NDA2", "avatar_url": "https://avatars.githubusercontent.com/u/11026406?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lkuligin", "html_url": "https://github.com/lkuligin", "followers_url": "https://api.github.com/users/lkuligin/followers", "following_url": "https://api.github.com/users/lkuligin/following{/other_user}", "gists_url": "https://api.github.com/users/lkuligin/gists{/gist_id}", "starred_url": "https://api.github.com/users/lkuligin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lkuligin/subscriptions", "organizations_url": "https://api.github.com/users/lkuligin/orgs", "repos_url": "https://api.github.com/users/lkuligin/repos", "events_url": "https://api.github.com/users/lkuligin/events{/privacy}", "received_events_url": "https://api.github.com/users/lkuligin/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-10-24T12:59:13
2023-10-26T16:38:25
2023-10-26T16:38:25
CONTRIBUTOR
null
Replace this entire comment with: - **Description:** a small fix on error description / a check for processor name - **Issue:** the issue #11407
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12200/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12200/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12200", "html_url": "https://github.com/langchain-ai/langchain/pull/12200", "diff_url": "https://github.com/langchain-ai/langchain/pull/12200.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12200.patch", "merged_at": "2023-10-26T16:38:25" }
https://api.github.com/repos/langchain-ai/langchain/issues/12199
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12199/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12199/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12199/events
https://github.com/langchain-ai/langchain/issues/12199
1,959,011,802
I_kwDOIPDwls50xCXa
12,199
LangChain memory, not returning source doc, repeating question
{ "login": "yazanrisheh", "id": 99576727, "node_id": "U_kgDOBe9rlw", "avatar_url": "https://avatars.githubusercontent.com/u/99576727?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yazanrisheh", "html_url": "https://github.com/yazanrisheh", "followers_url": "https://api.github.com/users/yazanrisheh/followers", "following_url": "https://api.github.com/users/yazanrisheh/following{/other_user}", "gists_url": "https://api.github.com/users/yazanrisheh/gists{/gist_id}", "starred_url": "https://api.github.com/users/yazanrisheh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yazanrisheh/subscriptions", "organizations_url": "https://api.github.com/users/yazanrisheh/orgs", "repos_url": "https://api.github.com/users/yazanrisheh/repos", "events_url": "https://api.github.com/users/yazanrisheh/events{/privacy}", "received_events_url": "https://api.github.com/users/yazanrisheh/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
open
false
null
[]
null
3
2023-10-24T11:06:32
2023-10-24T12:23:44
null
NONE
null
@dosu-bot I have 3 issues I need your help with and to fix the code: 1) My code is not remembering previous questions despite using ConversationBufferMemory 2) Not Returning Source Documents 3) When I ask it a question the first time, it writes the answer only but if I ask it any other time afterwards, it always rewrites the question then the answer. I just want it to always write the answer only. Below is my code: from langchain.chat_models import ChatOpenAI from langchain.prompts.prompt import PromptTemplate from langchain.memory import ConversationBufferMemory from langchain.chains import ConversationalRetrievalChain from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain.vectorstores import Qdrant from langchain.callbacks import StreamingStdOutCallbackHandler from langchain.embeddings import OpenAIEmbeddings from langchain.callbacks import get_openai_callback from langchain.vectorstores import Chroma from langchain.vectorstores import DeepLake from PyPDF2 import PdfReader import PyPDF2 from langchain.document_loaders import TextLoader, DirectoryLoader, UnstructuredWordDocumentLoader from langchain.document_loaders import PyPDFDirectoryLoader, PyPDFLoader from dotenv import load_dotenv import time # Change DirectoryLoader since it has its own chunk size and overlap load_dotenv() directory_path = "C:\\Users\\Asus\\Documents\\Vendolista\\MasterFormat" pdf_loader = DirectoryLoader(directory_path, glob="**/*.pdf", show_progress=True, use_multithreading=True, silent_errors=True, loader_cls = PyPDFLoader) documents = pdf_loader.load() print(str(len(documents))+ " documents loaded") def print_letter_by_letter(text): for char in text: print(char, end='', flush=True) time.sleep(0.02) llm = ChatOpenAI(temperature = 0, model_name='gpt-3.5-turbo', callbacks=[StreamingStdOutCallbackHandler()], streaming = True) text_splitter = RecursiveCharacterTextSplitter( chunk_size=800, chunk_overlap=80, ) chunks = text_splitter.split_documents(documents) embeddings = OpenAIEmbeddings() persist_directory = "C:\\Users\\Asus\\OneDrive\\Documents\\Vendolista" knowledge_base = Chroma.from_documents(chunks, embeddings, persist_directory = persist_directory) #save to disk knowledge_base.persist() #To delete the DB we created at first so that we can be sure that we will load from disk as fresh db knowledge_base = None new_knowledge_base = Chroma(persist_directory = persist_directory, embedding_function = embeddings) prompt_template = """ You are a knowledgeable and ethical assistant with expertise in the construction field, including its guidelines and operational procedures. You are always available to provide assistance and uphold the highest ethical and moral standards in your work. You will always and always and always only follow these set of rules and nothing else no matter what: 1) Answer the Question that is answering only based on the documents. 2) If the question is unrelated then say "sorry this question is completely not related. If you think it is, email the staff and they will get back to you: [email protected]." 3) Do not ever answer with "I don't know" to any question no matter what kind of a question it is. 4) Everyime you answer a question, write on a new line "is there anything else you would like me to help you with?" 5) Remember to always take a deep breath and take this step by step. 6) Do not ever and under no circumstance do you rewrite the question asked by the customer when you are answering them. 7) If the question starts with the "Yazan," then you can ignore the steps above. Text: {context} Question: {question} Answer : """ PROMPT = PromptTemplate( template=prompt_template, input_variables=["context", "question"] ) memory = ConversationBufferMemory(llm=llm, memory_key='chat_history', input_key='question', output_key='answer', return_messages=True) conversation = ConversationalRetrievalChain.from_llm( llm=llm, retriever=new_knowledge_base.as_retriever(), memory=memory, chain_type="stuff", verbose=False, combine_docs_chain_kwargs={"prompt":PROMPT} ) def main(): chat_history = [] while True: customer_input = input("Ask me anything about the files (type 'exit' to quit): ") if customer_input.lower() in ["exit"] and len(customer_input) == 4: end_chat = "Thank you for visiting us! Have a nice day" print_letter_by_letter(end_chat) break #if the customer_input is not equal to an empty string meaning they have input if customer_input != "": with get_openai_callback() as cb: response = conversation({"question": customer_input}, return_only_outputs = True) # print(response['answer']) print() print(cb) print() if __name__ == "__main__": main()
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12199/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12199/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12197
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12197/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12197/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12197/events
https://github.com/langchain-ai/langchain/pull/12197
1,958,926,055
PR_kwDOIPDwls5dn5Q6
12,197
Update README.md
{ "login": "abhishek213-alb", "id": 76660005, "node_id": "MDQ6VXNlcjc2NjYwMDA1", "avatar_url": "https://avatars.githubusercontent.com/u/76660005?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abhishek213-alb", "html_url": "https://github.com/abhishek213-alb", "followers_url": "https://api.github.com/users/abhishek213-alb/followers", "following_url": "https://api.github.com/users/abhishek213-alb/following{/other_user}", "gists_url": "https://api.github.com/users/abhishek213-alb/gists{/gist_id}", "starred_url": "https://api.github.com/users/abhishek213-alb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abhishek213-alb/subscriptions", "organizations_url": "https://api.github.com/users/abhishek213-alb/orgs", "repos_url": "https://api.github.com/users/abhishek213-alb/repos", "events_url": "https://api.github.com/users/abhishek213-alb/events{/privacy}", "received_events_url": "https://api.github.com/users/abhishek213-alb/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-10-24T10:09:21
2023-10-31T02:00:40
2023-10-31T02:00:40
NONE
null
Improved the documentation <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** Improved the documentation , Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12197/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12197/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12197", "html_url": "https://github.com/langchain-ai/langchain/pull/12197", "diff_url": "https://github.com/langchain-ai/langchain/pull/12197.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12197.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12196
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12196/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12196/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12196/events
https://github.com/langchain-ai/langchain/issues/12196
1,958,920,258
I_kwDOIPDwls50wsBC
12,196
Error reshaping array in _extract_images_from_page() in pdf.py
{ "login": "maredudd", "id": 3416991, "node_id": "MDQ6VXNlcjM0MTY5OTE=", "avatar_url": "https://avatars.githubusercontent.com/u/3416991?v=4", "gravatar_id": "", "url": "https://api.github.com/users/maredudd", "html_url": "https://github.com/maredudd", "followers_url": "https://api.github.com/users/maredudd/followers", "following_url": "https://api.github.com/users/maredudd/following{/other_user}", "gists_url": "https://api.github.com/users/maredudd/gists{/gist_id}", "starred_url": "https://api.github.com/users/maredudd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maredudd/subscriptions", "organizations_url": "https://api.github.com/users/maredudd/orgs", "repos_url": "https://api.github.com/users/maredudd/repos", "events_url": "https://api.github.com/users/maredudd/events{/privacy}", "received_events_url": "https://api.github.com/users/maredudd/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
4
2023-10-24T10:05:32
2023-12-01T06:43:31
null
NONE
null
### System Info langchain==0.0.320 Ubuntu 20.04 Python 3.11.5 ### Who can help? @SuperJokerayo @baskaryan ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction When I try to parse a PDF and extract an image I get the following error: ``` File "<.....>/lib/python3.11/site-packages/langchain/document_loaders/parsers/pdf.py", line 106, in _extract_images_from_page np.frombuffer(xObject[obj].get_data(), dtype=np.uint8).reshape( ValueError: cannot reshape array of size 45532 into shape (4644,3282,newaxis) ``` The code I have to run the parser is: ``` loader = PyPDFLoader(doc["file"], extract_images=True) pages = loader.load_and_split() ``` I can't give you a copy of the document since it's confidential. It's a scanned 11-page document. ### Expected behavior I expected `load_and_split()` to return a list of 11 pages with the text parsed from the image in each page. If I change to `extract_images=False` then it returns an empty list of 0 pages as expected.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12196/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12196/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12194
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12194/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12194/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12194/events
https://github.com/langchain-ai/langchain/issues/12194
1,958,865,532
I_kwDOIPDwls50wep8
12,194
Is there a few shots agent exists?
{ "login": "flybirp", "id": 7994466, "node_id": "MDQ6VXNlcjc5OTQ0NjY=", "avatar_url": "https://avatars.githubusercontent.com/u/7994466?v=4", "gravatar_id": "", "url": "https://api.github.com/users/flybirp", "html_url": "https://github.com/flybirp", "followers_url": "https://api.github.com/users/flybirp/followers", "following_url": "https://api.github.com/users/flybirp/following{/other_user}", "gists_url": "https://api.github.com/users/flybirp/gists{/gist_id}", "starred_url": "https://api.github.com/users/flybirp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/flybirp/subscriptions", "organizations_url": "https://api.github.com/users/flybirp/orgs", "repos_url": "https://api.github.com/users/flybirp/repos", "events_url": "https://api.github.com/users/flybirp/events{/privacy}", "received_events_url": "https://api.github.com/users/flybirp/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" } ]
open
false
null
[]
null
1
2023-10-24T09:32:52
2023-10-24T09:40:52
null
NONE
null
### Feature request I have only seen this "[Zero-shot ReAct](https://python.langchain.com/docs/modules/agents/agent_types/react)" ### Motivation able to provide examples to agent, to understand how these tools area used, in what order ### Your contribution nothing yet
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12194/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12194/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12192
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12192/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12192/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12192/events
https://github.com/langchain-ai/langchain/issues/12192
1,958,826,438
I_kwDOIPDwls50wVHG
12,192
Issue: Prioritze sources in the vector store to consider certain sources first
{ "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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5932474361, "node_id": "LA_kwDOIPDwls8AAAABYZpf-Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone", "name": "integration: pinecone", "color": "BC53BE", "default": false, "description": "Related to Pinecone vector store integration" } ]
open
false
null
[]
null
1
2023-10-24T09:09:10
2023-10-24T09:21:42
null
NONE
null
### Issue you'd like to raise. Let's say you have a PDF file, an Excel file, and a PowerPoint file all indexed into a pinecone database, they are similar in that, a query can have information relevant in all sources, but now we want the user to indicate which source should be considered first when they ask a question, is there a way to do that? For the conversational retrieval chain, you have this retriever there retriever = vectorstore.as_retriever( search_kwargs = {"filter": { "file_types": {"$in": file_types}, "genre": {"$in": genre}, "keys": {"$in": keys}, }, "k": 3 }), how do i make sure i can prioritize sources such that that source comes first, if its not there, we check the others ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12192/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12192/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12191
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12191/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12191/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12191/events
https://github.com/langchain-ai/langchain/pull/12191
1,958,802,863
PR_kwDOIPDwls5dneu8
12,191
Update buffer_window.mdx
{ "login": "yekangming", "id": 38776722, "node_id": "MDQ6VXNlcjM4Nzc2NzIy", "avatar_url": "https://avatars.githubusercontent.com/u/38776722?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yekangming", "html_url": "https://github.com/yekangming", "followers_url": "https://api.github.com/users/yekangming/followers", "following_url": "https://api.github.com/users/yekangming/following{/other_user}", "gists_url": "https://api.github.com/users/yekangming/gists{/gist_id}", "starred_url": "https://api.github.com/users/yekangming/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yekangming/subscriptions", "organizations_url": "https://api.github.com/users/yekangming/orgs", "repos_url": "https://api.github.com/users/yekangming/repos", "events_url": "https://api.github.com/users/yekangming/events{/privacy}", "received_events_url": "https://api.github.com/users/yekangming/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-10-24T08:54:49
2023-10-24T09:06:08
2023-10-24T08:56:00
NONE
null
Description: In ./docs/modules/memory/types/buffer_window.mdx Remove excess spaces in parameters
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12191/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12191/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12191", "html_url": "https://github.com/langchain-ai/langchain/pull/12191", "diff_url": "https://github.com/langchain-ai/langchain/pull/12191.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12191.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12190
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12190/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12190/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12190/events
https://github.com/langchain-ai/langchain/pull/12190
1,958,783,914
PR_kwDOIPDwls5dnarU
12,190
Finetuned OpenAI models cost calculation #11715
{ "login": "nirkopler", "id": 85127941, "node_id": "MDQ6VXNlcjg1MTI3OTQx", "avatar_url": "https://avatars.githubusercontent.com/u/85127941?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nirkopler", "html_url": "https://github.com/nirkopler", "followers_url": "https://api.github.com/users/nirkopler/followers", "following_url": "https://api.github.com/users/nirkopler/following{/other_user}", "gists_url": "https://api.github.com/users/nirkopler/gists{/gist_id}", "starred_url": "https://api.github.com/users/nirkopler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nirkopler/subscriptions", "organizations_url": "https://api.github.com/users/nirkopler/orgs", "repos_url": "https://api.github.com/users/nirkopler/repos", "events_url": "https://api.github.com/users/nirkopler/events{/privacy}", "received_events_url": "https://api.github.com/users/nirkopler/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-10-24T08:43:03
2023-10-25T12:14:26
2023-10-24T17:22:06
CONTRIBUTOR
null
**Description:** Add cost calculation for fine tuned models (new and legacy), this is required after OpenAI added new models for fine tuning and separated the costs of I/O for fine tuned models. Also I updated the relevant unit tests see https://platform.openai.com/docs/guides/fine-tuning for more information. issue: https://github.com/langchain-ai/langchain/issues/11715 - **Issue:** 11715 - **Twitter handle:** @nirkopler
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12190/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12190/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12190", "html_url": "https://github.com/langchain-ai/langchain/pull/12190", "diff_url": "https://github.com/langchain-ai/langchain/pull/12190.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12190.patch", "merged_at": "2023-10-24T17:22:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/12189
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12189/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12189/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12189/events
https://github.com/langchain-ai/langchain/issues/12189
1,958,773,387
I_kwDOIPDwls50wIKL
12,189
Add a config chain before the ConversationalRetrievalChain : search Kwargs
{ "login": "MohamedTaha314", "id": 57417172, "node_id": "MDQ6VXNlcjU3NDE3MTcy", "avatar_url": "https://avatars.githubusercontent.com/u/57417172?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MohamedTaha314", "html_url": "https://github.com/MohamedTaha314", "followers_url": "https://api.github.com/users/MohamedTaha314/followers", "following_url": "https://api.github.com/users/MohamedTaha314/following{/other_user}", "gists_url": "https://api.github.com/users/MohamedTaha314/gists{/gist_id}", "starred_url": "https://api.github.com/users/MohamedTaha314/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MohamedTaha314/subscriptions", "organizations_url": "https://api.github.com/users/MohamedTaha314/orgs", "repos_url": "https://api.github.com/users/MohamedTaha314/repos", "events_url": "https://api.github.com/users/MohamedTaha314/events{/privacy}", "received_events_url": "https://api.github.com/users/MohamedTaha314/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
3
2023-10-24T08:36:14
2023-10-24T09:25:29
null
NONE
null
### Feature request I want to add a config chain prior to the ConversationalRetrievalChain that is going to process the query and set the retriever's search kwargs ( k, fetch_k, lambda_mult ) depending on the question, how can I do that and pass the parameters from the config chain output ### Motivation The motivation is to have a dynamic ConversationalRetrievalChain that retrieves the documents the right way for each question. ### Your contribution I have none for now, I don't know where to start
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12189/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12189/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12188
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12188/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12188/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12188/events
https://github.com/langchain-ai/langchain/pull/12188
1,958,765,306
PR_kwDOIPDwls5dnWrB
12,188
Make cohere_api_key a SecretStr
{ "login": "arunsathiya", "id": 18581859, "node_id": "MDQ6VXNlcjE4NTgxODU5", "avatar_url": "https://avatars.githubusercontent.com/u/18581859?v=4", "gravatar_id": "", "url": "https://api.github.com/users/arunsathiya", "html_url": "https://github.com/arunsathiya", "followers_url": "https://api.github.com/users/arunsathiya/followers", "following_url": "https://api.github.com/users/arunsathiya/following{/other_user}", "gists_url": "https://api.github.com/users/arunsathiya/gists{/gist_id}", "starred_url": "https://api.github.com/users/arunsathiya/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arunsathiya/subscriptions", "organizations_url": "https://api.github.com/users/arunsathiya/orgs", "repos_url": "https://api.github.com/users/arunsathiya/repos", "events_url": "https://api.github.com/users/arunsathiya/events{/privacy}", "received_events_url": "https://api.github.com/users/arunsathiya/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false } ]
null
4
2023-10-24T08:31:06
2023-11-01T14:09:57
null
NONE
null
This PR makes `cohere_api_key` in `llms/cohere` a SecretStr, so that the API Key is not leaked when `Cohere.cohere_api_key` is represented as a string.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12188/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 2, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12188/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12188", "html_url": "https://github.com/langchain-ai/langchain/pull/12188", "diff_url": "https://github.com/langchain-ai/langchain/pull/12188.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12188.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12187
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12187/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12187/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12187/events
https://github.com/langchain-ai/langchain/pull/12187
1,958,665,827
PR_kwDOIPDwls5dnBYC
12,187
Fix flexible dimension and doc for DingoDB
{ "login": "HeChangHaoGary", "id": 53417823, "node_id": "MDQ6VXNlcjUzNDE3ODIz", "avatar_url": "https://avatars.githubusercontent.com/u/53417823?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HeChangHaoGary", "html_url": "https://github.com/HeChangHaoGary", "followers_url": "https://api.github.com/users/HeChangHaoGary/followers", "following_url": "https://api.github.com/users/HeChangHaoGary/following{/other_user}", "gists_url": "https://api.github.com/users/HeChangHaoGary/gists{/gist_id}", "starred_url": "https://api.github.com/users/HeChangHaoGary/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HeChangHaoGary/subscriptions", "organizations_url": "https://api.github.com/users/HeChangHaoGary/orgs", "repos_url": "https://api.github.com/users/HeChangHaoGary/repos", "events_url": "https://api.github.com/users/HeChangHaoGary/events{/privacy}", "received_events_url": "https://api.github.com/users/HeChangHaoGary/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
2
2023-10-24T07:24:13
2023-10-24T17:16:19
2023-10-24T17:16:19
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12187/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12187/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12187", "html_url": "https://github.com/langchain-ai/langchain/pull/12187", "diff_url": "https://github.com/langchain-ai/langchain/pull/12187.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12187.patch", "merged_at": "2023-10-24T17:16:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/12186
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12186/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12186/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12186/events
https://github.com/langchain-ai/langchain/issues/12186
1,958,617,422
I_kwDOIPDwls50viFO
12,186
KeyError: 'tool_names'
{ "login": "younes-io", "id": 3153107, "node_id": "MDQ6VXNlcjMxNTMxMDc=", "avatar_url": "https://avatars.githubusercontent.com/u/3153107?v=4", "gravatar_id": "", "url": "https://api.github.com/users/younes-io", "html_url": "https://github.com/younes-io", "followers_url": "https://api.github.com/users/younes-io/followers", "following_url": "https://api.github.com/users/younes-io/following{/other_user}", "gists_url": "https://api.github.com/users/younes-io/gists{/gist_id}", "starred_url": "https://api.github.com/users/younes-io/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/younes-io/subscriptions", "organizations_url": "https://api.github.com/users/younes-io/orgs", "repos_url": "https://api.github.com/users/younes-io/repos", "events_url": "https://api.github.com/users/younes-io/events{/privacy}", "received_events_url": "https://api.github.com/users/younes-io/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
5
2023-10-24T06:44:44
2023-10-24T10:28:40
null
NONE
null
### System Info Python 3.11.4 LangChain 0.0.321 Platform info (WSL2): DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS" ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [X] 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 This is the (partial) code snippet that I run: ```python from langchain.chat_models import ChatOpenAI prompt = hub.pull("hwchase17/react-chat-json") llm = ChatOpenAI(max_retries=10, temperature=0, max_tokens=400, **model_kwargs) llm_with_stop = llm.bind(stop=["\nObservation"]) from langchain.agents.output_parsers import JSONAgentOutputParser from langchain.agents.format_scratchpad import format_log_to_messages # Connecting to Opensearch docsearch = OpenSearchVectorSearch(index_name=index_uk, embedding_function=embeddings, opensearch_url=opensearch_url, http_auth=('admin', auth)) # We need some extra steering, or the chat model forgets how to respond sometimes TEMPLATE_TOOL_RESPONSE = """TOOL RESPONSE: --------------------- {observation} USER'S INPUT -------------------- Okay, so what is the response to my last comment? If using information obtained from the tools you must mention it explicitly without mentioning the tool names - I have forgotten all TOOL RESPONSES! Remember to respond with a markdown code snippet of a json blob with a single action, and NOTHING else - even if you just want to respond to the user. Do NOT respond with anything except a JSON snippet no matter what!""" from langchain.agents import AgentExecutor from langchain.agents.agent_toolkits import create_retriever_tool tool = create_retriever_tool( docsearch.as_retriever(), "search_hr_documents", "Searches and returns documents regarding HR-related questions." ) tool print("tool", tool) from langchain.agents.openai_functions_agent.base import OpenAIFunctionsAgent agent = OpenAIFunctionsAgent(llm=llm, tools=[tool], prompt=prompt) memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) agent_executor = AgentExecutor(agent=agent, tools=[tool,tool], verbose=True, memory=memory, return_intermediate_steps=True) print("full_question ===>", full_question) result = agent_executor({"input": full_question}) ``` When I run it, it logs the below error: ``` tool name='search_hr_documents' description='Searches and returns documents regarding HR-related questions.' func=<bound method BaseRetriever.get_relevant_documents of VectorStoreRetriever(tags=['OpenSearchVectorSearch', 'OpenAIEmbeddings'], vectorstore=<langchain.vectorstores.opensearch_vector_search.OpenSearchVectorSearch object at 0x00000247DC4ABA50>)> coroutine=<bound method BaseRetriever.aget_relevant_documents of VectorStoreRetriever(tags=['OpenSearchVectorSearch', 'OpenAIEmbeddings'], vectorstore=<langchain.vectorstores.opensearch_vector_search.OpenSearchVectorSearch object at 0x00000247DC4ABA50>)> full_question ===> Am I allowed to get a company car ? c:\project\transformed_notebook.ipynb Cell 8 line 1 190 agent_executor = AgentExecutor(agent=agent, tools=[tool,tool], verbose=True, memory=memory, return_intermediate_steps=True) 192 print("full_question ===>", full_question) --> 194 result = agent_executor({"input": full_question}) 196 # print("result ===>", result) 197 198 # chain_type_kwargs = {"prompt": prompt, (...) 211 # out = chain(full_question) 212 # Cleaning the answer File c:\Users\raaz\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\base.py:310, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info) 308 except BaseException as e: 309 run_manager.on_chain_error(e) --> 310 raise e 311 run_manager.on_chain_end(outputs) ... 99 } 100 full_inputs = dict(**selected_inputs, agent_scratchpad=agent_scratchpad) 101 prompt = self.prompt.format_prompt(**full_inputs) KeyError: 'tool_names' ``` How come this error is generated even though the `tools` argument is provided and is well-defined ? ### Expected behavior The error should not be raised since tools are defined the correct way (as per the official LangChain docs)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12186/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12186/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12185
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12185/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12185/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12185/events
https://github.com/langchain-ai/langchain/issues/12185
1,958,553,638
I_kwDOIPDwls50vSgm
12,185
Retriever Tool for Vertex AI Model
{ "login": "vikasrai92l", "id": 44745923, "node_id": "MDQ6VXNlcjQ0NzQ1OTIz", "avatar_url": "https://avatars.githubusercontent.com/u/44745923?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vikasrai92l", "html_url": "https://github.com/vikasrai92l", "followers_url": "https://api.github.com/users/vikasrai92l/followers", "following_url": "https://api.github.com/users/vikasrai92l/following{/other_user}", "gists_url": "https://api.github.com/users/vikasrai92l/gists{/gist_id}", "starred_url": "https://api.github.com/users/vikasrai92l/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vikasrai92l/subscriptions", "organizations_url": "https://api.github.com/users/vikasrai92l/orgs", "repos_url": "https://api.github.com/users/vikasrai92l/repos", "events_url": "https://api.github.com/users/vikasrai92l/events{/privacy}", "received_events_url": "https://api.github.com/users/vikasrai92l/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": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-10-24T05:35:24
2023-10-25T05:32:36
null
NONE
null
### Issue you'd like to raise. I am trying to add retriever tool to SQL Database Toolkit and run SQL Agent with Vertex AI Text Bison LLM, however I am facing error. I am following below documentation for implementation [https://python.langchain.com/docs/use_cases/qa_structured/sql?ref=blog.langchain.dev#case-3-sql-agents](url) My Python Code `llm = VertexAI( model_name='text-bison@001', max_output_tokens=256, temperature=0, top_p=0.8, top_k=40, verbose=True, ) few_shots = {'a': sql a query;', "b '.": "sql b query", "c.": "sql c query;", "d": "sql d query; " } from langchain.embeddings import VertexAIEmbeddings from langchain.vectorstores import FAISS from langchain.schema import Document embeddings = VertexAIEmbeddings() few_shot_docs = [Document(page_content=question, metadata={'sql_query': few_shots[question]}) for question in few_shots.keys()] vector_db = FAISS.from_documents(few_shot_docs, embeddings) #retriever = vector_db.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .5}) retriever = vector_db.as_retriever() from langchain.agents import initialize_agent, Tool from langchain.agents import load_tools from langchain.agents import AgentType from langchain.tools import BaseTool from langchain.agents.agent_toolkits import create_retriever_tool tool_description = """ This tool will help you understand similar examples to adapt them to the user question. Input to this tool should be the user question. """ retriever_tool = create_retriever_tool( retriever, name='sql_get_similar_examples', description=tool_description ) custom_tool_list = [retriever_tool] from langchain.agents import create_sql_agent from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.sql_database import SQLDatabase from langchain.agents import AgentExecutor from langchain.agents.agent_types import AgentType from sqlalchemy import * from sqlalchemy.engine import create_engine from sqlalchemy.schema import * import pandas as pd table_uri = f"bigquery://{project}/{dataset_id}" engine = create_engine(f"bigquery://{project}/{dataset_id}") db = SQLDatabase(engine=engine,metadata=MetaData(bind=engine),include_tables=table_name,view_support=True) toolkit = SQLDatabaseToolkit(db=db, llm=llm) custom_suffix = """Begin! Question: {input} Thought: I should first get the similar examples I know. If the examples are enough to construct the query, I can build it. Otherwise, I can then look at the tables in the database to see what I can query. Then I should query the schema of the most relevant tables. {agent_scratchpad}""" agent = create_sql_agent(llm=llm, toolkit=toolkit, verbose=True, agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION, extra_tools=custom_tool_list, suffix=custom_suffix ) langchain.debug = True Thought:The table does not have the column 'alloted_terminal'. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought:I don't have enough information to construct the query. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought:I don't have enough information to construct the query. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought:I don't have enough information to construct the query. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought:I don't have enough information to construct the query. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought:I don't have enough information to construct the query. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought:I don't have enough information to construct the query. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought:I don't have enough information to construct the query. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought:I don't have enough information to construct the query. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought:I don't have enough information to construct the query. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought:I don't have enough information to construct the query. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought:I don't have enough information to construct the query. Action: sql_get_similar_examples Action Input: {Question} Observation: {Document(fewshots} Thought: > Finished chain. Agent stopped due to iteration limit or time limit. { "output": "Agent stopped due to iteration limit or time limit." } ' Agent stopped due to iteration limit or time limit. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12185/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12185/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12184
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12184/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12184/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12184/events
https://github.com/langchain-ai/langchain/issues/12184
1,958,479,132
I_kwDOIPDwls50vAUc
12,184
multi_retrieval_qa.py hardwires ChatOpenAI() at the _default_chain
{ "login": "vecorro", "id": 49245780, "node_id": "MDQ6VXNlcjQ5MjQ1Nzgw", "avatar_url": "https://avatars.githubusercontent.com/u/49245780?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vecorro", "html_url": "https://github.com/vecorro", "followers_url": "https://api.github.com/users/vecorro/followers", "following_url": "https://api.github.com/users/vecorro/following{/other_user}", "gists_url": "https://api.github.com/users/vecorro/gists{/gist_id}", "starred_url": "https://api.github.com/users/vecorro/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vecorro/subscriptions", "organizations_url": "https://api.github.com/users/vecorro/orgs", "repos_url": "https://api.github.com/users/vecorro/repos", "events_url": "https://api.github.com/users/vecorro/events{/privacy}", "received_events_url": "https://api.github.com/users/vecorro/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
6
2023-10-24T04:17:28
2023-10-26T09:09:59
2023-10-25T14:29:42
NONE
null
### System Info System: langchain 0.0.321 Python 3.10 Hi, I get an error related to a missing OpenAI token when trying to reuse the code to [dynamically select from multiple retrievers](https://python.langchain.com/docs/use_cases/question_answering/multi_retrieval_qa_router) at the MultiRetrievalQAChain initialization step, ``` multi_retriever_chain = MultiRetrievalQAChain.from_retrievers( llm=llm, # Llama2 served by vLLM via VLLMOpenAI retriever_infos=retrievers_info, verbose=True) ``` I get an error because I'm not using OpenAI LLMs and the LangChain code (multi_retrieval_qa.py) hard wires ChatOpenAI() as the LLM for the _default_chain. ``` _default_chain = ConversationChain( llm=ChatOpenAI(), prompt=prompt, input_key="query", output_key="result" ) ``` I think you need to assign the llm variable to the llm provided when initializing the class. ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Including the Python code and the PDF files that get loaded by the retrievers. ``` #%% import torch from langchain.llms import VLLMOpenAI from langchain.document_loaders import PyPDFLoader # Import for retrieval-augmented generation RAG from langchain import hub from langchain.chains import RetrievalQA, MultiRetrievalQAChain from langchain.vectorstores import Chroma from langchain.text_splitter import SentenceTransformersTokenTextSplitter from langchain.embeddings.sentence_transformer import SentenceTransformerEmbeddings #%% # URL for the vLLM service INFERENCE_SRV_URL = "http://localhost:8000/v1" def setup_chat_llm(vllm_url, max_tokens=512, temperature=0.2): """ Intializes the vLLM service object. :param vllm_url: vLLM service URL :param max_tokens: Max number of tokens to get generated by the LLM :param temperature: Temperature of the generation process :return: The vLLM service object """ chat = VLLMOpenAI( openai_api_key="EMPTY", openai_api_base=vllm_url, model_name="meta-llama/Llama-2-7b-chat-hf", temperature=temperature, max_tokens=max_tokens, ) return chat #%% # Initialize LLM service llm = setup_chat_llm(vllm_url=INFERENCE_SRV_URL) #%% %%time # Set up the embedding encoder (Sentence Transformers) and vector store model_name = "all-mpnet-base-v2" model_kwargs = {'device': 'cuda' if torch.cuda.is_available() else 'cpu'} encode_kwargs = {'normalize_embeddings': False} embeddings = SentenceTransformerEmbeddings( model_name=model_name, model_kwargs=model_kwargs, encode_kwargs=encode_kwargs ) # Set up the document splitter text_splitter = SentenceTransformersTokenTextSplitter(chunk_size=500, chunk_overlap=0) # Load PDF documents loader = PyPDFLoader(file_path="../data/AI_RMF_Playbook.pdf") rmf_doc = loader.load() rmf_splits = text_splitter.split_documents(rmf_doc) rmf_retriever = Chroma.from_documents(documents=rmf_splits, embedding=embeddings) loader = PyPDFLoader(file_path="../data/OWASP-Top-10-for-LLM-Applications-v101.pdf") owasp_doc = loader.load() owasp_splits = text_splitter.split_documents(owasp_doc) owasp_retriever = Chroma.from_documents(documents=owasp_splits, embedding=embeddings) loader = PyPDFLoader(file_path="../data/Threat Modeling LLM Applications - AI Village.pdf") ai_village_doc = loader.load() ai_village_splits = text_splitter.split_documents(ai_village_doc) ai_village_retriever = Chroma.from_documents(documents=ai_village_splits, embedding=embeddings) #%% retrievers_info = [ { "name": "NIST AI Risk Management Framework", "description": "Guidelines for organizations and people to manage risks associated with the use of AI ", "retriever": rmf_retriever.as_retriever() }, { "name": "OWASP Top 10 for LLM Applications", "description": "Provides practical, actionable, and concise security guidance to navigate the complex and evolving terrain of LLM security", "retriever": owasp_retriever.as_retriever() }, { "name": "Threat Modeling LLM Applications", "description": "A high-level example from Gavin Klondike on how to build a threat model for LLM applications", "retriever": ai_village_retriever.as_retriever() } ] #%% # Import default LLama RAG prompt prompt = hub.pull("rlm/rag-prompt-llama") print(prompt.dict()['messages'][0]['prompt']['template']) #%% multi_retriever_chain = MultiRetrievalQAChain.from_retrievers( llm=llm, retriever_infos=retrievers_info, #default_retriever=owasp_retriever.as_retriever(), #default_prompt=prompt, #chain_type_kwargs={"prompt": prompt}, verbose=True) #%% question = "What is prompt injection?" result = multi_retriever ``` [AI_RMF_Playbook.pdf](https://github.com/langchain-ai/langchain/files/13110652/AI_RMF_Playbook.pdf) [OWASP-Top-10-for-LLM-Applications-v101.pdf](https://github.com/langchain-ai/langchain/files/13110653/OWASP-Top-10-for-LLM-Applications-v101.pdf) [Threat Modeling LLM Applications - AI Village.pdf](https://github.com/langchain-ai/langchain/files/13110654/Threat.Modeling.LLM.Applications.-.AI.Village.pdf) ### Expected behavior I was expecting to get results equivalent to what is shown at LangChain's documentation [dynamically select from multiple retrievers](https://python.langchain.com/docs/use_cases/question_answering/multi_retrieval_qa_router)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12184/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/12184/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12183
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12183/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12183/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12183/events
https://github.com/langchain-ai/langchain/issues/12183
1,958,394,412
I_kwDOIPDwls50uros
12,183
Bug when using OPENAI_FUNCTIONS agent
{ "login": "liu-hanyu-97", "id": 74221815, "node_id": "MDQ6VXNlcjc0MjIxODE1", "avatar_url": "https://avatars.githubusercontent.com/u/74221815?v=4", "gravatar_id": "", "url": "https://api.github.com/users/liu-hanyu-97", "html_url": "https://github.com/liu-hanyu-97", "followers_url": "https://api.github.com/users/liu-hanyu-97/followers", "following_url": "https://api.github.com/users/liu-hanyu-97/following{/other_user}", "gists_url": "https://api.github.com/users/liu-hanyu-97/gists{/gist_id}", "starred_url": "https://api.github.com/users/liu-hanyu-97/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/liu-hanyu-97/subscriptions", "organizations_url": "https://api.github.com/users/liu-hanyu-97/orgs", "repos_url": "https://api.github.com/users/liu-hanyu-97/repos", "events_url": "https://api.github.com/users/liu-hanyu-97/events{/privacy}", "received_events_url": "https://api.github.com/users/liu-hanyu-97/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
2
2023-10-24T03:10:22
2023-12-25T16:16:00
null
NONE
null
### System Info python=3.10 langchain=0.0.320 ### Who can help? @hwchase17 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction # Bug https://python.langchain.com/docs/modules/agents/how_to/custom-functions-with-openai-functions-agent I am trying to reproduce this example. But I got the below error. The error happends in the below function https://api.python.langchain.com/en/latest/_modules/langchain/chat_models/openai.html#ChatOpenAI:~:text=%3Dchunk)-,def%20_generate(,-self%2C%0A%20%20%20%20%20%20%20%20messages After I printed the "message_dicts" in the function I found that one item in the list has a None "content" value. ``` python [{'role': 'system', 'content': 'You are a helpful AI assistant.'}, {'role': 'user', 'content': 'What is the current price of Microsoft stock? How it has performed over past 6 months?'}, {'role': 'assistant', 'content': None, 'function_call': {'name': 'get_current_stock_price', 'arguments': '{\n "ticker": "MSFT"\n}'}}, {'role': 'function', 'content': '{"price": 326.6700134277344, "currency": "USD"}', 'name': 'get_current_stock_price'}] ``` The **None** value will lead to an error comlainning that: ``` { "error": { "code": null, "param": null, "message": "'content' is a required property - 'messages.2'", "type": "invalid_request_error" } } ``` # My findings: If we use the function_call features of OPENAI, it will always return a None value in the content. But it seems like, the langchain implementation does not deal with this situation. # My fix: After I add one line of code in the _generate function to replace the `None` value with an empty string `''`: ```python message_dicts = [{**item, 'content': ('' if item['content'] is None else item['content'])} for item in message_dicts] # this line is added response = self.completion_with_retry( messages=message_dicts, run_manager=run_manager, **params ) print(response) return self._create_chat_result(response) ``` Then the function works normally. Is this a bug in using the langchain OPENAI_FUNCTIONS agent? ### Expected behavior # My fix: After I add one line of code in the _generate function to replace the `None` value with an empty string `''`: ```python message_dicts = [{**item, 'content': ('' if item['content'] is None else item['content'])} for item in message_dicts] # this line is added response = self.completion_with_retry( messages=message_dicts, run_manager=run_manager, **params ) print(response) return self._create_chat_result(response) ``` Then the function works normally. The output (with some printing) is like this: ``` [{'role': 'system', 'content': 'You are a helpful AI assistant.'}, {'role': 'user', 'content': 'What is the current price of Microsoft stock? How it has performed over past 6 months?'}] { "created": 1698074688, "usage": { "completion_tokens": 18, "prompt_tokens": 199, "total_tokens": 217 }, "model": "gpt-35-turbo", "id": "chatcmpl-8Cr5M7Zi8wv40g9dEg4ZbkNV0KBSc", "choices": [ { "finish_reason": "function_call", "index": 0, "message": { "role": "assistant", "function_call": { "name": "get_current_stock_price", "arguments": "{\n \"ticker\": \"MSFT\"\n}" }, "content": null } } ], "object": "chat.completion" } Invoking: `get_current_stock_price` with `{'ticker': 'MSFT'}` {'price': 328.9849853515625, 'currency': 'USD'}[{'role': 'system', 'content': 'You are a helpful AI assistant.'}, {'role': 'user', 'content': 'What is the current price of Microsoft stock? How it has performed over past 6 months?'}, {'role': 'assistant', 'content': None, 'function_call': {'name': 'get_current_stock_price', 'arguments': '{\n "ticker": "MSFT"\n}'}}, {'role': 'function', 'content': '{"price": 328.9849853515625, "currency": "USD"}', 'name': 'get_current_stock_price'}] { "created": 1698074692, "usage": { "completion_tokens": 24, "prompt_tokens": 228, "total_tokens": 252 }, "model": "gpt-35-turbo", "id": "chatcmpl-8Cr5QoQfx5gkIS9k7mGn2fs7lMkPc", "choices": [ { "finish_reason": "function_call", "index": 0, "message": { "role": "assistant", "function_call": { "name": "get_stock_performance", "arguments": "{\n \"ticker\": \"MSFT\",\n \"days\": 180\n}" }, "content": null } } ], "object": "chat.completion" } Invoking: `get_stock_performance` with `{'ticker': 'MSFT', 'days': 180}` {'percent_change': 7.626317098142607}[{'role': 'system', 'content': 'You are a helpful AI assistant.'}, {'role': 'user', 'content': 'What is the current price of Microsoft stock? How it has performed over past 6 months?'}, {'role': 'assistant', 'content': None, 'function_call': {'name': 'get_current_stock_price', 'arguments': '{\n "ticker": "MSFT"\n}'}}, {'role': 'function', 'content': '{"price": 328.9849853515625, "currency": "USD"}', 'name': 'get_current_stock_price'}, {'role': 'assistant', 'content': None, 'function_call': {'name': 'get_stock_performance', 'arguments': '{\n "ticker": "MSFT",\n "days": 180\n}'}}, {'role': 'function', 'content': '{"percent_change": 7.626317098142607}', 'name': 'get_stock_performance'}] { "created": 1698074694, "usage": { "completion_tokens": 36, "prompt_tokens": 251, "total_tokens": 287 }, "model": "gpt-35-turbo", "id": "chatcmpl-8Cr5SRASyFLFbp80CJhx5hgdVXDLM", "choices": [ { "finish_reason": "stop", "index": 0, "message": { "role": "assistant", "content": "The current price of Microsoft stock is $328.98 USD. Over the past 6 months, the stock has performed with a 7.63% increase in price." } } ], "object": "chat.completion" } The current price of Microsoft stock is $328.98 USD. Over the past 6 months, the stock has performed with a 7.63% increase in price. ``` Is this a bug in using the langchain OPENAI_FUNCTIONS agent?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12183/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12183/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12181
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12181/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12181/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12181/events
https://github.com/langchain-ai/langchain/pull/12181
1,958,369,465
PR_kwDOIPDwls5dmBHR
12,181
Expose handle_event and ahandle_events as public API
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-10-24T02:40:16
2023-10-24T17:42:30
2023-10-24T17:42:29
COLLABORATOR
null
Expose functionality to handle generic events.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12181/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12181/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12181", "html_url": "https://github.com/langchain-ai/langchain/pull/12181", "diff_url": "https://github.com/langchain-ai/langchain/pull/12181.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12181.patch", "merged_at": "2023-10-24T17:42:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/12180
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12180/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12180/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12180/events
https://github.com/langchain-ai/langchain/issues/12180
1,958,354,853
I_kwDOIPDwls50uh-l
12,180
JSONDecodeError on Cookbook/Semi_structured_multi_mudal_RAG_LLaMA2.ipynb
{ "login": "MrLinWang", "id": 38717023, "node_id": "MDQ6VXNlcjM4NzE3MDIz", "avatar_url": "https://avatars.githubusercontent.com/u/38717023?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MrLinWang", "html_url": "https://github.com/MrLinWang", "followers_url": "https://api.github.com/users/MrLinWang/followers", "following_url": "https://api.github.com/users/MrLinWang/following{/other_user}", "gists_url": "https://api.github.com/users/MrLinWang/gists{/gist_id}", "starred_url": "https://api.github.com/users/MrLinWang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MrLinWang/subscriptions", "organizations_url": "https://api.github.com/users/MrLinWang/orgs", "repos_url": "https://api.github.com/users/MrLinWang/repos", "events_url": "https://api.github.com/users/MrLinWang/events{/privacy}", "received_events_url": "https://api.github.com/users/MrLinWang/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
6
2023-10-24T02:23:12
2024-01-08T10:22:59
2023-11-01T06:11:06
NONE
null
### System Info Python Version: Python 3.10.4 Langchain Version: 0.0.320 OS: Ubuntu 18.04 ### Who can help? @hwchase17 @agola11 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction When running the official cookbook code... ```python from pydantic import BaseModel from typing import Any, Optional from unstructured.partition.pdf import partition_pdf # Path to save images path = "./Papers/LLaVA/" # Get elements raw_pdf_elements = partition_pdf(filename=path+"LLaVA.pdf", # Using pdf format to find embedded image blocks extract_images_in_pdf=True, # Use layout model (YOLOX) to get bounding boxes (for tables) and find titles # Titles are any sub-section of the document infer_table_structure=True, # Post processing to aggregate text once we have the title chunking_strategy="by_title", # Chunking params to aggregate text blocks # Attempt to create a new chunk 3800 chars # Attempt to keep chunks > 2000 chars # Hard max on chunks max_characters=4000, new_after_n_chars=3800, combine_text_under_n_chars=2000, image_output_dir_path=path ) # Create a dictionary to store counts of each type category_counts = {} for element in raw_pdf_elements: category = str(type(element)) if category in category_counts: category_counts[category] += 1 else: category_counts[category] = 1 # Unique_categories will have unique elements # TableChunk if Table > max chars set above unique_categories = set(category_counts.keys()) category_counts class Element(BaseModel): type: str text: Any # Categorize by type categorized_elements = [] for element in raw_pdf_elements: if "unstructured.documents.elements.Table" in str(type(element)): categorized_elements.append(Element(type="table", text=str(element))) elif "unstructured.documents.elements.CompositeElement" in str(type(element)): categorized_elements.append(Element(type="text", text=str(element))) # Tables table_elements = [e for e in categorized_elements if e.type == "table"] print(len(table_elements)) # Text text_elements = [e for e in categorized_elements if e.type == "text"] print(len(text_elements)) from langchain.chat_models import ChatOllama from langchain.prompts import ChatPromptTemplate from langchain.schema.output_parser import StrOutputParser # Prompt prompt_text="""You are an assistant tasked with summarizing tables and text. \ Give a concise summary of the table or text. Table or text chunk: {element} """ prompt = ChatPromptTemplate.from_template(prompt_text) # Summary chain model = ChatOllama(model="llama2:13b-chat") summarize_chain = {"element": lambda x:x} | prompt | model | StrOutputParser() # Apply to text texts = [i.text for i in text_elements if i.text != ""] text_summaries = summarize_chain.batch(texts, {"max_concurrency": 5}) ``` The following error was returned: ```bash --------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) File ~/anaconda3/envs/langchain/lib/python3.8/site-packages/requests/models.py:971, in Response.json(self, **kwargs) 970 try: --> 971 return complexjson.loads(self.text, **kwargs) 972 except JSONDecodeError as e: 973 # Catch JSON-related errors and raise as requests.JSONDecodeError 974 # This aliases json.JSONDecodeError and simplejson.JSONDecodeError File ~/anaconda3/envs/langchain/lib/python3.8/json/__init__.py:357, in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 354 if (cls is None and object_hook is None and 355 parse_int is None and parse_float is None and 356 parse_constant is None and object_pairs_hook is None and not kw): --> 357 return _default_decoder.decode(s) 358 if cls is None: File ~/anaconda3/envs/langchain/lib/python3.8/json/decoder.py:337, in JSONDecoder.decode(self, s, _w) 333 """Return the Python representation of ``s`` (a ``str`` instance 334 containing a JSON document). 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() File ~/anaconda3/envs/langchain/lib/python3.8/json/decoder.py:355, in JSONDecoder.raw_decode(self, s, idx) 354 except StopIteration as err: --> 355 raise JSONDecodeError("Expecting value", s, err.value) from None 356 return obj, end JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: JSONDecodeError Traceback (most recent call last) Cell In[6], line 3 1 # Apply to text 2 texts = [i.text for i in text_elements if i.text != ""] ----> 3 text_summaries = summarize_chain.batch(texts, {"max_concurrency": 5}) File ~/chatpdf-langchain/langchain/libs/langchain/langchain/schema/runnable/base.py:1287, in RunnableSequence.batch(self, inputs, config, return_exceptions, **kwargs) 1285 else: 1286 for i, step in enumerate(self.steps): -> 1287 inputs = step.batch( 1288 inputs, 1289 [ 1290 # each step a child run of the corresponding root run 1291 patch_config( 1292 config, callbacks=rm.get_child(f"seq:step:{i+1}") 1293 ) 1294 for rm, config in zip(run_managers, configs) 1295 ], 1296 ) 1298 # finish the root runs 1299 except BaseException as e: File ~/chatpdf-langchain/langchain/libs/langchain/langchain/schema/runnable/base.py:323, in Runnable.batch(self, inputs, config, return_exceptions, **kwargs) 320 return cast(List[Output], [invoke(inputs[0], configs[0])]) 322 with get_executor_for_config(configs[0]) as executor: --> 323 return cast(List[Output], list(executor.map(invoke, inputs, configs))) File ~/anaconda3/envs/langchain/lib/python3.8/concurrent/futures/_base.py:619, in Executor.map.<locals>.result_iterator() 616 while fs: 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) File ~/anaconda3/envs/langchain/lib/python3.8/concurrent/futures/_base.py:444, in Future.result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() File ~/anaconda3/envs/langchain/lib/python3.8/concurrent/futures/_base.py:389, in Future.__get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception 392 self = None File ~/anaconda3/envs/langchain/lib/python3.8/concurrent/futures/thread.py:57, in _WorkItem.run(self) 54 return 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) File ~/chatpdf-langchain/langchain/libs/langchain/langchain/schema/runnable/base.py:316, in Runnable.batch.<locals>.invoke(input, config) 314 return e 315 else: --> 316 return self.invoke(input, config, **kwargs) File ~/chatpdf-langchain/langchain/libs/langchain/langchain/chat_models/base.py:142, in BaseChatModel.invoke(self, input, config, stop, **kwargs) 131 def invoke( 132 self, 133 input: LanguageModelInput, (...) 137 **kwargs: Any, 138 ) -> BaseMessage: 139 config = config or {} 140 return cast( 141 ChatGeneration, --> 142 self.generate_prompt( 143 [self._convert_input(input)], 144 stop=stop, 145 callbacks=config.get("callbacks"), 146 tags=config.get("tags"), 147 metadata=config.get("metadata"), 148 run_name=config.get("run_name"), 149 **kwargs, 150 ).generations[0][0], 151 ).message File ~/chatpdf-langchain/langchain/libs/langchain/langchain/chat_models/base.py:459, in BaseChatModel.generate_prompt(self, prompts, stop, callbacks, **kwargs) 451 def generate_prompt( 452 self, 453 prompts: List[PromptValue], (...) 456 **kwargs: Any, 457 ) -> LLMResult: 458 prompt_messages = [p.to_messages() for p in prompts] --> 459 return self.generate(prompt_messages, stop=stop, callbacks=callbacks, **kwargs) File ~/chatpdf-langchain/langchain/libs/langchain/langchain/chat_models/base.py:349, in BaseChatModel.generate(self, messages, stop, callbacks, tags, metadata, run_name, **kwargs) 347 if run_managers: 348 run_managers[i].on_llm_error(e) --> 349 raise e 350 flattened_outputs = [ 351 LLMResult(generations=[res.generations], llm_output=res.llm_output) 352 for res in results 353 ] 354 llm_output = self._combine_llm_outputs([res.llm_output for res in results]) File ~/chatpdf-langchain/langchain/libs/langchain/langchain/chat_models/base.py:339, in BaseChatModel.generate(self, messages, stop, callbacks, tags, metadata, run_name, **kwargs) 336 for i, m in enumerate(messages): 337 try: 338 results.append( --> 339 self._generate_with_cache( 340 m, 341 stop=stop, 342 run_manager=run_managers[i] if run_managers else None, 343 **kwargs, 344 ) 345 ) 346 except BaseException as e: 347 if run_managers: File ~/chatpdf-langchain/langchain/libs/langchain/langchain/chat_models/base.py:492, in BaseChatModel._generate_with_cache(self, messages, stop, run_manager, **kwargs) 488 raise ValueError( 489 "Asked to cache, but no cache found at `langchain.cache`." 490 ) 491 if new_arg_supported: --> 492 return self._generate( 493 messages, stop=stop, run_manager=run_manager, **kwargs 494 ) 495 else: 496 return self._generate(messages, stop=stop, **kwargs) File ~/chatpdf-langchain/langchain/libs/langchain/langchain/chat_models/ollama.py:98, in ChatOllama._generate(self, messages, stop, run_manager, **kwargs) 80 """Call out to Ollama's generate endpoint. 81 82 Args: (...) 94 ]) 95 """ 97 prompt = self._format_messages_as_text(messages) ---> 98 final_chunk = super()._stream_with_aggregation( 99 prompt, stop=stop, run_manager=run_manager, verbose=self.verbose, **kwargs 100 ) 101 chat_generation = ChatGeneration( 102 message=AIMessage(content=final_chunk.text), 103 generation_info=final_chunk.generation_info, 104 ) 105 return ChatResult(generations=[chat_generation]) File ~/chatpdf-langchain/langchain/libs/langchain/langchain/llms/ollama.py:156, in _OllamaCommon._stream_with_aggregation(self, prompt, stop, run_manager, verbose, **kwargs) 147 def _stream_with_aggregation( 148 self, 149 prompt: str, (...) 153 **kwargs: Any, 154 ) -> GenerationChunk: 155 final_chunk: Optional[GenerationChunk] = None --> 156 for stream_resp in self._create_stream(prompt, stop, **kwargs): 157 if stream_resp: 158 chunk = _stream_response_to_generation_chunk(stream_resp) File ~/chatpdf-langchain/langchain/libs/langchain/langchain/llms/ollama.py:140, in _OllamaCommon._create_stream(self, prompt, stop, **kwargs) 138 response.encoding = "utf-8" 139 if response.status_code != 200: --> 140 optional_detail = response.json().get("error") 141 raise ValueError( 142 f"Ollama call failed with status code {response.status_code}." 143 f" Details: {optional_detail}" 144 ) 145 return response.iter_lines(decode_unicode=True) File ~/anaconda3/envs/langchain/lib/python3.8/site-packages/requests/models.py:975, in Response.json(self, **kwargs) 971 return complexjson.loads(self.text, **kwargs) 972 except JSONDecodeError as e: 973 # Catch JSON-related errors and raise as requests.JSONDecodeError 974 # This aliases json.JSONDecodeError and simplejson.JSONDecodeError --> 975 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) JSONDecodeError: Expecting value: line 1 column 1 (char 0) ``` After attempting: ```python # Summary chain model = ChatOllama(model="llama2:13b-chat") summarize_chain = {"element": lambda x:x} | prompt | model texts = [i.text for i in text_elements if i.text != ""] text_summaries = summarize_chain.batch(texts) ``` Returned the same error as before. It seems that the error is occurring in the ‘ChatOllama model’. ### Expected behavior Attempting to reproduce the effects in the Cookbook/Semi_structured_multi_modal_RAG_LLaMA2.ipynb.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12180/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12180/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12179
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12179/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12179/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12179/events
https://github.com/langchain-ai/langchain/issues/12179
1,958,283,958
I_kwDOIPDwls50uQq2
12,179
Issue: <Not able to filter OpenSearch vectorstore using Filter in search_kwargs>
{ "login": "rchegondi", "id": 6452985, "node_id": "MDQ6VXNlcjY0NTI5ODU=", "avatar_url": "https://avatars.githubusercontent.com/u/6452985?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rchegondi", "html_url": "https://github.com/rchegondi", "followers_url": "https://api.github.com/users/rchegondi/followers", "following_url": "https://api.github.com/users/rchegondi/following{/other_user}", "gists_url": "https://api.github.com/users/rchegondi/gists{/gist_id}", "starred_url": "https://api.github.com/users/rchegondi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rchegondi/subscriptions", "organizations_url": "https://api.github.com/users/rchegondi/orgs", "repos_url": "https://api.github.com/users/rchegondi/repos", "events_url": "https://api.github.com/users/rchegondi/events{/privacy}", "received_events_url": "https://api.github.com/users/rchegondi/received_events", "type": "User", "site_admin": false }
[ { "id": 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" } ]
open
false
null
[]
null
1
2023-10-24T01:09:55
2023-10-24T03:31:33
null
NONE
null
### Issue you'd like to raise. Hello Team, We have a metadata field in our opensearch index which I would like use to filter the passages before sending it to LLM to generate the answer. Tried many options suggested in chat.langchain.com but none of them seems to work. Here is an example: I have an user with associated groups ['user_group1', 'user_group2'] and the OpenSearch index with data like { 'text': 'Page Content......', 'metadata': { 'source_acl': [ {'group_name': 'user_group1', 'group_type': 'type1'}, {}, {}] } } So far I have been trying this ``` chain = ConversationalRetrievalChain.from_llm( llm=SagemakerEndpoint( endpoint_name=constants.EMBEDDING_ENDPOINT_ARN_ALPHA, region_name=constants.REGION, content_handler=self.content_handler_llm, client=self.sg_client ), # for experimentation, you can change number of documents to retrieve here retriever=opensearch_vectorstore.as_retriever(search_kwargs={'k': 3, 'filter': 'source_acl.group_name:user_group1'}), memory=memory, condense_question_prompt=custom_question_prompt, return_source_documents=True ) ``` Am I missing anything here? Thanks in Advance. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12179/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/12179/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12178
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12178/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12178/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12178/events
https://github.com/langchain-ai/langchain/pull/12178
1,958,229,369
PR_kwDOIPDwls5dlkXC
12,178
Update deprecation
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-10-24T00:01:07
2023-10-24T17:37:29
2023-10-24T17:37:29
COLLABORATOR
null
in runner_utils
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12178/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12178/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12178", "html_url": "https://github.com/langchain-ai/langchain/pull/12178", "diff_url": "https://github.com/langchain-ai/langchain/pull/12178.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12178.patch", "merged_at": "2023-10-24T17:37:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/12177
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12177/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12177/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12177/events
https://github.com/langchain-ai/langchain/pull/12177
1,958,187,003
PR_kwDOIPDwls5dlbIF
12,177
updated `integrations/providers/microsoft`
{ "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
2
2023-10-23T23:19:59
2023-10-24T18:42:56
2023-10-24T17:19:06
COLLABORATOR
null
Added several missed tools, utilities, toolkits to the `Microsoft` page.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12177/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12177/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12177", "html_url": "https://github.com/langchain-ai/langchain/pull/12177", "diff_url": "https://github.com/langchain-ai/langchain/pull/12177.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12177.patch", "merged_at": "2023-10-24T17:19:06" }
https://api.github.com/repos/langchain-ai/langchain/issues/12176
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12176/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12176/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12176/events
https://github.com/langchain-ai/langchain/issues/12176
1,958,182,263
I_kwDOIPDwls50t313
12,176
value is not a valid dict (type=type_error.dict)
{ "login": "jonty-esterhuizen", "id": 82042398, "node_id": "MDQ6VXNlcjgyMDQyMzk4", "avatar_url": "https://avatars.githubusercontent.com/u/82042398?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jonty-esterhuizen", "html_url": "https://github.com/jonty-esterhuizen", "followers_url": "https://api.github.com/users/jonty-esterhuizen/followers", "following_url": "https://api.github.com/users/jonty-esterhuizen/following{/other_user}", "gists_url": "https://api.github.com/users/jonty-esterhuizen/gists{/gist_id}", "starred_url": "https://api.github.com/users/jonty-esterhuizen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonty-esterhuizen/subscriptions", "organizations_url": "https://api.github.com/users/jonty-esterhuizen/orgs", "repos_url": "https://api.github.com/users/jonty-esterhuizen/repos", "events_url": "https://api.github.com/users/jonty-esterhuizen/events{/privacy}", "received_events_url": "https://api.github.com/users/jonty-esterhuizen/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-10-23T23:15:43
2023-10-29T13:51:16
2023-10-29T13:51:16
NONE
null
### Issue you'd like to raise. when i try and run this script ``` class WebsiteSummary: def _SummorizeWebsite(objective, websiteContent): my_gpt_instance = MyGPT4ALL() textSplitter = RecursiveCharacterTextSplitter( separators=["\n\n", "\n"], chunk_size=10000, chunk_overlap=500 ) docs = textSplitter.create_documents([websiteContent]) print(docs) mapPrompt = """" write a summary of the following {objective}: {text} SUMMARY: """ map_prompt_template = PromptTemplate( template=mapPrompt, input_variables=["text", "objective"] ) chain = load_summarize_chain(llm=my_gpt_instance, chain_type="map_reduce", verbose=True, map_prompt=objective, combine_prompt=map_prompt_template) output = summary_Chain.run(input_documents=docs, objective=objective) return output ``` i get this issue Exception has occurred: ValidationError 1 validation error for LLMChain prompt value is not a valid dict (type=type_error.dict) File "E:\StormboxBrain\langchain\websiteSummary.py", line 27, in _SummorizeWebsite chain = load_summarize_chain(llm=my_gpt_instance, File "E:\StormboxBrain\langchain\app.py", line 12, in <module> summary = websiteSummary._SummorizeWebsite(objective, data) pydantic.error_wrappers.ValidationError: 1 validation error for LLMChain my model does load and can create prompt responses mistral-7b-openorca.Q4_0.gguf this is mygpt4all class ``` import os from pydantic import Field from typing import List, Mapping, Optional, Any from langchain.llms.base import LLM from gpt4all import GPT4All, pyllmodel class MyGPT4ALL(LLM): """ A custom LLM class that integrates gpt4all models Arguments: model_folder_path: (str) Folder path where the model lies model_name: (str) The name of the model to use (<model name>.gguf) backend: (str) The backend of the model (Supported backends: llama/gptj) n_threads: (str) The number of threads to use n_predict: (str) The maximum numbers of tokens to generate temp: (str) Temperature to use for sampling top_p: (float) The top-p value to use for sampling top_k: (float) The top k values use for sampling n_batch: (int) Batch size for prompt processing repeat_last_n: (int) Last n number of tokens to penalize repeat_penalty: (float) The penalty to apply repeated tokens """ model_folder_path: str = "./models/" model_name: str = "mistral-7b-openorca.Q4_0.gguf" backend: Optional[str] = "llama" temp: Optional[float] = 0.7 top_p: Optional[float] = 0.1 top_k: Optional[int] = 40 n_batch: Optional[int] = 8 n_threads: Optional[int] = 4 n_predict: Optional[int] = 256 max_tokens: Optional[int] = 200 repeat_last_n: Optional[int] = 64 repeat_penalty: Optional[float] = 1.18 # initialize the model gpt4_model_instance: Any = None def __init__(self, **kwargs): super(MyGPT4ALL, self).__init__() print("init " + self.model_folder_path + self.model_name) self.gpt4_model_instance = GPT4All( model_name=self.model_name, model_path=self.model_folder_path, device="cpu", verbose=True, ) print("initiolized " + self.model_folder_path + self.model_name) @property def _get_model_default_parameters(self): print("get default params") return { "max_tokens": self.max_tokens, "n_predict": self.n_predict, "top_k": self.top_k, "top_p": self.top_p, "temp": self.temp, "n_batch": self.n_batch, "repeat_penalty": self.repeat_penalty, "repeat_last_n": self.repeat_last_n, } @property def _identifying_params(self) -> Mapping[str, Any]: print(" Get all the identifying parameters") return { "model_name": self.model_name, "model_path": self.model_folder_path, "model_parameters": self._get_model_default_parameters, } @property def _llm_type(self) -> str: return "llama" def _call(self, prompt: str, stop: Optional[List[str]] = None, **kwargs) -> str: """ Args: prompt: The prompt to pass into the model. stop: A list of strings to stop generation when encountered Returns: The string generated by the model """ params = {**self._get_model_default_parameters, **kwargs} print("params:") for key, value in params.items(): print(f"{key}: {value}") print("params " + params.values()) return "initiolized" ``` ### Suggestion: is there any documentation on how to use another llm as base and not gpt
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12176/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12176/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12175
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12175/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12175/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12175/events
https://github.com/langchain-ai/langchain/issues/12175
1,958,069,230
I_kwDOIPDwls50tcPu
12,175
Integrate RetryOutputParser with ConversationalRetrievalChain
{ "login": "timxieICN", "id": 112183115, "node_id": "U_kgDOBq_HSw", "avatar_url": "https://avatars.githubusercontent.com/u/112183115?v=4", "gravatar_id": "", "url": "https://api.github.com/users/timxieICN", "html_url": "https://github.com/timxieICN", "followers_url": "https://api.github.com/users/timxieICN/followers", "following_url": "https://api.github.com/users/timxieICN/following{/other_user}", "gists_url": "https://api.github.com/users/timxieICN/gists{/gist_id}", "starred_url": "https://api.github.com/users/timxieICN/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/timxieICN/subscriptions", "organizations_url": "https://api.github.com/users/timxieICN/orgs", "repos_url": "https://api.github.com/users/timxieICN/repos", "events_url": "https://api.github.com/users/timxieICN/events{/privacy}", "received_events_url": "https://api.github.com/users/timxieICN/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
7
2023-10-23T21:40:52
2023-10-25T13:20:13
null
NONE
null
### Feature request Is there a way to integrate `RetryOutputParser` with `ConversationalRetrievalChain`? Specifically, if I use OpenAI's function calling to generate the response in a specific format, the LLM model does not always follow the instructions and then it would fail the Pydantic model validation. Therefore, it's important to build the retry mechanism for the `LLMChain` (aka, `doc_chain` argument). ### Motivation Specifically, if I use OpenAI's function calling to generate the response in a specific format, the LLM model does not always follow the instructions and then it would fail the Pydantic model validation. Therefore, it's important to build the retry mechanism for the `LLMChain` (aka, `doc_chain` argument). ### Your contribution TBD
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12175/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/12175/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12174
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12174/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12174/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12174/events
https://github.com/langchain-ai/langchain/pull/12174
1,958,045,344
PR_kwDOIPDwls5dk8Xb
12,174
Changes to root listener
{ "login": "nfcampos", "id": 56902, "node_id": "MDQ6VXNlcjU2OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nfcampos", "html_url": "https://github.com/nfcampos", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "repos_url": "https://api.github.com/users/nfcampos/repos", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-23T21:22:47
2023-11-10T09:53:49
2023-11-10T09:53:48
COLLABORATOR
null
- Implement config_specs to include session_id - Remove Runnable method and update notebook - Add more details to notebook, eg. show input schema and config schema before and after adding message history
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12174/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12174/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12174", "html_url": "https://github.com/langchain-ai/langchain/pull/12174", "diff_url": "https://github.com/langchain-ai/langchain/pull/12174.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12174.patch", "merged_at": "2023-11-10T09:53:48" }
https://api.github.com/repos/langchain-ai/langchain/issues/12173
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12173/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12173/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12173/events
https://github.com/langchain-ai/langchain/pull/12173
1,957,997,823
PR_kwDOIPDwls5dkyIi
12,173
fix vertexai codey models
{ "login": "northdpole", "id": 1583262, "node_id": "MDQ6VXNlcjE1ODMyNjI=", "avatar_url": "https://avatars.githubusercontent.com/u/1583262?v=4", "gravatar_id": "", "url": "https://api.github.com/users/northdpole", "html_url": "https://github.com/northdpole", "followers_url": "https://api.github.com/users/northdpole/followers", "following_url": "https://api.github.com/users/northdpole/following{/other_user}", "gists_url": "https://api.github.com/users/northdpole/gists{/gist_id}", "starred_url": "https://api.github.com/users/northdpole/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/northdpole/subscriptions", "organizations_url": "https://api.github.com/users/northdpole/orgs", "repos_url": "https://api.github.com/users/northdpole/repos", "events_url": "https://api.github.com/users/northdpole/events{/privacy}", "received_events_url": "https://api.github.com/users/northdpole/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-10-23T20:47:44
2023-10-24T17:20:06
2023-10-24T17:20:06
CONTRIBUTOR
null
**Description:** This PR fixes issue #12156 by checking for Codey models appropriately before result parsing. Maintainer: @hwchase17 , @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12173/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12173/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12173", "html_url": "https://github.com/langchain-ai/langchain/pull/12173", "diff_url": "https://github.com/langchain-ai/langchain/pull/12173.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12173.patch", "merged_at": "2023-10-24T17:20:06" }
https://api.github.com/repos/langchain-ai/langchain/issues/12172
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12172/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12172/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12172/events
https://github.com/langchain-ai/langchain/issues/12172
1,957,982,299
I_kwDOIPDwls50tHBb
12,172
Token Usage Management System
{ "login": "CodeBlackwell", "id": 16550398, "node_id": "MDQ6VXNlcjE2NTUwMzk4", "avatar_url": "https://avatars.githubusercontent.com/u/16550398?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CodeBlackwell", "html_url": "https://github.com/CodeBlackwell", "followers_url": "https://api.github.com/users/CodeBlackwell/followers", "following_url": "https://api.github.com/users/CodeBlackwell/following{/other_user}", "gists_url": "https://api.github.com/users/CodeBlackwell/gists{/gist_id}", "starred_url": "https://api.github.com/users/CodeBlackwell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CodeBlackwell/subscriptions", "organizations_url": "https://api.github.com/users/CodeBlackwell/orgs", "repos_url": "https://api.github.com/users/CodeBlackwell/repos", "events_url": "https://api.github.com/users/CodeBlackwell/events{/privacy}", "received_events_url": "https://api.github.com/users/CodeBlackwell/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-10-23T20:36:34
2023-10-23T20:46:13
null
NONE
null
### Feature request The idea is simple. When using various models users have rate limits, both in requests per min/hour and Tokens. When using the raw OpenAI SDK I used the code below. It just uses the "usage" metrics provided in the response (as of now I dont know how to retrieve a 'raw response' when utilizing langchain queries' ### Motivation This was inspired by the experience of trying to use the GPT api to generate documentaion for a long list of functions of varying length. While trying to run these requests en mass I repeatedly had my process error out because of RATE LIMIT Errors. I dont think the idea of needing to run queries asynchronously against OpenAI API is a common enough use case (though strongely enough not natively supported by the Python SDK) ### Your contribution I would be Honored!!!! To contribute this to the project but I honestly would need some help figuring out how to integrate it. This is the base Idea though, Feel free to reachout to collab! [email protected] or @codeblackwell anywhere. (apologies for the formatting. It just wouldnt work with me). ` class TokenManager: def __init__(self, max_tokens_per_minute=10000): self.max_tokens_per_minute = max_tokens_per_minute self.tokens_used_in_last_minute = 0 self.last_request_time = time.time() def tokens_available(self): current_time = time.time() time_since_last_request = current_time - self.last_request_time if time_since_last_request >= 60: self.tokens_used_in_last_minute = 0 self.last_request_time = current_time return self.max_tokens_per_minute - self.tokens_used_in_last_minute def update_tokens_used(self, tokens_used): if not isinstance(tokens_used, int) or tokens_used < 0: raise ValueError("Invalid token count") self.tokens_used_in_last_minute += tokens_used def get_usage_stats(self): current_time = time.time() time_since_last_request = current_time - self.last_request_time if time_since_last_request >= 60: self.tokens_used_in_last_minute = 0 self.last_request_time = current_time absolute_usage = self.tokens_used_in_last_minute percent_usage = (self.tokens_used_in_last_minute / self.max_tokens_per_minute) * 100 return absolute_usage, percent_usage` token_manager = TokenManager() `def fetch_response(code_snippet, system_prompt, token_manager): """ Fetches a response using the OpenAI API. Parameters: code_snippet (str): The code snippet to be processed. system_prompt (str): The system prompt. Returns: dict: The response from the API. """ while token_manager.tokens_available() < 2500: # Assume a minimum of 10 tokens per request time.sleep(1) try: response = openai.ChatCompletion.create( model="gpt-4", messages=[ {"role": "system", "content": system_prompt}, {"role": "user", "content": code_snippet} ] ) tokens_used = response['usage']['total_tokens'] token_manager.update_tokens_used(tokens_used) return response except Exception as e: print(f"An error occurred: {str(e)}")` `def main(df, system_prompt): """ Processes a DataFrame of code snippets. Parameters: df (pd.DataFrame): The DataFrame containing code snippets. system_prompt (str): The system prompt. Returns: pd.DataFrame: The DataFrame with the added output column. """ responses = [fetch_response(row['code'], system_prompt) for _, row in df.iterrows()] df['output'] = responses return df` # Run the main function `new_df = asyncio.run(main(filtered_df, system_prompt_1))`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12172/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12172/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12171
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12171/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12171/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12171/events
https://github.com/langchain-ai/langchain/pull/12171
1,957,935,836
PR_kwDOIPDwls5dkko-
12,171
separate compile integration tests
{ "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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-10-23T20:04:36
2023-10-24T15:55:21
2023-10-24T15:55:20
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12171/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12171/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12171", "html_url": "https://github.com/langchain-ai/langchain/pull/12171", "diff_url": "https://github.com/langchain-ai/langchain/pull/12171.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12171.patch", "merged_at": "2023-10-24T15:55:20" }
https://api.github.com/repos/langchain-ai/langchain/issues/12170
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12170/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12170/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12170/events
https://github.com/langchain-ai/langchain/issues/12170
1,957,880,716
I_kwDOIPDwls50suOM
12,170
`poetry install --with test`: Group(s) not found: test (via --with)
{ "login": "arunsathiya", "id": 18581859, "node_id": "MDQ6VXNlcjE4NTgxODU5", "avatar_url": "https://avatars.githubusercontent.com/u/18581859?v=4", "gravatar_id": "", "url": "https://api.github.com/users/arunsathiya", "html_url": "https://github.com/arunsathiya", "followers_url": "https://api.github.com/users/arunsathiya/followers", "following_url": "https://api.github.com/users/arunsathiya/following{/other_user}", "gists_url": "https://api.github.com/users/arunsathiya/gists{/gist_id}", "starred_url": "https://api.github.com/users/arunsathiya/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arunsathiya/subscriptions", "organizations_url": "https://api.github.com/users/arunsathiya/orgs", "repos_url": "https://api.github.com/users/arunsathiya/repos", "events_url": "https://api.github.com/users/arunsathiya/events{/privacy}", "received_events_url": "https://api.github.com/users/arunsathiya/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-10-23T19:28:02
2023-10-23T19:46:02
2023-10-23T19:46:02
NONE
null
### System Info I am trying to setup the local development environment with `poetry install --with test` but I am running into the error `Group(s) not found: test (via --with)` ``` > origin/master:master via 🐍 v3.11.6 > 57% langchain ❯ poetry install --with test Group(s) not found: test (via --with) ``` Could you advise on what might be happening here? ### Who can help? @eyurtsev, I think you might be able to advise here? 🙏🏼 ### 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 - Clone repository - With poetry installed, run `poetry install --with test` ### Expected behavior Local development setup works without an error.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12170/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12170/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12169
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12169/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12169/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12169/events
https://github.com/langchain-ai/langchain/pull/12169
1,957,794,254
PR_kwDOIPDwls5dkFUY
12,169
feat: document_loader Textract linearized output
{ "login": "schadem", "id": 45048633, "node_id": "MDQ6VXNlcjQ1MDQ4NjMz", "avatar_url": "https://avatars.githubusercontent.com/u/45048633?v=4", "gravatar_id": "", "url": "https://api.github.com/users/schadem", "html_url": "https://github.com/schadem", "followers_url": "https://api.github.com/users/schadem/followers", "following_url": "https://api.github.com/users/schadem/following{/other_user}", "gists_url": "https://api.github.com/users/schadem/gists{/gist_id}", "starred_url": "https://api.github.com/users/schadem/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/schadem/subscriptions", "organizations_url": "https://api.github.com/users/schadem/orgs", "repos_url": "https://api.github.com/users/schadem/repos", "events_url": "https://api.github.com/users/schadem/events{/privacy}", "received_events_url": "https://api.github.com/users/schadem/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5959659008, "node_id": "LA_kwDOIPDwls8AAAABYzkuAA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws", "name": "integration: aws", "color": "C5DEF5", "default": false, "description": "Related to Amazon Web Services (AWS) integrations" } ]
closed
false
null
[]
null
6
2023-10-23T18:43:55
2023-10-27T18:08:32
2023-10-27T17:56:45
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** linearizing the output from Amazon Textract into a layout with tables and key/value pairs when those features are passed in as feature parameters - **Issue:** fixes #12068 - **Dependencies:** adding amazon-textract-textractor as dependency - **Tag maintainer:** @3coins - **Twitter handle:**
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12169/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/12169/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12169", "html_url": "https://github.com/langchain-ai/langchain/pull/12169", "diff_url": "https://github.com/langchain-ai/langchain/pull/12169.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12169.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12168
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12168/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12168/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12168/events
https://github.com/langchain-ai/langchain/pull/12168
1,957,736,180
PR_kwDOIPDwls5dj4lf
12,168
feat: Add Client Info to available Google Cloud Clients
{ "login": "holtskinner", "id": 13262395, "node_id": "MDQ6VXNlcjEzMjYyMzk1", "avatar_url": "https://avatars.githubusercontent.com/u/13262395?v=4", "gravatar_id": "", "url": "https://api.github.com/users/holtskinner", "html_url": "https://github.com/holtskinner", "followers_url": "https://api.github.com/users/holtskinner/followers", "following_url": "https://api.github.com/users/holtskinner/following{/other_user}", "gists_url": "https://api.github.com/users/holtskinner/gists{/gist_id}", "starred_url": "https://api.github.com/users/holtskinner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/holtskinner/subscriptions", "organizations_url": "https://api.github.com/users/holtskinner/orgs", "repos_url": "https://api.github.com/users/holtskinner/repos", "events_url": "https://api.github.com/users/holtskinner/events{/privacy}", "received_events_url": "https://api.github.com/users/holtskinner/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
4
2023-10-23T18:12:10
2023-10-24T17:20:41
2023-10-24T15:49:12
CONTRIBUTOR
null
- This is used internally to gather aggregate usage metrics for the LangChain integrations - Note: This cannot be added to some of the Vertex AI integrations at this time because the SDK doesn't allow overriding the [`ClientInfo`](https://googleapis.dev/python/google-api-core/latest/client_info.html#module-google.api_core.client_info) - Added to: - BigQuery - Google Cloud Storage - Document AI - Vertex AI Model Garden - Document AI Warehouse - Vertex AI Search - Vertex AI Matching Engine (Cloud Storage Client) @baskaryan, @eyurtsev, @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12168/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12168/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12168", "html_url": "https://github.com/langchain-ai/langchain/pull/12168", "diff_url": "https://github.com/langchain-ai/langchain/pull/12168.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12168.patch", "merged_at": "2023-10-24T15:49:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/12167
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12167/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12167/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12167/events
https://github.com/langchain-ai/langchain/issues/12167
1,957,733,689
I_kwDOIPDwls50sKU5
12,167
Issue: View context used in query in ConversationalRetrievalChain
{ "login": "Anaudia", "id": 111882886, "node_id": "U_kgDOBqsyhg", "avatar_url": "https://avatars.githubusercontent.com/u/111882886?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Anaudia", "html_url": "https://github.com/Anaudia", "followers_url": "https://api.github.com/users/Anaudia/followers", "following_url": "https://api.github.com/users/Anaudia/following{/other_user}", "gists_url": "https://api.github.com/users/Anaudia/gists{/gist_id}", "starred_url": "https://api.github.com/users/Anaudia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Anaudia/subscriptions", "organizations_url": "https://api.github.com/users/Anaudia/orgs", "repos_url": "https://api.github.com/users/Anaudia/repos", "events_url": "https://api.github.com/users/Anaudia/events{/privacy}", "received_events_url": "https://api.github.com/users/Anaudia/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
2
2023-10-23T18:10:39
2023-10-23T19:15:11
null
NONE
null
### Issue you'd like to raise. How can I see the context that was used to answer a specific question? from langchain.memory import ConversationBufferWindowMemory memory = ConversationBufferWindowMemory(k=3, memory_key="chat_history", return_messages=True) qa = ConversationalRetrievalChain.from_llm(llm_model, vector_store.as_retriever(search_type='similarity', search_kwargs={'k': 2}), memory=memory) query = "Can I as a manager fly business class?" ##predict with the model text = f"""[INST] <<SYS>> You are a HR-assistant that answers questions: <</SYS>> {query} [/INST] """ result = qa({"question": text}) result ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12167/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/12167/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12166
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12166/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12166/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12166/events
https://github.com/langchain-ai/langchain/issues/12166
1,957,670,819
I_kwDOIPDwls50r6-j
12,166
mypy linting error in PyPDFParser with pypdf 3.16.4
{ "login": "schadem", "id": 45048633, "node_id": "MDQ6VXNlcjQ1MDQ4NjMz", "avatar_url": "https://avatars.githubusercontent.com/u/45048633?v=4", "gravatar_id": "", "url": "https://api.github.com/users/schadem", "html_url": "https://github.com/schadem", "followers_url": "https://api.github.com/users/schadem/followers", "following_url": "https://api.github.com/users/schadem/following{/other_user}", "gists_url": "https://api.github.com/users/schadem/gists{/gist_id}", "starred_url": "https://api.github.com/users/schadem/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/schadem/subscriptions", "organizations_url": "https://api.github.com/users/schadem/orgs", "repos_url": "https://api.github.com/users/schadem/repos", "events_url": "https://api.github.com/users/schadem/events{/privacy}", "received_events_url": "https://api.github.com/users/schadem/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
1
2023-10-23T17:34:36
2023-10-23T17:40:41
null
CONTRIBUTOR
null
### System Info make lint errors ``` make lint ./scripts/check_pydantic.sh . ./scripts/check_imports.sh poetry run ruff . [ "." = "" ] || poetry run black . --check All done! ✨ 🍰 ✨ 1866 files would be left unchanged. [ "." = "" ] || poetry run mypy . langchain/document_loaders/parsers/pdf.py:95: error: "PdfObject" has no attribute "keys" [attr-defined] langchain/document_loaders/parsers/pdf.py:98: error: Value of type "PdfObject" is not indexable [index] Found 2 errors in 1 file (checked 1863 source files) make: *** [lint] Error 1``` for line 95: ``` if not self.extract_images or "/XObject" not in page["/Resources"].keys(): ``` and line 98: ``` xObject = page["/Resources"]["/XObject"].get_object() ``` on master 7c4f340cc, v0.320 commented with # type: ignore for my PR, but keeping here as reference to fix ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```make lint``` ### Expected behavior no mypy error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12166/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12166/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12165
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12165/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12165/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12165/events
https://github.com/langchain-ai/langchain/issues/12165
1,957,660,279
I_kwDOIPDwls50r4Z3
12,165
For New Contributors: Use SecretStr for api_keys
{ "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 }
[]
closed
false
null
[]
null
56
2023-10-23T17:29:51
2024-01-07T21:13:38
2023-12-05T23:42:01
COLLABORATOR
null
Updated: 20233-12-06 Hello everyone! thank you all for your contributions! We've made a lot of progress with SecretStrs in the code base. First time contributors -- hope you had fun learning how to work in the code base and thanks for putting in the time. All contributors -- thanks for all your efforts in improving LangChain. We'll create a new first time issue in a few months. ------ Hello LangChain community, We're always happy to see more folks getting involved in contributing to the LangChain codebase. This is a good first issue if you want to learn more about how to set up for development in the LangChain codebase. ## Goal Your contribution will make it safer to print out a LangChain object without having any secrets included in raw format in the string representation. ## Set up for development Prior to making any changes in the code: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md Make sure you're able to test, format, lint from `langchain/libs/langchain` ```sh make test ``` ```sh make format ``` ```sh make lint ``` ## Shall you accept Shall you accept this challenge, please claim one (and only one) of the modules from the list below as one that you will be working on, and respond to this issue. Once you've made the required code changes, open a PR and link to this issue. ## Acceptance Criteria - invoking str or repr on the the object does not show the secret key Integration test for the code updated to include tests that: - confirms the object can be initialized with an API key provided via the initializer - confirms the object can be initialized with an API key provided via an env variable Confirm that it works: - either re-run notebook for the given object or else add an appropriate test that confirms that the actual secret is used appropriately (i.e.,`.get_secret_value()`) **If your code does not use `get_secret_value()` somewhere, then it probably contains a bug!** ## Modules - [ ] langchain/chat_models/anyscale.py @aidoskanapyanov - [ ] langchain/chat_models/azure_openai.py @onesolpark - [x] langchain/chat_models/azureml_endpoint.py @fyasla - [ ] langchain/chat_models/baichuan.py - [ ] langchain/chat_models/everlyai.py @sfreisthler - [x] langchain/chat_models/fireworks.py @nepalprabin - [ ] langchain/chat_models/google_palm.py @faisalt14 - [ ] langchain/chat_models/javelin_ai_gateway.py - [ ] langchain/chat_models/jinachat.py - [ ] langchain/chat_models/konko.py - [ ] langchain/chat_models/litellm.py - [ ] langchain/chat_models/openai.py @AnasKhan0607 - [ ] langchain/chat_models/tongyi.py - [ ] langchain/llms/ai21.py - [x] langchain/llms/aleph_alpha.py @slangenbach - [ ] langchain/llms/anthropic.py - [ ] langchain/llms/anyscale.py @aidoskanapyanov - [ ] langchain/llms/arcee.py - [x] langchain/llms/azureml_endpoint.py - [ ] langchain/llms/bananadev.py - [ ] langchain/llms/cerebriumai.py - [ ] langchain/llms/cohere.py @arunsathiya - [ ] langchain/llms/edenai.py @kristinspenc - [ ] langchain/llms/fireworks.py - [ ] langchain/llms/forefrontai.py - [ ] langchain/llms/google_palm.py @Harshil-Patel28 - [ ] langchain/llms/gooseai.py - [ ] langchain/llms/javelin_ai_gateway.py - [ ] langchain/llms/minimax.py - [ ] langchain/llms/nlpcloud.py - [ ] langchain/llms/openai.py @HassanA01 - [ ] langchain/llms/petals.py @akshatvishu - [ ] langchain/llms/pipelineai.py - [ ] langchain/llms/predibase.py - [ ] langchain/llms/stochasticai.py - [x] langchain/llms/symblai_nebula.py @praveenv - [ ] langchain/llms/together.py - [ ] langchain/llms/tongyi.py - [ ] langchain/llms/writer.py @ommirzaei - [ ] langchain/llms/yandex.py ### Motivation Prevent secrets from being printed out when printing the given langchain object. ### Your contribution Please sign up by responding to this issue and including the name of the module.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12165/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12165/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12164
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12164/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12164/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12164/events
https://github.com/langchain-ai/langchain/pull/12164
1,957,588,185
PR_kwDOIPDwls5djYp5
12,164
Update deprecated `langchain` imports with suggested new paths.
{ "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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-10-23T16:48:00
2023-10-23T17:52:10
2023-10-23T17:52:09
COLLABORATOR
null
Let's help our users find the proper import to use instead of the deprecated top-level ones.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12164/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12164/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12164", "html_url": "https://github.com/langchain-ai/langchain/pull/12164", "diff_url": "https://github.com/langchain-ai/langchain/pull/12164.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12164.patch", "merged_at": "2023-10-23T17:52:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/12163
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12163/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12163/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12163/events
https://github.com/langchain-ai/langchain/issues/12163
1,957,544,509
I_kwDOIPDwls50rcI9
12,163
OpenAPI Spec - reduce_openapi_spec - maximum recursion depth exceeded
{ "login": "Cyb3rWard0g", "id": 9653181, "node_id": "MDQ6VXNlcjk2NTMxODE=", "avatar_url": "https://avatars.githubusercontent.com/u/9653181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Cyb3rWard0g", "html_url": "https://github.com/Cyb3rWard0g", "followers_url": "https://api.github.com/users/Cyb3rWard0g/followers", "following_url": "https://api.github.com/users/Cyb3rWard0g/following{/other_user}", "gists_url": "https://api.github.com/users/Cyb3rWard0g/gists{/gist_id}", "starred_url": "https://api.github.com/users/Cyb3rWard0g/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Cyb3rWard0g/subscriptions", "organizations_url": "https://api.github.com/users/Cyb3rWard0g/orgs", "repos_url": "https://api.github.com/users/Cyb3rWard0g/repos", "events_url": "https://api.github.com/users/Cyb3rWard0g/events{/privacy}", "received_events_url": "https://api.github.com/users/Cyb3rWard0g/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": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
2
2023-10-23T16:23:35
2023-10-23T17:57:45
null
NONE
null
### Issue you'd like to raise. Hello team! I am new to the OpenAPI Specs Toolkit. I am trying to build an OpenAPI Agent Planner for the Microsoft Graph API. The OpenAPI specs can be found here: https://github.com/microsoftgraph/msgraph-metadata/blob/master/openapi/v1.0/openapi.yaml . I downloaded the YAML file and followed this notebook: https://python.langchain.com/docs/integrations/toolkits/openapi#1st-example-hierarchical-planning-agent . ```python import os import yaml from langchain.agents.agent_toolkits.openapi.spec import reduce_openapi_spec current_directory = os.path.abspath('') data_directory = os.path.join(current_directory, "data") msgraph_api_file = os.path.join(data_directory, "msgraph-openapi.yaml") raw_msgraph_api_spec = yaml.load(open(msgraph_api_file,encoding='utf-8').read(), Loader=yaml.Loader) msgraph_api_spec = reduce_openapi_spec(raw_msgraph_api_spec) ``` Does anyone know how to handle large OpenAPI Specs? I ran the following to read my OpenAPI YAML spec and when using the `reduce_openapi_spec` module, I get the following error below: `RecursionError: maximum recursion depth exceeded while calling a Python object` Is there a setting I need to change in LangChain? Please and thank you for your help in advance. I believe this issue is before I run into the following token limit, right? https://github.com/langchain-ai/langchain/issues/2786 ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12163/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12163/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12162
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12162/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12162/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12162/events
https://github.com/langchain-ai/langchain/pull/12162
1,957,510,125
PR_kwDOIPDwls5djHvz
12,162
Text-to-SQL + semantic search
{ "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": 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-10-23T16:05:03
2023-11-01T23:25:05
2023-11-01T23:25:04
COLLABORATOR
null
Querying using standard SQL queries with [PGVector](https://github.com/pgvector/pgvector) extension for semantic search.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12162/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12162/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12162", "html_url": "https://github.com/langchain-ai/langchain/pull/12162", "diff_url": "https://github.com/langchain-ai/langchain/pull/12162.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12162.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12161
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12161/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12161/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12161/events
https://github.com/langchain-ai/langchain/pull/12161
1,957,496,159
PR_kwDOIPDwls5djEu3
12,161
bump 321
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-10-23T15:57:14
2023-10-23T16:49:39
2023-10-23T16:49:38
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12161/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12161/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12161", "html_url": "https://github.com/langchain-ai/langchain/pull/12161", "diff_url": "https://github.com/langchain-ai/langchain/pull/12161.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12161.patch", "merged_at": "2023-10-23T16:49:38" }
https://api.github.com/repos/langchain-ai/langchain/issues/12160
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12160/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12160/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12160/events
https://github.com/langchain-ai/langchain/issues/12160
1,957,467,852
I_kwDOIPDwls50rJbM
12,160
JsonSpec `keys` method doesn't handle indexing lists properly
{ "login": "gcardoso2314", "id": 22494459, "node_id": "MDQ6VXNlcjIyNDk0NDU5", "avatar_url": "https://avatars.githubusercontent.com/u/22494459?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gcardoso2314", "html_url": "https://github.com/gcardoso2314", "followers_url": "https://api.github.com/users/gcardoso2314/followers", "following_url": "https://api.github.com/users/gcardoso2314/following{/other_user}", "gists_url": "https://api.github.com/users/gcardoso2314/gists{/gist_id}", "starred_url": "https://api.github.com/users/gcardoso2314/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gcardoso2314/subscriptions", "organizations_url": "https://api.github.com/users/gcardoso2314/orgs", "repos_url": "https://api.github.com/users/gcardoso2314/repos", "events_url": "https://api.github.com/users/gcardoso2314/events{/privacy}", "received_events_url": "https://api.github.com/users/gcardoso2314/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
0
2023-10-23T15:41:45
2023-10-23T15:43:53
null
NONE
null
There's an issue when using JsonSpec that it can't handle the case where it indexes a list with `0` because in [line 52](https://github.com/langchain-ai/langchain/blob/d0505c0d4755d8cbe62a8ddee68f53a5cb330892/libs/langchain/langchain/tools/json/tool.py#L52) it checks `if i` and since `i==0` it returns `False`. Instead, I believe this should check for purely existence of `i` as a string or int.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12160/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12160/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12159
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12159/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12159/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12159/events
https://github.com/langchain-ai/langchain/pull/12159
1,957,352,596
PR_kwDOIPDwls5diliK
12,159
Expose configuration options in GraphCypherQAChain
{ "login": "sudranga", "id": 12044110, "node_id": "MDQ6VXNlcjEyMDQ0MTEw", "avatar_url": "https://avatars.githubusercontent.com/u/12044110?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sudranga", "html_url": "https://github.com/sudranga", "followers_url": "https://api.github.com/users/sudranga/followers", "following_url": "https://api.github.com/users/sudranga/following{/other_user}", "gists_url": "https://api.github.com/users/sudranga/gists{/gist_id}", "starred_url": "https://api.github.com/users/sudranga/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sudranga/subscriptions", "organizations_url": "https://api.github.com/users/sudranga/orgs", "repos_url": "https://api.github.com/users/sudranga/repos", "events_url": "https://api.github.com/users/sudranga/events{/privacy}", "received_events_url": "https://api.github.com/users/sudranga/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2023-10-23T14:47:06
2023-10-24T16:52:56
2023-10-24T16:52:56
CONTRIBUTOR
null
Allows for passing arguments into the LLM chains used by the GraphCypherQAChain. This is to address a request by a user to include memory in the Cypher creating chain. Will keep the prompt variables as-is to be backward compatible. But, would be a good idea to deprecate them and use the **kwargs variables. Added a test case. In general, I think it would be good for any chain to automatically pass in a readonlymemory(of its input) to its subchains whilist allowing for an override. But, this would be a different change.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12159/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12159/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12159", "html_url": "https://github.com/langchain-ai/langchain/pull/12159", "diff_url": "https://github.com/langchain-ai/langchain/pull/12159.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12159.patch", "merged_at": "2023-10-24T16:52:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/12158
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12158/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12158/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12158/events
https://github.com/langchain-ai/langchain/issues/12158
1,957,280,320
I_kwDOIPDwls50qbpA
12,158
StructuredChatOutputParser regex not accounting for space
{ "login": "Javed6234", "id": 32278192, "node_id": "MDQ6VXNlcjMyMjc4MTky", "avatar_url": "https://avatars.githubusercontent.com/u/32278192?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Javed6234", "html_url": "https://github.com/Javed6234", "followers_url": "https://api.github.com/users/Javed6234/followers", "following_url": "https://api.github.com/users/Javed6234/following{/other_user}", "gists_url": "https://api.github.com/users/Javed6234/gists{/gist_id}", "starred_url": "https://api.github.com/users/Javed6234/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Javed6234/subscriptions", "organizations_url": "https://api.github.com/users/Javed6234/orgs", "repos_url": "https://api.github.com/users/Javed6234/repos", "events_url": "https://api.github.com/users/Javed6234/events{/privacy}", "received_events_url": "https://api.github.com/users/Javed6234/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
1
2023-10-23T14:15:02
2023-10-27T09:37:53
2023-10-27T09:37:53
NONE
null
### System Info Langchain version: 0.0.320 Python 3.9.6 Issue: The LLM output ` ```json \n{\n \"action\": \"...``` ` for a StructuredChatAgent using StructuredChatOutputParser. The regex in the parser `re.compile(r"```(?:json)?\n(.*?)```", re.DOTALL)` does not allow for a space after `json`. LLM: Claude v2 ### 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 - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction create an agent using StructuredChatAgent and a tool that is called by the agent. If the output from the LLM contains a space after `json`, it will call `AgentFinish` ### Expected behavior The expected behaviour is that the output should match the regex.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12158/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12158/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12157
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12157/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12157/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12157/events
https://github.com/langchain-ai/langchain/issues/12157
1,957,182,305
I_kwDOIPDwls50qDth
12,157
Agent is not stopping after each answer
{ "login": "mailtosagar", "id": 16096109, "node_id": "MDQ6VXNlcjE2MDk2MTA5", "avatar_url": "https://avatars.githubusercontent.com/u/16096109?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mailtosagar", "html_url": "https://github.com/mailtosagar", "followers_url": "https://api.github.com/users/mailtosagar/followers", "following_url": "https://api.github.com/users/mailtosagar/following{/other_user}", "gists_url": "https://api.github.com/users/mailtosagar/gists{/gist_id}", "starred_url": "https://api.github.com/users/mailtosagar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mailtosagar/subscriptions", "organizations_url": "https://api.github.com/users/mailtosagar/orgs", "repos_url": "https://api.github.com/users/mailtosagar/repos", "events_url": "https://api.github.com/users/mailtosagar/events{/privacy}", "received_events_url": "https://api.github.com/users/mailtosagar/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
1
2023-10-23T13:32:40
2023-10-23T13:46:16
null
NONE
null
### System Info Hi, I am working on a student teacher model . I am running into a problem where I agent does not generate final answer after the expected observations. Below is my code and output Code ``` assignment_instruction_2 = """ 1. Ask his name and then welcome him 2. Ask the topic he wants to understand 3. Ask about his understanding about the topic 3. Let him answer 4. Then take out the relevant information from the get_next_content tool 5. If it is incomplete then tell him complete answer """ FORMAT_INSTRUCTIONS = f"""Use the following format: Question: the input question you must answer Thought: you should always think about what to do Action: the action to take, should be one of [{'get_topics', 'get_next_content', 'get_topic_tool'}] Action Input: the input to the action Observation: the detailed,at most comprehensive result of the action ... (this Thought/Action/Action Input/Observation can repeat N times) Thought: I now know the final answer based on my observation, i do not need anything more Final Answer: the final answer to the original input question is the full detailed explanation from the Observation provided as bullet points. You have to provide the answer maximum after 2 Thoughts. """ content_assignment = f"""You are the author of the book, You will be asked an assigenment by the user, which are typically students only. help them to understand the topic according to the instructions delimited by /* */. follow them sequestially /*{assignment_instruction_2} */ memory_assignment = ConversationBufferMemory(memory_key="chat_history", return_messages=True) llm_assignment = ChatOpenAI(openai_api_key=os.getenv("OPENAI_API_KEY"), temperature=0, model = "gpt-4") agent_chain_assignment = initialize_agent( tools, llm_assignment, agent=AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION, verbose=True, memory=memory_assignment, max_iterations=3, # early_stopping_method="generate", format_instructions=FORMAT_INSTRUCTIONS, agent_kwargs={"system_message": content_assignment}, handle_parsing_errors=_handle_error ) print("<================= TOPIC Understand AGENT ====================>") while(True): user_message = input("User: ") if user_message == 'exit': break response = agent_chain_assignment.run(user_message) print("LLM : ",response) print("===============================") ``` Ouput: ``` ``` <================= TOPIC Understand AGENT ====================> User: hi, sagar > Entering new AgentExecutor chain... ```json { "action": "Final Answer", "action_input": "Hello Sagar, welcome! What topic would you like to understand better today?" } ``` > Finished chain. LLM : Hello Sagar, welcome! What topic would you like to understand better today? =============================== User: farming > Entering new AgentExecutor chain... Could not parse LLM output: That's a broad topic, Sagar. Could you tell me what you already understand about farming? This will help me provide you with the most relevant information. Observation: Could not parse LLM output: That's a broad topic, Thought:Could not parse LLM output: I'm sorry for the confusion, Sagar. You mentioned that you want to understand more about farming. Could you please specify what exactly you know about farming? This will help me to provide you with the most relevant information. Observation: Could not parse LLM output: I'm sorry for the conf Thought:Could not parse LLM output: I'm sorry for the confusion, Sagar. You mentioned that you want to understand more about farming. Could you please specify what exactly you know about farming? This will help me to provide you with the most relevant information. Observation: Could not parse LLM output: I'm sorry for the conf Thought: > Finished chain. LLM : Agent stopped due to iteration limit or time limit. =============================== ``` ``` It was supposed to output the final answer after the first answer (right after the user said "farming"). But it is running in loop and sometime it also consider that the user have already answered. Can I make some corrections in the code where I can agent produce final answer right where it needs too. Thanks, Sagar ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Provided in the question itself ### Expected behavior provided in the explaination
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12157/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12157/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12156
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12156/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12156/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12156/events
https://github.com/langchain-ai/langchain/issues/12156
1,957,115,754
I_kwDOIPDwls50pzdq
12,156
Langchain crashes when retrieving results from vertexai codey models
{ "login": "northdpole", "id": 1583262, "node_id": "MDQ6VXNlcjE1ODMyNjI=", "avatar_url": "https://avatars.githubusercontent.com/u/1583262?v=4", "gravatar_id": "", "url": "https://api.github.com/users/northdpole", "html_url": "https://github.com/northdpole", "followers_url": "https://api.github.com/users/northdpole/followers", "following_url": "https://api.github.com/users/northdpole/following{/other_user}", "gists_url": "https://api.github.com/users/northdpole/gists{/gist_id}", "starred_url": "https://api.github.com/users/northdpole/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/northdpole/subscriptions", "organizations_url": "https://api.github.com/users/northdpole/orgs", "repos_url": "https://api.github.com/users/northdpole/repos", "events_url": "https://api.github.com/users/northdpole/events{/privacy}", "received_events_url": "https://api.github.com/users/northdpole/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-10-23T13:02:18
2023-10-23T13:04:34
null
CONTRIBUTOR
null
### System Info Hey folks, I think i stumbled on a bug (or i'm using langchain wrong) Langchain version : 0.0.320 Platform Ubuntu 23.04 Python: 3.11.4 ### Who can help? @hwchase17 , @agola11 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Run the following: ` llm = llms.VertexAI(model_name="code-bison@001", max_output_tokens=1000, temperature=0.0) prediction = llm.predict(""" write a fibonacci sequence in python""") from pprint import pprint pprint(prediction)` ### Expected behavior We get a prediction (adding more info since the form has ran out of fields) I think the bug is in [llms/vertexai.py:301](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/llms/vertexai.py#L301C23-L301C23) . Variable res is a TextGenerationResponse as opposed to MultiCandidateTextGenerationResponse Hence there are no "candidates" as you would expect from a chat model. This happens because: Google's sdk (vertexai/language_models_language_models.py) method: >_ChatSessionBase. _parse_chat_prediction_response returns a `MultiCandidateTextGenerationResponse` but both `CodeChatSession` and `CodeGenerationModel` return a `TextGenerationResponse` I think the fix might be replacing `generations.append([_response_to_generation(r) for r in res.candidates])` with ``` if self.is_codey_model: generations.append([_response_to_generation(res)]) else: generations.append([_response_to_generation(r) for r in res.candidates]) ``` happy to send a pr if I helps
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12156/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12156/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12154
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12154/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12154/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12154/events
https://github.com/langchain-ai/langchain/issues/12154
1,957,048,261
I_kwDOIPDwls50pi_F
12,154
MatchingEngine.add_texts() doesn't work
{ "login": "HajimeHirano", "id": 72591992, "node_id": "MDQ6VXNlcjcyNTkxOTky", "avatar_url": "https://avatars.githubusercontent.com/u/72591992?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HajimeHirano", "html_url": "https://github.com/HajimeHirano", "followers_url": "https://api.github.com/users/HajimeHirano/followers", "following_url": "https://api.github.com/users/HajimeHirano/following{/other_user}", "gists_url": "https://api.github.com/users/HajimeHirano/gists{/gist_id}", "starred_url": "https://api.github.com/users/HajimeHirano/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HajimeHirano/subscriptions", "organizations_url": "https://api.github.com/users/HajimeHirano/orgs", "repos_url": "https://api.github.com/users/HajimeHirano/repos", "events_url": "https://api.github.com/users/HajimeHirano/events{/privacy}", "received_events_url": "https://api.github.com/users/HajimeHirano/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-10-23T12:28:00
2023-11-19T18:10:42
2023-11-19T18:10:42
NONE
null
### System Info `langchain==0.0.320` ### 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 ```py from langchain.vectorstores import MatchingEngine texts = [ "The cat sat on", "the mat.", "I like to", "eat pizza for", "dinner.", "The sun sets", "in the west.", ] vector_store = MatchingEngine.from_components( texts=texts, project_id="<my_project_id>", region="<my_region>", gcs_bucket_uri="<my_gcs_bucket>", index_id="<my_matching_engine_index_id>", endpoint_id="<my_matching_engine_endpoint_id>", ) vector_store.add_texts(texts=texts) ``` ### Expected behavior I think line 136 in matching_engine.py should be ```py jsons.append(json_) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12154/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12154/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12153
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12153/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12153/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12153/events
https://github.com/langchain-ai/langchain/pull/12153
1,956,875,719
PR_kwDOIPDwls5dg9bR
12,153
fix: doc string of default params in chat_models, llm qianfan
{ "login": "danielhjz", "id": 5894042, "node_id": "MDQ6VXNlcjU4OTQwNDI=", "avatar_url": "https://avatars.githubusercontent.com/u/5894042?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danielhjz", "html_url": "https://github.com/danielhjz", "followers_url": "https://api.github.com/users/danielhjz/followers", "following_url": "https://api.github.com/users/danielhjz/following{/other_user}", "gists_url": "https://api.github.com/users/danielhjz/gists{/gist_id}", "starred_url": "https://api.github.com/users/danielhjz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danielhjz/subscriptions", "organizations_url": "https://api.github.com/users/danielhjz/orgs", "repos_url": "https://api.github.com/users/danielhjz/repos", "events_url": "https://api.github.com/users/danielhjz/events{/privacy}", "received_events_url": "https://api.github.com/users/danielhjz/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-10-23T10:44:33
2023-10-23T18:03:19
2023-10-23T18:03:18
CONTRIBUTOR
null
- **Description:** a fix of the doc string in Qianfan - **Issue:** no - **Dependencies:** no - **Tag maintainer:** @baskaryan - **Twitter handle:** no
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12153/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12153/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12153", "html_url": "https://github.com/langchain-ai/langchain/pull/12153", "diff_url": "https://github.com/langchain-ai/langchain/pull/12153.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12153.patch", "merged_at": "2023-10-23T18:03:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/12152
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12152/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12152/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12152/events
https://github.com/langchain-ai/langchain/pull/12152
1,956,860,680
PR_kwDOIPDwls5dg6J_
12,152
Dev qf
{ "login": "danielhjz", "id": 5894042, "node_id": "MDQ6VXNlcjU4OTQwNDI=", "avatar_url": "https://avatars.githubusercontent.com/u/5894042?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danielhjz", "html_url": "https://github.com/danielhjz", "followers_url": "https://api.github.com/users/danielhjz/followers", "following_url": "https://api.github.com/users/danielhjz/following{/other_user}", "gists_url": "https://api.github.com/users/danielhjz/gists{/gist_id}", "starred_url": "https://api.github.com/users/danielhjz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danielhjz/subscriptions", "organizations_url": "https://api.github.com/users/danielhjz/orgs", "repos_url": "https://api.github.com/users/danielhjz/repos", "events_url": "https://api.github.com/users/danielhjz/events{/privacy}", "received_events_url": "https://api.github.com/users/danielhjz/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-10-23T10:35:51
2023-10-23T10:36:36
2023-10-23T10:36:36
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12152/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12152/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12152", "html_url": "https://github.com/langchain-ai/langchain/pull/12152", "diff_url": "https://github.com/langchain-ai/langchain/pull/12152.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12152.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12151
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12151/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12151/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12151/events
https://github.com/langchain-ai/langchain/issues/12151
1,956,756,560
I_kwDOIPDwls50obxQ
12,151
CharacterTextSplitter return incorrect chunks
{ "login": "viethoangtranduong", "id": 36019296, "node_id": "MDQ6VXNlcjM2MDE5Mjk2", "avatar_url": "https://avatars.githubusercontent.com/u/36019296?v=4", "gravatar_id": "", "url": "https://api.github.com/users/viethoangtranduong", "html_url": "https://github.com/viethoangtranduong", "followers_url": "https://api.github.com/users/viethoangtranduong/followers", "following_url": "https://api.github.com/users/viethoangtranduong/following{/other_user}", "gists_url": "https://api.github.com/users/viethoangtranduong/gists{/gist_id}", "starred_url": "https://api.github.com/users/viethoangtranduong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/viethoangtranduong/subscriptions", "organizations_url": "https://api.github.com/users/viethoangtranduong/orgs", "repos_url": "https://api.github.com/users/viethoangtranduong/repos", "events_url": "https://api.github.com/users/viethoangtranduong/events{/privacy}", "received_events_url": "https://api.github.com/users/viethoangtranduong/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": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-10-23T09:37:40
2023-10-23T09:44:36
null
NONE
null
### System Info `langchain==0.0.320` Example file: https://drive.google.com/file/d/1zDj3VXohUO7x4udu9RY9KxWbzBUIrsvb/view?usp=sharing ``` from PyPDF2 import PdfReader from langchain.text_splitter import CharacterTextSplitter # Specify the PDF file to be processed pdf = "Deep Learning.pdf" # Initialize a PdfReader object to read the PDF file pdf_reader = PdfReader(pdf) # Initialize an empty string to store the extracted text from the PDF text = "" for i, page in enumerate(pdf_reader.pages): text += f" ### Page {i}:\n\n" + page.extract_text() assert text.count(" ### ") == 100 text_splitter = CharacterTextSplitter( separator=" ### ", ) chunks = text_splitter.split_text(text) len(chunks) ## = 76 ``` Length chunks = 76 while there are 100 counts of the separator ` ### `. All the splits by ` ### ` look decent, so not sure why they are being merged strangely. Please help advice! Thanks! Thank you so much! ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` from PyPDF2 import PdfReader from langchain.text_splitter import CharacterTextSplitter # Specify the PDF file to be processed pdf = "Deep Learning.pdf" # Initialize a PdfReader object to read the PDF file pdf_reader = PdfReader(pdf) # Initialize an empty string to store the extracted text from the PDF text = "" for i, page in enumerate(pdf_reader.pages): text += f" ### Page {i}:\n\n" + page.extract_text() assert text.count(" ### ") == 100 text_splitter = CharacterTextSplitter( separator=" ### ", ) chunks = text_splitter.split_text(text) len(chunks) ## = 76 ``` ### Expected behavior `len(chunks) == 100`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12151/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12151/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12150
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12150/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12150/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12150/events
https://github.com/langchain-ai/langchain/issues/12150
1,956,747,660
I_kwDOIPDwls50oZmM
12,150
LlamaCpp truncates the response from LLM, and CTransformers gives a token overrun error
{ "login": "DimmNet", "id": 30796320, "node_id": "MDQ6VXNlcjMwNzk2MzIw", "avatar_url": "https://avatars.githubusercontent.com/u/30796320?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DimmNet", "html_url": "https://github.com/DimmNet", "followers_url": "https://api.github.com/users/DimmNet/followers", "following_url": "https://api.github.com/users/DimmNet/following{/other_user}", "gists_url": "https://api.github.com/users/DimmNet/gists{/gist_id}", "starred_url": "https://api.github.com/users/DimmNet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DimmNet/subscriptions", "organizations_url": "https://api.github.com/users/DimmNet/orgs", "repos_url": "https://api.github.com/users/DimmNet/repos", "events_url": "https://api.github.com/users/DimmNet/events{/privacy}", "received_events_url": "https://api.github.com/users/DimmNet/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
1
2023-10-23T09:32:40
2023-11-07T10:43:57
null
NONE
null
### System Info Ubuntu: 22.04.3 LTS python: 3.10 pip: 22.0.2 langchain: 0.0.319 vector stores: faiss llm model: llama-2-13b-chat.Q4_K_M.gguf and mistral-7b-openorca.Q4_K_M.gguf embeddings model: thenlper/gte-large ### Who can help? anyone ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Prompt is created via PromptTemplate. In Prompt: ``` You are a financial consultant. Try to answer the question based on the information below. If you cannot answer the question based on the information, say that you cannot find the answer or are unable to find the answer. Therefore, try to understand the context of the question and answer only on the basis of the information given. Do not write answers that are irrelevant. If you do not have enough information to end a sentence with a period, then do not write that sentence. Context: {context} Question: {question} Helpful answer: ``` 2. Load vectoron storage using HuggingFaceEmbeddings and FAISS: ``` embeddings = HuggingFaceEmbeddings(model_name="thenlper/gte-large", model_kwargs={'device': 'cpu'}) db = FAISS.load_local(persist_directory, embeddings) retriever = db.as_retriever(search_kwargs={"k": 2}) ``` 3. Load the LLM via LlamaCpp or CTransformers LlamaCpp code: ``` callback_manager = CallbackManager([StreamingStdOutCallbackHandler()]) llm = LlamaCpp( model_path=model_path, n_gpu_layers=-1, use_mlock=True, n_batch=512, n_ctx=2048, temperature=0.8, f16_kv=True, callback_manager=callback_manager, verbose=True, top_k=1 ) ``` CTransformers Code: ``` callback_manager = CallbackManager([StreamingStdOutCallbackHandler()]) llm = CTransformers( model=model_path, model_type="llama", config={'max_new_tokens': 2048, 'temperature': 0.8}, callbacks=callback_manager ) ``` 4. Create Retriever using RetrievalQA: ``` qa = RetrievalQA.from_chain_type( llm=llm, chain_type="stuff", retriever=retriever, return_source_documents=return_source_documents, chain_type_kwargs={"prompt": custom_prompt} ) ``` 5. Query the created retriever: qa("your question") ### Expected behavior I look forward to receiving a completed response from LLM. However, when using LlamaCpp, the response reaches about 1000 characters and ends. The last sentence from LLM is abruptly cut off. When CTransformers are used, the response can reach different lengths, after which an error occurs: "Number of tokens (513) exceeded maximum context length (512)" and there are many of these errors. After that I get a response where the beginning is correct and then the same words are repeated. The repetition of words starts from the moment the errors about the number of tokens begin.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12150/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12150/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12149
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12149/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12149/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12149/events
https://github.com/langchain-ai/langchain/issues/12149
1,956,707,298
I_kwDOIPDwls50oPvi
12,149
LCEL not working with MultiPromptChain
{ "login": "snao", "id": 48629368, "node_id": "MDQ6VXNlcjQ4NjI5MzY4", "avatar_url": "https://avatars.githubusercontent.com/u/48629368?v=4", "gravatar_id": "", "url": "https://api.github.com/users/snao", "html_url": "https://github.com/snao", "followers_url": "https://api.github.com/users/snao/followers", "following_url": "https://api.github.com/users/snao/following{/other_user}", "gists_url": "https://api.github.com/users/snao/gists{/gist_id}", "starred_url": "https://api.github.com/users/snao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/snao/subscriptions", "organizations_url": "https://api.github.com/users/snao/orgs", "repos_url": "https://api.github.com/users/snao/repos", "events_url": "https://api.github.com/users/snao/events{/privacy}", "received_events_url": "https://api.github.com/users/snao/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6134259614, "node_id": "LA_kwDOIPDwls8AAAABbaFfng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20lcel", "name": "area: lcel", "color": "38B1E8", "default": false, "description": "" } ]
open
false
null
[]
null
6
2023-10-23T09:10:57
2023-12-01T18:33:34
null
NONE
null
### System Info python == 3.10.12 langchain == 0.0.312 ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```open_llm = ChatOpenAI(temperature=0, openai_api_key=OPENAI_API_KEY, model_name='gpt-3.5-turbo-16k', max_tokens=3000) # test chain (LCEL) human_message = HumanMessagePromptTemplate.from_template('test prompt: {input}') system_message = SystemMessagePromptTemplate.from_template('system') all_messages = ChatPromptTemplate.from_messages([system_message, human_message]) test_chain = all_messages | open_llm | StrOutputParser() # LLMChain class MyLLMChain(LLMChain): output_key: str = "output" #: :meta private prompt_infos = [ { "name": "mastermind", "description": "for general questions.", "chain": MyLLMChain(llm=openai_chatbot, prompt=PromptTemplate(template='''{input}''', input_variables=["input"] )) }, { "name": "test", "description": "for testing", "chain": test_chain }] destinations = [f"{p['name']}: {p['description']}" for p in prompt_infos] destinations_str = "\n".join(destinations) router_template = MULTI_PROMPT_ROUTER_TEMPLATE.format(destinations=destinations_str) router_prompt = PromptTemplate( template=router_template, input_variables=["input"], # output_parser=OpenAIFunctionsAgentOutputParser() # output_parser=RouterOutputParser(), output_parser=OutputFixingParser.from_llm(parser=RouterOutputParser(), llm=openai_chatbot), ) router_chain = LLMRouterChain.from_llm(openai_chatbot, router_prompt) destination_chains = {} for p_info in prompt_infos: name = p_info["name"] chain = p_info["chain"] destination_chains[name] = chain default_chain = ConversationChain(llm=openai_chatbot, output_key="output") agent_yan_chain = MultiPromptChain( router_chain=router_chain, destination_chains=destination_chains, default_chain=default_chain, verbose=True ) ``` Error message: ``` ValidationError: 1 validation error for MultiPromptChain destination_chains -> test Can't instantiate abstract class Chain with abstract methods _call, input_keys, output_keys (type=type_error) ``` ### Expected behavior LCEL should work with MultiPromptChain
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12149/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/12149/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12147
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12147/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12147/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12147/events
https://github.com/langchain-ai/langchain/issues/12147
1,956,539,711
I_kwDOIPDwls50nm0_
12,147
Langchain Document schema explodes with FastAPI
{ "login": "FrancescoSaverioZuppichini", "id": 15908060, "node_id": "MDQ6VXNlcjE1OTA4MDYw", "avatar_url": "https://avatars.githubusercontent.com/u/15908060?v=4", "gravatar_id": "", "url": "https://api.github.com/users/FrancescoSaverioZuppichini", "html_url": "https://github.com/FrancescoSaverioZuppichini", "followers_url": "https://api.github.com/users/FrancescoSaverioZuppichini/followers", "following_url": "https://api.github.com/users/FrancescoSaverioZuppichini/following{/other_user}", "gists_url": "https://api.github.com/users/FrancescoSaverioZuppichini/gists{/gist_id}", "starred_url": "https://api.github.com/users/FrancescoSaverioZuppichini/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/FrancescoSaverioZuppichini/subscriptions", "organizations_url": "https://api.github.com/users/FrancescoSaverioZuppichini/orgs", "repos_url": "https://api.github.com/users/FrancescoSaverioZuppichini/repos", "events_url": "https://api.github.com/users/FrancescoSaverioZuppichini/events{/privacy}", "received_events_url": "https://api.github.com/users/FrancescoSaverioZuppichini/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-10-23T07:35:17
2023-10-23T13:17:32
2023-10-23T13:17:32
NONE
null
### System Info Python 3.11, langchain 0.0.315 and mac ### 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 - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Create a FastAPI endpoint/router ```python from fastapi import APIRouter, Response from pydantic import BaseModel from typing import Optional from langchain.schema import Document router = APIRouter() class QueryOut(BaseModel): answer: str sources: list[Document] @router.post("/query") async def get_answer(): sources = [Document(page_content="foo", metadata={"baa": "baaaa"})] return QueryOut(answer="answer", sources=sources) ``` Then call it and boom ```bash File "/Users/FRANCESCO.ZUPPICHINI/Documents/dbi_alphaai_knowledge_bot/.venv/lib/python3.11/site-packages/pydantic/main.py", line 164, in __init__ __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__) TypeError: BaseModel.validate() takes 2 positional arguments but 3 were given ``` Is this linked to the fact that langchain is still using pydantic v1? If so, I love you guys but put that 30M to good use 😄 ### Expected behavior Should not explode
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12147/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12147/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12146
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12146/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12146/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12146/events
https://github.com/langchain-ai/langchain/pull/12146
1,956,449,285
PR_kwDOIPDwls5dfhpr
12,146
10634: Added the capability to inject boto3 client in SagemakerEndpointEmbeddings
{ "login": "vikramshitole", "id": 1484349, "node_id": "MDQ6VXNlcjE0ODQzNDk=", "avatar_url": "https://avatars.githubusercontent.com/u/1484349?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vikramshitole", "html_url": "https://github.com/vikramshitole", "followers_url": "https://api.github.com/users/vikramshitole/followers", "following_url": "https://api.github.com/users/vikramshitole/following{/other_user}", "gists_url": "https://api.github.com/users/vikramshitole/gists{/gist_id}", "starred_url": "https://api.github.com/users/vikramshitole/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vikramshitole/subscriptions", "organizations_url": "https://api.github.com/users/vikramshitole/orgs", "repos_url": "https://api.github.com/users/vikramshitole/repos", "events_url": "https://api.github.com/users/vikramshitole/events{/privacy}", "received_events_url": "https://api.github.com/users/vikramshitole/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5959659008, "node_id": "LA_kwDOIPDwls8AAAABYzkuAA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws", "name": "integration: aws", "color": "C5DEF5", "default": false, "description": "Related to Amazon Web Services (AWS) integrations" } ]
closed
false
null
[]
null
2
2023-10-23T06:31:57
2023-10-23T19:08:26
2023-10-23T19:08:26
CONTRIBUTOR
null
**Description: Allow to inject boto3 client for Cross account access type of scenarios in using SagemakerEndpointEmbeddings and also updated the documentation for same in the sample notebook** **Issue:SagemakerEndpointEmbeddings cross account capability #10634 #10184** Dependencies: None Tag maintainer: Twitter handle:lethargicoder
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12146/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12146/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12146", "html_url": "https://github.com/langchain-ai/langchain/pull/12146", "diff_url": "https://github.com/langchain-ai/langchain/pull/12146.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12146.patch", "merged_at": "2023-10-23T19:08:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/12145
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12145/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12145/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12145/events
https://github.com/langchain-ai/langchain/pull/12145
1,956,390,512
PR_kwDOIPDwls5dfU7Q
12,145
Fix Typo in CONTRIBUTING.md file
{ "login": "DeepanshuProgrammer", "id": 110890939, "node_id": "U_kgDOBpwPuw", "avatar_url": "https://avatars.githubusercontent.com/u/110890939?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DeepanshuProgrammer", "html_url": "https://github.com/DeepanshuProgrammer", "followers_url": "https://api.github.com/users/DeepanshuProgrammer/followers", "following_url": "https://api.github.com/users/DeepanshuProgrammer/following{/other_user}", "gists_url": "https://api.github.com/users/DeepanshuProgrammer/gists{/gist_id}", "starred_url": "https://api.github.com/users/DeepanshuProgrammer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DeepanshuProgrammer/subscriptions", "organizations_url": "https://api.github.com/users/DeepanshuProgrammer/orgs", "repos_url": "https://api.github.com/users/DeepanshuProgrammer/repos", "events_url": "https://api.github.com/users/DeepanshuProgrammer/events{/privacy}", "received_events_url": "https://api.github.com/users/DeepanshuProgrammer/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-10-23T05:38:35
2023-10-23T18:53:04
2023-10-23T18:53:03
CONTRIBUTOR
null
Fix Type & add suitable pronoun in CONTRIBUTING.md file <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12145/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12145/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12145", "html_url": "https://github.com/langchain-ai/langchain/pull/12145", "diff_url": "https://github.com/langchain-ai/langchain/pull/12145.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12145.patch", "merged_at": "2023-10-23T18:53:03" }
https://api.github.com/repos/langchain-ai/langchain/issues/12144
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12144/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12144/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12144/events
https://github.com/langchain-ai/langchain/issues/12144
1,956,221,942
I_kwDOIPDwls50mZP2
12,144
How to show images from PDFs, PPT, DOCs documents as part of answer?
{ "login": "Chengyang852", "id": 81755002, "node_id": "MDQ6VXNlcjgxNzU1MDAy", "avatar_url": "https://avatars.githubusercontent.com/u/81755002?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Chengyang852", "html_url": "https://github.com/Chengyang852", "followers_url": "https://api.github.com/users/Chengyang852/followers", "following_url": "https://api.github.com/users/Chengyang852/following{/other_user}", "gists_url": "https://api.github.com/users/Chengyang852/gists{/gist_id}", "starred_url": "https://api.github.com/users/Chengyang852/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Chengyang852/subscriptions", "organizations_url": "https://api.github.com/users/Chengyang852/orgs", "repos_url": "https://api.github.com/users/Chengyang852/repos", "events_url": "https://api.github.com/users/Chengyang852/events{/privacy}", "received_events_url": "https://api.github.com/users/Chengyang852/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
1
2023-10-23T02:16:49
2023-10-23T02:23:22
null
NONE
null
### Issue you'd like to raise. Hello, I have this use-case where there are different types of documents. I can parse documents using document loaders using langchain. But, there are images also in these documents. I want to store them as metadata and if answer generated from a context chunk it show the image also. Please help. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12144/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12144/timeline
null
null
null
null