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/6964
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6964/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6964/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6964/events
https://github.com/langchain-ai/langchain/pull/6964
1,782,096,897
PR_kwDOIPDwls5UTwgR
6,964
Improve the alibaba cloud opensearch vector store documentation
{ "login": "zhaoshengbo", "id": 4787922, "node_id": "MDQ6VXNlcjQ3ODc5MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/4787922?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhaoshengbo", "html_url": "https://github.com/zhaoshengbo", "followers_url": "https://api.github.com/users/zhaoshengbo/followers", "following_url": "https://api.github.com/users/zhaoshengbo/following{/other_user}", "gists_url": "https://api.github.com/users/zhaoshengbo/gists{/gist_id}", "starred_url": "https://api.github.com/users/zhaoshengbo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhaoshengbo/subscriptions", "organizations_url": "https://api.github.com/users/zhaoshengbo/orgs", "repos_url": "https://api.github.com/users/zhaoshengbo/repos", "events_url": "https://api.github.com/users/zhaoshengbo/events{/privacy}", "received_events_url": "https://api.github.com/users/zhaoshengbo/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-06-30T08:12:18
2023-07-06T13:47:49
2023-07-06T13:47:49
CONTRIBUTOR
null
Based on user feedback, we have improved the Alibaba Cloud OpenSearch vector store documentation.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6964/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6964/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6964", "html_url": "https://github.com/langchain-ai/langchain/pull/6964", "diff_url": "https://github.com/langchain-ai/langchain/pull/6964.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6964.patch", "merged_at": "2023-07-06T13:47:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/6963
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6963/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6963/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6963/events
https://github.com/langchain-ai/langchain/issues/6963
1,782,079,348
I_kwDOIPDwls5qOF90
6,963
Adding support for URL Parameters in RequestsWrapper
{ "login": "s04", "id": 70141652, "node_id": "MDQ6VXNlcjcwMTQxNjUy", "avatar_url": "https://avatars.githubusercontent.com/u/70141652?v=4", "gravatar_id": "", "url": "https://api.github.com/users/s04", "html_url": "https://github.com/s04", "followers_url": "https://api.github.com/users/s04/followers", "following_url": "https://api.github.com/users/s04/following{/other_user}", "gists_url": "https://api.github.com/users/s04/gists{/gist_id}", "starred_url": "https://api.github.com/users/s04/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/s04/subscriptions", "organizations_url": "https://api.github.com/users/s04/orgs", "repos_url": "https://api.github.com/users/s04/repos", "events_url": "https://api.github.com/users/s04/events{/privacy}", "received_events_url": "https://api.github.com/users/s04/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-06-30T07:58:56
2023-10-15T16:05:43
2023-10-15T16:05:42
NONE
null
### Feature request I'd love to be able to extend the request URL with parameters. Currently I can only provide request headers. This does not cover my use case. ### Motivation Some APIs don't authenticate via headers and instead use URL parameters to provide API keys and Tokens. Example: [Trello API](https://developer.atlassian.com/cloud/trello/rest/api-group-actions/#api-group-actions) View first code snippet there for the action and you'll see. curl --request GET \ --url 'https://api.trello.com/1/actions/{id}?key=APIKey&token=APIToken' ### Your contribution I would need some handholding to create my first contribution here due to the testing suite but I've got some code I've tested locally. ```python class Requests(BaseModel): """Wrapper around requests to handle auth and async. The main purpose of this wrapper is to handle authentication (by saving headers) and enable easy async methods on the same base object. """ headers: Optional[Dict[str, str]] = None aiosession: Optional[aiohttp.ClientSession] = None url_params: Optional[Dict[str, str]] = None class Config: """Configuration for this pydantic object.""" extra = Extra.forbid arbitrary_types_allowed = True def get(self, url: str, **kwargs: Any) -> requests.Response: """GET the URL and return the text.""" if self.url_params: url = url + '&'.join([f'{k}={v}' for k, v in self.url_params.items()]) return requests.get(url, headers=self.headers, **kwargs) def post(self, url: str, data: Dict[str, Any], **kwargs: Any) -> requests.Response: """POST to the URL and return the text.""" if self.url_params: url = url + '&'.join([f'{k}={v}' for k, v in self.url_params.items()]) return requests.post(url, json=data, headers=self.headers, **kwargs) def patch(self, url: str, data: Dict[str, Any], **kwargs: Any) -> requests.Response: """PATCH the URL and return the text.""" if self.url_params: url = url + '&'.join([f'{k}={v}' for k, v in self.url_params.items()]) return requests.patch(url, json=data, headers=self.headers, **kwargs) def put(self, url: str, data: Dict[str, Any], **kwargs: Any) -> requests.Response: """PUT the URL and return the text.""" if self.url_params: url = url + '&'.join([f'{k}={v}' for k, v in self.url_params.items()]) return requests.put(url, json=data, headers=self.headers, **kwargs) def delete(self, url: str, **kwargs: Any) -> requests.Response: """DELETE the URL and return the text.""" if self.url_params: url = url + '&'.join([f'{k}={v}' for k, v in self.url_params.items()]) return requests.delete(url, headers=self.headers, **kwargs) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6963/reactions", "total_count": 3, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/6963/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6962
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6962/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6962/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6962/events
https://github.com/langchain-ai/langchain/pull/6962
1,782,073,084
PR_kwDOIPDwls5UTrUP
6,962
release v220
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/release", "name": "release", "color": "07D4BE", "default": false, "description": "" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-06-30T07:55:27
2023-06-30T13:52:10
2023-06-30T13:52:09
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6962/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6962/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6962", "html_url": "https://github.com/langchain-ai/langchain/pull/6962", "diff_url": "https://github.com/langchain-ai/langchain/pull/6962.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6962.patch", "merged_at": "2023-06-30T13:52:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/6961
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6961/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6961/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6961/events
https://github.com/langchain-ai/langchain/issues/6961
1,782,060,256
I_kwDOIPDwls5qOBTg
6,961
Enable CSVLoader to take list of columns as source_column (or metadata)
{ "login": "amani-acog", "id": 117151783, "node_id": "U_kgDOBvuYJw", "avatar_url": "https://avatars.githubusercontent.com/u/117151783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/amani-acog", "html_url": "https://github.com/amani-acog", "followers_url": "https://api.github.com/users/amani-acog/followers", "following_url": "https://api.github.com/users/amani-acog/following{/other_user}", "gists_url": "https://api.github.com/users/amani-acog/gists{/gist_id}", "starred_url": "https://api.github.com/users/amani-acog/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amani-acog/subscriptions", "organizations_url": "https://api.github.com/users/amani-acog/orgs", "repos_url": "https://api.github.com/users/amani-acog/repos", "events_url": "https://api.github.com/users/amani-acog/events{/privacy}", "received_events_url": "https://api.github.com/users/amani-acog/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
6
2023-06-30T07:44:50
2023-12-19T00:50:23
2023-12-19T00:50:22
NONE
null
### Feature request Please update the CSVLoader to take list of columns as source_column. ### Motivation This update will be be helpful, if the documents are embedded and used with vectordbs like Qdrant. As vectordbs like Qdrant offers filtering option, if the metadata is of Document object is used as payload then it will provide a great enhancement. ### Your contribution No
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6961/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6961/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6960
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6960/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6960/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6960/events
https://github.com/langchain-ai/langchain/pull/6960
1,782,038,070
PR_kwDOIPDwls5UTj1b
6,960
Bagatur/openllm ensure available
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-06-30T07:26:37
2023-06-30T07:54:24
2023-06-30T07:54:23
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6960/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6960/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6960", "html_url": "https://github.com/langchain-ai/langchain/pull/6960", "diff_url": "https://github.com/langchain-ai/langchain/pull/6960.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6960.patch", "merged_at": "2023-06-30T07:54:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/6959
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6959/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6959/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6959/events
https://github.com/langchain-ai/langchain/issues/6959
1,782,008,769
I_kwDOIPDwls5qN0vB
6,959
i try to connect mysql database,but it give me a error about llm value is not a valid dict(type=type_error.dict),how to solve the problem?
{ "login": "xiaohaihui-smart", "id": 57887444, "node_id": "MDQ6VXNlcjU3ODg3NDQ0", "avatar_url": "https://avatars.githubusercontent.com/u/57887444?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xiaohaihui-smart", "html_url": "https://github.com/xiaohaihui-smart", "followers_url": "https://api.github.com/users/xiaohaihui-smart/followers", "following_url": "https://api.github.com/users/xiaohaihui-smart/following{/other_user}", "gists_url": "https://api.github.com/users/xiaohaihui-smart/gists{/gist_id}", "starred_url": "https://api.github.com/users/xiaohaihui-smart/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xiaohaihui-smart/subscriptions", "organizations_url": "https://api.github.com/users/xiaohaihui-smart/orgs", "repos_url": "https://api.github.com/users/xiaohaihui-smart/repos", "events_url": "https://api.github.com/users/xiaohaihui-smart/events{/privacy}", "received_events_url": "https://api.github.com/users/xiaohaihui-smart/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
4
2023-06-30T07:02:07
2023-10-09T16:06:21
2023-10-09T16:06:20
NONE
null
### Issue you'd like to raise. from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.sql_database import SQLDatabase from transformers import AutoModel, AutoTokenizer model_name = ".\\langchain-models\\THUDM\\chatglm2-6b" local_model = AutoModel.from_pretrained(model_name, trust_remote_code=True) local_tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True) db = SQLDatabase.from_uri("mysql+pymysql://root:root@localhost/magic") toolkit = SQLDatabaseToolkit(db=db, llm=local_model, tokenizer=local_tokenizer) tables = toolkit.list_tables_sql_db() print(tables) Traceback (most recent call last): File "D:\chat\langchain-ChatGLM\test_sql.py", line 8, in <module> toolkit = SQLDatabaseToolkit(db=db, llm=local_model) File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__ pydantic.error_wrappers.ValidationError: 1 validation error for SQLDatabaseToolkit llm value is not a valid dict (type=type_error.dict) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6959/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/6959/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6958
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6958/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6958/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6958/events
https://github.com/langchain-ai/langchain/issues/6958
1,781,991,448
I_kwDOIPDwls5qNwgY
6,958
CharacterTextSplitter constanly generate chunks longer than given chunk_size
{ "login": "h-clickshift", "id": 117718271, "node_id": "U_kgDOBwQ8_w", "avatar_url": "https://avatars.githubusercontent.com/u/117718271?v=4", "gravatar_id": "", "url": "https://api.github.com/users/h-clickshift", "html_url": "https://github.com/h-clickshift", "followers_url": "https://api.github.com/users/h-clickshift/followers", "following_url": "https://api.github.com/users/h-clickshift/following{/other_user}", "gists_url": "https://api.github.com/users/h-clickshift/gists{/gist_id}", "starred_url": "https://api.github.com/users/h-clickshift/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/h-clickshift/subscriptions", "organizations_url": "https://api.github.com/users/h-clickshift/orgs", "repos_url": "https://api.github.com/users/h-clickshift/repos", "events_url": "https://api.github.com/users/h-clickshift/events{/privacy}", "received_events_url": "https://api.github.com/users/h-clickshift/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
4
2023-06-30T06:46:26
2023-12-13T16:08:43
2023-12-13T16:08:42
NONE
null
### Feature request CharacterTextSplitter split a size of 1GB code base with warnings exceed the log buffer, like ``` Created a chunk of size 2140, which is longer than the specified 900 Created a chunk of size 1269, which is longer than the specified 900 Created a chunk of size 1955, which is longer than the specified 900 Created a chunk of size 3410, which is longer than the specified 900 Created a chunk of size 1192, which is longer than the specified 900 Created a chunk of size 1392, which is longer than the specified 900 Created a chunk of size 1540, which is longer than the specified 900 - very very long... ``` Walking through the relvent code ``` def _merge_splits(self, splits: Iterable[str], separator: str) -> List[str]: # We now want to combine these smaller pieces into medium size # chunks to send to the LLM. separator_len = self._length_function(separator) docs = [] current_doc: List[str] = [] total = 0 for d in splits: _len = self._length_function(d) if ( total + _len + (separator_len if len(current_doc) > 0 else 0) > self._chunk_size ): if total > self._chunk_size: logger.warning( f"Created a chunk of size {total}, " f"which is longer than the specified {self._chunk_size}" ) if len(current_doc) > 0: doc = self._join_docs(current_doc, separator) if doc is not None: docs.append(doc) # Keep on popping if: # - we have a larger chunk than in the chunk overlap # - or if we still have any chunks and the length is long while total > self._chunk_overlap or ( total + _len + (separator_len if len(current_doc) > 0 else 0) > self._chunk_size and total > 0 ): total -= self._length_function(current_doc[0]) + ( separator_len if len(current_doc) > 1 else 0 ) current_doc = current_doc[1:] current_doc.append(d) total += _len + (separator_len if len(current_doc) > 1 else 0) doc = self._join_docs(current_doc, separator) if doc is not None: docs.append(doc) return docs ``` I know langchain try to keep semantic integrity of code language with language specific separtor. ### Motivation Can we just pop the last split once the `total > self._chunk_size` in `def _merge_splits(self, splits: Iterable[str], separator: str) -> List[str]:` ### Your contribution Maybe later I'll propose a PR
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6958/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/6958/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6957
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6957/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6957/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6957/events
https://github.com/langchain-ai/langchain/pull/6957
1,781,972,766
PR_kwDOIPDwls5UTWIv
6,957
Support for the spatial geometry datatype for databases
{ "login": "aksharahegde", "id": 22255990, "node_id": "MDQ6VXNlcjIyMjU1OTkw", "avatar_url": "https://avatars.githubusercontent.com/u/22255990?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aksharahegde", "html_url": "https://github.com/aksharahegde", "followers_url": "https://api.github.com/users/aksharahegde/followers", "following_url": "https://api.github.com/users/aksharahegde/following{/other_user}", "gists_url": "https://api.github.com/users/aksharahegde/gists{/gist_id}", "starred_url": "https://api.github.com/users/aksharahegde/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aksharahegde/subscriptions", "organizations_url": "https://api.github.com/users/aksharahegde/orgs", "repos_url": "https://api.github.com/users/aksharahegde/repos", "events_url": "https://api.github.com/users/aksharahegde/events{/privacy}", "received_events_url": "https://api.github.com/users/aksharahegde/received_events", "type": "User", "site_admin": false }
[ { "id": 5496111774, "node_id": "LA_kwDOIPDwls8AAAABR5gCng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work", "name": "needs work", "color": "F9D0C4", "default": false, "description": "PRs that need more work" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
5
2023-06-30T06:29:15
2023-11-15T19:06:25
2023-11-07T03:49:28
NONE
null
**Description** Support for the spatial geometry datatype for databases while creating embedding in SQLDatabaseChain. **Issue:** #5799 **Dependencies** Added **GeoAlchemy2** library @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6957/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/6957/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6957", "html_url": "https://github.com/langchain-ai/langchain/pull/6957", "diff_url": "https://github.com/langchain-ai/langchain/pull/6957.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6957.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6956
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6956/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6956/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6956/events
https://github.com/langchain-ai/langchain/issues/6956
1,781,940,281
I_kwDOIPDwls5qNkA5
6,956
ValueError: `run` not supported when there is not exactly one output key. Got ['output', 'intermediate_steps']
{ "login": "zhugexinxin", "id": 42615243, "node_id": "MDQ6VXNlcjQyNjE1MjQz", "avatar_url": "https://avatars.githubusercontent.com/u/42615243?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhugexinxin", "html_url": "https://github.com/zhugexinxin", "followers_url": "https://api.github.com/users/zhugexinxin/followers", "following_url": "https://api.github.com/users/zhugexinxin/following{/other_user}", "gists_url": "https://api.github.com/users/zhugexinxin/gists{/gist_id}", "starred_url": "https://api.github.com/users/zhugexinxin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhugexinxin/subscriptions", "organizations_url": "https://api.github.com/users/zhugexinxin/orgs", "repos_url": "https://api.github.com/users/zhugexinxin/repos", "events_url": "https://api.github.com/users/zhugexinxin/events{/privacy}", "received_events_url": "https://api.github.com/users/zhugexinxin/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
7
2023-06-30T05:52:27
2023-12-05T13:43:06
null
NONE
null
### Issue you'd like to raise. ``` agent = initialize_agent(tools, llm, agent="zero-shot-react-description", return_intermediate_steps=True, verbose=True) agent = initialize_agent(tools, llm, agent="zero-shot-react-description", return_intermediate_steps=True, memory=ConversationBufferMemory(memory_key="chat_history", input_key='input', output_key="output"), verbose=True) ``` https://python.langchain.com/docs/modules/agents/how_to/intermediate_steps <img width="857" alt="image" src="https://github.com/hwchase17/langchain/assets/42615243/9ea12e4b-1775-4114-a750-0625e1cf8302"> ### Suggestion: I don't know how to solve it!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6956/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6956/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6954
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6954/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6954/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6954/events
https://github.com/langchain-ai/langchain/issues/6954
1,781,805,088
I_kwDOIPDwls5qNDAg
6,954
Conversational Retrieval QA with sources cannot return source
{ "login": "zhangjunqiang", "id": 5388898, "node_id": "MDQ6VXNlcjUzODg4OTg=", "avatar_url": "https://avatars.githubusercontent.com/u/5388898?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhangjunqiang", "html_url": "https://github.com/zhangjunqiang", "followers_url": "https://api.github.com/users/zhangjunqiang/followers", "following_url": "https://api.github.com/users/zhangjunqiang/following{/other_user}", "gists_url": "https://api.github.com/users/zhangjunqiang/gists{/gist_id}", "starred_url": "https://api.github.com/users/zhangjunqiang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhangjunqiang/subscriptions", "organizations_url": "https://api.github.com/users/zhangjunqiang/orgs", "repos_url": "https://api.github.com/users/zhangjunqiang/repos", "events_url": "https://api.github.com/users/zhangjunqiang/events{/privacy}", "received_events_url": "https://api.github.com/users/zhangjunqiang/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-06-30T03:17:04
2023-07-03T07:34:15
2023-07-03T07:34:15
NONE
null
### System Info ConversationalRetrievalChain with Question Answering with sources ```python llm = OpenAI(temperature=0) question_generator = LLMChain(llm=llm, prompt=CONDENSE_QUESTION_PROMPT) doc_chain = load_qa_with_sources_chain(llm, chain_type="map_reduce") chain = ConversationalRetrievalChain( retriever=vectorstore.as_retriever(), question_generator=question_generator, combine_docs_chain=doc_chain, ) ``` if i set the chain_type to "refine". it will not return sources. ### 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 - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction just like the turtial code. ### Expected behavior i want the 'refine' chain return sources.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6954/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/6954/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6953
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6953/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6953/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6953/events
https://github.com/langchain-ai/langchain/pull/6953
1,781,803,499
PR_kwDOIPDwls5USyHx
6,953
Update redis.py
{ "login": "akshayghatiki311", "id": 22797515, "node_id": "MDQ6VXNlcjIyNzk3NTE1", "avatar_url": "https://avatars.githubusercontent.com/u/22797515?v=4", "gravatar_id": "", "url": "https://api.github.com/users/akshayghatiki311", "html_url": "https://github.com/akshayghatiki311", "followers_url": "https://api.github.com/users/akshayghatiki311/followers", "following_url": "https://api.github.com/users/akshayghatiki311/following{/other_user}", "gists_url": "https://api.github.com/users/akshayghatiki311/gists{/gist_id}", "starred_url": "https://api.github.com/users/akshayghatiki311/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/akshayghatiki311/subscriptions", "organizations_url": "https://api.github.com/users/akshayghatiki311/orgs", "repos_url": "https://api.github.com/users/akshayghatiki311/repos", "events_url": "https://api.github.com/users/akshayghatiki311/events{/privacy}", "received_events_url": "https://api.github.com/users/akshayghatiki311/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
3
2023-06-30T03:14:31
2023-11-07T03:50:25
2023-11-07T03:50:24
NONE
null
Provided an option to connect to redis cloud using password,port and db along with existing parameters <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: Provided an option to connect to redis cloud using password,port and db along with existing parameters - Issue: N/A - Dependencies: any dependencies required for this change, - Tag maintainer: @hwchase17 - Twitter handle: @ghatiki 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6953/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6953/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6953", "html_url": "https://github.com/langchain-ai/langchain/pull/6953", "diff_url": "https://github.com/langchain-ai/langchain/pull/6953.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6953.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6952
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6952/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6952/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6952/events
https://github.com/langchain-ai/langchain/issues/6952
1,781,803,067
I_kwDOIPDwls5qNCg7
6,952
Sentencebert/Bert/Spacy/Doc2vec embedding support
{ "login": "pradeepdev-1995", "id": 41164884, "node_id": "MDQ6VXNlcjQxMTY0ODg0", "avatar_url": "https://avatars.githubusercontent.com/u/41164884?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pradeepdev-1995", "html_url": "https://github.com/pradeepdev-1995", "followers_url": "https://api.github.com/users/pradeepdev-1995/followers", "following_url": "https://api.github.com/users/pradeepdev-1995/following{/other_user}", "gists_url": "https://api.github.com/users/pradeepdev-1995/gists{/gist_id}", "starred_url": "https://api.github.com/users/pradeepdev-1995/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pradeepdev-1995/subscriptions", "organizations_url": "https://api.github.com/users/pradeepdev-1995/orgs", "repos_url": "https://api.github.com/users/pradeepdev-1995/repos", "events_url": "https://api.github.com/users/pradeepdev-1995/events{/privacy}", "received_events_url": "https://api.github.com/users/pradeepdev-1995/received_events", "type": "User", "site_admin": false }
[ { "id": 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
8
2023-06-30T03:13:49
2023-10-06T16:06:18
2023-10-06T16:06:18
NONE
null
### Feature request Is there any way to store the Sentencebert/Bert/Spacy/Doc2vec based embeddings in the vector database using langchain ``` pages= "page content" embeddings = OpenAIEmbeddings() persist_directory = 'db' vectordb = Chroma.from_documents(documents=pages, embedding=embeddings, persist_directory=persist_directory) ``` shall use **Sentencebert/Bert/Spacy/Doc2vec embeddings** instead of OpenAIEmbeddings() in the above code? if possible then what is the syntax for that? ### Motivation For using native embedding formats likeSentencebert/Bert/Spacy/Doc2vec in langchain ### Your contribution For using native embedding formats likeSentencebert/Bert/Spacy/Doc2vec in langchain
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6952/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6952/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6951
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6951/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6951/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6951/events
https://github.com/langchain-ai/langchain/issues/6951
1,781,775,217
I_kwDOIPDwls5qM7tx
6,951
Issue: Get Confused with ConversationalRetrievalChain + HuggingFacePipeline always gen wizard "Helpful answer: "
{ "login": "h-clickshift", "id": 117718271, "node_id": "U_kgDOBwQ8_w", "avatar_url": "https://avatars.githubusercontent.com/u/117718271?v=4", "gravatar_id": "", "url": "https://api.github.com/users/h-clickshift", "html_url": "https://github.com/h-clickshift", "followers_url": "https://api.github.com/users/h-clickshift/followers", "following_url": "https://api.github.com/users/h-clickshift/following{/other_user}", "gists_url": "https://api.github.com/users/h-clickshift/gists{/gist_id}", "starred_url": "https://api.github.com/users/h-clickshift/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/h-clickshift/subscriptions", "organizations_url": "https://api.github.com/users/h-clickshift/orgs", "repos_url": "https://api.github.com/users/h-clickshift/repos", "events_url": "https://api.github.com/users/h-clickshift/events{/privacy}", "received_events_url": "https://api.github.com/users/h-clickshift/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
2
2023-06-30T02:41:25
2023-10-06T16:06:23
2023-10-06T16:06:23
NONE
null
my code: ``` from langchain.llms import HuggingFacePipeline from langchain.chains import ConversationalRetrievalChain pipe = pipeline( "text-generation", # task type model=model, tokenizer=tokenizer, max_new_tokens=1024, device=0, # very trick, gpu rank ) local_llm = HuggingFacePipeline(pipeline=pipe) qa = ConversationalRetrievalChain.from_llm(local_llm, retriever=retriever) questions = [ "void Plan::ScheduleWork(map<Edge*, Want>::iterator want_e) {", ] chat_history = [] for question in questions: result = qa({"question": question, "chat_history": chat_history}) # chat_history.append((question, result["answer"])) print("**chat_history**", chat_history) print(f"=>**Question**: {question} \n") print(f"=>**Answer**: {result['answer']} \n\n") ``` which generate like this: ``` **chat_history** [] =>**Question**: void Plan::ScheduleWork(map<Edge*, Want>::iterator want_e) { =>**Answer**: void Plan::ScheduleWork(map<Edge*, Want>::iterator want_e) { if (want_e->second == kWantToFinish) { // This edge has already been scheduled. We can get here again if an edge // and one of its dependencies share an order-only input, or if a node // duplicates an out edge (see https://github.question/: void Plan::ScheduleWork(map<Edge*, Want>::iterator want_e) { Helpful Answer: void Plan::ScheduleWork(map<Edge*, Want>::iterator want_e) { if (want_e->second == kWantToFinish) { // This edge has already been scheduled. We can get here again if an edge // and one of its dependencies share an order-only input, or if a node // duplicates an out edge (see https://github.com/ninja-build/ninja/pull/519). // Avoid scheduling the work again. return; } assert(want_e->second == kWantToStart); want_e->second = kWantToFinish; ``` my `model` is locally fine-tuned starcode with perf merged, `retriever` is DeepLake vectorstore with some args like cos etc. I do not get the "Helpful Answer" block, WHERE ON EARTH THIS COME FROM??? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6951/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/6951/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6950
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6950/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6950/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6950/events
https://github.com/langchain-ai/langchain/issues/6950
1,781,757,970
I_kwDOIPDwls5qM3gS
6,950
LLMSummarizationCheckerFromSource
{ "login": "kaushalshetty", "id": 6664607, "node_id": "MDQ6VXNlcjY2NjQ2MDc=", "avatar_url": "https://avatars.githubusercontent.com/u/6664607?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kaushalshetty", "html_url": "https://github.com/kaushalshetty", "followers_url": "https://api.github.com/users/kaushalshetty/followers", "following_url": "https://api.github.com/users/kaushalshetty/following{/other_user}", "gists_url": "https://api.github.com/users/kaushalshetty/gists{/gist_id}", "starred_url": "https://api.github.com/users/kaushalshetty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kaushalshetty/subscriptions", "organizations_url": "https://api.github.com/users/kaushalshetty/orgs", "repos_url": "https://api.github.com/users/kaushalshetty/repos", "events_url": "https://api.github.com/users/kaushalshetty/events{/privacy}", "received_events_url": "https://api.github.com/users/kaushalshetty/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-06-30T02:19:22
2023-10-06T16:06:29
2023-10-06T16:06:28
NONE
null
### Feature request Just curious if there is a feature to check whether the summarized output from a source document hallucinates or not by extending the checker chain. ### Motivation LLMSummarizationCheckerChain checks facts of summaries using LLM knowledge. The motivation is to develop a feature that checks for facts from an augmented source document. ### Your contribution Will submit a PR if this does not exist yet and if it is a nice to have feature
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6950/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6950/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6949
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6949/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6949/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6949/events
https://github.com/langchain-ai/langchain/pull/6949
1,781,715,320
PR_kwDOIPDwls5USfHn
6,949
Add back in
{ "login": "dev2049", "id": 130488702, "node_id": "U_kgDOB8cZfg", "avatar_url": "https://avatars.githubusercontent.com/u/130488702?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dev2049", "html_url": "https://github.com/dev2049", "followers_url": "https://api.github.com/users/dev2049/followers", "following_url": "https://api.github.com/users/dev2049/following{/other_user}", "gists_url": "https://api.github.com/users/dev2049/gists{/gist_id}", "starred_url": "https://api.github.com/users/dev2049/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dev2049/subscriptions", "organizations_url": "https://api.github.com/users/dev2049/orgs", "repos_url": "https://api.github.com/users/dev2049/repos", "events_url": "https://api.github.com/users/dev2049/events{/privacy}", "received_events_url": "https://api.github.com/users/dev2049/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-06-30T01:35:22
2023-06-30T02:21:48
2023-06-30T02:21:47
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6949/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6949/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6949", "html_url": "https://github.com/langchain-ai/langchain/pull/6949", "diff_url": "https://github.com/langchain-ai/langchain/pull/6949.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6949.patch", "merged_at": "2023-06-30T02:21:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/6948
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6948/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6948/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6948/events
https://github.com/langchain-ai/langchain/pull/6948
1,781,687,870
PR_kwDOIPDwls5USZKj
6,948
redirect vecstores
{ "login": "dev2049", "id": 130488702, "node_id": "U_kgDOB8cZfg", "avatar_url": "https://avatars.githubusercontent.com/u/130488702?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dev2049", "html_url": "https://github.com/dev2049", "followers_url": "https://api.github.com/users/dev2049/followers", "following_url": "https://api.github.com/users/dev2049/following{/other_user}", "gists_url": "https://api.github.com/users/dev2049/gists{/gist_id}", "starred_url": "https://api.github.com/users/dev2049/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dev2049/subscriptions", "organizations_url": "https://api.github.com/users/dev2049/orgs", "repos_url": "https://api.github.com/users/dev2049/repos", "events_url": "https://api.github.com/users/dev2049/events{/privacy}", "received_events_url": "https://api.github.com/users/dev2049/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-06-30T01:00:20
2023-06-30T02:22:22
2023-06-30T02:22:21
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6948/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6948/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6948", "html_url": "https://github.com/langchain-ai/langchain/pull/6948", "diff_url": "https://github.com/langchain-ai/langchain/pull/6948.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6948.patch", "merged_at": "2023-06-30T02:22:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/6947
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6947/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6947/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6947/events
https://github.com/langchain-ai/langchain/issues/6947
1,781,674,685
I_kwDOIPDwls5qMjK9
6,947
Inconsistent naming of document loaders
{ "login": "Madhav-MKNC", "id": 78339236, "node_id": "MDQ6VXNlcjc4MzM5MjM2", "avatar_url": "https://avatars.githubusercontent.com/u/78339236?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Madhav-MKNC", "html_url": "https://github.com/Madhav-MKNC", "followers_url": "https://api.github.com/users/Madhav-MKNC/followers", "following_url": "https://api.github.com/users/Madhav-MKNC/following{/other_user}", "gists_url": "https://api.github.com/users/Madhav-MKNC/gists{/gist_id}", "starred_url": "https://api.github.com/users/Madhav-MKNC/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Madhav-MKNC/subscriptions", "organizations_url": "https://api.github.com/users/Madhav-MKNC/orgs", "repos_url": "https://api.github.com/users/Madhav-MKNC/repos", "events_url": "https://api.github.com/users/Madhav-MKNC/events{/privacy}", "received_events_url": "https://api.github.com/users/Madhav-MKNC/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
1
2023-06-30T00:41:17
2023-06-30T15:56:45
2023-06-30T15:56:45
NONE
null
### Issue you'd like to raise. Genuinely wanted to know the reasonings behind the inclusion of "Mu" in the "PyMuPDFLoader". Coming from an Indian background my friend and I held 1-2 hours of discussion over what this represents and the conclusions were not so appropriate. We landed on this discussion after we noticed the inconsistency in the naming of the single pdf loader (i.e. "PyMuPDFLoader") and the multiple pdf loader (i.e. "PyPDFDirectoryLoader"). (Being a pioneer in LLM Orchestration we admire the open-course revolution. LangChain has opened a wider scope for opensource collaborations and we thank @hwchase17 for it.) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6947/reactions", "total_count": 3, "+1": 0, "-1": 1, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/6947/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6946
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6946/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6946/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6946/events
https://github.com/langchain-ai/langchain/issues/6946
1,781,669,365
I_kwDOIPDwls5qMh31
6,946
FewShotPromptTemplate with Chat models
{ "login": "alexclaydon", "id": 4748463, "node_id": "MDQ6VXNlcjQ3NDg0NjM=", "avatar_url": "https://avatars.githubusercontent.com/u/4748463?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alexclaydon", "html_url": "https://github.com/alexclaydon", "followers_url": "https://api.github.com/users/alexclaydon/followers", "following_url": "https://api.github.com/users/alexclaydon/following{/other_user}", "gists_url": "https://api.github.com/users/alexclaydon/gists{/gist_id}", "starred_url": "https://api.github.com/users/alexclaydon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexclaydon/subscriptions", "organizations_url": "https://api.github.com/users/alexclaydon/orgs", "repos_url": "https://api.github.com/users/alexclaydon/repos", "events_url": "https://api.github.com/users/alexclaydon/events{/privacy}", "received_events_url": "https://api.github.com/users/alexclaydon/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": 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-06-30T00:35:45
2023-10-06T16:06:34
2023-10-06T16:06:33
NONE
null
### Issue with current documentation: From the [documentation](https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/few_shot_examples), it is not clear whether ‘FewShotPromptTemplate’ can be used with Chat models: in particular, it does not appear to be compatible with OpenAI’s suggested best practices (mentioned on the same page) of having alternating “name: example_user” and “name: example_$role” JSON passed to the OpenAI API for each few-shot example message passed in the call. ### Idea or request for content: Is it planned to have a separate “ChatFewShotPromptTemplate” class? If so, perhaps a placeholder could be added to the documentation to make this clear. If not, perhaps the documentation could be updated to make the mismatch explicit so that the reader understands the limitations of the current FewShotPromptTemplate in the context of Chat models.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6946/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6946/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6945
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6945/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6945/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6945/events
https://github.com/langchain-ai/langchain/pull/6945
1,781,653,601
PR_kwDOIPDwls5USSAT
6,945
Change code block color scheme
{ "login": "jacoblee93", "id": 6952323, "node_id": "MDQ6VXNlcjY5NTIzMjM=", "avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jacoblee93", "html_url": "https://github.com/jacoblee93", "followers_url": "https://api.github.com/users/jacoblee93/followers", "following_url": "https://api.github.com/users/jacoblee93/following{/other_user}", "gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}", "starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions", "organizations_url": "https://api.github.com/users/jacoblee93/orgs", "repos_url": "https://api.github.com/users/jacoblee93/repos", "events_url": "https://api.github.com/users/jacoblee93/events{/privacy}", "received_events_url": "https://api.github.com/users/jacoblee93/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 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-06-30T00:07:52
2023-06-30T02:21:12
2023-06-30T02:21:12
CONTRIBUTOR
null
Adds contrast, makes code blocks more readable. @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6945/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6945/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6945", "html_url": "https://github.com/langchain-ai/langchain/pull/6945", "diff_url": "https://github.com/langchain-ai/langchain/pull/6945.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6945.patch", "merged_at": "2023-06-30T02:21:11" }
https://api.github.com/repos/langchain-ai/langchain/issues/6944
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6944/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6944/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6944/events
https://github.com/langchain-ai/langchain/pull/6944
1,781,634,208
PR_kwDOIPDwls5USN4o
6,944
Simplify eval arg names
{ "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-06-29T23:33:05
2023-06-30T14:47:54
2023-06-30T14:47:53
COLLABORATOR
null
It'll be easier to switch between these if the names of predictions are consistent
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6944/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6944/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6944", "html_url": "https://github.com/langchain-ai/langchain/pull/6944", "diff_url": "https://github.com/langchain-ai/langchain/pull/6944.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6944.patch", "merged_at": "2023-06-30T14:47:53" }
https://api.github.com/repos/langchain-ai/langchain/issues/6943
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6943/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6943/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6943/events
https://github.com/langchain-ai/langchain/pull/6943
1,781,628,784
PR_kwDOIPDwls5USMv7
6,943
Use an Enum for search type
{ "login": "mssalvatore", "id": 19957806, "node_id": "MDQ6VXNlcjE5OTU3ODA2", "avatar_url": "https://avatars.githubusercontent.com/u/19957806?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mssalvatore", "html_url": "https://github.com/mssalvatore", "followers_url": "https://api.github.com/users/mssalvatore/followers", "following_url": "https://api.github.com/users/mssalvatore/following{/other_user}", "gists_url": "https://api.github.com/users/mssalvatore/gists{/gist_id}", "starred_url": "https://api.github.com/users/mssalvatore/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mssalvatore/subscriptions", "organizations_url": "https://api.github.com/users/mssalvatore/orgs", "repos_url": "https://api.github.com/users/mssalvatore/repos", "events_url": "https://api.github.com/users/mssalvatore/events{/privacy}", "received_events_url": "https://api.github.com/users/mssalvatore/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
3
2023-06-29T23:23:57
2023-11-07T03:50:38
2023-11-07T03:50:38
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> ## Description Description: Presently, vectorstores and `VectorStoreRetrievers` use strings to identify the search type that should be used. This approach has a few shortcomings: 1. Strings can be easily mistyped, and IDEs are unlikely to let you know. 2. Code completion may be unreliable. 3. IDEs likely won't allow you to easily refactor usage of string literals throughout the code. 4. Users and maintainers must read through various classes to understand what types of searches are supported by the system as a whole 5. If maintainers would like enable new search types within the framework, it may not be obvious how such system-wide changes can be made. 6. Without a clear list of supported search types, "synonyms" may be introduced, making the system inconsistent and increasing the cognitive load on the maintainers and users. For an example, see `RedisVectorStoreRetriever`, which defines a search type of "similarity_limit", which I believe is synonymous with "similarity_score_threshold". Replacing the use of string literals with an `Enum` solves these problems. It provides stronger typing and (hopefully) a reduced risk of introducing defects into new or existing code. Users and maintainers alike can easily see what the system supports in a single location, and the system is more likely to be self-consistent. ## Tag Maintainer @rlancemartin @eyurtsev @hwchase17 ## Note These changes should be fully backwards compatible since the `Enum` also inherits `str`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6943/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6943/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6943", "html_url": "https://github.com/langchain-ai/langchain/pull/6943", "diff_url": "https://github.com/langchain-ai/langchain/pull/6943.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6943.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6942
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6942/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6942/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6942/events
https://github.com/langchain-ai/langchain/pull/6942
1,781,601,017
PR_kwDOIPDwls5USGyK
6,942
Load Evaluator
{ "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 }
[]
closed
false
null
[]
null
1
2023-06-29T22:40:20
2023-07-06T20:59:00
2023-07-06T20:58:59
COLLABORATOR
null
Create a `load_evaluators()` function so you don't have to import all the individual evaluator classes
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6942/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6942/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6942", "html_url": "https://github.com/langchain-ai/langchain/pull/6942", "diff_url": "https://github.com/langchain-ai/langchain/pull/6942.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6942.patch", "merged_at": "2023-07-06T20:58:59" }
https://api.github.com/repos/langchain-ai/langchain/issues/6940
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6940/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6940/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6940/events
https://github.com/langchain-ai/langchain/pull/6940
1,781,559,211
PR_kwDOIPDwls5UR9pd
6,940
Added support for Amazon SageMaker Asynchronous Endpoints
{ "login": "dgallitelli", "id": 9881522, "node_id": "MDQ6VXNlcjk4ODE1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/9881522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dgallitelli", "html_url": "https://github.com/dgallitelli", "followers_url": "https://api.github.com/users/dgallitelli/followers", "following_url": "https://api.github.com/users/dgallitelli/following{/other_user}", "gists_url": "https://api.github.com/users/dgallitelli/gists{/gist_id}", "starred_url": "https://api.github.com/users/dgallitelli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dgallitelli/subscriptions", "organizations_url": "https://api.github.com/users/dgallitelli/orgs", "repos_url": "https://api.github.com/users/dgallitelli/repos", "events_url": "https://api.github.com/users/dgallitelli/events{/privacy}", "received_events_url": "https://api.github.com/users/dgallitelli/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
13
2023-06-29T21:49:57
2023-11-07T03:53:23
2023-11-07T03:53:22
NONE
null
## Description Added support for Amazon SageMaker Asynchronous Endpoints. ## Issue #6928 ## Dependencies boto3, uuid ## Maintainer @hwchase17 ## Twitter handle DGallitelli95 ## Code to test this ```python from typing import Dict from langchain import PromptTemplate from langchain.llms.sagemaker_endpoint import LLMContentHandler, SagemakerAsyncEndpoint from langchain.chains import LLMChain # This ContentHandler has been tested with Falcon40B Instruct from SageMaker JumpStart class ContentHandler(LLMContentHandler): content_type:str = "application/json" accepts:str = "application/json" len_prompt:int = 0 def transform_input(self, prompt: str, model_kwargs: Dict) -> bytes: self.len_prompt = len(prompt) input_str = json.dumps({"inputs": prompt, "parameters": {"max_new_tokens": 100, "do_sample": False, "repetition_penalty": 1.1}}) return input_str.encode('utf-8') def transform_output(self, output: bytes) -> str: response_json = output.read() res = json.loads(response_json) ans = res[0]['generated_text'] return ans chain = LLMChain( llm=SagemakerAsyncEndpoint( input_bucket=bucket, input_prefix=prefix, endpoint_name=my_model.endpoint_name, region_name=sagemaker.Session().boto_region_name, content_handler=ContentHandler(), ), prompt=PromptTemplate( input_variables=["query"], template="{query}", ), ) print(chain.run("What is the purpose of life?")) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6940/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/6940/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6940", "html_url": "https://github.com/langchain-ai/langchain/pull/6940", "diff_url": "https://github.com/langchain-ai/langchain/pull/6940.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6940.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6939
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6939/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6939/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6939/events
https://github.com/langchain-ai/langchain/issues/6939
1,781,557,474
I_kwDOIPDwls5qMGji
6,939
add `Brave` Search
{ "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": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
2
2023-06-29T21:47:51
2023-06-30T15:24:25
2023-06-30T15:24:25
COLLABORATOR
null
### Feature request [Brave Search](https://api.search.brave.com/app/dashboard) is a new interesting search engine It can be used in place of the `Google Search`. ### Motivation Users who are subscribers of Brave Search can use this. ### Your contribution I can try to implement it if somebody is interested in this integration.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6939/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6939/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6938
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6938/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6938/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6938/events
https://github.com/langchain-ai/langchain/issues/6938
1,781,527,088
I_kwDOIPDwls5qL_Iw
6,938
Chroma (duckdb+parquet) DB isn't saving the parquet files for persisted DB until application is killed
{ "login": "JackLeick", "id": 129417742, "node_id": "U_kgDOB7bCDg", "avatar_url": "https://avatars.githubusercontent.com/u/129417742?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JackLeick", "html_url": "https://github.com/JackLeick", "followers_url": "https://api.github.com/users/JackLeick/followers", "following_url": "https://api.github.com/users/JackLeick/following{/other_user}", "gists_url": "https://api.github.com/users/JackLeick/gists{/gist_id}", "starred_url": "https://api.github.com/users/JackLeick/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JackLeick/subscriptions", "organizations_url": "https://api.github.com/users/JackLeick/orgs", "repos_url": "https://api.github.com/users/JackLeick/repos", "events_url": "https://api.github.com/users/JackLeick/events{/privacy}", "received_events_url": "https://api.github.com/users/JackLeick/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
closed
false
null
[]
null
9
2023-06-29T21:15:14
2023-10-06T16:39:27
2023-10-06T16:39:20
NONE
null
### System Info Chroma v0.2.36, python 3.9 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ` settings = Settings( chroma_db_impl='duckdb+parquet', persist_directory="db", anonymized_telemetry=False ) pages = self._load_single_document(file_path=file_path) docs = text_splitter.split_documents(pages) db = Chroma.from_documents(docs, embedding_function, client_settings=settings) ` ### Expected behavior All files for the database should be created in the db directory. However, the parquet files are not being created when db.from_documents() is called. However, this is not happening. All the files in the index directory are created at this time. Later, when the application is killed (flask application, so in between requests the DB is torn down and thus should be persisited), then the parquet files show up.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6938/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/6938/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6937
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6937/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6937/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6937/events
https://github.com/langchain-ai/langchain/pull/6937
1,781,513,642
PR_kwDOIPDwls5URz0t
6,937
docstrings `document_loaders` 3
{ "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 }
[]
closed
false
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }, { "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 } ]
null
5
2023-06-29T21:04:29
2023-07-10T16:34:43
2023-07-10T15:56:54
COLLABORATOR
null
- Updated docstrings for `document_loaders` - Mass update `"""Loader that loads` to `"""Loads` @baskaryan - please, review
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6937/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6937/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6937", "html_url": "https://github.com/langchain-ai/langchain/pull/6937", "diff_url": "https://github.com/langchain-ai/langchain/pull/6937.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6937.patch", "merged_at": "2023-07-10T15:56:54" }
https://api.github.com/repos/langchain-ai/langchain/issues/6936
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6936/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6936/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6936/events
https://github.com/langchain-ai/langchain/issues/6936
1,781,364,740
I_kwDOIPDwls5qLXgE
6,936
Missing reference to o365_toolkit module in __init__.py of agent_toolkits
{ "login": "oberthou", "id": 24804373, "node_id": "MDQ6VXNlcjI0ODA0Mzcz", "avatar_url": "https://avatars.githubusercontent.com/u/24804373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/oberthou", "html_url": "https://github.com/oberthou", "followers_url": "https://api.github.com/users/oberthou/followers", "following_url": "https://api.github.com/users/oberthou/following{/other_user}", "gists_url": "https://api.github.com/users/oberthou/gists{/gist_id}", "starred_url": "https://api.github.com/users/oberthou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oberthou/subscriptions", "organizations_url": "https://api.github.com/users/oberthou/orgs", "repos_url": "https://api.github.com/users/oberthou/repos", "events_url": "https://api.github.com/users/oberthou/events{/privacy}", "received_events_url": "https://api.github.com/users/oberthou/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
closed
false
null
[]
null
4
2023-06-29T19:23:25
2023-09-28T16:20:50
2023-09-28T16:20:50
NONE
null
### System Info Langchain 0.0.218 ### 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 - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ![E4D3964C-8891-46EE-879F-D4F862351BC1](https://github.com/hwchase17/langchain/assets/24804373/399a5a2f-0328-4bf9-bc4a-e4f7a856611a) ### Expected behavior The module should be found automatically.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6936/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/6936/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6934
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6934/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6934/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6934/events
https://github.com/langchain-ai/langchain/issues/6934
1,781,255,515
I_kwDOIPDwls5qK81b
6,934
SageMaker Endpoint - Validations
{ "login": "aws-khatria", "id": 107514829, "node_id": "U_kgDOBmiLzQ", "avatar_url": "https://avatars.githubusercontent.com/u/107514829?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aws-khatria", "html_url": "https://github.com/aws-khatria", "followers_url": "https://api.github.com/users/aws-khatria/followers", "following_url": "https://api.github.com/users/aws-khatria/following{/other_user}", "gists_url": "https://api.github.com/users/aws-khatria/gists{/gist_id}", "starred_url": "https://api.github.com/users/aws-khatria/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aws-khatria/subscriptions", "organizations_url": "https://api.github.com/users/aws-khatria/orgs", "repos_url": "https://api.github.com/users/aws-khatria/repos", "events_url": "https://api.github.com/users/aws-khatria/events{/privacy}", "received_events_url": "https://api.github.com/users/aws-khatria/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
3
2023-06-29T17:43:12
2023-11-30T16:08:26
2023-11-30T16:08:25
NONE
null
### System Info The SageMaker Endpoint validation function currently throws a missing credential error if the region name is not provided in the input. However, it is crucial to perform input validation for the region name to provide the user with clear error information. GitHub Issue Reference: For the code reference related to this issue, please visit: [GitHub Link](https://github.com/hwchase17/langchain/blob/7dcc698ebf4ebf4eb7331d25cec279f402918629472b/langchain/llms/sagemaker_endpoint.py#L177) ### Who can help? @3coins ### 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 This can be reproduced by creating a SageMaker Endpoing LangChain without specifying region name. Please ensure that you have valid AWS credentials configured. ### Expected behavior The error message must state ```Region name is missing. Please enter valid region name. E.g: us-west-2.```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6934/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/6934/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6933
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6933/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6933/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6933/events
https://github.com/langchain-ai/langchain/issues/6933
1,781,214,707
I_kwDOIPDwls5qKy3z
6,933
General OpenAI Function Mapping from Pydantic, Dicts directly to function, parameters, and properties
{ "login": "enjuichang", "id": 55577469, "node_id": "MDQ6VXNlcjU1NTc3NDY5", "avatar_url": "https://avatars.githubusercontent.com/u/55577469?v=4", "gravatar_id": "", "url": "https://api.github.com/users/enjuichang", "html_url": "https://github.com/enjuichang", "followers_url": "https://api.github.com/users/enjuichang/followers", "following_url": "https://api.github.com/users/enjuichang/following{/other_user}", "gists_url": "https://api.github.com/users/enjuichang/gists{/gist_id}", "starred_url": "https://api.github.com/users/enjuichang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/enjuichang/subscriptions", "organizations_url": "https://api.github.com/users/enjuichang/orgs", "repos_url": "https://api.github.com/users/enjuichang/repos", "events_url": "https://api.github.com/users/enjuichang/events{/privacy}", "received_events_url": "https://api.github.com/users/enjuichang/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 5510857403, "node_id": "LA_kwDOIPDwls8AAAABSHkCuw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation", "name": "needs documentation", "color": "DCAAC0", "default": false, "description": "PR needs to be updated with documentation" } ]
closed
false
null
[]
null
9
2023-06-29T17:07:09
2023-07-08T01:50:27
2023-07-08T01:50:27
NONE
null
### Feature request A universal approach to add openai functions specifically for output format control to `LLMchain`. Create a class that takes in dict, json, pydantic, or even rail specs (from guardrails) to preprocess classes or dictionaries into openai functions (function, parameters, and properties) for the `llm_kwargs` in `LLMChain` class in conjunction with the openai function parsers. ### Motivation It is hard to use the function calling feature right now if you are not working with agents (can access using `format_tool_to_openai_function`) or a specific use case, such as the Extractor or QA chains. The idea is to create a general class that takes in dict, json, pydantic, or even rail specs (from guardrails) to preprocess classes or dictionaries into openai functions for better control of the output format. ### Your contribution I can help with this, should I put this in the `docs/modules` folder?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6933/reactions", "total_count": 4, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/6933/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6932
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6932/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6932/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6932/events
https://github.com/langchain-ai/langchain/issues/6932
1,781,213,657
I_kwDOIPDwls5qKynZ
6,932
Issue: How to create async calls to custom LLMs
{ "login": "ruggero-balteri", "id": 17119373, "node_id": "MDQ6VXNlcjE3MTE5Mzcz", "avatar_url": "https://avatars.githubusercontent.com/u/17119373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ruggero-balteri", "html_url": "https://github.com/ruggero-balteri", "followers_url": "https://api.github.com/users/ruggero-balteri/followers", "following_url": "https://api.github.com/users/ruggero-balteri/following{/other_user}", "gists_url": "https://api.github.com/users/ruggero-balteri/gists{/gist_id}", "starred_url": "https://api.github.com/users/ruggero-balteri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ruggero-balteri/subscriptions", "organizations_url": "https://api.github.com/users/ruggero-balteri/orgs", "repos_url": "https://api.github.com/users/ruggero-balteri/repos", "events_url": "https://api.github.com/users/ruggero-balteri/events{/privacy}", "received_events_url": "https://api.github.com/users/ruggero-balteri/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 4678528832, "node_id": "LA_kwDOIPDwls8AAAABFtyvQA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/question", "name": "question", "color": "d876e3", "default": true, "description": "Further information is requested" } ]
closed
false
null
[]
null
2
2023-06-29T17:06:20
2023-06-29T22:20:21
2023-06-29T22:20:21
NONE
null
### Issue you'd like to raise. Hello! I am currently using Langchain to interface with a [customLLM](https://python.langchain.com/docs/modules/model_io/models/llms/how_to/custom_llm) async. To do so, I am overriding the original `LLM` class as explained in the tutorial as such: ``` class LLMInterface(LLM): @property def _llm_type(self) -> str: return "Ruggero's LLM" async def send_request(self, payload): return await some_function_that_queries_custom_llm(payload) def _call( self, prompt: str, stop: Optional[List[str]] = None, run_manager: Optional[CallbackManagerForLLMRun] = None, ) -> str: if stop is not None: raise ValueError("stop kwargs are not permitted.") payload = json.dumps({"messages": [{"role": "user", "content": prompt}]}) future = self.run_in_executor(self.send_request, payload) raw_response = future.result() # get the actual result print(raw_response) # Parse JSON response response_json = json.loads(raw_response) # Extract content for message in response_json["messages"]: if message["role"] == "bot": content = message["content"] return content # Return empty string if no bot message found return "" ``` Unfortunately I get: ``` 159 reductor = getattr(x, "__reduce_ex__", None) 160 if reductor is not None: --> 161 rv = reductor(4) 162 else: 163 reductor = getattr(x, "__reduce__", None) TypeError: cannot pickle '_queue.SimpleQueue' object ``` Even if a use an executor I get the similar problem ``` def run_in_executor(self, coro_func: Any, *args: Any) -> Any: future_result = Future() def wrapper(): loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) try: result = loop.run_until_complete(coro_func(*args)) future_result.set_result(result) except Exception as e: future_result.set_exception(e) finally: loop.run_until_complete(loop.shutdown_asyncgens()) loop.close() Thread(target=wrapper).start() return future_result ``` In my code I use Langchain as such: ``` llm_chain = ConversationChain(llm=llm, memory=memory) output = llm_chain.run(self.llm_input) ``` What is the appropriate way to interface a custom LLM that it is queried async? i know that Langchain supports [async calls ](https://blog.langchain.dev/async-api/) but I was not able to make it work Thank you! ### Suggestion: providing a ``` async def _async_call( self, prompt: str, stop: Optional[List[str]] = None, run_manager: Optional[CallbackManagerForLLMRun] = None, ) -> str: ``` method would be ideal Any alternative work-around would be fine too Thank you!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6932/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/6932/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6931
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6931/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6931/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6931/events
https://github.com/langchain-ai/langchain/issues/6931
1,781,186,169
I_kwDOIPDwls5qKr55
6,931
Issue: How to handle RouterChain when 1 or more destination chain(s) which is expecting a different input variable?
{ "login": "deckikwok", "id": 1747820, "node_id": "MDQ6VXNlcjE3NDc4MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/1747820?v=4", "gravatar_id": "", "url": "https://api.github.com/users/deckikwok", "html_url": "https://github.com/deckikwok", "followers_url": "https://api.github.com/users/deckikwok/followers", "following_url": "https://api.github.com/users/deckikwok/following{/other_user}", "gists_url": "https://api.github.com/users/deckikwok/gists{/gist_id}", "starred_url": "https://api.github.com/users/deckikwok/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/deckikwok/subscriptions", "organizations_url": "https://api.github.com/users/deckikwok/orgs", "repos_url": "https://api.github.com/users/deckikwok/repos", "events_url": "https://api.github.com/users/deckikwok/events{/privacy}", "received_events_url": "https://api.github.com/users/deckikwok/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528832, "node_id": "LA_kwDOIPDwls8AAAABFtyvQA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/question", "name": "question", "color": "d876e3", "default": true, "description": "Further information is requested" } ]
closed
false
null
[]
null
8
2023-06-29T16:45:54
2023-08-03T08:30:01
2023-07-06T06:04:48
NONE
null
### Issue you'd like to raise. Would like to ask how we should deal with multiple destination chains where the chains are expecting different input variables? For e.g. in the tutorial for MultiPromptChain, i would like math questions to be directed to the PalChain instead of the standard LLMChain. With the initial LLMRouterChain, the router prompt uses `input` as the input_variables. however, when it has decided that the input `what is 2+2` is a math question and should be routed to PalChain, i am presented the error ``` [/usr/local/lib/python3.10/dist-packages/langchain/chains/base.py](https://localhost:8080/#) in _validate_inputs(self, inputs) 101 missing_keys = set(self.input_keys).difference(inputs) 102 if missing_keys: --> 103 raise ValueError(f"Missing some input keys: {missing_keys}") 104 105 def _validate_outputs(self, outputs: Dict[str, Any]) -> None: ValueError: Missing some input keys: {'question'} ``` manually replacing the MATH_PROMPT that PalChain uses from {question} to {input} works but I would like to know how I can specify the input variable that the destination chain is expecting when setting up the destination_chains array here: ``` chain = MultiPromptChain(router_chain=router_chain, destination_chains=destination_chains, default_chain=default_chain, verbose=True ) ``` been at it for 2 nights so am seeking help. thanks! ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6931/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6931/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6930
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6930/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6930/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6930/events
https://github.com/langchain-ai/langchain/issues/6930
1,781,148,858
I_kwDOIPDwls5qKiy6
6,930
PR-s wait the review forever
{ "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": 5496111774, "node_id": "LA_kwDOIPDwls8AAAABR5gCng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work", "name": "needs work", "color": "F9D0C4", "default": false, "description": "PRs that need more work" } ]
closed
false
null
[]
null
7
2023-06-29T16:19:06
2023-11-19T22:54:48
2023-11-19T22:52:39
COLLABORATOR
null
### Issue you'd like to raise. The PRs wait for review (for any feedback) very long time. - Some sort of triage would be helpful. - Some sort of PR closure can be helpful. If something is wrong with PR this should be explained/discussed/addressed. Not providing **any feedback** is demoralizing for contributors. Thanks! PS Take a look at the PR list and check PRs that passed all checks and has no answer/feedback. Hundreds of such PRs? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6930/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/6930/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6929
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6929/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6929/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6929/events
https://github.com/langchain-ai/langchain/pull/6929
1,781,083,889
PR_kwDOIPDwls5UQWVC
6,929
Implement AgentExecutorIterator
{ "login": "SlapDrone", "id": 32279503, "node_id": "MDQ6VXNlcjMyMjc5NTAz", "avatar_url": "https://avatars.githubusercontent.com/u/32279503?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SlapDrone", "html_url": "https://github.com/SlapDrone", "followers_url": "https://api.github.com/users/SlapDrone/followers", "following_url": "https://api.github.com/users/SlapDrone/following{/other_user}", "gists_url": "https://api.github.com/users/SlapDrone/gists{/gist_id}", "starred_url": "https://api.github.com/users/SlapDrone/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SlapDrone/subscriptions", "organizations_url": "https://api.github.com/users/SlapDrone/orgs", "repos_url": "https://api.github.com/users/SlapDrone/repos", "events_url": "https://api.github.com/users/SlapDrone/events{/privacy}", "received_events_url": "https://api.github.com/users/SlapDrone/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5510857403, "node_id": "LA_kwDOIPDwls8AAAABSHkCuw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation", "name": "needs documentation", "color": "DCAAC0", "default": false, "description": "PR needs to be updated with documentation" } ]
closed
false
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false } ]
null
10
2023-06-29T15:34:51
2023-07-24T01:00:23
2023-07-24T01:00:22
CONTRIBUTOR
null
- Description: Implements a `.iter()` method for the `AgentExecutor` class. This allows hooking into and intercepting intermediate agent steps. - Issue: #6925 - Dependencies: None - Tag maintainer: @vowelparrot @agola11 - Twitter handle: @SlapDron3 @lacicocodes
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6929/reactions", "total_count": 6, "+1": 1, "-1": 0, "laugh": 0, "hooray": 5, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6929/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6929", "html_url": "https://github.com/langchain-ai/langchain/pull/6929", "diff_url": "https://github.com/langchain-ai/langchain/pull/6929.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6929.patch", "merged_at": "2023-07-24T01:00:22" }
https://api.github.com/repos/langchain-ai/langchain/issues/6928
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6928/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6928/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6928/events
https://github.com/langchain-ai/langchain/issues/6928
1,781,073,650
I_kwDOIPDwls5qKQby
6,928
Support for Amazon SageMaker Asynchronous Endpoints
{ "login": "dgallitelli", "id": 9881522, "node_id": "MDQ6VXNlcjk4ODE1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/9881522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dgallitelli", "html_url": "https://github.com/dgallitelli", "followers_url": "https://api.github.com/users/dgallitelli/followers", "following_url": "https://api.github.com/users/dgallitelli/following{/other_user}", "gists_url": "https://api.github.com/users/dgallitelli/gists{/gist_id}", "starred_url": "https://api.github.com/users/dgallitelli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dgallitelli/subscriptions", "organizations_url": "https://api.github.com/users/dgallitelli/orgs", "repos_url": "https://api.github.com/users/dgallitelli/repos", "events_url": "https://api.github.com/users/dgallitelli/events{/privacy}", "received_events_url": "https://api.github.com/users/dgallitelli/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 5496111774, "node_id": "LA_kwDOIPDwls8AAAABR5gCng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work", "name": "needs work", "color": "F9D0C4", "default": false, "description": "PRs that need more work" }, { "id": 5774514459, "node_id": "LA_kwDOIPDwls8AAAABWDAZGw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/stale", "name": "stale", "color": "dadada", "default": false, "description": "Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed" } ]
open
false
null
[]
null
4
2023-06-29T15:31:14
2023-12-25T16:02:32
null
NONE
null
### Feature request Please add support to invoke [Amazon SageMaker Asynchronous Endpoints](https://docs.aws.amazon.com/sagemaker/latest/dg/async-inference.html). This would require some code changes to the _call method of the SageMaker Endpoint class. Therefore, there is a need to create a new class, called SagemakerAsyncEndpoint, or introduce a logic in the SagemakerEndpoint class to check whether the endpoint is async or not. ### Motivation They are a great way to have models running on expensive GPU instances, while keeping cost control especially during POC phase. ### Your contribution Submitting a PR.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6928/reactions", "total_count": 3, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/6928/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6927
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6927/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6927/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6927/events
https://github.com/langchain-ai/langchain/pull/6927
1,781,057,005
PR_kwDOIPDwls5UQRpk
6,927
integrate JinaChat
{ "login": "delgermurun", "id": 492616, "node_id": "MDQ6VXNlcjQ5MjYxNg==", "avatar_url": "https://avatars.githubusercontent.com/u/492616?v=4", "gravatar_id": "", "url": "https://api.github.com/users/delgermurun", "html_url": "https://github.com/delgermurun", "followers_url": "https://api.github.com/users/delgermurun/followers", "following_url": "https://api.github.com/users/delgermurun/following{/other_user}", "gists_url": "https://api.github.com/users/delgermurun/gists{/gist_id}", "starred_url": "https://api.github.com/users/delgermurun/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/delgermurun/subscriptions", "organizations_url": "https://api.github.com/users/delgermurun/orgs", "repos_url": "https://api.github.com/users/delgermurun/repos", "events_url": "https://api.github.com/users/delgermurun/events{/privacy}", "received_events_url": "https://api.github.com/users/delgermurun/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 4899415699, "node_id": "LA_kwDOIPDwls8AAAABJAcmkw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/llms", "name": "llms", "color": "7CDBB2", "default": false, "description": "" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
5
2023-06-29T15:23:54
2023-07-08T09:47:40
2023-07-08T06:17:05
CONTRIBUTOR
null
Integration with https://chat.jina.ai/api. It is OpenAI compatible API. - Twitter handle: [https://twitter.com/JinaAI_](https://twitter.com/JinaAI_) cc @hwchase17, @baskaryan <!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6927/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 3, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6927/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6927", "html_url": "https://github.com/langchain-ai/langchain/pull/6927", "diff_url": "https://github.com/langchain-ai/langchain/pull/6927.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6927.patch", "merged_at": "2023-07-08T06:17:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/6926
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6926/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6926/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6926/events
https://github.com/langchain-ai/langchain/issues/6926
1,781,037,761
I_kwDOIPDwls5qKHrB
6,926
ValidationError: 1 validation error for MapRerankDocumentsChain
{ "login": "Lin-jun-xiang", "id": 63782903, "node_id": "MDQ6VXNlcjYzNzgyOTAz", "avatar_url": "https://avatars.githubusercontent.com/u/63782903?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Lin-jun-xiang", "html_url": "https://github.com/Lin-jun-xiang", "followers_url": "https://api.github.com/users/Lin-jun-xiang/followers", "following_url": "https://api.github.com/users/Lin-jun-xiang/following{/other_user}", "gists_url": "https://api.github.com/users/Lin-jun-xiang/gists{/gist_id}", "starred_url": "https://api.github.com/users/Lin-jun-xiang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lin-jun-xiang/subscriptions", "organizations_url": "https://api.github.com/users/Lin-jun-xiang/orgs", "repos_url": "https://api.github.com/users/Lin-jun-xiang/repos", "events_url": "https://api.github.com/users/Lin-jun-xiang/events{/privacy}", "received_events_url": "https://api.github.com/users/Lin-jun-xiang/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
open
false
null
[]
null
9
2023-06-29T15:15:32
2023-12-27T04:38:34
null
CONTRIBUTOR
null
### System Info * Langchain-0.0.215 * Python3.8.6 ### Who can help? @hwchase17 ### 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 - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction The chain type in `RetrievalQA.from_chain_type()`: * `stuff`: work successfully * `refine`: not work unless uses correctly naming or parameter. #6912 * `map_rerank`: not work * `map_reduce`: not work All the error of each type like: code: ```python prompt_template = """ Use the following pieces of context to answer the question, if you don't know the answer, leave it blank don't try to make up an answer. {context} Question: {question} Answer in JSON representations """ QA_PROMPT = PromptTemplate( template=prompt_template, input_variables=['context', 'question'] ) chain_type_kwargs = { 'prompt': QA_PROMPT, 'verbose': True } docs = PyMuPDFLoader('file.pdf').load() splitter = RecursiveCharacterTextSplitter( chunk_size=chunk_size, chunk_overlap=chunk_overlap ) docs = splitter.split_documents(document) embeddings = OpenAIEmbeddings() db = Chroma.from_documents( documents=docs, embedding= embeddings ) qa_cahin = RetrievalQA.from_chain_type( llm=OpenAI(temperature=0.2), chain_type='map_rerank', retriever=db.as_retriever(), chain_type_kwargs=chain_type_kwargs ) ``` result: ``` ValidationError Traceback (most recent call last) [c:\Users\JunXiang\AppData\Local\Programs\Python\Python38\lib\site-packages\langchain\chains\retrieval_qa\base.py](file:///C:/Users/JunXiang/AppData/Local/Programs/Python/Python38/lib/site-packages/langchain/chains/retrieval_qa/base.py) in from_chain_type(cls, llm, chain_type, chain_type_kwargs, **kwargs) 89 """Load chain from chain type.""" 90 _chain_type_kwargs = chain_type_kwargs or {} ---> 91 combine_documents_chain = load_qa_chain( 92 llm, chain_type=chain_type, **_chain_type_kwargs 93 ) [c:\Users\JunXiang\AppData\Local\Programs\Python\Python38\lib\site-packages\langchain\chains\question_answering\__init__.py](file:///C:/Users/JunXiang/AppData/Local/Programs/Python/Python38/lib/site-packages/langchain/chains/question_answering/__init__.py) in load_qa_chain(llm, chain_type, verbose, callback_manager, **kwargs) 236 f"Should be one of {loader_mapping.keys()}" ... [c:\Users\JunXiang\AppData\Local\Programs\Python\Python38\lib\site-packages\pydantic\main.cp38-win_amd64.pyd](file:///C:/Users/JunXiang/AppData/Local/Programs/Python/Python38/lib/site-packages/pydantic/main.cp38-win_amd64.pyd) in pydantic.main.BaseModel.__init__() ValidationError: 1 validation error for MapRerankDocumentsChain __root__ Output parser of llm_chain should be a RegexParser, got None (type=value_error) ``` ### Expected behavior Does not crash, when i try to run it.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6926/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6926/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6925
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6925/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6925/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6925/events
https://github.com/langchain-ai/langchain/issues/6925
1,781,033,687
I_kwDOIPDwls5qKGrX
6,925
Iterator version of AgentExecutor
{ "login": "SlapDrone", "id": 32279503, "node_id": "MDQ6VXNlcjMyMjc5NTAz", "avatar_url": "https://avatars.githubusercontent.com/u/32279503?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SlapDrone", "html_url": "https://github.com/SlapDrone", "followers_url": "https://api.github.com/users/SlapDrone/followers", "following_url": "https://api.github.com/users/SlapDrone/following{/other_user}", "gists_url": "https://api.github.com/users/SlapDrone/gists{/gist_id}", "starred_url": "https://api.github.com/users/SlapDrone/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SlapDrone/subscriptions", "organizations_url": "https://api.github.com/users/SlapDrone/orgs", "repos_url": "https://api.github.com/users/SlapDrone/repos", "events_url": "https://api.github.com/users/SlapDrone/events{/privacy}", "received_events_url": "https://api.github.com/users/SlapDrone/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 5496111774, "node_id": "LA_kwDOIPDwls8AAAABR5gCng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work", "name": "needs work", "color": "F9D0C4", "default": false, "description": "PRs that need more work" } ]
closed
false
null
[]
null
2
2023-06-29T15:13:26
2023-07-25T16:33:49
2023-07-25T16:33:49
CONTRIBUTOR
null
### Feature request A colleague and I would like to implement an iterator version of the AgentExecutor. That is, we'd like to expose each intermediate step of the plan/action/observation loop. This should look something like: ```python3 inputs = ... # complex question that requires tool usage, multi-step for step in agent_executor.iter(inputs=inputs): do_stuff_with(step) ``` ### Motivation This would be useful for a few applications. By hooking into agent steps we could: - Route different thoughts/actions/observations conditionally to: - different frontend components - different postprocessing/analysis logic - other agents We could also "pause" agent execution and intervene. ### Your contribution Yes, we have a PR ~ready.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6925/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 3, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6925/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6924
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6924/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6924/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6924/events
https://github.com/langchain-ai/langchain/issues/6924
1,780,951,536
I_kwDOIPDwls5qJynw
6,924
Support BingNewsApiWrapper on utilities
{ "login": "skspark", "id": 118829871, "node_id": "U_kgDOBxUzLw", "avatar_url": "https://avatars.githubusercontent.com/u/118829871?v=4", "gravatar_id": "", "url": "https://api.github.com/users/skspark", "html_url": "https://github.com/skspark", "followers_url": "https://api.github.com/users/skspark/followers", "following_url": "https://api.github.com/users/skspark/following{/other_user}", "gists_url": "https://api.github.com/users/skspark/gists{/gist_id}", "starred_url": "https://api.github.com/users/skspark/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/skspark/subscriptions", "organizations_url": "https://api.github.com/users/skspark/orgs", "repos_url": "https://api.github.com/users/skspark/repos", "events_url": "https://api.github.com/users/skspark/events{/privacy}", "received_events_url": "https://api.github.com/users/skspark/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 5496111774, "node_id": "LA_kwDOIPDwls8AAAABR5gCng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work", "name": "needs work", "color": "F9D0C4", "default": false, "description": "PRs that need more work" } ]
closed
false
null
[]
null
2
2023-06-29T14:28:14
2023-08-31T07:22:13
2023-08-31T07:22:12
CONTRIBUTOR
null
### Feature request Hello, I'd like to ask about supporting [BingNewsAPI](https://www.microsoft.com/en-us/bing/apis/bing-news-search-api), which the apis and response format is different from bing web search api, that I cannot utilize existing [BingSearchAPIWrapper](https://python.langchain.com/docs/modules/agents/tools/integrations/bing_search) result or run method. I know that you provide separating host url in existing BingSearchWrapper, but as the response format is different, there is an parsing error on calling result method. ### Motivation I cannot utilize existing [BingSearchAPIWrapper](https://python.langchain.com/docs/modules/agents/tools/integrations/bing_search) s result or run method on [BingNewsAPI](https://www.microsoft.com/en-us/bing/apis/bing-news-search-api) ### Your contribution If you allow me, I'd like to create pr for BingNewsSearchAPIWrapper utilities.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6924/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/6924/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6923
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6923/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6923/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6923/events
https://github.com/langchain-ai/langchain/issues/6923
1,780,945,041
I_kwDOIPDwls5qJxCR
6,923
Structured Agent Search Not Working
{ "login": "frederikskovw", "id": 97087128, "node_id": "U_kgDOBclumA", "avatar_url": "https://avatars.githubusercontent.com/u/97087128?v=4", "gravatar_id": "", "url": "https://api.github.com/users/frederikskovw", "html_url": "https://github.com/frederikskovw", "followers_url": "https://api.github.com/users/frederikskovw/followers", "following_url": "https://api.github.com/users/frederikskovw/following{/other_user}", "gists_url": "https://api.github.com/users/frederikskovw/gists{/gist_id}", "starred_url": "https://api.github.com/users/frederikskovw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/frederikskovw/subscriptions", "organizations_url": "https://api.github.com/users/frederikskovw/orgs", "repos_url": "https://api.github.com/users/frederikskovw/repos", "events_url": "https://api.github.com/users/frederikskovw/events{/privacy}", "received_events_url": "https://api.github.com/users/frederikskovw/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
open
false
null
[]
null
5
2023-06-29T14:25:29
2023-11-27T08:25:46
null
NONE
null
### System Info Trying to get an agent to describe the contents of a particular URL for me, however, **my agent does not execute past first step**. Attached image to show what my code looks like and where it freezes as it runs. <img width="683" alt="freezing_agent" src="https://github.com/hwchase17/langchain/assets/97087128/b3888b6e-f016-479e-ac1a-3036b7f16d97"> Thanks <3 ! (also posted as discussion, was not sure where to add) ### Who can help? @agola11 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from config import SERPAPI_API_KEY, OPENAI_API_KEY from langchain.agents import AgentType from langchain.chat_models import ChatOpenAI from langchain.agents import initialize_agent from langchain.agents.agent_toolkits import PlayWrightBrowserToolkit from langchain.tools.playwright.utils import create_async_playwright_browser import asyncio async_browser = create_async_playwright_browser() browser_toolkit = PlayWrightBrowserToolkit.from_browser(async_browser=async_browser) tools = browser_toolkit.get_tools() gpt_model = "gpt-4" llm = ChatOpenAI( temperature=0, model_name=gpt_model, openai_api_key=OPENAI_API_KEY ) agent_chain = initialize_agent(tools, llm, agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION, verbose=True) async def main(): response = await agent_chain.arun(input="Browse to https://www.theverge.com/2023/3/14/23638033/openai-gpt-4-chatgpt-multimodal-deep-learning and describe it to me.") return response result = asyncio.run(main()) print(result) ### Expected behavior Enter chain, navigate to browser, read content in browser, return description. Based on: https://python.langchain.com/docs/modules/agents/agent_types/structured_chat.html
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6923/reactions", "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6923/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6921
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6921/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6921/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6921/events
https://github.com/langchain-ai/langchain/issues/6921
1,780,846,938
I_kwDOIPDwls5qJZFa
6,921
DOC:
{ "login": "jroberge16", "id": 105321496, "node_id": "U_kgDOBkcUGA", "avatar_url": "https://avatars.githubusercontent.com/u/105321496?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jroberge16", "html_url": "https://github.com/jroberge16", "followers_url": "https://api.github.com/users/jroberge16/followers", "following_url": "https://api.github.com/users/jroberge16/following{/other_user}", "gists_url": "https://api.github.com/users/jroberge16/gists{/gist_id}", "starred_url": "https://api.github.com/users/jroberge16/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jroberge16/subscriptions", "organizations_url": "https://api.github.com/users/jroberge16/orgs", "repos_url": "https://api.github.com/users/jroberge16/repos", "events_url": "https://api.github.com/users/jroberge16/events{/privacy}", "received_events_url": "https://api.github.com/users/jroberge16/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528810, "node_id": "LA_kwDOIPDwls8AAAABFtyvKg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/documentation", "name": "documentation", "color": "0075ca", "default": true, "description": "Improvements or additions to documentation" }, { "id": 5774514459, "node_id": "LA_kwDOIPDwls8AAAABWDAZGw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/stale", "name": "stale", "color": "dadada", "default": false, "description": "Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed" } ]
closed
false
null
[]
null
4
2023-06-29T13:42:48
2023-09-28T18:26:50
2023-09-28T18:26:50
NONE
null
### Issue with current documentation: Hey, Love your product, and just wanted to give some constructive feedback. Your new layout and organization strategy on "https://python.langchain.com/docs/get_started/introduction.html" is significantly harder to navigate ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6921/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/6921/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6920
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6920/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6920/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6920/events
https://github.com/langchain-ai/langchain/issues/6920
1,780,800,182
I_kwDOIPDwls5qJNq2
6,920
FileCallbackHandler doesn't log entering new chain
{ "login": "robatwilliams", "id": 3041926, "node_id": "MDQ6VXNlcjMwNDE5MjY=", "avatar_url": "https://avatars.githubusercontent.com/u/3041926?v=4", "gravatar_id": "", "url": "https://api.github.com/users/robatwilliams", "html_url": "https://github.com/robatwilliams", "followers_url": "https://api.github.com/users/robatwilliams/followers", "following_url": "https://api.github.com/users/robatwilliams/following{/other_user}", "gists_url": "https://api.github.com/users/robatwilliams/gists{/gist_id}", "starred_url": "https://api.github.com/users/robatwilliams/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/robatwilliams/subscriptions", "organizations_url": "https://api.github.com/users/robatwilliams/orgs", "repos_url": "https://api.github.com/users/robatwilliams/repos", "events_url": "https://api.github.com/users/robatwilliams/events{/privacy}", "received_events_url": "https://api.github.com/users/robatwilliams/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 5496111774, "node_id": "LA_kwDOIPDwls8AAAABR5gCng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work", "name": "needs work", "color": "F9D0C4", "default": false, "description": "PRs that need more work" } ]
closed
false
null
[]
null
3
2023-06-29T13:15:39
2023-09-28T17:27:55
2023-09-28T17:27:37
NONE
null
### System Info Langchain 0.0.200 Python 3.11.4 Windows 10 ### Who can help? @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 - [ ] Chains - [X] Callbacks/Tracing - [ ] Async ### Reproduction 1. Use with `load_qa_chain` Error in console: ``` Error in on_chain_start callback: 'name' ``` Log file content is missing "Entering new chain" ### Expected behavior 1. No error in console 2. "Entering new chain" is present in log file Fix: access dict with fallback like StdOutCallbackHandler does: ```python class_name = serialized.get("name", "") ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6920/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6920/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6919
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6919/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6919/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6919/events
https://github.com/langchain-ai/langchain/issues/6919
1,780,791,122
I_kwDOIPDwls5qJLdS
6,919
FileCallbackHandler should open file in UTF-8 encoding
{ "login": "robatwilliams", "id": 3041926, "node_id": "MDQ6VXNlcjMwNDE5MjY=", "avatar_url": "https://avatars.githubusercontent.com/u/3041926?v=4", "gravatar_id": "", "url": "https://api.github.com/users/robatwilliams", "html_url": "https://github.com/robatwilliams", "followers_url": "https://api.github.com/users/robatwilliams/followers", "following_url": "https://api.github.com/users/robatwilliams/following{/other_user}", "gists_url": "https://api.github.com/users/robatwilliams/gists{/gist_id}", "starred_url": "https://api.github.com/users/robatwilliams/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/robatwilliams/subscriptions", "organizations_url": "https://api.github.com/users/robatwilliams/orgs", "repos_url": "https://api.github.com/users/robatwilliams/repos", "events_url": "https://api.github.com/users/robatwilliams/events{/privacy}", "received_events_url": "https://api.github.com/users/robatwilliams/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
4
2023-06-29T13:10:04
2023-09-28T17:29:58
2023-09-28T17:29:42
NONE
null
### System Info Langchain 0.0.200 Python 3.11.4 Windows 10 ### Who can help? @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 - [ ] Chains - [X] Callbacks/Tracing - [ ] Async ### Reproduction Use the handler with a prompt containing characters that aren't represented on the platform charset (e.g. cp1252) Error appears in console: ``` [manager.py:207] Error in on_text callback: 'charmap' codec can't encode character '\u2010' in position 776: character maps to <undefined> ``` Target logfile only has "entering new chain" and "finished chain" lines. ### Expected behavior 1. No error 2. Log file has usual output Fix: in constructor: ```self.file = cast(TextIO, open(file_path, "a", encoding="utf-8"))```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6919/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/6919/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6918
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6918/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6918/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6918/events
https://github.com/langchain-ai/langchain/issues/6918
1,780,780,200
I_kwDOIPDwls5qJIyo
6,918
How to add memory to SQLDatabaseChain?
{ "login": "bleschunov", "id": 62828574, "node_id": "MDQ6VXNlcjYyODI4NTc0", "avatar_url": "https://avatars.githubusercontent.com/u/62828574?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bleschunov", "html_url": "https://github.com/bleschunov", "followers_url": "https://api.github.com/users/bleschunov/followers", "following_url": "https://api.github.com/users/bleschunov/following{/other_user}", "gists_url": "https://api.github.com/users/bleschunov/gists{/gist_id}", "starred_url": "https://api.github.com/users/bleschunov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bleschunov/subscriptions", "organizations_url": "https://api.github.com/users/bleschunov/orgs", "repos_url": "https://api.github.com/users/bleschunov/repos", "events_url": "https://api.github.com/users/bleschunov/events{/privacy}", "received_events_url": "https://api.github.com/users/bleschunov/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528832, "node_id": "LA_kwDOIPDwls8AAAABFtyvQA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/question", "name": "question", "color": "d876e3", "default": true, "description": "Further information is requested" }, { "id": 5496111774, "node_id": "LA_kwDOIPDwls8AAAABR5gCng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work", "name": "needs work", "color": "F9D0C4", "default": false, "description": "PRs that need more work" } ]
open
false
null
[]
null
30
2023-06-29T13:02:50
2024-01-11T16:59:50
null
NONE
null
### Issue you'd like to raise. I want to create a chain to make query against my database. Also I want to add memory to this chain. Example of dialogue I want to see: Query: Who is an owner of website with domain domain.com? Answer: Boba Bobovich Query: Tell me his email Answer: Boba Bobovich's email is [email protected] I have this code: ``` import os from langchain import OpenAI, SQLDatabase, SQLDatabaseChain, PromptTemplate from langchain.memory import ConversationBufferMemory memory = ConversationBufferMemory() db = SQLDatabase.from_uri(os.getenv("DB_URI")) llm = OpenAI(temperature=0, verbose=True) db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True, memory=memory) db_chain.run("Who is owner of the website with domain https://damon.name") db_chain.run("Tell me his email") print(memory.load_memory_variables({})) ``` It gives: ``` > Entering new chain... Who is owner of the website with domain https://damon.name SQLQuery:SELECT first_name, last_name FROM owners JOIN websites ON owners.id = websites.owner_id WHERE domain = 'https://damon.name' LIMIT 5; SQLResult: [('Geo', 'Mertz')] Answer:Geo Mertz is the owner of the website with domain https://damon.name. > Finished chain. > Entering new chain... Tell me his email SQLQuery:SELECT email FROM owners WHERE first_name = 'Westley' AND last_name = 'Waters' SQLResult: [('[email protected]',)] Answer:Westley Waters' email is [email protected]. > Finished chain. {'history': "Human: Who is owner of the website with domain https://damon.name\nAI: Geo Mertz is the owner of the website with domain https://damon.name.\nHuman: Tell me his email\nAI: Westley Waters' email is [email protected]."} ``` Well, it saves context to memory but chain doesn't use it to give a proper answer (wrong email). How to fix it? Also I don't want to use an agent because I want to manage to do this with a simple chain first. Tell me if it's impossible with simple chain. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6918/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6918/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6917
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6917/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6917/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6917/events
https://github.com/langchain-ai/langchain/issues/6917
1,780,741,688
I_kwDOIPDwls5qI_Y4
6,917
Issue: User based chat history
{ "login": "ankitathakur12", "id": 135828817, "node_id": "U_kgDOCBiVUQ", "avatar_url": "https://avatars.githubusercontent.com/u/135828817?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ankitathakur12", "html_url": "https://github.com/ankitathakur12", "followers_url": "https://api.github.com/users/ankitathakur12/followers", "following_url": "https://api.github.com/users/ankitathakur12/following{/other_user}", "gists_url": "https://api.github.com/users/ankitathakur12/gists{/gist_id}", "starred_url": "https://api.github.com/users/ankitathakur12/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ankitathakur12/subscriptions", "organizations_url": "https://api.github.com/users/ankitathakur12/orgs", "repos_url": "https://api.github.com/users/ankitathakur12/repos", "events_url": "https://api.github.com/users/ankitathakur12/events{/privacy}", "received_events_url": "https://api.github.com/users/ankitathakur12/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 4678528832, "node_id": "LA_kwDOIPDwls8AAAABFtyvQA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/question", "name": "question", "color": "d876e3", "default": true, "description": "Further information is requested" } ]
closed
false
null
[]
null
3
2023-06-29T12:37:35
2023-11-13T16:08:20
2023-11-13T16:08:19
NONE
null
### User based chat history How I do implementation of User based chat history management and thread management. Plaese give any suggestion regarding this. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6917/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/6917/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6915
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6915/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6915/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6915/events
https://github.com/langchain-ai/langchain/issues/6915
1,780,653,651
I_kwDOIPDwls5qIp5T
6,915
make - ModuleNotFoundError: No module named 'scripts'
{ "login": "aj-hoang", "id": 106922132, "node_id": "U_kgDOBl-AlA", "avatar_url": "https://avatars.githubusercontent.com/u/106922132?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aj-hoang", "html_url": "https://github.com/aj-hoang", "followers_url": "https://api.github.com/users/aj-hoang/followers", "following_url": "https://api.github.com/users/aj-hoang/following{/other_user}", "gists_url": "https://api.github.com/users/aj-hoang/gists{/gist_id}", "starred_url": "https://api.github.com/users/aj-hoang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aj-hoang/subscriptions", "organizations_url": "https://api.github.com/users/aj-hoang/orgs", "repos_url": "https://api.github.com/users/aj-hoang/repos", "events_url": "https://api.github.com/users/aj-hoang/events{/privacy}", "received_events_url": "https://api.github.com/users/aj-hoang/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 4678528832, "node_id": "LA_kwDOIPDwls8AAAABFtyvQA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/question", "name": "question", "color": "d876e3", "default": true, "description": "Further information is requested" } ]
closed
false
null
[]
null
5
2023-06-29T11:40:35
2023-11-25T16:08:49
2023-11-25T16:08:48
NONE
null
### System Info OS: `Ubuntu 22.04` Langchain Version: `0.0.219` Poetry Version: `1.5.1` Python Version: `3.10.6` ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I would like to contribute to the project, I followed instructions for [contributing](https://github.com/hwchase17/langchain/blob/8502117f62fc4caa53d504ccc9d4e6a512006e7f/.github/CONTRIBUTING.md) and have installed poetry. After setting up the virtual env, the command: `poetry install -E all` runs successfully :heavy_check_mark: However when trying to do a `make test` I get the following error: ``` Traceback (most recent call last): File "[redacted]/langchain/.venv/bin/make", line 5, in <module> from scripts.proto import main ModuleNotFoundError: No module named 'scripts' ``` I have the virtual env activated and the command `make` is using the one installed in the virtual env. (see above error) I'm assuming I'm missing a dependency but it's not obvious to determine, can you help please? ### Expected behavior `make` should run properly
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6915/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6915/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6914
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6914/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6914/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6914/events
https://github.com/langchain-ai/langchain/pull/6914
1,780,630,901
PR_kwDOIPDwls5UO0nT
6,914
Fix run_inline to run hooks in the same context
{ "login": "mariokostelac", "id": 1917451, "node_id": "MDQ6VXNlcjE5MTc0NTE=", "avatar_url": "https://avatars.githubusercontent.com/u/1917451?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mariokostelac", "html_url": "https://github.com/mariokostelac", "followers_url": "https://api.github.com/users/mariokostelac/followers", "following_url": "https://api.github.com/users/mariokostelac/following{/other_user}", "gists_url": "https://api.github.com/users/mariokostelac/gists{/gist_id}", "starred_url": "https://api.github.com/users/mariokostelac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mariokostelac/subscriptions", "organizations_url": "https://api.github.com/users/mariokostelac/orgs", "repos_url": "https://api.github.com/users/mariokostelac/repos", "events_url": "https://api.github.com/users/mariokostelac/events{/privacy}", "received_events_url": "https://api.github.com/users/mariokostelac/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 5568495735, "node_id": "LA_kwDOIPDwls8AAAABS-iAdw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/callbacks", "name": "callbacks", "color": "5A02F9", "default": false, "description": "" } ]
closed
false
{ "login": "agola11", "id": 9536492, "node_id": "MDQ6VXNlcjk1MzY0OTI=", "avatar_url": "https://avatars.githubusercontent.com/u/9536492?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agola11", "html_url": "https://github.com/agola11", "followers_url": "https://api.github.com/users/agola11/followers", "following_url": "https://api.github.com/users/agola11/following{/other_user}", "gists_url": "https://api.github.com/users/agola11/gists{/gist_id}", "starred_url": "https://api.github.com/users/agola11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agola11/subscriptions", "organizations_url": "https://api.github.com/users/agola11/orgs", "repos_url": "https://api.github.com/users/agola11/repos", "events_url": "https://api.github.com/users/agola11/events{/privacy}", "received_events_url": "https://api.github.com/users/agola11/received_events", "type": "User", "site_admin": false }
[ { "login": "agola11", "id": 9536492, "node_id": "MDQ6VXNlcjk1MzY0OTI=", "avatar_url": "https://avatars.githubusercontent.com/u/9536492?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agola11", "html_url": "https://github.com/agola11", "followers_url": "https://api.github.com/users/agola11/followers", "following_url": "https://api.github.com/users/agola11/following{/other_user}", "gists_url": "https://api.github.com/users/agola11/gists{/gist_id}", "starred_url": "https://api.github.com/users/agola11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agola11/subscriptions", "organizations_url": "https://api.github.com/users/agola11/orgs", "repos_url": "https://api.github.com/users/agola11/repos", "events_url": "https://api.github.com/users/agola11/events{/privacy}", "received_events_url": "https://api.github.com/users/agola11/received_events", "type": "User", "site_admin": false } ]
null
5
2023-06-29T11:30:09
2023-11-01T22:56:46
2023-11-01T22:56:45
CONTRIBUTOR
null
Since https://github.com/hwchase17/langchain/commit/e1b801be36d2d492eea071dcb594e966414b31cf, run_inline flags on callbacks (introduced in [PR](https://github.com/hwchase17/langchain/pull/6424)) are broken. Because higher-level on_llm_start uses asyncio.gather, it's creates a task for given coroutines, and changes the hooks' context. Hence, it's not run inline and context is lost. Added test shows that if ran without changes in the manager.py. This approach changes the interface of `_ahandle_event` to be synchronous method that returns an awaitable (I think it doesn't change much), which is a result of one `asyncio.wait` statement. This ensures that `run_inline` hooks will be run before async hooks, but it doesn't ensure that relative order of inline hooks is preserved. I'm not sure if that's a good approach, but posting it anyway so we can discuss the direction.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6914/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6914/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6914", "html_url": "https://github.com/langchain-ai/langchain/pull/6914", "diff_url": "https://github.com/langchain-ai/langchain/pull/6914.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6914.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6913
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6913/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6913/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6913/events
https://github.com/langchain-ai/langchain/pull/6913
1,780,624,598
PR_kwDOIPDwls5UOzM0
6,913
Add JSON Lines support to JSONLoader
{ "login": "skozlovf", "id": 730013, "node_id": "MDQ6VXNlcjczMDAxMw==", "avatar_url": "https://avatars.githubusercontent.com/u/730013?v=4", "gravatar_id": "", "url": "https://api.github.com/users/skozlovf", "html_url": "https://github.com/skozlovf", "followers_url": "https://api.github.com/users/skozlovf/followers", "following_url": "https://api.github.com/users/skozlovf/following{/other_user}", "gists_url": "https://api.github.com/users/skozlovf/gists{/gist_id}", "starred_url": "https://api.github.com/users/skozlovf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/skozlovf/subscriptions", "organizations_url": "https://api.github.com/users/skozlovf/orgs", "repos_url": "https://api.github.com/users/skozlovf/repos", "events_url": "https://api.github.com/users/skozlovf/events{/privacy}", "received_events_url": "https://api.github.com/users/skozlovf/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)" } ]
closed
false
{ "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 }
[ { "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 } ]
null
7
2023-06-29T11:26:07
2023-07-02T19:32:42
2023-07-02T19:32:41
CONTRIBUTOR
null
**Description**: The JSON Lines format is used by some services such as OpenAI and HuggingFace. It's also a convenient alternative to CSV. This PR adds JSON Lines support to `JSONLoader` and also updates related tests. **Tag maintainer**: @rlancemartin, @eyurtsev. PS I was not able to build docs locally so didn't update related section.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6913/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6913/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6913", "html_url": "https://github.com/langchain-ai/langchain/pull/6913", "diff_url": "https://github.com/langchain-ai/langchain/pull/6913.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6913.patch", "merged_at": "2023-07-02T19:32:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/6912
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6912/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6912/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6912/events
https://github.com/langchain-ai/langchain/pull/6912
1,780,597,576
PR_kwDOIPDwls5UOtQr
6,912
Fix different naming of params for chain type
{ "login": "Lin-jun-xiang", "id": 63782903, "node_id": "MDQ6VXNlcjYzNzgyOTAz", "avatar_url": "https://avatars.githubusercontent.com/u/63782903?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Lin-jun-xiang", "html_url": "https://github.com/Lin-jun-xiang", "followers_url": "https://api.github.com/users/Lin-jun-xiang/followers", "following_url": "https://api.github.com/users/Lin-jun-xiang/following{/other_user}", "gists_url": "https://api.github.com/users/Lin-jun-xiang/gists{/gist_id}", "starred_url": "https://api.github.com/users/Lin-jun-xiang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lin-jun-xiang/subscriptions", "organizations_url": "https://api.github.com/users/Lin-jun-xiang/orgs", "repos_url": "https://api.github.com/users/Lin-jun-xiang/repos", "events_url": "https://api.github.com/users/Lin-jun-xiang/events{/privacy}", "received_events_url": "https://api.github.com/users/Lin-jun-xiang/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-29T11:07:29
2023-09-04T08:11:47
2023-07-06T14:00:57
CONTRIBUTOR
null
# Changed and Fixed what? Renaming the parameters in different chain type. To enable smooth and error-free invocation of `RetrievalQA.from_chain_type` functions with different chain types, and to make the usage more intuitive. # Problem description `RetrievalQA.from_chain_type` can execute successfully with `stuff` chain type. However, it cannot use with `map_reduce`, `refine`. If we use `RetrievalQA.from_chain_type()` with `map_reduce` or `refine` chain type, we will get `ValidationError`: ## Code ```python prompt_template = """ Use the following pieces of context to answer the question, if you don't know the answer, leave it blank don't try to make up an answer. {context} Question: {question} Answer in JSON representations """ QA_PROMPT = PromptTemplate( template=prompt_template, input_variables=['context', 'question'] ) chain_type_kwargs = {'prompt': QA_PROMPT, 'verbose': True} qa_cahin = RetrievalQA.from_chain_type( llm=OpenAI(temperature=0.2), chain_type='refine', retriever=db.as_retriever(), chain_type_kwargs=chain_type_kwargs ) ``` ## Result ``` ValidationError: 1 validation error for RefineDocumentsChain prompt extra fields not permitted (type=value_error.extra) ``` --- # Source of error Check the [source code](https://github.com/hwchase17/langchain/blob/d85f57ef9cbbbd5e512e064fb81c531b28c6591c/langchain/chains/question_answering/__init__.py#L146) The different types have **different naming of parameter** as following: * stuff ```python def _load_stuff_chain( llm: BaseLanguageModel, prompt: Optional[BasePromptTemplate] = None, document_variable_name: str = "context", verbose: Optional[bool] = None, callback_manager: Optional[BaseCallbackManager] = None, **kwargs: Any, ) -> StuffDocumentsChain: ``` * map_reduce ```python def _load_map_reduce_chain( llm: BaseLanguageModel, question_prompt: Optional[BasePromptTemplate] = None, combine_prompt: Optional[BasePromptTemplate] = None, combine_document_variable_name: str = "summaries", map_reduce_document_variable_name: str = "context", collapse_prompt: Optional[BasePromptTemplate] = None, reduce_llm: Optional[BaseLanguageModel] = None, collapse_llm: Optional[BaseLanguageModel] = None, verbose: Optional[bool] = None, callback_manager: Optional[BaseCallbackManager] = None, **kwargs: Any, ) -> MapReduceDocumentsChain: ``` * refine ```python def _load_refine_chain( llm: BaseLanguageModel, question_prompt: Optional[BasePromptTemplate] = None, refine_prompt: Optional[BasePromptTemplate] = None, document_variable_name: str = "context_str", initial_response_name: str = "existing_answer", refine_llm: Optional[BaseLanguageModel] = None, verbose: Optional[bool] = None, callback_manager: Optional[BaseCallbackManager] = None, **kwargs: Any, ) -> RefineDocumentsChain: ``` --- If want to use different chaint type, we should: ```python prompt_template = """ Use the following pieces of context to answer the question, if you don't know the answer, leave it blank don't try to make up an answer. {context_str} Question: {question} Answer in JSON representations """ QA_PROMPT = PromptTemplate( template=prompt_template, input_variables=['context_str', 'question'] ) chain_type_kwargs = {'question_prompt': QA_PROMPT, 'verbose': True} qa_cahin = RetrievalQA.from_chain_type( llm=OpenAI(temperature=0.2), chain_type='refine', retriever=db.as_retriever(), chain_type_kwargs=chain_type_kwargs ) ``` There're a confusing in the different naming of parameters. * `context` vs `context_str` * `prompt` vs `question_prompt` <!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6912/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6912/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6912", "html_url": "https://github.com/langchain-ai/langchain/pull/6912", "diff_url": "https://github.com/langchain-ai/langchain/pull/6912.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6912.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6911
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6911/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6911/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6911/events
https://github.com/langchain-ai/langchain/pull/6911
1,780,551,489
PR_kwDOIPDwls5UOjNJ
6,911
Timeout for base llms
{ "login": "alessarcross", "id": 97063602, "node_id": "U_kgDOBckSsg", "avatar_url": "https://avatars.githubusercontent.com/u/97063602?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alessarcross", "html_url": "https://github.com/alessarcross", "followers_url": "https://api.github.com/users/alessarcross/followers", "following_url": "https://api.github.com/users/alessarcross/following{/other_user}", "gists_url": "https://api.github.com/users/alessarcross/gists{/gist_id}", "starred_url": "https://api.github.com/users/alessarcross/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alessarcross/subscriptions", "organizations_url": "https://api.github.com/users/alessarcross/orgs", "repos_url": "https://api.github.com/users/alessarcross/repos", "events_url": "https://api.github.com/users/alessarcross/events{/privacy}", "received_events_url": "https://api.github.com/users/alessarcross/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
3
2023-06-29T10:35:20
2023-11-07T03:53:33
2023-11-07T03:53:33
NONE
null
Description: Adding timeout as an option to the BaseLLM class.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6911/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6911/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6911", "html_url": "https://github.com/langchain-ai/langchain/pull/6911", "diff_url": "https://github.com/langchain-ai/langchain/pull/6911.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6911.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6909
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6909/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6909/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6909/events
https://github.com/langchain-ai/langchain/pull/6909
1,780,472,015
PR_kwDOIPDwls5UOR6V
6,909
Fix the different naming of params for chain type
{ "login": "Lin-jun-xiang", "id": 63782903, "node_id": "MDQ6VXNlcjYzNzgyOTAz", "avatar_url": "https://avatars.githubusercontent.com/u/63782903?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Lin-jun-xiang", "html_url": "https://github.com/Lin-jun-xiang", "followers_url": "https://api.github.com/users/Lin-jun-xiang/followers", "following_url": "https://api.github.com/users/Lin-jun-xiang/following{/other_user}", "gists_url": "https://api.github.com/users/Lin-jun-xiang/gists{/gist_id}", "starred_url": "https://api.github.com/users/Lin-jun-xiang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lin-jun-xiang/subscriptions", "organizations_url": "https://api.github.com/users/Lin-jun-xiang/orgs", "repos_url": "https://api.github.com/users/Lin-jun-xiang/repos", "events_url": "https://api.github.com/users/Lin-jun-xiang/events{/privacy}", "received_events_url": "https://api.github.com/users/Lin-jun-xiang/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-29T09:40:20
2023-09-04T08:11:47
2023-06-29T11:09:15
CONTRIBUTOR
null
# Description Renaming the different naming of parameters for chain type. Fixed the `ValidationError: 1 validation error for RefineDocumentsChain` # The promblem `RetrievalQA.from_chain_type` can execute successfully with 'stuff' chain type. However, it cannot use with `map_reduce`, `refine`. ## Code ```python prompt_template = """ Use the following pieces of context to answer the question, if you don't know the answer, leave it blank don't try to make up an answer. {context} Question: {question} Answer in JSON representations """ QA_PROMPT = PromptTemplate( template=prompt_template, input_variables=['context', 'question'] ) chain_type_kwargs = {'prompt': QA_PROMPT, 'verbose': True} qa_cahin = RetrievalQA.from_chain_type( llm=OpenAI(temperature=0.2), chain_type='refine', retriever=db.as_retriever(), chain_type_kwargs=chain_type_kwargs ) ``` ## Result ``` ValidationError: 1 validation error for RefineDocumentsChain prompt extra fields not permitted (type=value_error.extra) ``` --- I've tried to find the [source code](https://github.com/hwchase17/langchain/blob/d85f57ef9cbbbd5e512e064fb81c531b28c6591c/langchain/chains/question_answering/__init__.py#L146) I see the different types have **different naming of parameter** as following: * stuff ```python def _load_stuff_chain( llm: BaseLanguageModel, prompt: Optional[BasePromptTemplate] = None, document_variable_name: str = "context", verbose: Optional[bool] = None, callback_manager: Optional[BaseCallbackManager] = None, **kwargs: Any, ) -> StuffDocumentsChain: ``` * map_reduce ```python def _load_map_reduce_chain( llm: BaseLanguageModel, question_prompt: Optional[BasePromptTemplate] = None, combine_prompt: Optional[BasePromptTemplate] = None, combine_document_variable_name: str = "summaries", map_reduce_document_variable_name: str = "context", collapse_prompt: Optional[BasePromptTemplate] = None, reduce_llm: Optional[BaseLanguageModel] = None, collapse_llm: Optional[BaseLanguageModel] = None, verbose: Optional[bool] = None, callback_manager: Optional[BaseCallbackManager] = None, **kwargs: Any, ) -> MapReduceDocumentsChain: ``` * refine ```python def _load_refine_chain( llm: BaseLanguageModel, question_prompt: Optional[BasePromptTemplate] = None, refine_prompt: Optional[BasePromptTemplate] = None, document_variable_name: str = "context_str", initial_response_name: str = "existing_answer", refine_llm: Optional[BaseLanguageModel] = None, verbose: Optional[bool] = None, callback_manager: Optional[BaseCallbackManager] = None, **kwargs: Any, ) -> RefineDocumentsChain: ``` --- If I use the following code, it can work: ```python prompt_template = """ Use the following pieces of context to answer the question, if you don't know the answer, leave it blank don't try to make up an answer. {context_str} Question: {question} Answer in JSON representations """ QA_PROMPT = PromptTemplate( template=prompt_template, input_variables=['context_str', 'question'] ) chain_type_kwargs = {'question_prompt': QA_PROMPT, 'verbose': True} qa_cahin = RetrievalQA.from_chain_type( llm=OpenAI(temperature=0.2), chain_type='refine', retriever=db.as_retriever(), chain_type_kwargs=chain_type_kwargs ) ``` Maybe, the error comes from the different naming of parameters ? * `context` vs `context_str` * `prompt` vs `question_prompt`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6909/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6909/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6909", "html_url": "https://github.com/langchain-ai/langchain/pull/6909", "diff_url": "https://github.com/langchain-ai/langchain/pull/6909.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6909.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6908
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6908/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6908/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6908/events
https://github.com/langchain-ai/langchain/pull/6908
1,780,471,865
PR_kwDOIPDwls5UOR4S
6,908
Add password to PyPDR loader and parser
{ "login": "lucasiscovici", "id": 15991202, "node_id": "MDQ6VXNlcjE1OTkxMjAy", "avatar_url": "https://avatars.githubusercontent.com/u/15991202?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lucasiscovici", "html_url": "https://github.com/lucasiscovici", "followers_url": "https://api.github.com/users/lucasiscovici/followers", "following_url": "https://api.github.com/users/lucasiscovici/following{/other_user}", "gists_url": "https://api.github.com/users/lucasiscovici/gists{/gist_id}", "starred_url": "https://api.github.com/users/lucasiscovici/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lucasiscovici/subscriptions", "organizations_url": "https://api.github.com/users/lucasiscovici/orgs", "repos_url": "https://api.github.com/users/lucasiscovici/repos", "events_url": "https://api.github.com/users/lucasiscovici/events{/privacy}", "received_events_url": "https://api.github.com/users/lucasiscovici/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": "" } ]
closed
false
null
[]
null
2
2023-06-29T09:40:14
2023-06-30T00:35:52
2023-06-30T00:35:51
CONTRIBUTOR
null
Add password to PyPDR loader and parser
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6908/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6908/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6908", "html_url": "https://github.com/langchain-ai/langchain/pull/6908", "diff_url": "https://github.com/langchain-ai/langchain/pull/6908.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6908.patch", "merged_at": "2023-06-30T00:35:51" }
https://api.github.com/repos/langchain-ai/langchain/issues/6907
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6907/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6907/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6907/events
https://github.com/langchain-ai/langchain/issues/6907
1,780,466,588
I_kwDOIPDwls5qH8Oc
6,907
Stream Mode does not recognize openai.error
{ "login": "wqj97", "id": 18662395, "node_id": "MDQ6VXNlcjE4NjYyMzk1", "avatar_url": "https://avatars.githubusercontent.com/u/18662395?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wqj97", "html_url": "https://github.com/wqj97", "followers_url": "https://api.github.com/users/wqj97/followers", "following_url": "https://api.github.com/users/wqj97/following{/other_user}", "gists_url": "https://api.github.com/users/wqj97/gists{/gist_id}", "starred_url": "https://api.github.com/users/wqj97/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wqj97/subscriptions", "organizations_url": "https://api.github.com/users/wqj97/orgs", "repos_url": "https://api.github.com/users/wqj97/repos", "events_url": "https://api.github.com/users/wqj97/events{/privacy}", "received_events_url": "https://api.github.com/users/wqj97/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
closed
false
null
[]
null
1
2023-06-29T09:36:28
2023-10-06T16:06:39
2023-10-06T16:06:38
CONTRIBUTOR
null
### System Info langchain-0.0.219 python-3.9 macos-13.4.1 (22F82) ### Who can help? @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [X] Async ### Reproduction 1. use async style request in stream mode ```python ChatOpenAI(streaming=True).agenerate([...]) ``` 2. Got an error if openai sdk raises `openai.error.APIError` ![image](https://github.com/hwchase17/langchain/assets/18662395/efacc3e8-f075-4b36-877e-afd23bb9ef88) 3. `acompletion_with_retry` not effective because the exception was thrown by `"openai/api_requestor.py", line 763, in _interpret_response_line` which is after “request” in: tenacity/_asyncio.py ![tenacity/_asyncio.py](https://github.com/hwchase17/langchain/assets/18662395/be78d17a-b0f3-4f25-941b-f1a50cd0708d) ### Expected behavior Catch exception, and do retry.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6907/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6907/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6906
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6906/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6906/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6906/events
https://github.com/langchain-ai/langchain/issues/6906
1,780,456,921
I_kwDOIPDwls5qH53Z
6,906
"ParserError: Error tokenizing data. C error: Expected 2 fields in line 4, saw 4"
{ "login": "y-f-a", "id": 13643966, "node_id": "MDQ6VXNlcjEzNjQzOTY2", "avatar_url": "https://avatars.githubusercontent.com/u/13643966?v=4", "gravatar_id": "", "url": "https://api.github.com/users/y-f-a", "html_url": "https://github.com/y-f-a", "followers_url": "https://api.github.com/users/y-f-a/followers", "following_url": "https://api.github.com/users/y-f-a/following{/other_user}", "gists_url": "https://api.github.com/users/y-f-a/gists{/gist_id}", "starred_url": "https://api.github.com/users/y-f-a/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/y-f-a/subscriptions", "organizations_url": "https://api.github.com/users/y-f-a/orgs", "repos_url": "https://api.github.com/users/y-f-a/repos", "events_url": "https://api.github.com/users/y-f-a/events{/privacy}", "received_events_url": "https://api.github.com/users/y-f-a/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
closed
false
null
[]
null
3
2023-06-29T09:29:43
2023-11-03T16:07:17
2023-11-03T16:07:16
NONE
null
### System Info Using Google Colab, Python 3.10.12. Installing latest version of langchain as of today (v0.0.219, I believe). ### 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 - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction When running the following function to create a chain on a collection of text files , I get the following error: ``` def get_company_qa_chain(company_text_dir): loader = DirectoryLoader(company_text_dir, glob="*.txt") documents = loader.load() text_splitter = RecursiveCharacterTextSplitter( chunk_size = 1000, chunk_overlap = 100, length_function = len, ) docs = text_splitter.split_documents(documents) embeddings = OpenAIEmbeddings() # default model="text-embedding-ada-002" docsearch = Chroma.from_documents(docs, embeddings) model_name = "gpt-3.5-turbo" temperature=0 chat = ChatOpenAI(model_name = model_name, temperature=temperature) template="""You are a helpful utility for answering questions. Communicate in English only.""" system_message_prompt = SystemMessagePromptTemplate.from_template(template) human_template = """Use the following context to answer the question that follows. If you don't know the answer, say you don't know, don't try to make up an answer: {context} Question: {question} """ human_message_prompt = HumanMessagePromptTemplate.from_template(human_template, input_variables=["context", "question"]) chat_prompt = ChatPromptTemplate.from_messages([system_message_prompt, human_message_prompt]) chain_type_kwargs = {"prompt": chat_prompt} qa = RetrievalQA.from_chain_type(llm=chat, chain_type="stuff", retriever=docsearch.as_retriever(), return_source_documents=True, chain_type_kwargs=chain_type_kwargs) return qa ``` ``` /usr/local/lib/python3.10/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.raise_parser_error() ParserError: Error tokenizing data. C error: Expected 2 fields in line 4, saw 4 ``` I have isolated the error to a particular text file, which has been produced by pymupdf. There are no clearly strange characters in the file, and everything has been cleaned using the following function before writing to text file: ``` def clean_str(text): text = unicodedata.normalize('NFKC', text) text = text.replace("{", "").replace("}", "").replace("[", "").replace("]", "") return text ``` ### Expected behavior I would expect the code to handle this error and skip the problematic file. I would be also totally happy with a way of cleaning the input files to ensure this doesn't happen again. It was quite a bit of work to hunt down the problem file manually.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6906/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/6906/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6905
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6905/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6905/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6905/events
https://github.com/langchain-ai/langchain/pull/6905
1,780,435,182
PR_kwDOIPDwls5UOJ7k
6,905
Create repo1
{ "login": "treinex", "id": 52037031, "node_id": "MDQ6VXNlcjUyMDM3MDMx", "avatar_url": "https://avatars.githubusercontent.com/u/52037031?v=4", "gravatar_id": "", "url": "https://api.github.com/users/treinex", "html_url": "https://github.com/treinex", "followers_url": "https://api.github.com/users/treinex/followers", "following_url": "https://api.github.com/users/treinex/following{/other_user}", "gists_url": "https://api.github.com/users/treinex/gists{/gist_id}", "starred_url": "https://api.github.com/users/treinex/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/treinex/subscriptions", "organizations_url": "https://api.github.com/users/treinex/orgs", "repos_url": "https://api.github.com/users/treinex/repos", "events_url": "https://api.github.com/users/treinex/events{/privacy}", "received_events_url": "https://api.github.com/users/treinex/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-29T09:14:40
2023-06-29T19:57:06
2023-06-29T19:57:06
NONE
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6905/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6905/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6905", "html_url": "https://github.com/langchain-ai/langchain/pull/6905", "diff_url": "https://github.com/langchain-ai/langchain/pull/6905.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6905.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6904
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6904/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6904/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6904/events
https://github.com/langchain-ai/langchain/pull/6904
1,780,426,625
PR_kwDOIPDwls5UOIFs
6,904
chore: NebulaGraph prompt optmization
{ "login": "wey-gu", "id": 1651790, "node_id": "MDQ6VXNlcjE2NTE3OTA=", "avatar_url": "https://avatars.githubusercontent.com/u/1651790?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wey-gu", "html_url": "https://github.com/wey-gu", "followers_url": "https://api.github.com/users/wey-gu/followers", "following_url": "https://api.github.com/users/wey-gu/following{/other_user}", "gists_url": "https://api.github.com/users/wey-gu/gists{/gist_id}", "starred_url": "https://api.github.com/users/wey-gu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wey-gu/subscriptions", "organizations_url": "https://api.github.com/users/wey-gu/orgs", "repos_url": "https://api.github.com/users/wey-gu/repos", "events_url": "https://api.github.com/users/wey-gu/events{/privacy}", "received_events_url": "https://api.github.com/users/wey-gu/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": "" } ]
closed
false
null
[]
null
2
2023-06-29T09:08:30
2023-06-30T00:04:35
2023-06-29T19:57:40
CONTRIBUTOR
null
Was preparing for a demo project of NebulaGraphQAChain to find out the prompt needed to be optimized a little bit. Please @hwchase17 kindly help review. Thanks!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6904/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6904/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6904", "html_url": "https://github.com/langchain-ai/langchain/pull/6904", "diff_url": "https://github.com/langchain-ai/langchain/pull/6904.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6904.patch", "merged_at": "2023-06-29T19:57:40" }
https://api.github.com/repos/langchain-ai/langchain/issues/6903
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6903/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6903/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6903/events
https://github.com/langchain-ai/langchain/pull/6903
1,780,323,771
PR_kwDOIPDwls5UNx4W
6,903
Extend the QA use cases by DataChad example
{ "login": "gustavz", "id": 29252883, "node_id": "MDQ6VXNlcjI5MjUyODgz", "avatar_url": "https://avatars.githubusercontent.com/u/29252883?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gustavz", "html_url": "https://github.com/gustavz", "followers_url": "https://api.github.com/users/gustavz/followers", "following_url": "https://api.github.com/users/gustavz/following{/other_user}", "gists_url": "https://api.github.com/users/gustavz/gists{/gist_id}", "starred_url": "https://api.github.com/users/gustavz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gustavz/subscriptions", "organizations_url": "https://api.github.com/users/gustavz/orgs", "repos_url": "https://api.github.com/users/gustavz/repos", "events_url": "https://api.github.com/users/gustavz/events{/privacy}", "received_events_url": "https://api.github.com/users/gustavz/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-29T07:57:26
2023-07-03T07:25:01
2023-06-29T19:59:13
NONE
null
- Description: Add an use case example to question_answering section - Issue: tN/A - Dependencies: N/A - Tag maintainer: @hwchase17 - Twitter handle: @thegreatgustby @hwchase17 we had spoken in twitter dms (12th May) to include the project in the use-cases section. I forgot to do it since, so wanted to do it now. Hope it's still accepted. Thanks!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6903/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6903/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6903", "html_url": "https://github.com/langchain-ai/langchain/pull/6903", "diff_url": "https://github.com/langchain-ai/langchain/pull/6903.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6903.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6902
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6902/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6902/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6902/events
https://github.com/langchain-ai/langchain/pull/6902
1,780,310,048
PR_kwDOIPDwls5UNu9X
6,902
Add API Header for Amazon API Gateway Authentication
{ "login": "sunbc0120", "id": 7380988, "node_id": "MDQ6VXNlcjczODA5ODg=", "avatar_url": "https://avatars.githubusercontent.com/u/7380988?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sunbc0120", "html_url": "https://github.com/sunbc0120", "followers_url": "https://api.github.com/users/sunbc0120/followers", "following_url": "https://api.github.com/users/sunbc0120/following{/other_user}", "gists_url": "https://api.github.com/users/sunbc0120/gists{/gist_id}", "starred_url": "https://api.github.com/users/sunbc0120/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sunbc0120/subscriptions", "organizations_url": "https://api.github.com/users/sunbc0120/orgs", "repos_url": "https://api.github.com/users/sunbc0120/repos", "events_url": "https://api.github.com/users/sunbc0120/events{/privacy}", "received_events_url": "https://api.github.com/users/sunbc0120/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-29T07:46:45
2023-06-29T19:58:08
2023-06-29T19:58:07
CONTRIBUTOR
null
Add API Headers support for Amazon API Gateway to enable Authentication using DynamoDB. <!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6902/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6902/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6902", "html_url": "https://github.com/langchain-ai/langchain/pull/6902", "diff_url": "https://github.com/langchain-ai/langchain/pull/6902.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6902.patch", "merged_at": "2023-06-29T19:58:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/6901
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6901/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6901/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6901/events
https://github.com/langchain-ai/langchain/pull/6901
1,780,285,232
PR_kwDOIPDwls5UNplh
6,901
move octo notebook
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
1
2023-06-29T07:28:12
2023-06-29T19:20:57
2023-06-29T19:20:56
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6901/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6901/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6901", "html_url": "https://github.com/langchain-ai/langchain/pull/6901", "diff_url": "https://github.com/langchain-ai/langchain/pull/6901.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6901.patch", "merged_at": "2023-06-29T19:20:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/6900
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6900/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6900/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6900/events
https://github.com/langchain-ai/langchain/issues/6900
1,780,233,553
I_kwDOIPDwls5qHDVR
6,900
load_prompt Unable to set encoding for JSON files
{ "login": "jiaxin576", "id": 24885828, "node_id": "MDQ6VXNlcjI0ODg1ODI4", "avatar_url": "https://avatars.githubusercontent.com/u/24885828?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jiaxin576", "html_url": "https://github.com/jiaxin576", "followers_url": "https://api.github.com/users/jiaxin576/followers", "following_url": "https://api.github.com/users/jiaxin576/following{/other_user}", "gists_url": "https://api.github.com/users/jiaxin576/gists{/gist_id}", "starred_url": "https://api.github.com/users/jiaxin576/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jiaxin576/subscriptions", "organizations_url": "https://api.github.com/users/jiaxin576/orgs", "repos_url": "https://api.github.com/users/jiaxin576/repos", "events_url": "https://api.github.com/users/jiaxin576/events{/privacy}", "received_events_url": "https://api.github.com/users/jiaxin576/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
2
2023-06-29T06:48:33
2023-12-06T14:51:42
2023-10-05T16:08:17
NONE
null
### System Info llm = OpenAI(temperature=0) chain = LLMChain(llm=llm, prompt=load_prompt("coolapk_prompt.json")) config = json.load(f) UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 108: illegal multibyte sequence ### Who can help? llm = OpenAI(temperature=0) chain = LLMChain(llm=llm, prompt=load_prompt("coolapk_prompt.json")) ### 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 - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction llm = OpenAI(temperature=0) chain = LLMChain(llm=llm, prompt=load_prompt("coolapk_prompt.json")) ### Expected behavior add set encoding for JSON files
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6900/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6900/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6899
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6899/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6899/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6899/events
https://github.com/langchain-ai/langchain/pull/6899
1,780,205,677
PR_kwDOIPDwls5UNYXL
6,899
bump version to 219
{ "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": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/release", "name": "release", "color": "07D4BE", "default": false, "description": "" } ]
closed
false
null
[]
null
1
2023-06-29T06:21:03
2023-06-29T06:48:44
2023-06-29T06:48:43
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6899/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6899/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6899", "html_url": "https://github.com/langchain-ai/langchain/pull/6899", "diff_url": "https://github.com/langchain-ai/langchain/pull/6899.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6899.patch", "merged_at": "2023-06-29T06:48:43" }
https://api.github.com/repos/langchain-ai/langchain/issues/6898
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6898/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6898/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6898/events
https://github.com/langchain-ai/langchain/issues/6898
1,780,203,422
I_kwDOIPDwls5qG7-e
6,898
The ReDOS Attack for the regex in langchain
{ "login": "wqh17101", "id": 26429138, "node_id": "MDQ6VXNlcjI2NDI5MTM4", "avatar_url": "https://avatars.githubusercontent.com/u/26429138?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wqh17101", "html_url": "https://github.com/wqh17101", "followers_url": "https://api.github.com/users/wqh17101/followers", "following_url": "https://api.github.com/users/wqh17101/following{/other_user}", "gists_url": "https://api.github.com/users/wqh17101/gists{/gist_id}", "starred_url": "https://api.github.com/users/wqh17101/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wqh17101/subscriptions", "organizations_url": "https://api.github.com/users/wqh17101/orgs", "repos_url": "https://api.github.com/users/wqh17101/repos", "events_url": "https://api.github.com/users/wqh17101/events{/privacy}", "received_events_url": "https://api.github.com/users/wqh17101/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
1
2023-06-29T06:18:22
2023-10-05T16:06:45
2023-10-05T16:06:44
NONE
null
### System Info python 3.9 langchain 0.0.199 ### Who can help? @hwchase17 @agola11 @eyu ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction The regex such as https://github.com/hwchase17/langchain/blob/6370808d41eda0d056375015fda9284e9f01280c/langchain/agents/mrkl/output_parser.py#L18 will raise a ReDOS when the model output something below `'Action' + '\n'*n + ':' + '\t'*n + '\t0Input:' + '\t'*n + '\nAction' + '\t'*n + 'Input' + '\t'*n + '\t0Input:ActionInput:'` full code: ``` import re n=780 llm_output='Action' + '\n'*n + ':' + '\t'*n + '\t0Input:' + '\t'*n + '\nAction' + '\t'*n + 'Input' + '\t'*n + '\t0Input:ActionInput:' regex = ( r"Action\s*\d*\s*:[\s]*(.*?)[\s]*Action\s*\d*\s*Input\s*\d*\s*:[\s]*(.*)" ) match = re.search(regex, llm_output, re.DOTALL) action = match.group(1).strip() print(action) action_input = match.group(2) ``` To slow the regex ### Expected behavior ``` Protection There are several things you can do to protect yourself from ReDoS attacks. 1.Look at safer alternative libraries such as Facebook’s [pyre2](https://pypi.org/project/pyre2/), which is a python wrapper around Google’s C++ Regex Library, [re2](https://github.com/google/re2/). 2.Always double check all regex you add to your application and never blindly trust regex patterns you find online. 3.Utilize SAST and fuzzing tools to test your own code, and check out [Ochrona](https://ochrona.dev/) to make sure your dependencies are not vulnerable to ReDoS attacks. 4.If possible, limit the length of your input to avoid longer than necessary strings. ``` from https://medium.com/ochrona/python-dos-prevention-the-redos-attack-7267a8fa2d5c Also you can check your regex online https://devina.io/redos-checker.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6898/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6898/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6897
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6897/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6897/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6897/events
https://github.com/langchain-ai/langchain/pull/6897
1,780,171,970
PR_kwDOIPDwls5UNRG0
6,897
Harrison/octo ml
{ "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 }
[]
closed
false
null
[]
null
1
2023-06-29T05:43:49
2023-06-29T06:04:12
2023-06-29T06:04:11
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6897/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6897/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6897", "html_url": "https://github.com/langchain-ai/langchain/pull/6897", "diff_url": "https://github.com/langchain-ai/langchain/pull/6897.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6897.patch", "merged_at": "2023-06-29T06:04:11" }
https://api.github.com/repos/langchain-ai/langchain/issues/6896
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6896/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6896/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6896/events
https://github.com/langchain-ai/langchain/pull/6896
1,780,004,871
PR_kwDOIPDwls5UMtMT
6,896
chore(openllm): make sure to download the model if not exists
{ "login": "aarnphm", "id": 29749331, "node_id": "MDQ6VXNlcjI5NzQ5MzMx", "avatar_url": "https://avatars.githubusercontent.com/u/29749331?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aarnphm", "html_url": "https://github.com/aarnphm", "followers_url": "https://api.github.com/users/aarnphm/followers", "following_url": "https://api.github.com/users/aarnphm/following{/other_user}", "gists_url": "https://api.github.com/users/aarnphm/gists{/gist_id}", "starred_url": "https://api.github.com/users/aarnphm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aarnphm/subscriptions", "organizations_url": "https://api.github.com/users/aarnphm/orgs", "repos_url": "https://api.github.com/users/aarnphm/repos", "events_url": "https://api.github.com/users/aarnphm/events{/privacy}", "received_events_url": "https://api.github.com/users/aarnphm/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": "" } ]
closed
false
null
[]
null
7
2023-06-29T02:16:19
2023-06-30T08:41:25
2023-06-30T07:54:48
CONTRIBUTOR
null
OpenLLM Runner now include a ensure_available argument to separate the process of automatic setup of the given model. This was introduced to allow better UX with openllm. I updated the OpenLLM accordingly, since we are just loading the model into memory in "local" mode, `ensure_available` should set to `True` cc @dev2049 Signed-off-by: Aaron <[email protected]> <!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6896/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6896/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6896", "html_url": "https://github.com/langchain-ai/langchain/pull/6896", "diff_url": "https://github.com/langchain-ai/langchain/pull/6896.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6896.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6895
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6895/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6895/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6895/events
https://github.com/langchain-ai/langchain/pull/6895
1,779,997,091
PR_kwDOIPDwls5UMrrw
6,895
Re-add Support for SQLAlchemy <1.4
{ "login": "bradcrossen", "id": 8551321, "node_id": "MDQ6VXNlcjg1NTEzMjE=", "avatar_url": "https://avatars.githubusercontent.com/u/8551321?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bradcrossen", "html_url": "https://github.com/bradcrossen", "followers_url": "https://api.github.com/users/bradcrossen/followers", "following_url": "https://api.github.com/users/bradcrossen/following{/other_user}", "gists_url": "https://api.github.com/users/bradcrossen/gists{/gist_id}", "starred_url": "https://api.github.com/users/bradcrossen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bradcrossen/subscriptions", "organizations_url": "https://api.github.com/users/bradcrossen/orgs", "repos_url": "https://api.github.com/users/bradcrossen/repos", "events_url": "https://api.github.com/users/bradcrossen/events{/privacy}", "received_events_url": "https://api.github.com/users/bradcrossen/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 5483526101, "node_id": "LA_kwDOIPDwls8AAAABRtf31Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/breaking", "name": "breaking", "color": "B60205", "default": false, "description": "Breaking change" } ]
closed
false
{ "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 }
[ { "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 } ]
null
6
2023-06-29T02:06:28
2023-06-29T21:49:37
2023-06-29T21:49:36
CONTRIBUTOR
null
Support for SQLAlchemy 1.3 was removed in version 0.0.203 by change #6086. Re-adding support. - Description: Imports SQLAlchemy Row at class creation time instead of at init to support SQLAlchemy <1.4. This is the only breaking change and was introduced in version 0.0.203 #6086. A similar change was merged before: https://github.com/hwchase17/langchain/pull/4647 - Dependencies: Reduces SQLAlchemy dependency to > 1.3 - Tag maintainer: @rlancemartin, @eyurtsev, @hwchase17, @wangxuqi
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6895/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6895/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6895", "html_url": "https://github.com/langchain-ai/langchain/pull/6895", "diff_url": "https://github.com/langchain-ai/langchain/pull/6895.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6895.patch", "merged_at": "2023-06-29T21:49:36" }
https://api.github.com/repos/langchain-ai/langchain/issues/6894
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6894/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6894/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6894/events
https://github.com/langchain-ai/langchain/pull/6894
1,779,956,438
PR_kwDOIPDwls5UMjW5
6,894
Add Input Mapper in run_on_dataset
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[ { "id": 5496111774, "node_id": "LA_kwDOIPDwls8AAAABR5gCng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work", "name": "needs work", "color": "F9D0C4", "default": false, "description": "PRs that need more work" } ]
closed
false
null
[]
null
1
2023-06-29T01:02:08
2023-06-29T23:53:50
2023-06-29T23:53:49
CONTRIBUTOR
null
If you create a dataset from runs and run the same chain or llm on it later, it usually works great. If you have an agent dataset and want to run a different agent on it, or have more complex schema, it's hard for us to automatically map these values every time. This PR lets you pass in an input_mapper function that converts the example inputs to whatever format your model expects
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6894/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6894/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6894", "html_url": "https://github.com/langchain-ai/langchain/pull/6894", "diff_url": "https://github.com/langchain-ai/langchain/pull/6894.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6894.patch", "merged_at": "2023-06-29T23:53:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/6893
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6893/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6893/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6893/events
https://github.com/langchain-ai/langchain/pull/6893
1,779,886,649
PR_kwDOIPDwls5UMUfT
6,893
Add pg_hnsw vectorstore integration
{ "login": "raoufchebri", "id": 13738772, "node_id": "MDQ6VXNlcjEzNzM4Nzcy", "avatar_url": "https://avatars.githubusercontent.com/u/13738772?v=4", "gravatar_id": "", "url": "https://api.github.com/users/raoufchebri", "html_url": "https://github.com/raoufchebri", "followers_url": "https://api.github.com/users/raoufchebri/followers", "following_url": "https://api.github.com/users/raoufchebri/following{/other_user}", "gists_url": "https://api.github.com/users/raoufchebri/gists{/gist_id}", "starred_url": "https://api.github.com/users/raoufchebri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/raoufchebri/subscriptions", "organizations_url": "https://api.github.com/users/raoufchebri/orgs", "repos_url": "https://api.github.com/users/raoufchebri/repos", "events_url": "https://api.github.com/users/raoufchebri/events{/privacy}", "received_events_url": "https://api.github.com/users/raoufchebri/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 5510857403, "node_id": "LA_kwDOIPDwls8AAAABSHkCuw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation", "name": "needs documentation", "color": "DCAAC0", "default": false, "description": "PR needs to be updated with documentation" } ]
closed
false
{ "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 }
[ { "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 } ]
null
9
2023-06-28T23:11:55
2023-07-05T15:10:11
2023-07-05T15:10:10
CONTRIBUTOR
null
Hi @rlancemartin, @eyurtsev! - Description: Adding HNSW extension support for Postgres. Similar to pgvector vectorstore, with 3 differences 1. it uses HNSW extension for exact and ANN searches, 2. Vectors are of type array of real 3. Only supports L2 - Dependencies: [HNSW](https://github.com/knizhnik/hnsw) extension for Postgres - Example: ```python db = HNSWVectoreStore.from_documents( embedding=embeddings, documents=docs, collection_name=collection_name, connection_string=connection_string ) query = "What did the president say about Ketanji Brown Jackson" docs_with_score: List[Tuple[Document, float]] = db.similarity_search_with_score(query) ``` The example notebook is in the PR too.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6893/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/6893/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6893", "html_url": "https://github.com/langchain-ai/langchain/pull/6893", "diff_url": "https://github.com/langchain-ai/langchain/pull/6893.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6893.patch", "merged_at": "2023-07-05T15:10:10" }
https://api.github.com/repos/langchain-ai/langchain/issues/6892
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6892/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6892/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6892/events
https://github.com/langchain-ai/langchain/pull/6892
1,779,879,955
PR_kwDOIPDwls5UMTDU
6,892
Update Zapier Jupyter notebook to include brief OAuth example
{ "login": "ralewis85", "id": 3906177, "node_id": "MDQ6VXNlcjM5MDYxNzc=", "avatar_url": "https://avatars.githubusercontent.com/u/3906177?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ralewis85", "html_url": "https://github.com/ralewis85", "followers_url": "https://api.github.com/users/ralewis85/followers", "following_url": "https://api.github.com/users/ralewis85/following{/other_user}", "gists_url": "https://api.github.com/users/ralewis85/gists{/gist_id}", "starred_url": "https://api.github.com/users/ralewis85/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ralewis85/subscriptions", "organizations_url": "https://api.github.com/users/ralewis85/orgs", "repos_url": "https://api.github.com/users/ralewis85/repos", "events_url": "https://api.github.com/users/ralewis85/events{/privacy}", "received_events_url": "https://api.github.com/users/ralewis85/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528810, "node_id": "LA_kwDOIPDwls8AAAABFtyvKg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/documentation", "name": "documentation", "color": "0075ca", "default": true, "description": "Improvements or additions to documentation" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
1
2023-06-28T23:01:34
2023-06-29T01:06:23
2023-06-29T01:06:22
CONTRIBUTOR
null
Description: Adds a brief example of using an OAuth access token with the Zapier wrapper. Also links to the Zapier documentation to learn more about OAuth flows. Tag maintainer: @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6892/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6892/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6892", "html_url": "https://github.com/langchain-ai/langchain/pull/6892", "diff_url": "https://github.com/langchain-ai/langchain/pull/6892.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6892.patch", "merged_at": "2023-06-29T01:06:22" }
https://api.github.com/repos/langchain-ai/langchain/issues/6891
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6891/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6891/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6891/events
https://github.com/langchain-ai/langchain/pull/6891
1,779,853,268
PR_kwDOIPDwls5UMNVu
6,891
Use `getLogger` instead of `basicConfig` in `multi_query.py`
{ "login": "zhichenggeng", "id": 22341194, "node_id": "MDQ6VXNlcjIyMzQxMTk0", "avatar_url": "https://avatars.githubusercontent.com/u/22341194?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhichenggeng", "html_url": "https://github.com/zhichenggeng", "followers_url": "https://api.github.com/users/zhichenggeng/followers", "following_url": "https://api.github.com/users/zhichenggeng/following{/other_user}", "gists_url": "https://api.github.com/users/zhichenggeng/gists{/gist_id}", "starred_url": "https://api.github.com/users/zhichenggeng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhichenggeng/subscriptions", "organizations_url": "https://api.github.com/users/zhichenggeng/orgs", "repos_url": "https://api.github.com/users/zhichenggeng/repos", "events_url": "https://api.github.com/users/zhichenggeng/events{/privacy}", "received_events_url": "https://api.github.com/users/zhichenggeng/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": "" } ]
closed
false
null
[]
null
6
2023-06-28T22:22:51
2023-07-03T21:13:32
2023-06-29T01:06:10
CONTRIBUTOR
null
Remove `logging.basicConfig`, which turns on logging. Use `getLogger` instead. cc @rlancemartin
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6891/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6891/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6891", "html_url": "https://github.com/langchain-ai/langchain/pull/6891", "diff_url": "https://github.com/langchain-ai/langchain/pull/6891.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6891.patch", "merged_at": "2023-06-29T01:06:10" }
https://api.github.com/repos/langchain-ai/langchain/issues/6890
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6890/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6890/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6890/events
https://github.com/langchain-ai/langchain/pull/6890
1,779,828,932
PR_kwDOIPDwls5UMH4x
6,890
docstrings `document_loaders` 2
{ "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": 4678528810, "node_id": "LA_kwDOIPDwls8AAAABFtyvKg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/documentation", "name": "documentation", "color": "0075ca", "default": true, "description": "Improvements or additions to documentation" } ]
closed
false
{ "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 }
[ { "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 } ]
null
1
2023-06-28T22:00:44
2023-07-02T21:26:04
2023-07-02T19:14:23
COLLABORATOR
null
updated docstring for the `document_loaders` Maintainer responsibilities: - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6890/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/6890/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6890", "html_url": "https://github.com/langchain-ai/langchain/pull/6890", "diff_url": "https://github.com/langchain-ai/langchain/pull/6890.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6890.patch", "merged_at": "2023-07-02T19:14:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/6889
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6889/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6889/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6889/events
https://github.com/langchain-ai/langchain/issues/6889
1,779,800,725
I_kwDOIPDwls5qFZqV
6,889
SQLDatabaseChain cannot be loaded
{ "login": "liangz1", "id": 7851093, "node_id": "MDQ6VXNlcjc4NTEwOTM=", "avatar_url": "https://avatars.githubusercontent.com/u/7851093?v=4", "gravatar_id": "", "url": "https://api.github.com/users/liangz1", "html_url": "https://github.com/liangz1", "followers_url": "https://api.github.com/users/liangz1/followers", "following_url": "https://api.github.com/users/liangz1/following{/other_user}", "gists_url": "https://api.github.com/users/liangz1/gists{/gist_id}", "starred_url": "https://api.github.com/users/liangz1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/liangz1/subscriptions", "organizations_url": "https://api.github.com/users/liangz1/orgs", "repos_url": "https://api.github.com/users/liangz1/repos", "events_url": "https://api.github.com/users/liangz1/events{/privacy}", "received_events_url": "https://api.github.com/users/liangz1/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
closed
false
null
[]
null
3
2023-06-28T21:29:40
2023-12-27T16:06:48
2023-12-27T16:06:47
CONTRIBUTOR
null
### System Info langchain==0.0.217 ### Who can help? @hwchase17 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction The following code fails: ```python def create_sqlite_db_file(db_dir): # Connect to SQLite database (or create it if it doesn't exist) conn = sqlite3.connect(db_dir) # Create a cursor c = conn.cursor() # Create a dummy table c.execute(''' CREATE TABLE IF NOT EXISTS employees( id INTEGER PRIMARY KEY, name TEXT, salary REAL, department TEXT, position TEXT, hireDate TEXT); ''') # Insert dummy data into the table c.execute(''' INSERT INTO employees (name, salary, department, position, hireDate) VALUES ('John Doe', 80000, 'IT', 'Engineer', '2023-06-26'); ''') # Commit the transaction conn.commit() # Close the connection conn.close() def test_log_and_load_sql_database_chain(tmp_path): # Create the SQLDatabaseChain db_file_path = tmp_path / "my_database.db" sqlite_uri = f"sqlite:///{db_file_path}" llm = OpenAI(temperature=0) create_sqlite_db_file(db_file_path) db = SQLDatabase.from_uri(sqlite_uri) db_chain = SQLDatabaseChain.from_llm(llm, db) db_chain.save('/path/to/test_chain.yaml') from langchain.chains import load_chain loaded_chain = load_chain('/path/to/test_chain.yaml', database=db) ``` Error: ``` def load_llm_from_config(config: dict) -> BaseLLM: """Load LLM from Config Dict.""" > if "_type" not in config: E TypeError: argument of type 'NoneType' is not iterable ``` ### Expected behavior No error should occur.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6889/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/6889/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6888
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6888/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6888/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6888/events
https://github.com/langchain-ai/langchain/pull/6888
1,779,783,273
PR_kwDOIPDwls5UL-Es
6,888
Accept any single input
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-28T21:12:05
2023-06-29T17:29:18
2023-06-29T17:29:17
CONTRIBUTOR
null
If I upload a dataset with a single input and output column, we should be able to let the chain prepare the input without having to maintain a strict dataset format.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6888/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6888/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6888", "html_url": "https://github.com/langchain-ai/langchain/pull/6888", "diff_url": "https://github.com/langchain-ai/langchain/pull/6888.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6888.patch", "merged_at": "2023-06-29T17:29:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/6887
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6887/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6887/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6887/events
https://github.com/langchain-ai/langchain/pull/6887
1,779,772,749
PR_kwDOIPDwls5UL7xR
6,887
Update `langchain.chains.create_extraction_chain_pydantic` to parse results successfully
{ "login": "shotarok", "id": 1156179, "node_id": "MDQ6VXNlcjExNTYxNzk=", "avatar_url": "https://avatars.githubusercontent.com/u/1156179?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shotarok", "html_url": "https://github.com/shotarok", "followers_url": "https://api.github.com/users/shotarok/followers", "following_url": "https://api.github.com/users/shotarok/following{/other_user}", "gists_url": "https://api.github.com/users/shotarok/gists{/gist_id}", "starred_url": "https://api.github.com/users/shotarok/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shotarok/subscriptions", "organizations_url": "https://api.github.com/users/shotarok/orgs", "repos_url": "https://api.github.com/users/shotarok/repos", "events_url": "https://api.github.com/users/shotarok/events{/privacy}", "received_events_url": "https://api.github.com/users/shotarok/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
{ "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 }
[ { "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 } ]
null
3
2023-06-28T21:03:02
2023-06-29T04:57:43
2023-06-29T04:57:42
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> - Description: - The current code uses `PydanticSchema.schema()` and `_get_extraction_function` at the same time. As a result, a response from OpenAI has two nested `info`, and `PydanticAttrOutputFunctionsParser` fails to parse it. This PR will use the pydantic class given as an arg instead. - Issue: no related issue yet - Dependencies: no dependency change - Tag maintainer: @dev2049 - Twitter handle: @shotarok28
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6887/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6887/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6887", "html_url": "https://github.com/langchain-ai/langchain/pull/6887", "diff_url": "https://github.com/langchain-ai/langchain/pull/6887.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6887.patch", "merged_at": "2023-06-29T04:57:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/6886
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6886/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6886/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6886/events
https://github.com/langchain-ai/langchain/pull/6886
1,779,770,001
PR_kwDOIPDwls5UL7LI
6,886
Harrison/marqo
{ "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": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "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" } ]
closed
false
null
[]
null
1
2023-06-28T21:00:28
2023-07-06T14:01:21
2023-07-06T14:01:21
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6886/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6886/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6886", "html_url": "https://github.com/langchain-ai/langchain/pull/6886", "diff_url": "https://github.com/langchain-ai/langchain/pull/6886.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6886.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6885
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6885/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6885/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6885/events
https://github.com/langchain-ai/langchain/issues/6885
1,779,701,054
I_kwDOIPDwls5qFBU-
6,885
MultiQueryReceiver does not work
{ "login": "RomanPolach", "id": 36015583, "node_id": "MDQ6VXNlcjM2MDE1NTgz", "avatar_url": "https://avatars.githubusercontent.com/u/36015583?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RomanPolach", "html_url": "https://github.com/RomanPolach", "followers_url": "https://api.github.com/users/RomanPolach/followers", "following_url": "https://api.github.com/users/RomanPolach/following{/other_user}", "gists_url": "https://api.github.com/users/RomanPolach/gists{/gist_id}", "starred_url": "https://api.github.com/users/RomanPolach/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RomanPolach/subscriptions", "organizations_url": "https://api.github.com/users/RomanPolach/orgs", "repos_url": "https://api.github.com/users/RomanPolach/repos", "events_url": "https://api.github.com/users/RomanPolach/events{/privacy}", "received_events_url": "https://api.github.com/users/RomanPolach/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
closed
false
null
[]
null
0
2023-06-28T20:24:26
2023-06-28T20:37:18
2023-06-28T20:37:18
NONE
null
### System Info langchain-0.0.218 Python 3.10.10 ### 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 - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Cannot import MultiQueryRetriever, because when i run it, it says: Traceback (most recent call last): File "C:\langchain\JETPACK-FLOW-MULTIQUERY.py", line 14, in <module> from langchain.retrievers.multi_query import MultiQueryRetriever File "C:\Users\roman\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\retrievers\__init__.py", line 21, in <module> from langchain.retrievers.self_query.base import SelfQueryRetriever File "C:\Users\roman\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\retrievers\self_query\base.py", line 9, in <module> from langchain.chains.query_constructor.base import load_query_constructor_chain File "C:\Users\roman\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\query_constructor\base.py", line 14, in <module> from langchain.chains.query_constructor.parser import get_parser File "C:\Users\roman\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\query_constructor\parser.py", line 9, in <module> raise ValueError( ValueError: Lark should be at least version 1.1.5, got 0.12.0 There was same error reported in this bug report: https://github.com/hwchase17/langchain/discussions/6068 Their solution was simply to install langchain version 0.0.201, but for me it does not help, because there is no MultiQueryReceiver in this version. I am using: langchain-0.0.218 ### Expected behavior Does not crash, when i try to run it.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6885/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6885/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6884
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6884/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6884/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6884/events
https://github.com/langchain-ai/langchain/issues/6884
1,779,699,848
I_kwDOIPDwls5qFBCI
6,884
Include pruning on VectorStoreRetrieverMemory
{ "login": "lathamri", "id": 51802673, "node_id": "MDQ6VXNlcjUxODAyNjcz", "avatar_url": "https://avatars.githubusercontent.com/u/51802673?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lathamri", "html_url": "https://github.com/lathamri", "followers_url": "https://api.github.com/users/lathamri/followers", "following_url": "https://api.github.com/users/lathamri/following{/other_user}", "gists_url": "https://api.github.com/users/lathamri/gists{/gist_id}", "starred_url": "https://api.github.com/users/lathamri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lathamri/subscriptions", "organizations_url": "https://api.github.com/users/lathamri/orgs", "repos_url": "https://api.github.com/users/lathamri/repos", "events_url": "https://api.github.com/users/lathamri/events{/privacy}", "received_events_url": "https://api.github.com/users/lathamri/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
0
2023-06-28T20:23:47
2023-06-28T20:49:16
2023-06-28T20:49:16
NONE
null
### Feature request Several memory storage options have a "buffer" type which includes a pruning function that allows users to specify a max_tokens_limit which stops token overflow issues. I'm requesting this be included with the VectorStoreRetrieverMemory as well. ### Motivation Running into token overflow issues is annoying and a pruning option is a simple way to get around this when using vector store based memory. ### Your contribution I'm happy to attempt a solution on this given I'm able to use my company computer this weekend. Otherwise I would appreciate any support people are able to give.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6884/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6884/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6883
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6883/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6883/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6883/events
https://github.com/langchain-ai/langchain/issues/6883
1,779,642,812
I_kwDOIPDwls5qEzG8
6,883
Incompatibility with latest Anthropic Client
{ "login": "rasharab", "id": 3806658, "node_id": "MDQ6VXNlcjM4MDY2NTg=", "avatar_url": "https://avatars.githubusercontent.com/u/3806658?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rasharab", "html_url": "https://github.com/rasharab", "followers_url": "https://api.github.com/users/rasharab/followers", "following_url": "https://api.github.com/users/rasharab/following{/other_user}", "gists_url": "https://api.github.com/users/rasharab/gists{/gist_id}", "starred_url": "https://api.github.com/users/rasharab/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rasharab/subscriptions", "organizations_url": "https://api.github.com/users/rasharab/orgs", "repos_url": "https://api.github.com/users/rasharab/repos", "events_url": "https://api.github.com/users/rasharab/events{/privacy}", "received_events_url": "https://api.github.com/users/rasharab/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 5483526101, "node_id": "LA_kwDOIPDwls8AAAABRtf31Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/breaking", "name": "breaking", "color": "B60205", "default": false, "description": "Breaking change" } ]
closed
false
null
[]
null
5
2023-06-28T19:50:00
2023-10-17T16:06:25
2023-10-17T16:06:24
NONE
null
### System Info Massive client changes as of this pr: https://github.com/anthropics/anthropic-sdk-python/commit/8d1d6af6527a3ef80b74dc3a466166ab7df057df Installing the latest anthropic client will cause langchain Anthropic LLM utiltiies to fail. Looks like api_url no longer exists (they've moved to base_url). ``` ??? E pydantic.error_wrappers.ValidationError: 1 validation error for ChatAnthropic E __root__ E __init__() got an unexpected keyword argument 'api_url' (type=type_error) ``` ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [x] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Install latest version of anthropic. 2. Attempt to run Anthropic LLM and it will produce a runtime failure about api_url which no longer exists in the Anthropic client initializer. ### Expected behavior Should work with latest release of Anthropic client.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6883/reactions", "total_count": 4, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 4 }
https://api.github.com/repos/langchain-ai/langchain/issues/6883/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6882
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6882/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6882/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6882/events
https://github.com/langchain-ai/langchain/pull/6882
1,779,625,315
PR_kwDOIPDwls5ULaW8
6,882
Document loader for Cube Semantic Layer
{ "login": "MikeNitsenko", "id": 18572161, "node_id": "MDQ6VXNlcjE4NTcyMTYx", "avatar_url": "https://avatars.githubusercontent.com/u/18572161?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MikeNitsenko", "html_url": "https://github.com/MikeNitsenko", "followers_url": "https://api.github.com/users/MikeNitsenko/followers", "following_url": "https://api.github.com/users/MikeNitsenko/following{/other_user}", "gists_url": "https://api.github.com/users/MikeNitsenko/gists{/gist_id}", "starred_url": "https://api.github.com/users/MikeNitsenko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MikeNitsenko/subscriptions", "organizations_url": "https://api.github.com/users/MikeNitsenko/orgs", "repos_url": "https://api.github.com/users/MikeNitsenko/repos", "events_url": "https://api.github.com/users/MikeNitsenko/events{/privacy}", "received_events_url": "https://api.github.com/users/MikeNitsenko/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 5510857403, "node_id": "LA_kwDOIPDwls8AAAABSHkCuw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation", "name": "needs documentation", "color": "DCAAC0", "default": false, "description": "PR needs to be updated with documentation" }, { "id": 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)" } ]
closed
false
{ "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 }
[ { "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 } ]
null
4
2023-06-28T19:38:42
2023-07-06T07:01:55
2023-07-05T22:18:13
CONTRIBUTOR
null
### Description This pull request introduces the "Cube Semantic Layer" document loader, which demonstrates the retrieval of Cube's data model metadata in a format suitable for passing to LLMs as embeddings. This enhancement aims to provide contextual information and improve the understanding of data. Twitter handle: @the_cube_dev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6882/reactions", "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6882/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6882", "html_url": "https://github.com/langchain-ai/langchain/pull/6882", "diff_url": "https://github.com/langchain-ai/langchain/pull/6882.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6882.patch", "merged_at": "2023-07-05T22:18:13" }
https://api.github.com/repos/langchain-ai/langchain/issues/6881
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6881/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6881/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6881/events
https://github.com/langchain-ai/langchain/pull/6881
1,779,553,687
PR_kwDOIPDwls5ULJ78
6,881
PowerBI Toolkit additional logs
{ "login": "eavanvalkenburg", "id": 13749212, "node_id": "MDQ6VXNlcjEzNzQ5MjEy", "avatar_url": "https://avatars.githubusercontent.com/u/13749212?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eavanvalkenburg", "html_url": "https://github.com/eavanvalkenburg", "followers_url": "https://api.github.com/users/eavanvalkenburg/followers", "following_url": "https://api.github.com/users/eavanvalkenburg/following{/other_user}", "gists_url": "https://api.github.com/users/eavanvalkenburg/gists{/gist_id}", "starred_url": "https://api.github.com/users/eavanvalkenburg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eavanvalkenburg/subscriptions", "organizations_url": "https://api.github.com/users/eavanvalkenburg/orgs", "repos_url": "https://api.github.com/users/eavanvalkenburg/repos", "events_url": "https://api.github.com/users/eavanvalkenburg/events{/privacy}", "received_events_url": "https://api.github.com/users/eavanvalkenburg/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-28T19:04:05
2023-06-29T04:33:33
2023-06-29T01:16:41
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> Added some additional logs to better be able to troubleshoot and understand the performance of the call to PBI vs the rest of the work.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6881/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6881/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6881", "html_url": "https://github.com/langchain-ai/langchain/pull/6881", "diff_url": "https://github.com/langchain-ai/langchain/pull/6881.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6881.patch", "merged_at": "2023-06-29T01:16:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/6880
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6880/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6880/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6880/events
https://github.com/langchain-ai/langchain/pull/6880
1,779,341,889
PR_kwDOIPDwls5UKaYF
6,880
Time To First Token
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[ { "id": 5496111774, "node_id": "LA_kwDOIPDwls8AAAABR5gCng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work", "name": "needs work", "color": "F9D0C4", "default": false, "description": "PRs that need more work" }, { "id": 5510857403, "node_id": "LA_kwDOIPDwls8AAAABSHkCuw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation", "name": "needs documentation", "color": "DCAAC0", "default": false, "description": "PR needs to be updated with documentation" } ]
closed
false
null
[]
null
1
2023-06-28T16:55:19
2023-08-11T00:18:35
2023-08-11T00:18:35
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6880/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6880/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6880", "html_url": "https://github.com/langchain-ai/langchain/pull/6880", "diff_url": "https://github.com/langchain-ai/langchain/pull/6880.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6880.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6879
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6879/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6879/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6879/events
https://github.com/langchain-ai/langchain/issues/6879
1,779,327,153
I_kwDOIPDwls5qDmCx
6,879
Allow skipping "condense_question_prompt" when using ConversationalRetrievalChain
{ "login": "bastoo0", "id": 37190278, "node_id": "MDQ6VXNlcjM3MTkwMjc4", "avatar_url": "https://avatars.githubusercontent.com/u/37190278?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bastoo0", "html_url": "https://github.com/bastoo0", "followers_url": "https://api.github.com/users/bastoo0/followers", "following_url": "https://api.github.com/users/bastoo0/following{/other_user}", "gists_url": "https://api.github.com/users/bastoo0/gists{/gist_id}", "starred_url": "https://api.github.com/users/bastoo0/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bastoo0/subscriptions", "organizations_url": "https://api.github.com/users/bastoo0/orgs", "repos_url": "https://api.github.com/users/bastoo0/repos", "events_url": "https://api.github.com/users/bastoo0/events{/privacy}", "received_events_url": "https://api.github.com/users/bastoo0/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 4678528832, "node_id": "LA_kwDOIPDwls8AAAABFtyvQA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/question", "name": "question", "color": "d876e3", "default": true, "description": "Further information is requested" } ]
open
false
null
[]
null
7
2023-06-28T16:46:24
2023-10-25T18:22:31
null
NONE
null
### Feature request Add a parameter to ConversationalRetrievalChain to skip the condense question prompt procedure. ### Motivation Currently, when using ConversationalRetrievalChain (with the from_llm() function), we have to run the input through a LLMChain with a default "condense_question_prompt" which condenses the chat history and the input to make a standalone question out of it. This could be a good idea, but in my test cases (in French) it performs very poorly when switching between topics. It mixes things up and hallucinates a new question which is nowhere near the original question. The only solution I can think of is to just allow the actual chat history to be sent in the prompt but we can't skip the condense question prompt part. For now, a workaround could be to provide a custom condense prompt asking the LLM to do nothing but that would call the LLM twice for no reason... ### Your contribution Since I am not sure why this isn't already an option, I'd assume it's for a good reason so I'm asking here before thinking of implementing anything.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6879/reactions", "total_count": 4, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/6879/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6878
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6878/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6878/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6878/events
https://github.com/langchain-ai/langchain/pull/6878
1,779,314,171
PR_kwDOIPDwls5UKUPm
6,878
delete api_key requirements
{ "login": "kmj4034", "id": 68986630, "node_id": "MDQ6VXNlcjY4OTg2NjMw", "avatar_url": "https://avatars.githubusercontent.com/u/68986630?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kmj4034", "html_url": "https://github.com/kmj4034", "followers_url": "https://api.github.com/users/kmj4034/followers", "following_url": "https://api.github.com/users/kmj4034/following{/other_user}", "gists_url": "https://api.github.com/users/kmj4034/gists{/gist_id}", "starred_url": "https://api.github.com/users/kmj4034/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kmj4034/subscriptions", "organizations_url": "https://api.github.com/users/kmj4034/orgs", "repos_url": "https://api.github.com/users/kmj4034/repos", "events_url": "https://api.github.com/users/kmj4034/events{/privacy}", "received_events_url": "https://api.github.com/users/kmj4034/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
3
2023-06-28T16:38:01
2023-08-11T00:17:26
2023-08-11T00:17:25
NONE
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6878/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6878/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6878", "html_url": "https://github.com/langchain-ai/langchain/pull/6878", "diff_url": "https://github.com/langchain-ai/langchain/pull/6878.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6878.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6877
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6877/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6877/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6877/events
https://github.com/langchain-ai/langchain/issues/6877
1,779,281,098
I_kwDOIPDwls5qDazK
6,877
In memory vector store as python object based on purely numpy
{ "login": "shroominic", "id": 34897716, "node_id": "MDQ6VXNlcjM0ODk3NzE2", "avatar_url": "https://avatars.githubusercontent.com/u/34897716?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shroominic", "html_url": "https://github.com/shroominic", "followers_url": "https://api.github.com/users/shroominic/followers", "following_url": "https://api.github.com/users/shroominic/following{/other_user}", "gists_url": "https://api.github.com/users/shroominic/gists{/gist_id}", "starred_url": "https://api.github.com/users/shroominic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shroominic/subscriptions", "organizations_url": "https://api.github.com/users/shroominic/orgs", "repos_url": "https://api.github.com/users/shroominic/repos", "events_url": "https://api.github.com/users/shroominic/events{/privacy}", "received_events_url": "https://api.github.com/users/shroominic/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
1
2023-06-28T16:17:22
2023-10-05T16:06:50
2023-10-05T16:06:49
CONTRIBUTOR
null
### Feature request Can someone please create and integrate an in memory vector store based on purely numpy? I don't like that ChromaDB downloads to much deps when I just want something really simple. ### Motivation I saw this https://github.com/jdagdelen/hyperDB and it works so this should be in langchain ### Your contribution I dont have the time rn but I want to publish this idea
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6877/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6877/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6876
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6876/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6876/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6876/events
https://github.com/langchain-ai/langchain/pull/6876
1,779,222,858
PR_kwDOIPDwls5UKAFt
6,876
Added filter and delete all option to delete function in Pinecone integration, updated base VectorStore's delete function
{ "login": "0xcha05", "id": 103983696, "node_id": "U_kgDOBjKqUA", "avatar_url": "https://avatars.githubusercontent.com/u/103983696?v=4", "gravatar_id": "", "url": "https://api.github.com/users/0xcha05", "html_url": "https://github.com/0xcha05", "followers_url": "https://api.github.com/users/0xcha05/followers", "following_url": "https://api.github.com/users/0xcha05/following{/other_user}", "gists_url": "https://api.github.com/users/0xcha05/gists{/gist_id}", "starred_url": "https://api.github.com/users/0xcha05/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/0xcha05/subscriptions", "organizations_url": "https://api.github.com/users/0xcha05/orgs", "repos_url": "https://api.github.com/users/0xcha05/repos", "events_url": "https://api.github.com/users/0xcha05/events{/privacy}", "received_events_url": "https://api.github.com/users/0xcha05/received_events", "type": "User", "site_admin": false }
[]
closed
false
{ "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 }
[ { "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 } ]
null
15
2023-06-28T15:41:28
2023-07-06T15:36:12
2023-07-02T18:46:20
CONTRIBUTOR
null
### Description: Updated the delete function in the Pinecone integration to allow for deletion of vectors by specifying a filter condition, and to delete all vectors in a namespace. Made the ids parameter optional in the delete function in the base VectorStore class and allowed for additional keyword arguments. Updated the delete function in several classes (Redis, Chroma, Supabase, Deeplake, Elastic, Weaviate, and Cassandra) to match the changes made in the base VectorStore class. This involved making the ids parameter optional and allowing for additional keyword arguments.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6876/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/6876/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6876", "html_url": "https://github.com/langchain-ai/langchain/pull/6876", "diff_url": "https://github.com/langchain-ai/langchain/pull/6876.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6876.patch", "merged_at": "2023-07-02T18:46:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/6875
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6875/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6875/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6875/events
https://github.com/langchain-ai/langchain/issues/6875
1,779,179,472
I_kwDOIPDwls5qDB_Q
6,875
I think the SitemapLoader should be as robust with default options as the UnstructuredURLLoader, which has an option continue_on_failure set to true.
{ "login": "Morriz", "id": 941865, "node_id": "MDQ6VXNlcjk0MTg2NQ==", "avatar_url": "https://avatars.githubusercontent.com/u/941865?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Morriz", "html_url": "https://github.com/Morriz", "followers_url": "https://api.github.com/users/Morriz/followers", "following_url": "https://api.github.com/users/Morriz/following{/other_user}", "gists_url": "https://api.github.com/users/Morriz/gists{/gist_id}", "starred_url": "https://api.github.com/users/Morriz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Morriz/subscriptions", "organizations_url": "https://api.github.com/users/Morriz/orgs", "repos_url": "https://api.github.com/users/Morriz/repos", "events_url": "https://api.github.com/users/Morriz/events{/privacy}", "received_events_url": "https://api.github.com/users/Morriz/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
1
2023-06-28T15:16:30
2023-10-05T16:06:55
2023-10-05T16:06:54
NONE
null
### System Info 0.0.218 OSX ### Who can help? @eyurtsev ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Create or find a sitemap with url(s) that run into an infinite redirect loop. 2. Run `SitemapLoader` with that. 3. Observe it crashing ### Expected behavior The loader to continue on such errors, or have a config flag to say so, like `UnstructuredURLLoader`'s `continue_on_failure`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6875/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6875/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6874
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6874/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6874/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6874/events
https://github.com/langchain-ai/langchain/pull/6874
1,779,151,880
PR_kwDOIPDwls5UJwfF
6,874
Throw error if evaluation key not present
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-28T15:00:57
2023-06-29T17:30:41
2023-06-29T17:30:40
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6874/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6874/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6874", "html_url": "https://github.com/langchain-ai/langchain/pull/6874", "diff_url": "https://github.com/langchain-ai/langchain/pull/6874.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6874.patch", "merged_at": "2023-06-29T17:30:40" }
https://api.github.com/repos/langchain-ai/langchain/issues/6873
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6873/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6873/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6873/events
https://github.com/langchain-ai/langchain/pull/6873
1,779,065,593
PR_kwDOIPDwls5UJdTr
6,873
Accept Chain
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-28T14:24:28
2023-07-12T06:49:44
2023-07-12T06:49:44
CONTRIBUTOR
null
Relax the requirement that you use a chain factory instead of a chain directly. It wasn't foolproof anyway since sub-chains could have memory as well. Log warning if the chain has memory. Retain ability to pass in factory though We could alternatively call `clear_memory()` every time we make a prediction but I'm unsure of the side effects of that for certain implementations?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6873/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6873/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6873", "html_url": "https://github.com/langchain-ai/langchain/pull/6873", "diff_url": "https://github.com/langchain-ai/langchain/pull/6873.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6873.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6872
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6872/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6872/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6872/events
https://github.com/langchain-ai/langchain/issues/6872
1,779,010,819
I_kwDOIPDwls5qCY0D
6,872
Issue: Unable to store user specific chat history in redis. Using ConversationalRetrievalChain along with ConversationBufferMemory
{ "login": "akshayghatiki311", "id": 22797515, "node_id": "MDQ6VXNlcjIyNzk3NTE1", "avatar_url": "https://avatars.githubusercontent.com/u/22797515?v=4", "gravatar_id": "", "url": "https://api.github.com/users/akshayghatiki311", "html_url": "https://github.com/akshayghatiki311", "followers_url": "https://api.github.com/users/akshayghatiki311/followers", "following_url": "https://api.github.com/users/akshayghatiki311/following{/other_user}", "gists_url": "https://api.github.com/users/akshayghatiki311/gists{/gist_id}", "starred_url": "https://api.github.com/users/akshayghatiki311/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/akshayghatiki311/subscriptions", "organizations_url": "https://api.github.com/users/akshayghatiki311/orgs", "repos_url": "https://api.github.com/users/akshayghatiki311/repos", "events_url": "https://api.github.com/users/akshayghatiki311/events{/privacy}", "received_events_url": "https://api.github.com/users/akshayghatiki311/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 4678528832, "node_id": "LA_kwDOIPDwls8AAAABFtyvQA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/question", "name": "question", "color": "d876e3", "default": true, "description": "Further information is requested" } ]
closed
false
null
[]
null
3
2023-06-28T13:57:42
2023-12-13T09:13:59
2023-07-20T05:04:27
NONE
null
### Issue you'd like to raise. embeddings = OpenAIEmbeddings(model='text-embedding-ada-002',deployment='XXXXX',chunk_size=1) db = Chroma.from_documents(texts, embeddings) memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True,chat_memory=ChatMessageHistory(messages=[])) model = ConversationalRetrievalChain.from_llm(llm=AzureOpenAI(model_name='gpt-35-turbo',deployment_name='XXXXX',temperature=0.7,openai_api_base=os.environ['OPENAI_API_BASE'],openai_api_key=os.environ['OPENAI_API_KEY']), retriever=db.as_retriever(), memory=memory) I'm using ConversationalRetrievalChain to query from embeddings and also using memory to store chat history. I've written a Flask api to fetch result from model. I'm trying to store memory of each user in redis store, so that there wont be any mix and match in chat history. For that I'm trying with below code, but I'm unable to store memory in redis. `r = redis.Redis(host='redis-1XXX.c3XXX.ap-south-1-1.ec2.cloud.redislabs.com', port=17506, db=0, password='XXXX')` `memory = {}` `memory_key = f"memory_{employee_code}"` `messages = r.get(memory_key)` `messages = json.loads(messages)` `memory[memory_key] = ConversationBufferMemory(memory_key="chat_history", return_messages=True, chat_memory=ChatMessageHistory(messages=messages))` `model = ConversationalRetrievalChain.from_llm(llm=AzureOpenAI(model_name='gpt-35-turbo',deployment_name='XXXXXX',temperature=0.7,openai_api_base=os.environ['OPENAI_API_BASE'],openai_api_key=os.environ['OPENAI_API_KEY']), retriever=db.as_retriever(), memory=memory[memory_key])` `res=model.run(query)` `messages.append({query:res})` `r.set(memory_key,json.dumps(messages))` This is not working. Can anyone help me on this? Thanks in advance. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6872/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6872/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6871
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6871/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6871/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6871/events
https://github.com/langchain-ai/langchain/pull/6871
1,778,997,351
PR_kwDOIPDwls5UJOVn
6,871
Support named vectors in Qdrant
{ "login": "kacperlukawski", "id": 2649301, "node_id": "MDQ6VXNlcjI2NDkzMDE=", "avatar_url": "https://avatars.githubusercontent.com/u/2649301?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kacperlukawski", "html_url": "https://github.com/kacperlukawski", "followers_url": "https://api.github.com/users/kacperlukawski/followers", "following_url": "https://api.github.com/users/kacperlukawski/following{/other_user}", "gists_url": "https://api.github.com/users/kacperlukawski/gists{/gist_id}", "starred_url": "https://api.github.com/users/kacperlukawski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kacperlukawski/subscriptions", "organizations_url": "https://api.github.com/users/kacperlukawski/orgs", "repos_url": "https://api.github.com/users/kacperlukawski/repos", "events_url": "https://api.github.com/users/kacperlukawski/events{/privacy}", "received_events_url": "https://api.github.com/users/kacperlukawski/received_events", "type": "User", "site_admin": false }
[]
closed
false
{ "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 }
[ { "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 } ]
null
4
2023-06-28T13:51:35
2023-06-29T22:14:23
2023-06-29T22:14:22
CONTRIBUTOR
null
# Description This PR makes it possible to use named vectors from Qdrant in Langchain. That was requested multiple times, as people want to reuse externally created collections in Langchain. It doesn't change anything for the existing applications. The changes were covered with some integration tests and included in the docs. ## Example ```python Qdrant.from_documents( docs, embeddings, location=":memory:", collection_name="my_documents", vector_name="custom_vector", ) ``` ### Issue: #2594 Tagging @rlancemartin & @eyurtsev. I'd appreciate your review.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6871/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/6871/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6871", "html_url": "https://github.com/langchain-ai/langchain/pull/6871", "diff_url": "https://github.com/langchain-ai/langchain/pull/6871.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6871.patch", "merged_at": "2023-06-29T22:14:22" }
https://api.github.com/repos/langchain-ai/langchain/issues/6870
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6870/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6870/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6870/events
https://github.com/langchain-ai/langchain/issues/6870
1,778,943,766
I_kwDOIPDwls5qCIcW
6,870
SQLDatabaseChain - Questions/error
{ "login": "sofgun1", "id": 90384050, "node_id": "MDQ6VXNlcjkwMzg0MDUw", "avatar_url": "https://avatars.githubusercontent.com/u/90384050?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sofgun1", "html_url": "https://github.com/sofgun1", "followers_url": "https://api.github.com/users/sofgun1/followers", "following_url": "https://api.github.com/users/sofgun1/following{/other_user}", "gists_url": "https://api.github.com/users/sofgun1/gists{/gist_id}", "starred_url": "https://api.github.com/users/sofgun1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sofgun1/subscriptions", "organizations_url": "https://api.github.com/users/sofgun1/orgs", "repos_url": "https://api.github.com/users/sofgun1/repos", "events_url": "https://api.github.com/users/sofgun1/events{/privacy}", "received_events_url": "https://api.github.com/users/sofgun1/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 4678528832, "node_id": "LA_kwDOIPDwls8AAAABFtyvQA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/question", "name": "question", "color": "d876e3", "default": true, "description": "Further information is requested" } ]
open
false
null
[]
null
9
2023-06-28T13:24:59
2023-12-21T14:51:23
null
NONE
null
### System Info While trying to run example from https://python.langchain.com/docs/modules/chains/popular/sqlite I get the following error: ```` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[42], line 1 ----> 1 db_chain.run("What is the expected assisted goals by Erling Haaland") File ~/.local/lib/python3.10/site-packages/langchain/chains/base.py:273, in Chain.run(self, callbacks, tags, *args, **kwargs) 271 if len(args) != 1: 272 raise ValueError("`run` supports only one positional argument.") --> 273 return self(args[0], callbacks=callbacks, tags=tags)[_output_key] 275 if kwargs and not args: 276 return self(kwargs, callbacks=callbacks, tags=tags)[_output_key] File ~/.local/lib/python3.10/site-packages/langchain/chains/base.py:149, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, include_run_info) 147 except (KeyboardInterrupt, Exception) as e: 148 run_manager.on_chain_error(e) --> 149 raise e 150 run_manager.on_chain_end(outputs) 151 final_outputs: Dict[str, Any] = self.prep_outputs( 152 inputs, outputs, return_only_outputs 153 ) File ~/.local/lib/python3.10/site-packages/langchain/chains/base.py:143, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, include_run_info) 137 run_manager = callback_manager.on_chain_start( 138 dumpd(self), 139 inputs, 140 ) 141 try: 142 outputs = ( --> 143 self._call(inputs, run_manager=run_manager) 144 if new_arg_supported 145 else self._call(inputs) 146 ) 147 except (KeyboardInterrupt, Exception) as e: 148 run_manager.on_chain_error(e) File ~/.local/lib/python3.10/site-packages/langchain/chains/sql_database/base.py:105, in SQLDatabaseChain._call(self, inputs, run_manager) 103 # If not present, then defaults to None which is all tables. 104 table_names_to_use = inputs.get("table_names_to_use") --> 105 table_info = self.database.get_table_info(table_names=table_names_to_use) 106 llm_inputs = { 107 "input": input_text, 108 "top_k": str(self.top_k), (...) 111 "stop": ["\nSQLResult:"], 112 } 113 intermediate_steps: List = [] File ~/.local/lib/python3.10/site-packages/langchain/sql_database.py:289, in SQLDatabase.get_table_info(self, table_names) 287 table_info += f"\n{self._get_table_indexes(table)}\n" 288 if self._sample_rows_in_table_info: --> 289 table_info += f"\n{self._get_sample_rows(table)}\n" 290 if has_extra_info: 291 table_info += "*/" File ~/.local/lib/python3.10/site-packages/langchain/sql_database.py:311, in SQLDatabase._get_sample_rows(self, table) 308 try: 309 # get the sample rows 310 with self._engine.connect() as connection: --> 311 sample_rows_result = connection.execute(command) # type: ignore 312 # shorten values in the sample rows 313 sample_rows = list( 314 map(lambda ls: [str(i)[:100] for i in ls], sample_rows_result) 315 ) File /opt/conda/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1413, in Connection.execute(self, statement, parameters, execution_options) 1411 raise exc.ObjectNotExecutableError(statement) from err 1412 else: -> 1413 return meth( 1414 self, 1415 distilled_parameters, 1416 execution_options or NO_OPTIONS, 1417 ) File /opt/conda/lib/python3.10/site-packages/sqlalchemy/sql/elements.py:483, in ClauseElement._execute_on_connection(self, connection, distilled_params, execution_options) 481 if TYPE_CHECKING: 482 assert isinstance(self, Executable) --> 483 return connection._execute_clauseelement( 484 self, distilled_params, execution_options 485 ) 486 else: 487 raise exc.ObjectNotExecutableError(self) File /opt/conda/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1629, in Connection._execute_clauseelement(self, elem, distilled_parameters, execution_options) 1621 schema_translate_map = execution_options.get( 1622 "schema_translate_map", None 1623 ) 1625 compiled_cache: Optional[CompiledCacheType] = execution_options.get( 1626 "compiled_cache", self.engine._compiled_cache 1627 ) -> 1629 compiled_sql, extracted_params, cache_hit = elem._compile_w_cache( 1630 dialect=dialect, 1631 compiled_cache=compiled_cache, 1632 column_keys=keys, 1633 for_executemany=for_executemany, 1634 schema_translate_map=schema_translate_map, 1635 linting=self.dialect.compiler_linting | compiler.WARN_LINTING, 1636 ) 1637 ret = self._execute_context( 1638 dialect, 1639 dialect.execution_ctx_cls._init_compiled, (...) 1647 cache_hit=cache_hit, 1648 ) 1649 if has_events: File /opt/conda/lib/python3.10/site-packages/sqlalchemy/sql/elements.py:684, in ClauseElement._compile_w_cache(self, dialect, compiled_cache, column_keys, for_executemany, schema_translate_map, **kw) 682 else: 683 extracted_params = None --> 684 compiled_sql = self._compiler( 685 dialect, 686 cache_key=elem_cache_key, 687 column_keys=column_keys, 688 for_executemany=for_executemany, 689 schema_translate_map=schema_translate_map, 690 **kw, 691 ) 693 if not dialect._supports_statement_cache: 694 cache_hit = dialect.NO_DIALECT_SUPPORT File /opt/conda/lib/python3.10/site-packages/sqlalchemy/sql/elements.py:288, in CompilerElement._compiler(self, dialect, **kw) 286 if TYPE_CHECKING: 287 assert isinstance(self, ClauseElement) --> 288 return dialect.statement_compiler(dialect, self, **kw) File ~/.local/lib/python3.10/site-packages/pybigquery/sqlalchemy_bigquery.py:137, in BigQueryCompiler.__init__(self, dialect, statement, column_keys, inline, **kwargs) 135 if isinstance(statement, Column): 136 kwargs['compile_kwargs'] = util.immutabledict({'include_table': False}) --> 137 super(BigQueryCompiler, self).__init__(dialect, statement, column_keys, inline, **kwargs) TypeError: SQLCompiler.__init__() got multiple values for argument 'cache_key' ```` I use a VertexAI model (MODEL_TEXT_BISON_001) as the LLM. Some essential library versions: langchain == 0.0.206 SQLAlchemy == 2.0.11 ipython == 8.12.1 python == 3.10.10 google-cloud-bigquery == 3.10.0 google-cloud-bigquery-storage == 2.16.2 ### Who can help? @hwchase17 ### 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 - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction `db` = SQLDatabase.from_uri(f"bigquery://{project_id}/{dataset}") toolkit = SQLDatabaseToolkit(llm=llm, db=db) db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True) db_chain.run("What is the sport that generates highest revenue")` ### Expected behavior When running the db_chain, I expect to get an answer from the bigquery database
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6870/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/6870/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6869
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6869/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6869/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6869/events
https://github.com/langchain-ai/langchain/issues/6869
1,778,919,115
I_kwDOIPDwls5qCCbL
6,869
how to track token usage for OpenAIEmbeddings? it seems that get_openai_callback always return 0.
{ "login": "xiaoyhuang123", "id": 20966476, "node_id": "MDQ6VXNlcjIwOTY2NDc2", "avatar_url": "https://avatars.githubusercontent.com/u/20966476?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xiaoyhuang123", "html_url": "https://github.com/xiaoyhuang123", "followers_url": "https://api.github.com/users/xiaoyhuang123/followers", "following_url": "https://api.github.com/users/xiaoyhuang123/following{/other_user}", "gists_url": "https://api.github.com/users/xiaoyhuang123/gists{/gist_id}", "starred_url": "https://api.github.com/users/xiaoyhuang123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xiaoyhuang123/subscriptions", "organizations_url": "https://api.github.com/users/xiaoyhuang123/orgs", "repos_url": "https://api.github.com/users/xiaoyhuang123/repos", "events_url": "https://api.github.com/users/xiaoyhuang123/events{/privacy}", "received_events_url": "https://api.github.com/users/xiaoyhuang123/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 4678528832, "node_id": "LA_kwDOIPDwls8AAAABFtyvQA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/question", "name": "question", "color": "d876e3", "default": true, "description": "Further information is requested" } ]
closed
false
null
[]
null
3
2023-06-28T13:14:02
2023-10-06T16:06:44
2023-10-06T16:06:43
NONE
null
### Issue you'd like to raise. how to track token usage for OpenAIEmbeddings? it seems that get_openai_callback always return 0. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6869/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6869/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6868
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6868/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6868/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6868/events
https://github.com/langchain-ai/langchain/issues/6868
1,778,835,710
I_kwDOIPDwls5qBuD-
6,868
Word2vec/Glove/FastText embedding support
{ "login": "pradeepdev-1995", "id": 41164884, "node_id": "MDQ6VXNlcjQxMTY0ODg0", "avatar_url": "https://avatars.githubusercontent.com/u/41164884?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pradeepdev-1995", "html_url": "https://github.com/pradeepdev-1995", "followers_url": "https://api.github.com/users/pradeepdev-1995/followers", "following_url": "https://api.github.com/users/pradeepdev-1995/following{/other_user}", "gists_url": "https://api.github.com/users/pradeepdev-1995/gists{/gist_id}", "starred_url": "https://api.github.com/users/pradeepdev-1995/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pradeepdev-1995/subscriptions", "organizations_url": "https://api.github.com/users/pradeepdev-1995/orgs", "repos_url": "https://api.github.com/users/pradeepdev-1995/repos", "events_url": "https://api.github.com/users/pradeepdev-1995/events{/privacy}", "received_events_url": "https://api.github.com/users/pradeepdev-1995/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 4678528832, "node_id": "LA_kwDOIPDwls8AAAABFtyvQA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/question", "name": "question", "color": "d876e3", "default": true, "description": "Further information is requested" }, { "id": 5774514459, "node_id": "LA_kwDOIPDwls8AAAABWDAZGw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/stale", "name": "stale", "color": "dadada", "default": false, "description": "Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed" } ]
open
false
null
[]
null
2
2023-06-28T12:26:22
2023-12-25T16:01:36
null
NONE
null
### Feature request Is there any way to store the word2vec/glove/fasttext based embeddings in the vector database using langchain ``` pages= "page content" embeddings = OpenAIEmbeddings() persist_directory = 'db' vectordb = Chroma.from_documents(documents=pages, embedding=embeddings, persist_directory=persist_directory) ``` shall use **word2vec/glove/fasttext** embeddings instead of **OpenAIEmbeddings()** in the above code? if possible then what is the syntax for that? ### Motivation For using native embedding formats ### Your contribution For using native embedding formats like word2vec/glove/fasttext in langchain
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6868/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/6868/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6867
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6867/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6867/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6867/events
https://github.com/langchain-ai/langchain/pull/6867
1,778,781,194
PR_kwDOIPDwls5UIfVs
6,867
add with score option for max marginal relevance
{ "login": "rian-dolphin", "id": 34861538, "node_id": "MDQ6VXNlcjM0ODYxNTM4", "avatar_url": "https://avatars.githubusercontent.com/u/34861538?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rian-dolphin", "html_url": "https://github.com/rian-dolphin", "followers_url": "https://api.github.com/users/rian-dolphin/followers", "following_url": "https://api.github.com/users/rian-dolphin/following{/other_user}", "gists_url": "https://api.github.com/users/rian-dolphin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rian-dolphin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rian-dolphin/subscriptions", "organizations_url": "https://api.github.com/users/rian-dolphin/orgs", "repos_url": "https://api.github.com/users/rian-dolphin/repos", "events_url": "https://api.github.com/users/rian-dolphin/events{/privacy}", "received_events_url": "https://api.github.com/users/rian-dolphin/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": "" } ]
closed
false
null
[]
null
1
2023-06-28T11:50:30
2023-06-29T05:00:35
2023-06-29T05:00:34
CONTRIBUTOR
null
### Adding the functionality to return the scores with retrieved documents when using the max marginal relevance - Description: Add the method `max_marginal_relevance_search_with_score_by_vector` to the FAISS wrapper. Functionality operates the same as `similarity_search_with_score_by_vector` except for using the max marginal relevance retrieval framework like is used in the `max_marginal_relevance_search_by_vector` method. - Dependencies: None - Tag maintainer: @rlancemartin @eyurtsev - Twitter handle: @RianDolphin
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6867/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6867/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6867", "html_url": "https://github.com/langchain-ai/langchain/pull/6867", "diff_url": "https://github.com/langchain-ai/langchain/pull/6867.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6867.patch", "merged_at": "2023-06-29T05:00:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/6866
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6866/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6866/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6866/events
https://github.com/langchain-ai/langchain/issues/6866
1,778,756,225
I_kwDOIPDwls5qBaqB
6,866
PGVector is Lacking Basic Features
{ "login": "notchatbot", "id": 137807081, "node_id": "U_kgDOCDbE6Q", "avatar_url": "https://avatars.githubusercontent.com/u/137807081?v=4", "gravatar_id": "", "url": "https://api.github.com/users/notchatbot", "html_url": "https://github.com/notchatbot", "followers_url": "https://api.github.com/users/notchatbot/followers", "following_url": "https://api.github.com/users/notchatbot/following{/other_user}", "gists_url": "https://api.github.com/users/notchatbot/gists{/gist_id}", "starred_url": "https://api.github.com/users/notchatbot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/notchatbot/subscriptions", "organizations_url": "https://api.github.com/users/notchatbot/orgs", "repos_url": "https://api.github.com/users/notchatbot/repos", "events_url": "https://api.github.com/users/notchatbot/events{/privacy}", "received_events_url": "https://api.github.com/users/notchatbot/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
6
2023-06-28T11:32:05
2023-10-16T16:06:54
2023-10-16T16:06:53
NONE
null
### Feature request PGVector lacks Upsert and deletion capabilities. I have to custom create this functionality. ### Motivation I want to use PGVector because it's easy to implement and I don't require to deal with DB vector providers. ### Your contribution If you deem this useful I will try propose a pull request.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6866/reactions", "total_count": 7, "+1": 6, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/6866/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6865
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6865/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6865/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6865/events
https://github.com/langchain-ai/langchain/pull/6865
1,778,692,437
PR_kwDOIPDwls5UIMRB
6,865
added example notebook - use custom functions with openai agent
{ "login": "shashankdeshpande", "id": 47742503, "node_id": "MDQ6VXNlcjQ3NzQyNTAz", "avatar_url": "https://avatars.githubusercontent.com/u/47742503?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shashankdeshpande", "html_url": "https://github.com/shashankdeshpande", "followers_url": "https://api.github.com/users/shashankdeshpande/followers", "following_url": "https://api.github.com/users/shashankdeshpande/following{/other_user}", "gists_url": "https://api.github.com/users/shashankdeshpande/gists{/gist_id}", "starred_url": "https://api.github.com/users/shashankdeshpande/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shashankdeshpande/subscriptions", "organizations_url": "https://api.github.com/users/shashankdeshpande/orgs", "repos_url": "https://api.github.com/users/shashankdeshpande/repos", "events_url": "https://api.github.com/users/shashankdeshpande/events{/privacy}", "received_events_url": "https://api.github.com/users/shashankdeshpande/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-28T10:48:46
2023-06-29T05:07:34
2023-06-29T05:07:33
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6865/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/6865/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6865", "html_url": "https://github.com/langchain-ai/langchain/pull/6865", "diff_url": "https://github.com/langchain-ai/langchain/pull/6865.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6865.patch", "merged_at": "2023-06-29T05:07:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/6864
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6864/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6864/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6864/events
https://github.com/langchain-ai/langchain/pull/6864
1,778,638,674
PR_kwDOIPDwls5UIAcr
6,864
Chroma: add vector search with scores
{ "login": "jan-kubica", "id": 104276362, "node_id": "U_kgDOBjchig", "avatar_url": "https://avatars.githubusercontent.com/u/104276362?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jan-kubica", "html_url": "https://github.com/jan-kubica", "followers_url": "https://api.github.com/users/jan-kubica/followers", "following_url": "https://api.github.com/users/jan-kubica/following{/other_user}", "gists_url": "https://api.github.com/users/jan-kubica/gists{/gist_id}", "starred_url": "https://api.github.com/users/jan-kubica/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jan-kubica/subscriptions", "organizations_url": "https://api.github.com/users/jan-kubica/orgs", "repos_url": "https://api.github.com/users/jan-kubica/repos", "events_url": "https://api.github.com/users/jan-kubica/events{/privacy}", "received_events_url": "https://api.github.com/users/jan-kubica/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-28T10:14:00
2023-09-29T13:25:41
2023-07-06T14:01:56
CONTRIBUTOR
null
- Description: Adding to Chroma integration the option to run a similarity search by a vector with relevance scores. Fixing two minor typos. - Issue: The "lambda_mult" typo is related to #4861 - Maintainer: @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6864/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6864/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6864", "html_url": "https://github.com/langchain-ai/langchain/pull/6864", "diff_url": "https://github.com/langchain-ai/langchain/pull/6864.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6864.patch", "merged_at": "2023-07-06T14:01:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/6863
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6863/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6863/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6863/events
https://github.com/langchain-ai/langchain/pull/6863
1,778,573,038
PR_kwDOIPDwls5UHyAp
6,863
Increase flexibility of ElasticVectorSearch
{ "login": "mertkayhan", "id": 42064129, "node_id": "MDQ6VXNlcjQyMDY0MTI5", "avatar_url": "https://avatars.githubusercontent.com/u/42064129?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mertkayhan", "html_url": "https://github.com/mertkayhan", "followers_url": "https://api.github.com/users/mertkayhan/followers", "following_url": "https://api.github.com/users/mertkayhan/following{/other_user}", "gists_url": "https://api.github.com/users/mertkayhan/gists{/gist_id}", "starred_url": "https://api.github.com/users/mertkayhan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mertkayhan/subscriptions", "organizations_url": "https://api.github.com/users/mertkayhan/orgs", "repos_url": "https://api.github.com/users/mertkayhan/repos", "events_url": "https://api.github.com/users/mertkayhan/events{/privacy}", "received_events_url": "https://api.github.com/users/mertkayhan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
{ "login": "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 }
[ { "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 } ]
null
20
2023-06-28T09:34:52
2023-11-17T12:34:26
2023-11-13T22:36:03
CONTRIBUTOR
null
Hey @rlancemartin, @eyurtsev , I did some minimal changes to the `ElasticVectorSearch` client so that it plays better with existing ES indices. Main changes are as follows: 1. You can pass the dense vector field name into `_default_script_query` 2. You can pass a custom script query implementation and the respective parameters to `similarity_search_with_score` 3. You can pass functions for building page content and metadata for the resulting `Document` <!-- Thank you for contributing to LangChain! Replace this 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! 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, 4. an example notebook showing its use. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6863/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/6863/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6863", "html_url": "https://github.com/langchain-ai/langchain/pull/6863", "diff_url": "https://github.com/langchain-ai/langchain/pull/6863.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6863.patch", "merged_at": "2023-11-13T22:36:03" }
https://api.github.com/repos/langchain-ai/langchain/issues/6862
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6862/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6862/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6862/events
https://github.com/langchain-ai/langchain/pull/6862
1,778,509,000
PR_kwDOIPDwls5UHkCu
6,862
Add `call_actor_task` to the Apify integration
{ "login": "jirimoravcik", "id": 951187, "node_id": "MDQ6VXNlcjk1MTE4Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/951187?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jirimoravcik", "html_url": "https://github.com/jirimoravcik", "followers_url": "https://api.github.com/users/jirimoravcik/followers", "following_url": "https://api.github.com/users/jirimoravcik/following{/other_user}", "gists_url": "https://api.github.com/users/jirimoravcik/gists{/gist_id}", "starred_url": "https://api.github.com/users/jirimoravcik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jirimoravcik/subscriptions", "organizations_url": "https://api.github.com/users/jirimoravcik/orgs", "repos_url": "https://api.github.com/users/jirimoravcik/repos", "events_url": "https://api.github.com/users/jirimoravcik/events{/privacy}", "received_events_url": "https://api.github.com/users/jirimoravcik/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-28T08:58:02
2023-06-29T05:13:48
2023-06-29T05:13:47
CONTRIBUTOR
null
A user has been testing the Apify integration inside langchain and he was not able to run saved Actor tasks. This PR adds support for calling saved Actor tasks on the Apify platform to the existing integration. The structure of very similar to the one of calling Actors.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6862/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6862/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6862", "html_url": "https://github.com/langchain-ai/langchain/pull/6862", "diff_url": "https://github.com/langchain-ai/langchain/pull/6862.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6862.patch", "merged_at": "2023-06-29T05:13:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/6861
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6861/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6861/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6861/events
https://github.com/langchain-ai/langchain/issues/6861
1,778,460,142
I_kwDOIPDwls5qASXu
6,861
sqldatabasechain result incomplete
{ "login": "xvgaoxing2023", "id": 126930926, "node_id": "U_kgDOB5DP7g", "avatar_url": "https://avatars.githubusercontent.com/u/126930926?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xvgaoxing2023", "html_url": "https://github.com/xvgaoxing2023", "followers_url": "https://api.github.com/users/xvgaoxing2023/followers", "following_url": "https://api.github.com/users/xvgaoxing2023/following{/other_user}", "gists_url": "https://api.github.com/users/xvgaoxing2023/gists{/gist_id}", "starred_url": "https://api.github.com/users/xvgaoxing2023/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xvgaoxing2023/subscriptions", "organizations_url": "https://api.github.com/users/xvgaoxing2023/orgs", "repos_url": "https://api.github.com/users/xvgaoxing2023/repos", "events_url": "https://api.github.com/users/xvgaoxing2023/events{/privacy}", "received_events_url": "https://api.github.com/users/xvgaoxing2023/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528808, "node_id": "LA_kwDOIPDwls8AAAABFtyvKA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 4678528832, "node_id": "LA_kwDOIPDwls8AAAABFtyvQA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/question", "name": "question", "color": "d876e3", "default": true, "description": "Further information is requested" } ]
closed
false
null
[]
null
8
2023-06-28T08:26:32
2023-12-08T16:06:35
2023-12-08T16:06:34
NONE
null
### Issue you'd like to raise. db_chain = SQLDatabaseChain(llm=llm, database=db, prompt=PROMPT, verbose=True, return_intermediate_steps=True, top_k=3) result = db_chain("Make a list of those taking the exam") result['result'] is incomplete,why ?token ? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6861/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/6861/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6859
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6859/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6859/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6859/events
https://github.com/langchain-ai/langchain/pull/6859
1,778,444,316
PR_kwDOIPDwls5UHWEf
6,859
feat: ctransformers support async chain
{ "login": "semoal", "id": 22656541, "node_id": "MDQ6VXNlcjIyNjU2NTQx", "avatar_url": "https://avatars.githubusercontent.com/u/22656541?v=4", "gravatar_id": "", "url": "https://api.github.com/users/semoal", "html_url": "https://github.com/semoal", "followers_url": "https://api.github.com/users/semoal/followers", "following_url": "https://api.github.com/users/semoal/following{/other_user}", "gists_url": "https://api.github.com/users/semoal/gists{/gist_id}", "starred_url": "https://api.github.com/users/semoal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/semoal/subscriptions", "organizations_url": "https://api.github.com/users/semoal/orgs", "repos_url": "https://api.github.com/users/semoal/repos", "events_url": "https://api.github.com/users/semoal/events{/privacy}", "received_events_url": "https://api.github.com/users/semoal/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
5
2023-06-28T08:16:18
2023-07-10T08:23:49
2023-07-10T08:23:41
CONTRIBUTOR
null
- Description: Adding async method for CTransformers - Issue: I've found impossible without this code to run Websockets inside a FastAPI micro service and a CTransformers model. - Tag maintainer: Not necessary yet, I don't like to mention directly - Twitter handle: @_semoal - <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: I've found impossible without this code to run Websockets inside a FastAPI micro service and a CTransformers model. - 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @dev2049 - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @dev2049 - Memory: @hwchase17 - Agents / Tools / Toolkits: @vowelparrot - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6859/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6859/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6859", "html_url": "https://github.com/langchain-ai/langchain/pull/6859", "diff_url": "https://github.com/langchain-ai/langchain/pull/6859.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6859.patch", "merged_at": "2023-07-10T08:23:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/6858
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6858/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6858/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6858/events
https://github.com/langchain-ai/langchain/pull/6858
1,778,304,792
PR_kwDOIPDwls5UG48_
6,858
Provided default values for tags and inheritable_tags args in BaseRun…
{ "login": "Siraj-Aizlewood", "id": 31565026, "node_id": "MDQ6VXNlcjMxNTY1MDI2", "avatar_url": "https://avatars.githubusercontent.com/u/31565026?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Siraj-Aizlewood", "html_url": "https://github.com/Siraj-Aizlewood", "followers_url": "https://api.github.com/users/Siraj-Aizlewood/followers", "following_url": "https://api.github.com/users/Siraj-Aizlewood/following{/other_user}", "gists_url": "https://api.github.com/users/Siraj-Aizlewood/gists{/gist_id}", "starred_url": "https://api.github.com/users/Siraj-Aizlewood/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Siraj-Aizlewood/subscriptions", "organizations_url": "https://api.github.com/users/Siraj-Aizlewood/orgs", "repos_url": "https://api.github.com/users/Siraj-Aizlewood/repos", "events_url": "https://api.github.com/users/Siraj-Aizlewood/events{/privacy}", "received_events_url": "https://api.github.com/users/Siraj-Aizlewood/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-28T06:35:39
2023-06-30T05:01:09
2023-06-30T05:01:08
CONTRIBUTOR
null
…Manager To avoid the error message: TypeError: BaseRunManager.__init__() missing 2 required keyword-only arguments: 'tags' and 'inheritable_tags' when running AsyncCallbackManagerForChainRun (from langchain.callbacks.manager import AsyncCallbackManagerForChainRun), provided default values for tags and inheritable_tages of empty lists in manager.py BaseRunManager. - Description: In manager.py, `BaseRunManager`, default values were provided for the `__init__` args `tags` and `inheritable_tags`. They default to empty lists (`[]`). - Issue: When trying to use Nvidia NeMo Guardrails with LangChain, the following exception was raised: ``` [autoreload of chatbot failed: Traceback (most recent call last): File "C:\Users\Siraj\anaconda3\envs\redacre_test_1\lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\Users\Siraj\anaconda3\envs\redacre_test_1\lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) File "C:\Users\Siraj\anaconda3\envs\redacre_test_1\lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "<frozen importlib._bootstrap>", line 619, in _exec File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "C:\Users\Siraj\Documents\Personal\Work\Aurelio\20230530 Red Acre\automationai\backend\chatbot\automationai\chatbot.py", line 9, in <module> from nemoguardrails import LLMRails, RailsConfig File "C:\Users\Siraj\anaconda3\envs\redacre_test_1\lib\site-packages\nemoguardrails\__init__.py", line 17, in <module> from .rails import LLMRails, RailsConfig File "C:\Users\Siraj\anaconda3\envs\redacre_test_1\lib\site-packages\nemoguardrails\rails\__init__.py", line 17, in <module> from .llm.llmrails import LLMRails File "C:\Users\Siraj\anaconda3\envs\redacre_test_1\lib\site-packages\nemoguardrails\rails\llm\llmrails.py", line 26, in <module> from nemoguardrails.actions.llm.generation import LLMGenerationActions TypeError: BaseRunManager.__init__() missing 2 required keyword-only arguments: 'tags' and 'inheritable_tags' ] Traceback (most recent call last): File ~\anaconda3\envs\redacre_test_1\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec exec(code, globals, locals) File c:\users\siraj\documents\personal\work\aurelio\20230530 red acre\automationai\backend\chatbot\automationai\sra_test_1.py:8 from chatbot import Chatbot File ~\Documents\Personal\Work\Aurelio\20230530 Red Acre\automationai\backend\chatbot\automationai\chatbot.py:9 from nemoguardrails import LLMRails, RailsConfig File ~\anaconda3\envs\redacre_test_1\lib\site-packages\nemoguardrails\__init__.py:17 from .rails import LLMRails, RailsConfig File ~\anaconda3\envs\redacre_test_1\lib\site-packages\nemoguardrails\rails\__init__.py:17 from .llm.llmrails import LLMRails File ~\anaconda3\envs\redacre_test_1\lib\site-packages\nemoguardrails\rails\llm\llmrails.py:26 from nemoguardrails.actions.llm.generation import LLMGenerationActions File ~\anaconda3\envs\redacre_test_1\lib\site-packages\nemoguardrails\actions\llm\generation.py:46 from nemoguardrails.logging.callbacks import logging_callbacks File ~\anaconda3\envs\redacre_test_1\lib\site-packages\nemoguardrails\logging\callbacks.py:237 logging_callback_manager_for_chain = AsyncCallbackManagerForChainRun( TypeError: BaseRunManager.__init__() missing 2 required keyword-only arguments: 'tags' and 'inheritable_tags' ``` I was using the NeMo Guardrails `LLMRails` module to create an app objects: `self.app = LLMRails(config, verbose =True)` The I tried to use: `bot_message = self.app.generate_async(prompt=self.sys_msg, messages=history)` The LLMRails` class makes use of `LLMGenerationActions`, which comes from: `from nemoguardrails.actions.llm.generation import LLMGenerationActions` In the generations.py module we have: `from nemoguardrails.logging.callbacks import logging_callbacks` and in callbacks.py, we have `from langchain.callbacks.manager import AsyncCallbackManagerForChainRun` and the code (Let's call this 'Code A'): ``` logging_callback_manager_for_chain = AsyncCallbackManagerForChainRun( run_id=uuid.uuid4(), parent_run_id=None, handlers=handlers, inheritable_handlers=handlers, ) ``` In the LangChain manager.py module, the class `AsyncCallbackManagerForChainRun` inherits the `AsyncRunManager` class, which in turn inherits the `BaseRunManager` class, which previously had (let's call this 'Code B'): ``` def __init__( self, *, run_id: UUID, handlers: List[BaseCallbackHandler], inheritable_handlers: List[BaseCallbackHandler], parent_run_id: Optional[UUID] = None, tags: List[str], inheritable_tags: List[str], ) ``` As you can see, Code A fails to provide the tags and inheritable_tags arguments. My guess was that these can be optional arguments, but perhaps I'm wrong. So, I changed Code B to: ``` def __init__( self, *, run_id: UUID, handlers: List[BaseCallbackHandler], inheritable_handlers: List[BaseCallbackHandler], parent_run_id: Optional[UUID] = None, tags: List[str]=[], inheritable_tags: List[str]=[], ) ``` - Dependencies: The fix doesn't require any dependencies. Although to recreate the issue you probably need to install Nvidia NeMo Guardrails. - Tag maintainer: @agola11 @vowelparrot - Twitter handle: n/a.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6858/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6858/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6858", "html_url": "https://github.com/langchain-ai/langchain/pull/6858", "diff_url": "https://github.com/langchain-ai/langchain/pull/6858.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6858.patch", "merged_at": "2023-06-30T05:01:08" }