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/7612
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7612/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7612/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7612/events
https://github.com/langchain-ai/langchain/pull/7612
1,801,672,306
PR_kwDOIPDwls5VWTKn
7,612
Rm Warning that Tracing is Experimental
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-07-12T20:06:56
2023-07-12T21:04:30
2023-07-12T21:04:29
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7612/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7612/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7612", "html_url": "https://github.com/langchain-ai/langchain/pull/7612", "diff_url": "https://github.com/langchain-ai/langchain/pull/7612.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7612.patch", "merged_at": "2023-07-12T21:04:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/7611
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7611/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7611/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7611/events
https://github.com/langchain-ai/langchain/pull/7611
1,801,671,476
PR_kwDOIPDwls5VWS_M
7,611
Stop warning when parent run ID not present
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-07-12T20:06:17
2023-07-12T21:04:34
2023-07-12T21:04:33
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7611/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7611/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7611", "html_url": "https://github.com/langchain-ai/langchain/pull/7611", "diff_url": "https://github.com/langchain-ai/langchain/pull/7611.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7611.patch", "merged_at": "2023-07-12T21:04:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/7610
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7610/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7610/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7610/events
https://github.com/langchain-ai/langchain/issues/7610
1,801,664,816
I_kwDOIPDwls5rYzkw
7,610
Issue: Big issue with inefficient search from Google/Wikipedia and LLM hallucinations with ReAct agent
{ "login": "jeromemassot", "id": 20254310, "node_id": "MDQ6VXNlcjIwMjU0MzEw", "avatar_url": "https://avatars.githubusercontent.com/u/20254310?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jeromemassot", "html_url": "https://github.com/jeromemassot", "followers_url": "https://api.github.com/users/jeromemassot/followers", "following_url": "https://api.github.com/users/jeromemassot/following{/other_user}", "gists_url": "https://api.github.com/users/jeromemassot/gists{/gist_id}", "starred_url": "https://api.github.com/users/jeromemassot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jeromemassot/subscriptions", "organizations_url": "https://api.github.com/users/jeromemassot/orgs", "repos_url": "https://api.github.com/users/jeromemassot/repos", "events_url": "https://api.github.com/users/jeromemassot/events{/privacy}", "received_events_url": "https://api.github.com/users/jeromemassot/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
1
2023-07-12T20:00:50
2023-10-18T16:05:33
2023-10-18T16:05:32
NONE
null
### Issue you'd like to raise. Hi, LangChain community, just to share that even with the examples mentioned in the official documentation, it is almost impossible to get consistent results when using agents with Wikipedia/Google search tools. Or the search is non conclusive or the LLM is totally hallucinating at the very early step of the pipeline. LLMs from OpenAI for Completion or Conversation. Did someone else notice this new behavior? Best regards Jerome ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7610/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7610/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7609
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7609/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7609/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7609/events
https://github.com/langchain-ai/langchain/issues/7609
1,801,636,599
I_kwDOIPDwls5rYsr3
7,609
BaseEmbaasLoader validation fails
{ "login": "maciejso", "id": 586619, "node_id": "MDQ6VXNlcjU4NjYxOQ==", "avatar_url": "https://avatars.githubusercontent.com/u/586619?v=4", "gravatar_id": "", "url": "https://api.github.com/users/maciejso", "html_url": "https://github.com/maciejso", "followers_url": "https://api.github.com/users/maciejso/followers", "following_url": "https://api.github.com/users/maciejso/following{/other_user}", "gists_url": "https://api.github.com/users/maciejso/gists{/gist_id}", "starred_url": "https://api.github.com/users/maciejso/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maciejso/subscriptions", "organizations_url": "https://api.github.com/users/maciejso/orgs", "repos_url": "https://api.github.com/users/maciejso/repos", "events_url": "https://api.github.com/users/maciejso/events{/privacy}", "received_events_url": "https://api.github.com/users/maciejso/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-07-12T19:38:41
2023-07-13T07:50:31
2023-07-13T07:50:30
NONE
null
### System Info Repro: Running this code sample. https://github.com/techleadhd/chatgpt-retrieval ``` Traceback (most recent call last): File "/home/maciej/workdir/intenzia/langchaintest/chatgpt-retrieval/chatgpt.py", line 5, in <module> from langchain.chains import ConversationalRetrievalChain, RetrievalQA File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/langchain/__init__.py", line 6, in <module> from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/langchain/agents/__init__.py", line 2, in <module> from langchain.agents.agent import ( File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/langchain/agents/agent.py", line 16, in <module> from langchain.agents.tools import InvalidTool File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/langchain/agents/tools.py", line 8, in <module> from langchain.tools.base import BaseTool, Tool, tool File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/langchain/tools/__init__.py", line 3, in <module> from langchain.tools.arxiv.tool import ArxivQueryRun File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/langchain/tools/arxiv/tool.py", line 12, in <module> from langchain.utilities.arxiv import ArxivAPIWrapper File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/langchain/utilities/__init__.py", line 3, in <module> from langchain.utilities.apify import ApifyWrapper File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/langchain/utilities/apify.py", line 5, in <module> from langchain.document_loaders import ApifyDatasetLoader File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/langchain/document_loaders/__init__.py", line 44, in <module> from langchain.document_loaders.embaas import EmbaasBlobLoader, EmbaasLoader File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/langchain/document_loaders/embaas.py", line 54, in <module> class BaseEmbaasLoader(BaseModel): File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/main.py", line 204, in __new__ fields[ann_name] = ModelField.infer( ^^^^^^^^^^^^^^^^^ File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/fields.py", line 488, in infer return cls( ^^^^ File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/fields.py", line 419, in __init__ self.prepare() File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/fields.py", line 539, in prepare self.populate_validators() File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/fields.py", line 801, in populate_validators *(get_validators() if get_validators else list(find_validators(self.type_, self.model_config))), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/validators.py", line 696, in find_validators yield make_typeddict_validator(type_, config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/validators.py", line 585, in make_typeddict_validator TypedDictModel = create_model_from_typeddict( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/annotated_types.py", line 35, in create_model_from_typeddict return create_model(typeddict_cls.__name__, **kwargs, **field_definitions) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/main.py", line 972, in create_model return type(__model_name, __base__, namespace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/main.py", line 204, in __new__ fields[ann_name] = ModelField.infer( ^^^^^^^^^^^^^^^^^ File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/fields.py", line 488, in infer return cls( ^^^^ File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/fields.py", line 419, in __init__ self.prepare() File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/fields.py", line 534, in prepare self._type_analysis() File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pydantic/fields.py", line 638, in _type_analysis elif issubclass(origin, Tuple): # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/maciej/.pyenv/versions/3.11.0/lib/python3.11/typing.py", line 1550, in __subclasscheck__ return issubclass(cls, self.__origin__) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: issubclass() arg 1 must be a class ``` ``` langchain==0.0.230 langchainplus-sdk==0.0.20 Python 3.11.0 Ubuntu 22.04 ``` ``` maciej@ola:~/workdir/intenzia/langchaintest/chatgpt-retrieval$ pip freeze aiohttp==3.8.4 aiosignal==1.3.1 anyio==3.7.1 async-timeout==4.0.2 attrs==23.1.0 backoff==2.2.1 certifi==2023.5.7 cffi==1.15.1 chardet==5.1.0 charset-normalizer==3.2.0 chromadb==0.3.27 click==8.1.4 clickhouse-connect==0.6.6 coloredlogs==15.0.1 cryptography==41.0.2 dataclasses-json==0.5.9 duckdb==0.8.1 et-xmlfile==1.1.0 fastapi==0.85.1 filetype==1.2.0 flatbuffers==23.5.26 frozenlist==1.3.3 greenlet==2.0.2 h11==0.14.0 hnswlib==0.7.0 httptools==0.6.0 humanfriendly==10.0 idna==3.4 importlib-metadata==6.8.0 joblib==1.3.1 langchain==0.0.230 langchainplus-sdk==0.0.20 lxml==4.9.3 lz4==4.3.2 Markdown==3.4.3 marshmallow==3.19.0 marshmallow-enum==1.5.1 monotonic==1.6 mpmath==1.3.0 msg-parser==1.2.0 multidict==6.0.4 mypy-extensions==1.0.0 nltk==3.8.1 numexpr==2.8.4 numpy==1.25.1 olefile==0.46 onnxruntime==1.15.1 openai==0.27.8 openapi-schema-pydantic==1.2.4 openpyxl==3.1.2 overrides==7.3.1 packaging==23.1 pandas==2.0.3 pdf2image==1.16.3 pdfminer.six==20221105 Pillow==10.0.0 posthog==3.0.1 protobuf==4.23.4 pulsar-client==3.2.0 pycparser==2.21 pydantic==1.9.0 pypandoc==1.11 python-dateutil==2.8.2 python-docx==0.8.11 python-dotenv==1.0.0 python-magic==0.4.27 python-pptx==0.6.21 pytz==2023.3 PyYAML==6.0 regex==2023.6.3 requests==2.31.0 six==1.16.0 sniffio==1.3.0 SQLAlchemy==2.0.18 starlette==0.20.4 sympy==1.12 tabulate==0.9.0 tenacity==8.2.2 tiktoken==0.4.0 tokenizers==0.13.3 tqdm==4.65.0 typing-inspect==0.9.0 typing_extensions==4.7.1 tzdata==2023.3 unstructured==0.8.1 urllib3==2.0.3 uvicorn==0.22.0 uvloop==0.17.0 watchfiles==0.19.0 websockets==11.0.3 xlrd==2.0.1 XlsxWriter==3.1.2 yarl==1.9.2 zipp==3.16.0 zstandard==0.21.0 ``` ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Run this code sample https://github.com/techleadhd/chatgpt-retrieval ### Expected behavior Pydantic validation fails: TypeError: issubclass() arg 1 must be a class
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7609/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/7609/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7608
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7608/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7608/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7608/events
https://github.com/langchain-ai/langchain/pull/7608
1,801,582,732
PR_kwDOIPDwls5VV_qE
7,608
make client explicit in runner
{ "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-07-12T18:59:01
2023-07-13T07:32:05
2023-07-13T07:32:03
COLLABORATOR
null
More explicit / a req from harrison
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7608/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7608/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7608", "html_url": "https://github.com/langchain-ai/langchain/pull/7608", "diff_url": "https://github.com/langchain-ai/langchain/pull/7608.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7608.patch", "merged_at": "2023-07-13T07:32:03" }
https://api.github.com/repos/langchain-ai/langchain/issues/7607
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7607/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7607/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7607/events
https://github.com/langchain-ai/langchain/pull/7607
1,801,561,607
PR_kwDOIPDwls5VV7A-
7,607
Fix Lint: Bittensor llm
{ "login": "kdcokenny", "id": 99611484, "node_id": "U_kgDOBe_zXA", "avatar_url": "https://avatars.githubusercontent.com/u/99611484?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kdcokenny", "html_url": "https://github.com/kdcokenny", "followers_url": "https://api.github.com/users/kdcokenny/followers", "following_url": "https://api.github.com/users/kdcokenny/following{/other_user}", "gists_url": "https://api.github.com/users/kdcokenny/gists{/gist_id}", "starred_url": "https://api.github.com/users/kdcokenny/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kdcokenny/subscriptions", "organizations_url": "https://api.github.com/users/kdcokenny/orgs", "repos_url": "https://api.github.com/users/kdcokenny/repos", "events_url": "https://api.github.com/users/kdcokenny/events{/privacy}", "received_events_url": "https://api.github.com/users/kdcokenny/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
5
2023-07-12T18:43:05
2023-07-15T22:37:27
2023-07-15T22:37:15
CONTRIBUTOR
null
I fixed the lint so it passes checks for pull #7602 I didn't remove the bearer key in the headers on line 58 in case it's there on purpose for whatever reason that could be. However, @Kunj-2206 if that's not left in on purpose, either reply here to remove it or git checkout this pull req and make a new one.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7607/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/7607/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7607", "html_url": "https://github.com/langchain-ai/langchain/pull/7607", "diff_url": "https://github.com/langchain-ai/langchain/pull/7607.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7607.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7606
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7606/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7606/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7606/events
https://github.com/langchain-ai/langchain/issues/7606
1,801,539,064
I_kwDOIPDwls5rYU34
7,606
If we continuously send "Hello" messages to the "conversational retrieval chain," the model produces weired/wrong answers.
{ "login": "chowdary1209", "id": 52491904, "node_id": "MDQ6VXNlcjUyNDkxOTA0", "avatar_url": "https://avatars.githubusercontent.com/u/52491904?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chowdary1209", "html_url": "https://github.com/chowdary1209", "followers_url": "https://api.github.com/users/chowdary1209/followers", "following_url": "https://api.github.com/users/chowdary1209/following{/other_user}", "gists_url": "https://api.github.com/users/chowdary1209/gists{/gist_id}", "starred_url": "https://api.github.com/users/chowdary1209/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chowdary1209/subscriptions", "organizations_url": "https://api.github.com/users/chowdary1209/orgs", "repos_url": "https://api.github.com/users/chowdary1209/repos", "events_url": "https://api.github.com/users/chowdary1209/events{/privacy}", "received_events_url": "https://api.github.com/users/chowdary1209/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
9
2023-07-12T18:25:59
2024-01-05T13:06:23
2023-10-18T16:05:37
NONE
null
### System Info langchain==0.0.170 openai==0.27.4 python windows ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [X] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I am using the "**ConversationalRetrievalChain**", Whenever I send a message to a model, it produces wrong results with history, whereas if I send the same message without history, it produces correct results. The issue here is that the model is forming the wrong standalone question, and the same wrong standalone question is passing to the OpenAI Model. Steps to reproduce: 1. Use the Conversational Retrieval Chan 2. Pass the history on to the chain. 3. Send the "Hello" message continuously. Here you can observe wrong/weired answers. The above scenario is Just an example. But whenever we ask some question, immediately if we send the message "Hello", the "conversational retrieval chain" forms the wrong standalone question, hence the openAI model producing wrong answers. This is the code I am using: - _template = """ Use the following pieces of context to answer the question at the end. {context} If you still cant find the answer, just say that you don't know, don't try to make up an answer. You can also look into chat history. {chat_history} Question: {question} Answer: """ CONDENSE_QUESTION_PROMPT = PromptTemplate( template=_template, input_variables = ["context","question", "chat_history"], ) chain = ConversationalRetrievalChain.from_llm( llm= azure_chat_api_llm_objct, retriever=vectors.as_retriever(), verbose=True, chain_type="stuff", memory = memory, get_chat_history=lambda h:h, # condense_question_prompt=CONDENSE_QUESTION_PROMPT, combine_docs_chain_kwargs={"prompt": CONDENSE_QUESTION_PROMPT}, return_generated_question=True, ) chain.run("Hello") Note:- I have tried multiple way like removing "CONDENCE_QUESTION", without prompt, with different types of prompts, etc..but still its producing wrong standalone question. Ex:- _template = """ Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question. Chat History: {chat_history} Follow Up Input: {question} Standalone question: """ Thanks in advance, and please correct me if I made any mistakes in the code. <img width="458" alt="image" src="https://github.com/hwchase17/langchain/assets/52491904/eb0e3aba-6151-42f8-924b-bda2cb4ccfaf"> ### Expected behavior It should form a proper standalone question when we pass history before passing to model.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7606/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/7606/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7605
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7605/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7605/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7605/events
https://github.com/langchain-ai/langchain/issues/7605
1,801,502,750
I_kwDOIPDwls5rYMAe
7,605
Type Error Langchain auto converting string to date.timestamp in Pinecone similarity search when Document pagecontent value is a string that "could" be a date ex: 21070926
{ "login": "masonchambersiii", "id": 135065754, "node_id": "U_kgDOCAzwmg", "avatar_url": "https://avatars.githubusercontent.com/u/135065754?v=4", "gravatar_id": "", "url": "https://api.github.com/users/masonchambersiii", "html_url": "https://github.com/masonchambersiii", "followers_url": "https://api.github.com/users/masonchambersiii/followers", "following_url": "https://api.github.com/users/masonchambersiii/following{/other_user}", "gists_url": "https://api.github.com/users/masonchambersiii/gists{/gist_id}", "starred_url": "https://api.github.com/users/masonchambersiii/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/masonchambersiii/subscriptions", "organizations_url": "https://api.github.com/users/masonchambersiii/orgs", "repos_url": "https://api.github.com/users/masonchambersiii/repos", "events_url": "https://api.github.com/users/masonchambersiii/events{/privacy}", "received_events_url": "https://api.github.com/users/masonchambersiii/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-07-12T18:01:54
2023-10-18T16:05:43
2023-10-18T16:05:42
NONE
null
### System Info langchain==0.0.206 ; python_version >= "3.11" and python_version < "4.0" langchainplus-sdk==0.0.16 ; python_version >= "3.11" and python_version < "4.0" ### Who can help? @hwaking @agola11 Hey Guys! The pinecone wrapper is doing a weird auto-type conversion and its thinking my string ID values are dates in this part of the code: ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Have a string value set as your Pinecone Document.pagecontent that could be misinterpreted as a date ex: 21070809 Problem function: def similarity_search_with_score( self, query: str, k: int = 4, filter: Optional[dict] = None, namespace: Optional[str] = None, ) -> List[Tuple[Document, float]]: """Return pinecone documents most similar to query, along with scores. Args: query: Text to look up documents similar to. k: Number of Documents to return. Defaults to 4. filter: Dictionary of argument(s) to filter on metadata namespace: Namespace to search in. Default will search in '' namespace. Returns: List of Documents most similar to the query and score for each """ if namespace is None: namespace = self._namespace query_obj = self._embedding_function(query) docs = [] results = self._index.query( [query_obj], top_k=k, include_metadata=True, namespace=namespace, filter=filter, ) for res in results["matches"]: metadata = res["metadata"] if self._text_key in metadata: text = metadata.pop(self._text_key) score = res["score"] # if (type(text) != str): <-------------------------- I added this code to convert it back to string # text = text.strftime("%Y%m%d") <------------- If you can just recast to string the problem will resolve docs.append((Document(page_content=text, metadata=metadata), score)) else: logger.warning( f"Found document with no `{self._text_key}` key. Skipping." ) return docs Stack: [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi [langchain] [2023-07-12 17:43:08] result = await app( # type: ignore[func-returns-value] [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__ [langchain] [2023-07-12 17:43:08] return await self.app(scope, receive, send) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/fastapi/applications.py", line 282, in __call__ [langchain] [2023-07-12 17:43:08] await super().__call__(scope, receive, send) [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/sentry_sdk/integrations/starlette.py", line 348, in _sentry_patched_asgi_app [langchain] [2023-07-12 17:43:08] return await middleware(scope, receive, send) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/sentry_sdk/integrations/asgi.py", line 141, in _run_asgi3 [langchain] [2023-07-12 17:43:08] return await self._run_app(scope, lambda: self.app(scope, receive, send)) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/sentry_sdk/integrations/asgi.py", line 190, in _run_app [langchain] [2023-07-12 17:43:08] raise exc from None [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/sentry_sdk/integrations/asgi.py", line 185, in _run_app [langchain] [2023-07-12 17:43:08] return await callback() [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__ [langchain] [2023-07-12 17:43:08] await self.middleware_stack(scope, receive, send) [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/sentry_sdk/integrations/starlette.py", line 143, in _create_span_call [langchain] [2023-07-12 17:43:08] return await old_call(app, scope, new_receive, new_send, **kwargs) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__ [langchain] [2023-07-12 17:43:08] raise exc [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__ [langchain] [2023-07-12 17:43:08] await self.app(scope, receive, _send) [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/sentry_sdk/integrations/starlette.py", line 242, in _sentry_exceptionmiddleware_call [langchain] [2023-07-12 17:43:08] await old_call(self, scope, receive, send) [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/sentry_sdk/integrations/starlette.py", line 143, in _create_span_call [langchain] [2023-07-12 17:43:08] return await old_call(app, scope, new_receive, new_send, **kwargs) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__ [langchain] [2023-07-12 17:43:08] raise exc [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__ [langchain] [2023-07-12 17:43:08] await self.app(scope, receive, sender) [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/sentry_sdk/integrations/starlette.py", line 143, in _create_span_call [langchain] [2023-07-12 17:43:08] return await old_call(app, scope, new_receive, new_send, **kwargs) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__ [langchain] [2023-07-12 17:43:08] raise e [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__ [langchain] [2023-07-12 17:43:08] await self.app(scope, receive, send) [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__ [langchain] [2023-07-12 17:43:08] await route.handle(scope, receive, send) [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle [langchain] [2023-07-12 17:43:08] await self.app(scope, receive, send) [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/starlette/routing.py", line 66, in app [langchain] [2023-07-12 17:43:08] response = await func(request) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/sentry_sdk/integrations/fastapi.py", line 131, in _sentry_app [langchain] [2023-07-12 17:43:08] return await old_app(*args, **kwargs) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/fastapi/routing.py", line 241, in app [langchain] [2023-07-12 17:43:08] raw_response = await run_endpoint_function( [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/fastapi/routing.py", line 167, in run_endpoint_function [langchain] [2023-07-12 17:43:08] return await dependant.call(**values) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/search.py", line 528, in ask_question_0_gateway [langchain] [2023-07-12 17:43:08] return await ask_question_0(question, user) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/search.py", line 282, in ask_question_0 [langchain] [2023-07-12 17:43:08] response = await pinecone_search(question, metadata_filter) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/search.py", line 274, in pinecone_search [langchain] [2023-07-12 17:43:08] return pine.similarity_search_with_score(query=question, k=k, filter=filter) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/langchain/vectorstores/pinecone.py", line 132, in similarity_search_with_score [langchain] [2023-07-12 17:43:08] docs.append((Document(page_content=text, metadata=metadata), score)) [langchain] [2023-07-12 17:43:08] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [langchain] [2023-07-12 17:43:08] File "/workspace/.heroku/python/lib/python3.11/site-packages/langchain/load/serializable.py", line 64, in __init__ [langchain] [2023-07-12 17:43:08] super().__init__(**kwargs) [langchain] [2023-07-12 17:43:08] File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__ [langchain] [2023-07-12 17:43:08] raise validation_error [langchain] [2023-07-12 17:43:08] pydantic.error_wrappers.ValidationError: 1 validation error for Document [langchain] [2023-07-12 17:43:08] page_content [langchain] [2023-07-12 17:43:08] str type expected (type=type_error.str) ### Expected behavior I would expect my data from Pinecone to comeback to my API exactly how I put it there. Remove the auto-conversion or implement a strict string type casting to ensure no auto-typing.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7605/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/7605/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7604
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7604/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7604/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7604/events
https://github.com/langchain-ai/langchain/pull/7604
1,801,451,550
PR_kwDOIPDwls5VVinH
7,604
Share client
{ "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-07-12T17:38:16
2023-07-12T21:04:57
2023-07-12T21:04:56
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7604/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7604/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7604", "html_url": "https://github.com/langchain-ai/langchain/pull/7604", "diff_url": "https://github.com/langchain-ai/langchain/pull/7604.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7604.patch", "merged_at": "2023-07-12T21:04:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/7603
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7603/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7603/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7603/events
https://github.com/langchain-ai/langchain/issues/7603
1,801,241,754
I_kwDOIPDwls5rXMSa
7,603
Add support for Meilisearch vector databases
{ "login": "alallema", "id": 16155041, "node_id": "MDQ6VXNlcjE2MTU1MDQx", "avatar_url": "https://avatars.githubusercontent.com/u/16155041?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alallema", "html_url": "https://github.com/alallema", "followers_url": "https://api.github.com/users/alallema/followers", "following_url": "https://api.github.com/users/alallema/following{/other_user}", "gists_url": "https://api.github.com/users/alallema/gists{/gist_id}", "starred_url": "https://api.github.com/users/alallema/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alallema/subscriptions", "organizations_url": "https://api.github.com/users/alallema/orgs", "repos_url": "https://api.github.com/users/alallema/repos", "events_url": "https://api.github.com/users/alallema/events{/privacy}", "received_events_url": "https://api.github.com/users/alallema/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
3
2023-07-12T15:32:23
2023-07-29T00:06:55
2023-07-29T00:06:55
CONTRIBUTOR
null
### Feature request Add support for Meilisearch vector search. [Meilisearch](https://www.meilisearch.com) is an open-source search engine. See [documentation](https://www.meilisearch.com/docs) ### Motivation Meilisearch is releasing the vector search/store feature, which should be available from July 31st. ### Your contribution I'm working on it and will submit a PR for this issue soon.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7603/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/7603/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7602
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7602/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7602/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7602/events
https://github.com/langchain-ai/langchain/pull/7602
1,801,220,884
PR_kwDOIPDwls5VUv2B
7,602
add bittensor llm to langchain llms
{ "login": "Kunj-2206", "id": 59330099, "node_id": "MDQ6VXNlcjU5MzMwMDk5", "avatar_url": "https://avatars.githubusercontent.com/u/59330099?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Kunj-2206", "html_url": "https://github.com/Kunj-2206", "followers_url": "https://api.github.com/users/Kunj-2206/followers", "following_url": "https://api.github.com/users/Kunj-2206/following{/other_user}", "gists_url": "https://api.github.com/users/Kunj-2206/gists{/gist_id}", "starred_url": "https://api.github.com/users/Kunj-2206/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Kunj-2206/subscriptions", "organizations_url": "https://api.github.com/users/Kunj-2206/orgs", "repos_url": "https://api.github.com/users/Kunj-2206/repos", "events_url": "https://api.github.com/users/Kunj-2206/events{/privacy}", "received_events_url": "https://api.github.com/users/Kunj-2206/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-07-12T15:21:48
2023-07-13T12:28:50
2023-07-13T12:28:50
CONTRIBUTOR
null
- Description: Adding BittensorLLM via Validator Endpoint to langchain llms - Tag maintainer: @Kunj-2206 Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7602/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7602/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7602", "html_url": "https://github.com/langchain-ai/langchain/pull/7602", "diff_url": "https://github.com/langchain-ai/langchain/pull/7602.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7602.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7601
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7601/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7601/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7601/events
https://github.com/langchain-ai/langchain/pull/7601
1,801,128,732
PR_kwDOIPDwls5VUbjU
7,601
Create langchain/llms/bittensor.py
{ "login": "Kunj-2206", "id": 59330099, "node_id": "MDQ6VXNlcjU5MzMwMDk5", "avatar_url": "https://avatars.githubusercontent.com/u/59330099?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Kunj-2206", "html_url": "https://github.com/Kunj-2206", "followers_url": "https://api.github.com/users/Kunj-2206/followers", "following_url": "https://api.github.com/users/Kunj-2206/following{/other_user}", "gists_url": "https://api.github.com/users/Kunj-2206/gists{/gist_id}", "starred_url": "https://api.github.com/users/Kunj-2206/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Kunj-2206/subscriptions", "organizations_url": "https://api.github.com/users/Kunj-2206/orgs", "repos_url": "https://api.github.com/users/Kunj-2206/repos", "events_url": "https://api.github.com/users/Kunj-2206/events{/privacy}", "received_events_url": "https://api.github.com/users/Kunj-2206/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-07-12T14:40:54
2023-07-12T14:42:13
2023-07-12T14:42:08
CONTRIBUTOR
null
Added BittensorLLM model inside langchain.llms <!-- 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: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - 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/7601/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7601/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7601", "html_url": "https://github.com/langchain-ai/langchain/pull/7601", "diff_url": "https://github.com/langchain-ai/langchain/pull/7601.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7601.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7599
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7599/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7599/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7599/events
https://github.com/langchain-ai/langchain/issues/7599
1,801,022,338
I_kwDOIPDwls5rWWuC
7,599
ConversationalRetrievalChain with streaming=True => responds by repeating words and phrases
{ "login": "mrctito", "id": 809686, "node_id": "MDQ6VXNlcjgwOTY4Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/809686?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mrctito", "html_url": "https://github.com/mrctito", "followers_url": "https://api.github.com/users/mrctito/followers", "following_url": "https://api.github.com/users/mrctito/following{/other_user}", "gists_url": "https://api.github.com/users/mrctito/gists{/gist_id}", "starred_url": "https://api.github.com/users/mrctito/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mrctito/subscriptions", "organizations_url": "https://api.github.com/users/mrctito/orgs", "repos_url": "https://api.github.com/users/mrctito/repos", "events_url": "https://api.github.com/users/mrctito/events{/privacy}", "received_events_url": "https://api.github.com/users/mrctito/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
9
2023-07-12T13:46:03
2023-11-23T02:34:29
null
NONE
null
### System Info Python: 3.10.11 LangChain: 0.0.229 SO: Windows, Linux Ubuntu and Mac Hi people, I'm using **ConversationalRetrievalChain** without any modifications, and in 90% of the cases, it responds by repeating words and entire phrases, like in the examples below: Questions about Duna book: **How did Muad'Dib die?** Muad'Dib died of old age. **No, Muad'Dib did not die of old age**. The passage mentions that the death of Muad'Dib will be followed by the moral suicide of all men, suggesting that his death was not natural. However, the exact cause of his death is not specified in the text. No, Muad'Dib did not die of old age. The passage mentions that the death of Muad'Dib will be followed by the moral suicide of all men, suggesting that his death was not natural. **However, the exact cause of his death is not specified in the text**. **Was Paul Atreides powerful?** **Was Paul Atreides powerful? Yes, Paul Atreides was powerful**. He possessed oracle-like abilities and special powers that placed him beyond the usual limits of time and space. Additionally, he was a charismatic leader and skilled strategist, capable of commanding armies and achieving victories. His strength and power were recognized by the emperor and other characters in the book. Yes, Paul Atreides was powerful. **He possessed oracle-like abilities and special powers that placed him beyond the usual limits of time and space. Additionally, he was a charismatic leader and skilled strategist, capable of commanding armies and achieving victories. His strength and power were recognized by the emperor and other characters in the book.** **PLEASE, Does anyone know about this issue?** I have repeated several tutorials that I found on the internet, and this always happens. But strangely, I don't see anyone complaining about it in the forums, so I must be doing something wrong. **This is the code I am using:** llm = ChatOpenAI(model_name=app_params.Model, temperature=0, openai_api_key=app_keys.OPENAI_API_KEY, **streaming=True,** verbose=True, callbacks=[WebSocketCallbackHandler(websocket)] ) memory = ConversationBufferWindowMemory(memory_key='chat_history', output_key='answer', chat_memory=chat_history, return_messages=True, k=3, verbose=True) qna = ConversationalRetrievalChain.from_llm( llm=llm, chain_type="stuff", retriever=retriever, verbose=True, memory=memory, ) #async result = **await qna.acall**({"question": query}) **I would be very glad for any help! Best regards, Marcos.** Hi, @hwchase17, I appreciate your help. ### Who can help? Hi, @hwchase17, I appreciate your help. ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction **This is the code I am using:** llm = ChatOpenAI(model_name=app_params.Model, temperature=0, openai_api_key=app_keys.OPENAI_API_KEY, **streaming=True,** verbose=True, callbacks=[WebSocketCallbackHandler(websocket)] ) memory = ConversationBufferWindowMemory(memory_key='chat_history', output_key='answer', chat_memory=chat_history, return_messages=True, k=3, verbose=True) qna = ConversationalRetrievalChain.from_llm( llm=llm, chain_type="stuff", retriever=retriever, verbose=True, memory=memory, ) **#async** result = **await qna.acall**({"question": query}) ### Expected behavior I hope the answer provided by ConversationalRetrievalChain makes sense and does not contain repetitions of the question or entire phrases.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7599/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7599/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7598
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7598/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7598/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7598/events
https://github.com/langchain-ai/langchain/issues/7598
1,800,994,485
I_kwDOIPDwls5rWP61
7,598
Output parser set number of list result
{ "login": "paulthemagno", "id": 38130299, "node_id": "MDQ6VXNlcjM4MTMwMjk5", "avatar_url": "https://avatars.githubusercontent.com/u/38130299?v=4", "gravatar_id": "", "url": "https://api.github.com/users/paulthemagno", "html_url": "https://github.com/paulthemagno", "followers_url": "https://api.github.com/users/paulthemagno/followers", "following_url": "https://api.github.com/users/paulthemagno/following{/other_user}", "gists_url": "https://api.github.com/users/paulthemagno/gists{/gist_id}", "starred_url": "https://api.github.com/users/paulthemagno/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/paulthemagno/subscriptions", "organizations_url": "https://api.github.com/users/paulthemagno/orgs", "repos_url": "https://api.github.com/users/paulthemagno/repos", "events_url": "https://api.github.com/users/paulthemagno/events{/privacy}", "received_events_url": "https://api.github.com/users/paulthemagno/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
3
2023-07-12T13:31:51
2023-10-19T16:06:03
2023-10-19T16:06:02
NONE
null
### Issue you'd like to raise. I'd like to understand if there is a way to have from OpenAI response a **list of values** (string or objects: it's the same) of a **fixed length**. I read the documentation here: https://python.langchain.com/docs/modules/model_io/output_parsers/comma_separated but I didn't find anything related to a length (maybe it's not possible?). Indeed I understood that probably these parsers only add a well-formatted piece of prompt, but you don't have the safety to have the expected results. In my use case, I have a list of texts and I want to have a title on each of them. My prompt is something like that: ``` #### Text 1: - Bla bla bla ... Text 8: - Bla bla bla ### Use these texts to generate a title for each text. The number of the titles must be 8. ``` At the end of the prompt I "force" the number to the number of the expected results with the same number of the text, but sometimes the model gives me more titles (above all when the number of texts is 1). So I thought to use these parsers. But I don't find any constraints on the length of the results, the only thing is a validator to check if the length is correct. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7598/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/7598/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7597
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7597/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7597/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7597/events
https://github.com/langchain-ai/langchain/issues/7597
1,800,955,601
I_kwDOIPDwls5rWGbR
7,597
Question!! Multiple agent use? agent within agent?
{ "login": "sk9288go", "id": 81153340, "node_id": "MDQ6VXNlcjgxMTUzMzQw", "avatar_url": "https://avatars.githubusercontent.com/u/81153340?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sk9288go", "html_url": "https://github.com/sk9288go", "followers_url": "https://api.github.com/users/sk9288go/followers", "following_url": "https://api.github.com/users/sk9288go/following{/other_user}", "gists_url": "https://api.github.com/users/sk9288go/gists{/gist_id}", "starred_url": "https://api.github.com/users/sk9288go/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sk9288go/subscriptions", "organizations_url": "https://api.github.com/users/sk9288go/orgs", "repos_url": "https://api.github.com/users/sk9288go/repos", "events_url": "https://api.github.com/users/sk9288go/events{/privacy}", "received_events_url": "https://api.github.com/users/sk9288go/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
6
2023-07-12T13:10:59
2023-12-13T03:46:39
null
NONE
null
### Feature request Hello Langchain community! I'm currently in the process of developing a company's chatbot, and I've chosen to use both a CSV file and Pinecone DB for the project. Here's a basic outline of the structure I've adopted so far: ![캡처](https://github.com/hwchase17/langchain/assets/81153340/de1d5abf-d6d4-4f30-aad8-f1711fcf8716) I've managed to set the two tools, and its example usage has been providing accurate answers ![캡처1](https://github.com/hwchase17/langchain/assets/81153340/75b8ee0d-01cd-4276-b926-5f288ad50053) the first tool gets me the answers based on pandas’s result from the example usage, the answers are based on csv and it’s correct in all cases ![캡처2](https://github.com/hwchase17/langchain/assets/81153340/0b55e176-8eb4-4db7-be81-227dabcf90eb) Also set the second tool and its example usage is answered correctly. ![캡처3](https://github.com/hwchase17/langchain/assets/81153340/d816eb6a-926c-4e45-b033-18f3680fccd4) until here things are very promising and i expected everything to work as it is. so i have set the LLM and combined the two tools and used agent ![캡처4](https://github.com/hwchase17/langchain/assets/81153340/64d11ca9-f7a4-4839-ab94-95a5f1970f42) However, when I combined both tools using an agent, the answers started to deviate from the expected output. I'm not entirely sure whether the method I'm using to utilize the agent is optimal. ![캡처5](https://github.com/hwchase17/langchain/assets/81153340/3dc8b7ef-990a-446b-8838-021b1037a501) To address this issue, I've experimented with the MultiretrievalQA chain using vector embedding. But the results are not consistently reliable, and moreover, I'd rather not generate new embeddings every time I modify the CSV. Is there anyone in the community who can shed light on these issues I'm encountering? Any feedback on my current approach, suggestions on how to optimize it, or alternative strategies would be greatly appreciated! Thank you. ### Motivation I'm making a company's gpt and i hope to link my csv with the chatbot so that whenever i change the csv the chatbot is automatically linked with it ### Your contribution um solving the problem would help others?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7597/reactions", "total_count": 10, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 5, "rocket": 0, "eyes": 5 }
https://api.github.com/repos/langchain-ai/langchain/issues/7597/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7596
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7596/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7596/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7596/events
https://github.com/langchain-ai/langchain/pull/7596
1,800,849,248
PR_kwDOIPDwls5VTefX
7,596
fix logging debug error with textloader when autodetect_encoding=True
{ "login": "Buckler89", "id": 8536008, "node_id": "MDQ6VXNlcjg1MzYwMDg=", "avatar_url": "https://avatars.githubusercontent.com/u/8536008?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Buckler89", "html_url": "https://github.com/Buckler89", "followers_url": "https://api.github.com/users/Buckler89/followers", "following_url": "https://api.github.com/users/Buckler89/following{/other_user}", "gists_url": "https://api.github.com/users/Buckler89/gists{/gist_id}", "starred_url": "https://api.github.com/users/Buckler89/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Buckler89/subscriptions", "organizations_url": "https://api.github.com/users/Buckler89/orgs", "repos_url": "https://api.github.com/users/Buckler89/repos", "events_url": "https://api.github.com/users/Buckler89/events{/privacy}", "received_events_url": "https://api.github.com/users/Buckler89/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-07-12T12:12:13
2023-08-01T01:17:02
2023-08-01T01:17:02
CONTRIBUTOR
null
Replace this comment with: - Description: fix logging debug error with textloader when autodetect_encoding=True - Issue: - - Dependencies: - Tag maintainer: @rlancemartin, @eyurtsev - Twitter handle: @Buckler89
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7596/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7596/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7596", "html_url": "https://github.com/langchain-ai/langchain/pull/7596", "diff_url": "https://github.com/langchain-ai/langchain/pull/7596.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7596.patch", "merged_at": "2023-08-01T01:17:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/7595
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7595/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7595/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7595/events
https://github.com/langchain-ai/langchain/pull/7595
1,800,830,770
PR_kwDOIPDwls5VTaZx
7,595
Removed kwargs from add_texts
{ "login": "adolkhan", "id": 54854336, "node_id": "MDQ6VXNlcjU0ODU0MzM2", "avatar_url": "https://avatars.githubusercontent.com/u/54854336?v=4", "gravatar_id": "", "url": "https://api.github.com/users/adolkhan", "html_url": "https://github.com/adolkhan", "followers_url": "https://api.github.com/users/adolkhan/followers", "following_url": "https://api.github.com/users/adolkhan/following{/other_user}", "gists_url": "https://api.github.com/users/adolkhan/gists{/gist_id}", "starred_url": "https://api.github.com/users/adolkhan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adolkhan/subscriptions", "organizations_url": "https://api.github.com/users/adolkhan/orgs", "repos_url": "https://api.github.com/users/adolkhan/repos", "events_url": "https://api.github.com/users/adolkhan/events{/privacy}", "received_events_url": "https://api.github.com/users/adolkhan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
3
2023-07-12T12:02:43
2023-07-19T16:23:54
2023-07-19T16:23:49
CONTRIBUTOR
null
Removing **kwargs argument from add_texts method in DeepLake vectorstore as it confuses users and doesn't fail when user is typing incorrect parameters. Also added small test to ensure the change is applies correctly. Guys could pls take a look: @rlancemartin, @eyurtsev, this is a small PR. Thx so much! <!-- 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: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - 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/7595/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7595/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7595", "html_url": "https://github.com/langchain-ai/langchain/pull/7595", "diff_url": "https://github.com/langchain-ai/langchain/pull/7595.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7595.patch", "merged_at": "2023-07-19T16:23:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/7594
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7594/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7594/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7594/events
https://github.com/langchain-ai/langchain/issues/7594
1,800,783,109
I_kwDOIPDwls5rVcUF
7,594
Error while trying to run SQL Database Agent example
{ "login": "krishnashed", "id": 60742358, "node_id": "MDQ6VXNlcjYwNzQyMzU4", "avatar_url": "https://avatars.githubusercontent.com/u/60742358?v=4", "gravatar_id": "", "url": "https://api.github.com/users/krishnashed", "html_url": "https://github.com/krishnashed", "followers_url": "https://api.github.com/users/krishnashed/followers", "following_url": "https://api.github.com/users/krishnashed/following{/other_user}", "gists_url": "https://api.github.com/users/krishnashed/gists{/gist_id}", "starred_url": "https://api.github.com/users/krishnashed/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/krishnashed/subscriptions", "organizations_url": "https://api.github.com/users/krishnashed/orgs", "repos_url": "https://api.github.com/users/krishnashed/repos", "events_url": "https://api.github.com/users/krishnashed/events{/privacy}", "received_events_url": "https://api.github.com/users/krishnashed/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
2
2023-07-12T11:33:16
2023-10-11T11:11:24
null
CONTRIBUTOR
null
### System Info Langchain version: 0.0.230 python version: Python 3.9.12 ### Who can help? @hwchase17 @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 - [X] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Im trying run the to code mentioned at: https://python.langchain.com/docs/modules/agents/toolkits/sql_database But I'm getting the error as: ModuleNotFoundError: No module named 'MySQLdb' Then trying 'pip install MySQL-python' gives the following error: ModuleNotFoundError: No module named 'ConfigParser' Then trying 'pip install configparser' even doesn't solve the issue. Please help me figure out this issue. Thanks! ### Expected behavior The code should have just executed the prompt, And installation of the required libraries should be easier.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7594/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/7594/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7593
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7593/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7593/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7593/events
https://github.com/langchain-ai/langchain/pull/7593
1,800,714,762
PR_kwDOIPDwls5VTAjM
7,593
fix(typo): Clarify the point of `llm_chain`
{ "login": "sroze", "id": 804625, "node_id": "MDQ6VXNlcjgwNDYyNQ==", "avatar_url": "https://avatars.githubusercontent.com/u/804625?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sroze", "html_url": "https://github.com/sroze", "followers_url": "https://api.github.com/users/sroze/followers", "following_url": "https://api.github.com/users/sroze/following{/other_user}", "gists_url": "https://api.github.com/users/sroze/gists{/gist_id}", "starred_url": "https://api.github.com/users/sroze/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sroze/subscriptions", "organizations_url": "https://api.github.com/users/sroze/orgs", "repos_url": "https://api.github.com/users/sroze/repos", "events_url": "https://api.github.com/users/sroze/events{/privacy}", "received_events_url": "https://api.github.com/users/sroze/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-07-12T10:54:20
2023-07-12T14:31:00
2023-07-12T14:31:00
CONTRIBUTOR
null
Fixes a typo introduced in https://github.com/hwchase17/langchain/pull/7080 by @hwchase17. In the example (visible on [the online documentation](https://api.python.langchain.com/en/latest/chains/langchain.chains.conversational_retrieval.base.ConversationalRetrievalChain.html#langchain-chains-conversational-retrieval-base-conversationalretrievalchain)), the `llm_chain` variable is unused as opposed to being used for the question generator. This change makes it clearer.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7593/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7593/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7593", "html_url": "https://github.com/langchain-ai/langchain/pull/7593", "diff_url": "https://github.com/langchain-ai/langchain/pull/7593.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7593.patch", "merged_at": "2023-07-12T14:31:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/7592
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7592/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7592/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7592/events
https://github.com/langchain-ai/langchain/pull/7592
1,800,687,265
PR_kwDOIPDwls5VS6b0
7,592
Update bedrock.py - support of other endpoint url (esp. for users of …
{ "login": "Ducasse-Arthur", "id": 139344153, "node_id": "U_kgDOCE45GQ", "avatar_url": "https://avatars.githubusercontent.com/u/139344153?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ducasse-Arthur", "html_url": "https://github.com/Ducasse-Arthur", "followers_url": "https://api.github.com/users/Ducasse-Arthur/followers", "following_url": "https://api.github.com/users/Ducasse-Arthur/following{/other_user}", "gists_url": "https://api.github.com/users/Ducasse-Arthur/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ducasse-Arthur/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ducasse-Arthur/subscriptions", "organizations_url": "https://api.github.com/users/Ducasse-Arthur/orgs", "repos_url": "https://api.github.com/users/Ducasse-Arthur/repos", "events_url": "https://api.github.com/users/Ducasse-Arthur/events{/privacy}", "received_events_url": "https://api.github.com/users/Ducasse-Arthur/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
4
2023-07-12T10:37:09
2023-07-19T12:39:10
2023-07-12T14:43:24
CONTRIBUTOR
null
Added an _endpoint_url_ attribute to Bedrock(LLM) class - I have access to Bedrock only via us-west-2 endpoint and needed to change the endpoint url, this could be useful to other users <!-- 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: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - 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/7592/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7592/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7592", "html_url": "https://github.com/langchain-ai/langchain/pull/7592", "diff_url": "https://github.com/langchain-ai/langchain/pull/7592.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7592.patch", "merged_at": "2023-07-12T14:43:24" }
https://api.github.com/repos/langchain-ai/langchain/issues/7591
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7591/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7591/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7591/events
https://github.com/langchain-ai/langchain/pull/7591
1,800,593,678
PR_kwDOIPDwls5VSloH
7,591
Add local support for audio models (PR #7329)
{ "login": "Comendeiro", "id": 7376569, "node_id": "MDQ6VXNlcjczNzY1Njk=", "avatar_url": "https://avatars.githubusercontent.com/u/7376569?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Comendeiro", "html_url": "https://github.com/Comendeiro", "followers_url": "https://api.github.com/users/Comendeiro/followers", "following_url": "https://api.github.com/users/Comendeiro/following{/other_user}", "gists_url": "https://api.github.com/users/Comendeiro/gists{/gist_id}", "starred_url": "https://api.github.com/users/Comendeiro/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Comendeiro/subscriptions", "organizations_url": "https://api.github.com/users/Comendeiro/orgs", "repos_url": "https://api.github.com/users/Comendeiro/repos", "events_url": "https://api.github.com/users/Comendeiro/events{/privacy}", "received_events_url": "https://api.github.com/users/Comendeiro/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
3
2023-07-12T09:44:45
2023-08-02T08:24:54
2023-08-02T08:24:53
CONTRIBUTOR
null
- Description: run the poetry dependencies - Issue: #7329 - Dependencies: any dependencies required for this change, - Tag maintainer: @rlancemartin
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7591/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7591/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7591", "html_url": "https://github.com/langchain-ai/langchain/pull/7591", "diff_url": "https://github.com/langchain-ai/langchain/pull/7591.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7591.patch", "merged_at": "2023-08-02T08:24:53" }
https://api.github.com/repos/langchain-ai/langchain/issues/7590
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7590/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7590/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7590/events
https://github.com/langchain-ai/langchain/issues/7590
1,800,582,601
I_kwDOIPDwls5rUrXJ
7,590
Improve the usage of relevance score threshold and allow the return of the scores
{ "login": "ROMEEZHOU", "id": 72342196, "node_id": "MDQ6VXNlcjcyMzQyMTk2", "avatar_url": "https://avatars.githubusercontent.com/u/72342196?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ROMEEZHOU", "html_url": "https://github.com/ROMEEZHOU", "followers_url": "https://api.github.com/users/ROMEEZHOU/followers", "following_url": "https://api.github.com/users/ROMEEZHOU/following{/other_user}", "gists_url": "https://api.github.com/users/ROMEEZHOU/gists{/gist_id}", "starred_url": "https://api.github.com/users/ROMEEZHOU/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ROMEEZHOU/subscriptions", "organizations_url": "https://api.github.com/users/ROMEEZHOU/orgs", "repos_url": "https://api.github.com/users/ROMEEZHOU/repos", "events_url": "https://api.github.com/users/ROMEEZHOU/events{/privacy}", "received_events_url": "https://api.github.com/users/ROMEEZHOU/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-07-12T09:38:17
2023-10-18T16:05:52
2023-10-18T16:05:52
NONE
null
### Feature request In `VectorStore`/`VectorStoreRetriever` class, `_similarity_search_with_relevance_scores`function, 1) Allow different choices of threshold kind: allow users to choose whether >= threshold or <= threshold 2) Allow users to choose to return the relevance score along with the docs ### Motivation I am working with returning relevant docs that satisfy a certain threshold, and I encountered some problems. One problem is that for different embedding algorithms and similarity calculations, it is not always the case that higher relevance scores are better. Actually, when I use `HuggingFaceEmbedding` with `Chroma` database, the smaller the relevance score, the better. So I believe it would be necessary to allow users choose between different options here. The second problem is that I want to see the relevance score, however, in https://github.com/hwchase17/langchain/blob/master/langchain/vectorstores/base.py, line 474 to 492, it is fixed that only the docs are finally returned. ``` def _get_relevant_documents( self, query: str, *, run_manager: CallbackManagerForRetrieverRun ) -> List[Document]: if self.search_type == "similarity": docs = self.vectorstore.similarity_search(query, **self.search_kwargs) elif self.search_type == "similarity_score_threshold": docs_and_similarities = ( self.vectorstore.similarity_search_with_relevance_scores( query, **self.search_kwargs ) ) docs = [doc for doc, _ in docs_and_similarities] elif self.search_type == "mmr": docs = self.vectorstore.max_marginal_relevance_search( query, **self.search_kwargs ) else: raise ValueError(f"search_type of {self.search_type} not allowed.") return docs ``` I wish there is an option that the relevance scores could also be returned. ### Your contribution I would love to open a PR if applicable ;) @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7590/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/7590/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7589
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7589/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7589/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7589/events
https://github.com/langchain-ai/langchain/issues/7589
1,800,575,762
I_kwDOIPDwls5rUpsS
7,589
namespace parameter is gone in pinecone from_existing_index method
{ "login": "kkbpower", "id": 22651072, "node_id": "MDQ6VXNlcjIyNjUxMDcy", "avatar_url": "https://avatars.githubusercontent.com/u/22651072?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kkbpower", "html_url": "https://github.com/kkbpower", "followers_url": "https://api.github.com/users/kkbpower/followers", "following_url": "https://api.github.com/users/kkbpower/following{/other_user}", "gists_url": "https://api.github.com/users/kkbpower/gists{/gist_id}", "starred_url": "https://api.github.com/users/kkbpower/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kkbpower/subscriptions", "organizations_url": "https://api.github.com/users/kkbpower/orgs", "repos_url": "https://api.github.com/users/kkbpower/repos", "events_url": "https://api.github.com/users/kkbpower/events{/privacy}", "received_events_url": "https://api.github.com/users/kkbpower/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
2
2023-07-12T09:34:19
2023-07-12T14:45:09
2023-07-12T14:45:09
NONE
null
### System Info I am using langchain v0.0.228. But namespace parameter is gone in existing_index() of v0.0.230. Why the namespace is gone? @hwchase17 @eyurtsev @agola11 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction No need. ### Expected behavior should be used from_existing_index method with namespace parameter
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7589/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7589/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7588
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7588/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7588/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7588/events
https://github.com/langchain-ai/langchain/issues/7588
1,800,566,204
I_kwDOIPDwls5rUnW8
7,588
Question:ConversationalRetrievalChain with retriever
{ "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" }, { "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-07-12T09:28:48
2023-07-13T03:37:20
2023-07-13T03:37:20
NONE
null
### Issue you'd like to raise. if use ElasticVectorSearch as as_retriever and set the params: ```python elastic_vector_search.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": 1.8}) ``` If no relevant docs were retrieved using the relevance score threshold 1.8. then return an error! ![image](https://github.com/hwchase17/langchain/assets/5388898/70bd9610-0f9f-4da4-8da4-2428d807a130) ### Suggestion: it should not throw err, when there is no relevant docs. it should response like "i don't know " or an openai default response.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7588/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/7588/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7587
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7587/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7587/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7587/events
https://github.com/langchain-ai/langchain/pull/7587
1,800,546,257
PR_kwDOIPDwls5VSbS_
7,587
docs : Use more meaningful examples
{ "login": "Subsegment", "id": 74497693, "node_id": "MDQ6VXNlcjc0NDk3Njkz", "avatar_url": "https://avatars.githubusercontent.com/u/74497693?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Subsegment", "html_url": "https://github.com/Subsegment", "followers_url": "https://api.github.com/users/Subsegment/followers", "following_url": "https://api.github.com/users/Subsegment/following{/other_user}", "gists_url": "https://api.github.com/users/Subsegment/gists{/gist_id}", "starred_url": "https://api.github.com/users/Subsegment/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Subsegment/subscriptions", "organizations_url": "https://api.github.com/users/Subsegment/orgs", "repos_url": "https://api.github.com/users/Subsegment/repos", "events_url": "https://api.github.com/users/Subsegment/events{/privacy}", "received_events_url": "https://api.github.com/users/Subsegment/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-07-12T09:19:24
2023-07-12T14:31:56
2023-07-12T14:31:56
CONTRIBUTOR
null
This change makes the ecosystem integrations cnosdb documentation more realistic and easy to understand. - change examples of question and table - modify typo and format
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7587/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7587/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7587", "html_url": "https://github.com/langchain-ai/langchain/pull/7587", "diff_url": "https://github.com/langchain-ai/langchain/pull/7587.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7587.patch", "merged_at": "2023-07-12T14:31:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/7585
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7585/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7585/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7585/events
https://github.com/langchain-ai/langchain/issues/7585
1,800,444,981
I_kwDOIPDwls5rUJw1
7,585
Error when creating a custom ConversationalChatAgent
{ "login": "eesoymilk", "id": 74914924, "node_id": "MDQ6VXNlcjc0OTE0OTI0", "avatar_url": "https://avatars.githubusercontent.com/u/74914924?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eesoymilk", "html_url": "https://github.com/eesoymilk", "followers_url": "https://api.github.com/users/eesoymilk/followers", "following_url": "https://api.github.com/users/eesoymilk/following{/other_user}", "gists_url": "https://api.github.com/users/eesoymilk/gists{/gist_id}", "starred_url": "https://api.github.com/users/eesoymilk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eesoymilk/subscriptions", "organizations_url": "https://api.github.com/users/eesoymilk/orgs", "repos_url": "https://api.github.com/users/eesoymilk/repos", "events_url": "https://api.github.com/users/eesoymilk/events{/privacy}", "received_events_url": "https://api.github.com/users/eesoymilk/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-07-12T08:21:47
2023-10-27T16:06:54
2023-10-27T16:06:53
NONE
null
### System Info MacOS Python 3.10.6 langchain 0.0.230 langchainplus-sdk 0.0.20 ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction For now, there are only the default `ConversationalChatAgent` and `ConversationalAgent`, and we cannot create custom prompt templates in them. At least, I don't see how to do that in both the docs and source code. I think there should be a straight-forward way to do so, just like how you can have a [custom LLM agent](https://python.langchain.com/docs/modules/agents/how_to/custom_llm_chat_agent): ```py agent = LLMSingleActionAgent( llm_chain=llm_chain, output_parser=output_parser, stop=["\nObservation:"], allowed_tools=tool_names ) ``` However, when the same code is applied to `ConversationalChatAgent`, that is: ```py agent = LLMSingleActionAgent( llm_chain=llm_chain, output_parser=output_parser, stop=["\nObservation:"], allowed_tools=tool_names ) ``` I get the following error: ```shell pydantic.error_wrappers.ValidationError: 1 validation error for ConversationalChatAgent __root__ Got unexpected prompt type <class '__main__.CustomPromptTemplate'> (type=value_error) ``` I'm not sure if this belongs to **Bug Report** so if I'm doing anything wrong, please tell me about it. Thanks! ### Expected behavior The agent should be created without errors.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7585/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/7585/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7584
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7584/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7584/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7584/events
https://github.com/langchain-ai/langchain/pull/7584
1,800,406,805
PR_kwDOIPDwls5VR89H
7,584
bump 231
{ "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-07-12T07:58:17
2023-07-12T14:43:13
2023-07-12T14:43:12
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7584/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7584/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7584", "html_url": "https://github.com/langchain-ai/langchain/pull/7584", "diff_url": "https://github.com/langchain-ai/langchain/pull/7584.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7584.patch", "merged_at": "2023-07-12T14:43:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/7583
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7583/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7583/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7583/events
https://github.com/langchain-ai/langchain/pull/7583
1,800,307,300
PR_kwDOIPDwls5VRnat
7,583
Fix PGVector
{ "login": "raymond-yuan", "id": 17325195, "node_id": "MDQ6VXNlcjE3MzI1MTk1", "avatar_url": "https://avatars.githubusercontent.com/u/17325195?v=4", "gravatar_id": "", "url": "https://api.github.com/users/raymond-yuan", "html_url": "https://github.com/raymond-yuan", "followers_url": "https://api.github.com/users/raymond-yuan/followers", "following_url": "https://api.github.com/users/raymond-yuan/following{/other_user}", "gists_url": "https://api.github.com/users/raymond-yuan/gists{/gist_id}", "starred_url": "https://api.github.com/users/raymond-yuan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/raymond-yuan/subscriptions", "organizations_url": "https://api.github.com/users/raymond-yuan/orgs", "repos_url": "https://api.github.com/users/raymond-yuan/repos", "events_url": "https://api.github.com/users/raymond-yuan/events{/privacy}", "received_events_url": "https://api.github.com/users/raymond-yuan/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-07-12T06:52:09
2023-07-12T06:55:14
2023-07-12T06:55:14
CONTRIBUTOR
null
- Description: Fixes parameter fills for PGVector - Issue: https://github.com/hwchase17/langchain/issues/7577 - Dependencies: any dependencies required for this change,
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7583/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7583/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7583", "html_url": "https://github.com/langchain-ai/langchain/pull/7583", "diff_url": "https://github.com/langchain-ai/langchain/pull/7583.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7583.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7582
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7582/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7582/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7582/events
https://github.com/langchain-ai/langchain/pull/7582
1,800,299,810
PR_kwDOIPDwls5VRlyh
7,582
unit test sqlalachemy
{ "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-07-12T06:46:54
2023-07-12T07:03:17
2023-07-12T07:03:16
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7582/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7582/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7582", "html_url": "https://github.com/langchain-ai/langchain/pull/7582", "diff_url": "https://github.com/langchain-ai/langchain/pull/7582.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7582.patch", "merged_at": "2023-07-12T07:03:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/7581
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7581/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7581/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7581/events
https://github.com/langchain-ai/langchain/issues/7581
1,800,186,972
I_kwDOIPDwls5rTKxc
7,581
DOC: Langchain works well with single database, but in a session if I have to work with multiple database, it does not seem working
{ "login": "skprasadu", "id": 1975088, "node_id": "MDQ6VXNlcjE5NzUwODg=", "avatar_url": "https://avatars.githubusercontent.com/u/1975088?v=4", "gravatar_id": "", "url": "https://api.github.com/users/skprasadu", "html_url": "https://github.com/skprasadu", "followers_url": "https://api.github.com/users/skprasadu/followers", "following_url": "https://api.github.com/users/skprasadu/following{/other_user}", "gists_url": "https://api.github.com/users/skprasadu/gists{/gist_id}", "starred_url": "https://api.github.com/users/skprasadu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/skprasadu/subscriptions", "organizations_url": "https://api.github.com/users/skprasadu/orgs", "repos_url": "https://api.github.com/users/skprasadu/repos", "events_url": "https://api.github.com/users/skprasadu/events{/privacy}", "received_events_url": "https://api.github.com/users/skprasadu/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
7
2023-07-12T05:02:43
2023-12-21T00:49:57
2023-07-12T05:06:10
NONE
null
### Issue with current documentation: Below code does not seem to work, ``` db = SQLDatabase.from_uri("mssql+pymssql://<some server>/<some db>", include_tables=['Some table'], view_support=True) db1 = SQLDatabase.from_uri("mssql+pymssql://<some other server>/<some other db>", include_tables=['Some other table'], view_support=True) toolkit = SQLDatabaseToolkit(db=db, llm=llm, reduce_k_below_max_tokens=True) sql_agent_executor = create_sql_agent( llm=llm, toolkit=toolkit, verbose=True ) toolkit1 = SQLDatabaseToolkit(db=db1, llm=llm, reduce_k_below_max_tokens=True) sql_agent_executor1 = create_sql_agent( llm=llm, toolkit=toolkit, verbose=True ) tools = [ Tool( name = "Object or Product to Classification Association", func=sql_agent_executor.run, description=""" Useful for when you need to Query on database to find the object or product to classification association. <user>: Get me top 3 records with Object number and description for approved classification KKK <assistant>: I need to check Object or Product to Classification Association details. <assistant>: Action: SQL Object or Product to Classification Association <assistant>: Action Input: Check The Object or Product to Classification Association Table """ ), Tool( name = "Authorization or Authority or License Database", func=sql_agent_executor1.run, description=""" Useful for when you need to Query on some thing else . <user>: Get me top 2 Authority Records with LicenseNumber <assistant>: I need to check Authorization or Authority or License Database details. <assistant>: Action: SQL Authorization or Authority or License Database <assistant>: Action Input: Check The Authorization or Authority or License Database Table """ ) ] ``` Is there an example where we can configure multiple databases as different tools and query them. It seems possible, but in my case, what ever question I ask, it always goes to the first Tool. Not sure what is the problem. ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7581/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7581/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7580
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7580/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7580/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7580/events
https://github.com/langchain-ai/langchain/pull/7580
1,800,185,780
PR_kwDOIPDwls5VRM5A
7,580
Harrison/pg vector move
{ "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": 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-07-12T05:01:28
2023-07-12T06:22:35
2023-07-12T06:22:34
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7580/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7580/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7580", "html_url": "https://github.com/langchain-ai/langchain/pull/7580", "diff_url": "https://github.com/langchain-ai/langchain/pull/7580.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7580.patch", "merged_at": "2023-07-12T06:22:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/7579
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7579/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7579/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7579/events
https://github.com/langchain-ai/langchain/issues/7579
1,800,138,889
I_kwDOIPDwls5rS_CJ
7,579
sqlalchemy fails to initialize with KeyError "EmbeddingStore"
{ "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": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-07-12T04:18:26
2023-07-12T07:35:27
2023-07-12T07:35:27
CONTRIBUTOR
null
### Why do I care about this issue? MLflow also uses sqlalchemy to handle sqlite-based storage, and calls `sqlalchemy.orm.configure_mappers()` during initialization. With langchain>=0.0.228, MLflow fails to start. All MLflow users who choose sqlite-based storage cannot use it with langchain. ### System Info langchain>=0.0.228 ### 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 - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Executing the following command fails with langchain >= 0.0.228, and no error occurs for langchain <= 0.0.227: ```python import langchain import sqlalchemy sqlalchemy.orm.configure_mappers() ``` Error: ``` --------------------------------------------------------------------------- KeyError Traceback (most recent call last) File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/orm/clsregistry.py:515, in _class_resolver._resolve_name(self) 514 if rval is None: --> 515 rval = d[token] 516 else: File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/util/_collections.py:346, in PopulateDict.__missing__(self, key) 345 def __missing__(self, key: Any) -> Any: --> 346 self[key] = val = self.creator(key) 347 return val File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/orm/clsregistry.py:483, in _class_resolver._access_cls(self, key) 481 return value --> 483 return self.fallback[key] KeyError: 'EmbeddingStore' The above exception was the direct cause of the following exception: InvalidRequestError Traceback (most recent call last) Cell In[3], line 1 ----> 1 sqlalchemy.orm.configure_mappers() File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/orm/mapper.py:4167, in configure_mappers() 4099 def configure_mappers(): 4100 """Initialize the inter-mapper relationships of all mappers that 4101 have been constructed thus far across all :class:`_orm.registry` 4102 collections. (...) 4164 4165 """ -> 4167 _configure_registries(_all_registries(), cascade=True) File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/orm/mapper.py:4198, in _configure_registries(registries, cascade) 4192 Mapper.dispatch._for_class(Mapper).before_configured() # type: ignore # noqa: E501 4193 # initialize properties on all mappers 4194 # note that _mapper_registry is unordered, which 4195 # may randomly conceal/reveal issues related to 4196 # the order of mapper compilation -> 4198 _do_configure_registries(registries, cascade) 4199 finally: 4200 _already_compiling = False File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/orm/mapper.py:4239, in _do_configure_registries(registries, cascade) 4237 if not mapper.configured: 4238 try: -> 4239 mapper._post_configure_properties() 4240 mapper._expire_memoizations() 4241 mapper.dispatch.mapper_configured(mapper, mapper.class_) File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/orm/mapper.py:2403, in Mapper._post_configure_properties(self) 2400 self._log("initialize prop %s", key) 2402 if prop.parent is self and not prop._configure_started: -> 2403 prop.init() 2405 if prop._configure_finished: 2406 prop.post_instrument_class(self) File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/orm/interfaces.py:578, in MapperProperty.init(self) 571 """Called after all mappers are created to assemble 572 relationships between mappers and perform other post-mapper-creation 573 initialization steps. 574 575 576 """ 577 self._configure_started = True --> 578 self.do_init() 579 self._configure_finished = True File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/orm/relationships.py:1632, in RelationshipProperty.do_init(self) 1630 self._check_conflicts() 1631 self._process_dependent_arguments() -> 1632 self._setup_entity() 1633 self._setup_registry_dependencies() 1634 self._setup_join_conditions() File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/orm/relationships.py:1849, in RelationshipProperty._setup_entity(self, _RelationshipProperty__argument) 1842 resolved_argument: _ExternalEntityType[Any] 1844 if isinstance(argument, str): 1845 # we might want to cleanup clsregistry API to make this 1846 # more straightforward 1847 resolved_argument = cast( 1848 "_ExternalEntityType[Any]", -> 1849 self._clsregistry_resolve_name(argument)(), 1850 ) 1851 elif callable(argument) and not isinstance( 1852 argument, (type, mapperlib.Mapper) 1853 ): 1854 resolved_argument = argument() File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/orm/clsregistry.py:519, in _class_resolver._resolve_name(self) 517 rval = getattr(rval, token) 518 except KeyError as err: --> 519 self._raise_for_name(name, err) 520 except NameError as n: 521 self._raise_for_name(n.args[0], n) File ~/miniconda3/envs/mlflow-dev-env/lib/python3.8/site-packages/sqlalchemy/orm/clsregistry.py:500, in _class_resolver._raise_for_name(self, name, err) 490 raise exc.InvalidRequestError( 491 f"When initializing mapper {self.prop.parent}, " 492 f'expression "relationship({self.arg!r})" seems to be ' (...) 497 f"['{clsarg}']] = relationship()\"" 498 ) from err 499 else: --> 500 raise exc.InvalidRequestError( 501 "When initializing mapper %s, expression %r failed to " 502 "locate a name (%r). If this is a class name, consider " 503 "adding this relationship() to the %r class after " 504 "both dependent classes have been defined." 505 % (self.prop.parent, self.arg, name, self.cls) 506 ) from err InvalidRequestError: When initializing mapper Mapper[CollectionStore(langchain_pg_collection)], expression 'EmbeddingStore' failed to locate a name ('EmbeddingStore'). If this is a class name, consider adding this relationship() to the <class 'langchain.vectorstores.pgvector.CollectionStore'> class after both dependent classes have been defined. ``` It's likely to be introduced by this PR https://github.com/hwchase17/langchain/pull/7370. ### Expected behavior No error should occur.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7579/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7579/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7578
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7578/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7578/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7578/events
https://github.com/langchain-ai/langchain/issues/7578
1,800,131,260
I_kwDOIPDwls5rS9K8
7,578
chain.run doesn't necessarily return a `str`
{ "login": "Connoropolous", "id": 1409121, "node_id": "MDQ6VXNlcjE0MDkxMjE=", "avatar_url": "https://avatars.githubusercontent.com/u/1409121?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Connoropolous", "html_url": "https://github.com/Connoropolous", "followers_url": "https://api.github.com/users/Connoropolous/followers", "following_url": "https://api.github.com/users/Connoropolous/following{/other_user}", "gists_url": "https://api.github.com/users/Connoropolous/gists{/gist_id}", "starred_url": "https://api.github.com/users/Connoropolous/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Connoropolous/subscriptions", "organizations_url": "https://api.github.com/users/Connoropolous/orgs", "repos_url": "https://api.github.com/users/Connoropolous/repos", "events_url": "https://api.github.com/users/Connoropolous/events{/privacy}", "received_events_url": "https://api.github.com/users/Connoropolous/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
16
2023-07-12T04:11:51
2023-10-13T02:31:07
2023-10-13T02:30:41
NONE
null
https://github.com/hwchase17/langchain/blob/2667ddc6867421842fe027f1946644f452de8eb3/langchain/chains/base.py#L386-L393 when I have this: ``` chain = create_structured_output_chain(Categorization, llm, prompt, verbose=True) response = chain.run(trx_description) ``` my `response` object is a dict not a str, but I got misled by the type assistance making me think it was a str.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7578/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7578/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7577
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7577/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7577/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7577/events
https://github.com/langchain-ai/langchain/issues/7577
1,800,069,048
I_kwDOIPDwls5rSt-4
7,577
PGVector.from_documents breaking from 0.0.229 to 0.0.230
{ "login": "dcieslak19973", "id": 3847063, "node_id": "MDQ6VXNlcjM4NDcwNjM=", "avatar_url": "https://avatars.githubusercontent.com/u/3847063?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dcieslak19973", "html_url": "https://github.com/dcieslak19973", "followers_url": "https://api.github.com/users/dcieslak19973/followers", "following_url": "https://api.github.com/users/dcieslak19973/following{/other_user}", "gists_url": "https://api.github.com/users/dcieslak19973/gists{/gist_id}", "starred_url": "https://api.github.com/users/dcieslak19973/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dcieslak19973/subscriptions", "organizations_url": "https://api.github.com/users/dcieslak19973/orgs", "repos_url": "https://api.github.com/users/dcieslak19973/repos", "events_url": "https://api.github.com/users/dcieslak19973/events{/privacy}", "received_events_url": "https://api.github.com/users/dcieslak19973/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-07-12T02:50:01
2023-07-13T03:26:29
2023-07-13T03:26:29
NONE
null
### System Info langchain==0.0.230 ### Who can help? @raymond-yuan ### 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 Fill in appropriate values for parameters ``` db = PGVector.from_documents( embedding=embeddings, documents=docs, collection_name=COLLECTION_NAME, connection_string=CONNECTION_STRING, pre_delete_collection=True, ) ``` Produces: ``` Traceback (most recent call last): File "create_pgvector_index_hr.py", line 70, in <module> db = PGVector.from_documents( File "/home/coder/venv-openai-slackbot/lib/python3.8/site-packages/langchain/vectorstores/pgvector.py", line 578, in from_documents return cls.from_texts( File "/home/coder/venv-openai-slackbot/lib/python3.8/site-packages/langchain/vectorstores/pgvector.py", line 453, in from_texts return cls.__from( File "/home/coder/venv-openai-slackbot/lib/python3.8/site-packages/langchain/vectorstores/pgvector.py", line 213, in __from store = cls( TypeError: ABCMeta object got multiple values for keyword argument 'connection_string' ``` and appears related to this change: https://github.com/hwchase17/langchain/blame/master/langchain/vectorstores/pgvector.py#L213-L220 ### Expected behavior Above code works with langchain==0.0.229 Code should not throw an exception as it did prior to 0.0.230
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7577/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/7577/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7576
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7576/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7576/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7576/events
https://github.com/langchain-ai/langchain/pull/7576
1,800,037,371
PR_kwDOIPDwls5VQstf
7,576
added id retrieval from redis search setup within the metadata
{ "login": "TRY-ER", "id": 75255871, "node_id": "MDQ6VXNlcjc1MjU1ODcx", "avatar_url": "https://avatars.githubusercontent.com/u/75255871?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TRY-ER", "html_url": "https://github.com/TRY-ER", "followers_url": "https://api.github.com/users/TRY-ER/followers", "following_url": "https://api.github.com/users/TRY-ER/following{/other_user}", "gists_url": "https://api.github.com/users/TRY-ER/gists{/gist_id}", "starred_url": "https://api.github.com/users/TRY-ER/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TRY-ER/subscriptions", "organizations_url": "https://api.github.com/users/TRY-ER/orgs", "repos_url": "https://api.github.com/users/TRY-ER/repos", "events_url": "https://api.github.com/users/TRY-ER/events{/privacy}", "received_events_url": "https://api.github.com/users/TRY-ER/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-07-12T02:12:07
2023-07-18T17:50:57
2023-07-18T17:50:57
CONTRIBUTOR
null
Replace this comment with: - Description: The modification is done to retrieve the document ids from the relevant document vector search in redis - Issue: It helps to point out the exact document for down stream operations later - Tag maintainer: @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7576/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7576/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7576", "html_url": "https://github.com/langchain-ai/langchain/pull/7576", "diff_url": "https://github.com/langchain-ai/langchain/pull/7576.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7576.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7575
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7575/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7575/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7575/events
https://github.com/langchain-ai/langchain/pull/7575
1,800,025,152
PR_kwDOIPDwls5VQqJ1
7,575
Reduce the number of LLM parsing error with conversational chats
{ "login": "lesser-panda", "id": 40119257, "node_id": "MDQ6VXNlcjQwMTE5MjU3", "avatar_url": "https://avatars.githubusercontent.com/u/40119257?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lesser-panda", "html_url": "https://github.com/lesser-panda", "followers_url": "https://api.github.com/users/lesser-panda/followers", "following_url": "https://api.github.com/users/lesser-panda/following{/other_user}", "gists_url": "https://api.github.com/users/lesser-panda/gists{/gist_id}", "starred_url": "https://api.github.com/users/lesser-panda/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lesser-panda/subscriptions", "organizations_url": "https://api.github.com/users/lesser-panda/orgs", "repos_url": "https://api.github.com/users/lesser-panda/repos", "events_url": "https://api.github.com/users/lesser-panda/events{/privacy}", "received_events_url": "https://api.github.com/users/lesser-panda/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
3
2023-07-12T01:54:52
2023-09-19T02:16:31
null
NONE
null
A lot of times, when the LLM responses a Final Answer with markdown in the answer text (e.g. asking the LLM to write some code), the parser raises an OutputParserException("Could not parse LLM output: ..."), when the answer from the LLM is totally acceptable. This change should reduce the number of such occurances. - Description: Reduce the number of LLM parsing error with conversational chats, - Issue: the issue #1358 , - Dependencies: None, - Tag maintainer: @hinthornw @baskaryan, For example, this response from gpt-turbo-3.5 for "How to convert a list of dict to a JSON in Python" seems totally acceptable as the final answer, but will raise the OutputParserException, even with `handle_parsing_errors=True`. This PR fixes it. ![Screenshot 2023-07-12 101547](https://github.com/hwchase17/langchain/assets/40119257/f87555b2-7782-4274-a714-72c11082df98)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7575/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/7575/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7575", "html_url": "https://github.com/langchain-ai/langchain/pull/7575", "diff_url": "https://github.com/langchain-ai/langchain/pull/7575.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7575.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7573
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7573/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7573/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7573/events
https://github.com/langchain-ai/langchain/pull/7573
1,799,954,933
PR_kwDOIPDwls5VQbQi
7,573
Fixed bug7445 where a duplicate restuld_id is added to the vectorstore.
{ "login": "datha", "id": 457276, "node_id": "MDQ6VXNlcjQ1NzI3Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/457276?v=4", "gravatar_id": "", "url": "https://api.github.com/users/datha", "html_url": "https://github.com/datha", "followers_url": "https://api.github.com/users/datha/followers", "following_url": "https://api.github.com/users/datha/following{/other_user}", "gists_url": "https://api.github.com/users/datha/gists{/gist_id}", "starred_url": "https://api.github.com/users/datha/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datha/subscriptions", "organizations_url": "https://api.github.com/users/datha/orgs", "repos_url": "https://api.github.com/users/datha/repos", "events_url": "https://api.github.com/users/datha/events{/privacy}", "received_events_url": "https://api.github.com/users/datha/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-07-12T00:24:07
2023-08-01T01:00:02
2023-08-01T01:00:02
CONTRIBUTOR
null
- Description: updated BabyAGI examples to append the iteration to the result id to fix error storing data to vectorstore. - Issue: 7445 - Dependencies: no - Tag maintainer: @eyurtsev - 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! This fix worked for me locally. Happy to take some feedback and iterate on a better solution. I was considering appending a uuid instead but didnt want to over complicate the example.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7573/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/7573/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7573", "html_url": "https://github.com/langchain-ai/langchain/pull/7573", "diff_url": "https://github.com/langchain-ai/langchain/pull/7573.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7573.patch", "merged_at": "2023-08-01T01:00:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/7572
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7572/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7572/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7572/events
https://github.com/langchain-ai/langchain/pull/7572
1,799,951,224
PR_kwDOIPDwls5VQab1
7,572
Return run info from run 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 }
[ { "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-07-12T00:20:07
2023-07-13T05:06:36
2023-07-13T05:06:35
COLLABORATOR
null
Optionally return run info. This is added to the feedback to link feedback and source run. Depends on the new loading and config workflow slightly
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7572/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7572/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7572", "html_url": "https://github.com/langchain-ai/langchain/pull/7572", "diff_url": "https://github.com/langchain-ai/langchain/pull/7572.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7572.patch", "merged_at": "2023-07-13T05:06:35" }
https://api.github.com/repos/langchain-ai/langchain/issues/7571
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7571/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7571/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7571/events
https://github.com/langchain-ai/langchain/issues/7571
1,799,948,758
I_kwDOIPDwls5rSQnW
7,571
AmazonKendraRetriever "Could not load credentials" error in latest release
{ "login": "sean-beath", "id": 102204618, "node_id": "U_kgDOBheEyg", "avatar_url": "https://avatars.githubusercontent.com/u/102204618?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sean-beath", "html_url": "https://github.com/sean-beath", "followers_url": "https://api.github.com/users/sean-beath/followers", "following_url": "https://api.github.com/users/sean-beath/following{/other_user}", "gists_url": "https://api.github.com/users/sean-beath/gists{/gist_id}", "starred_url": "https://api.github.com/users/sean-beath/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sean-beath/subscriptions", "organizations_url": "https://api.github.com/users/sean-beath/orgs", "repos_url": "https://api.github.com/users/sean-beath/repos", "events_url": "https://api.github.com/users/sean-beath/events{/privacy}", "received_events_url": "https://api.github.com/users/sean-beath/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-07-12T00:16:40
2023-07-13T03:47:37
2023-07-13T03:47:37
NONE
null
### System Info LangChain version: 0.0.229 Platform: AWS Lambda execution Python version: 3.9 I get the following error when creating the AmazonKendraRetriever using LangChain version 0.0.229. Code to create retriever: `retriever = AmazonKendraRetriever(index_id=kendra_index)` Error: ```[ERROR] ValidationError: 1 validation error for AmazonKendraRetriever __root__ Could not load credentials to authenticate with AWS client. Please check that credentials in the specified profile name are valid. (type=value_error) Traceback (most recent call last): File "/var/task/lambda_function.py", line 171, in lambda_handler retriever = AmazonKendraRetriever(index_id=kendra_index) File "/opt/python/langchain/load/serializable.py", line 74, in __init__ super().__init__(**kwargs) File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__``` When using LangChain version 0.0.219 this error does not occur. Issue also raised on aws-samples git repo with potential solution: https://github.com/aws-samples/amazon-kendra-langchain-extensions/issues/24 ### 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 1. Install latest version of Langchain 2. Follow instructions here: https://python.langchain.com/docs/modules/data_connection/retrievers/integrations/amazon_kendra_retriever ### Expected behavior Error not thrown when creating AmazonKendraRetriever
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7571/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7571/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7570
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7570/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7570/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7570/events
https://github.com/langchain-ai/langchain/pull/7570
1,799,939,695
PR_kwDOIPDwls5VQX6e
7,570
add supported properties for notiondb document loader's metadata
{ "login": "KimHyeonwoo", "id": 15873399, "node_id": "MDQ6VXNlcjE1ODczMzk5", "avatar_url": "https://avatars.githubusercontent.com/u/15873399?v=4", "gravatar_id": "", "url": "https://api.github.com/users/KimHyeonwoo", "html_url": "https://github.com/KimHyeonwoo", "followers_url": "https://api.github.com/users/KimHyeonwoo/followers", "following_url": "https://api.github.com/users/KimHyeonwoo/following{/other_user}", "gists_url": "https://api.github.com/users/KimHyeonwoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/KimHyeonwoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/KimHyeonwoo/subscriptions", "organizations_url": "https://api.github.com/users/KimHyeonwoo/orgs", "repos_url": "https://api.github.com/users/KimHyeonwoo/repos", "events_url": "https://api.github.com/users/KimHyeonwoo/events{/privacy}", "received_events_url": "https://api.github.com/users/KimHyeonwoo/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-07-12T00:05:05
2023-07-12T07:34:55
2023-07-12T07:34:55
CONTRIBUTOR
null
fix #7569 add following properties for Notion DB document loader's metadata - `unique_id` - `status` - `people` @rlancemartin, @eyurtsev (Since this is a change related to `DataLoaders`)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7570/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7570/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7570", "html_url": "https://github.com/langchain-ai/langchain/pull/7570", "diff_url": "https://github.com/langchain-ai/langchain/pull/7570.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7570.patch", "merged_at": "2023-07-12T07:34:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/7569
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7569/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7569/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7569/events
https://github.com/langchain-ai/langchain/issues/7569
1,799,937,363
I_kwDOIPDwls5rSN1T
7,569
Issue: Document loader for Notion DB doesn't supports some properties
{ "login": "KimHyeonwoo", "id": 15873399, "node_id": "MDQ6VXNlcjE1ODczMzk5", "avatar_url": "https://avatars.githubusercontent.com/u/15873399?v=4", "gravatar_id": "", "url": "https://api.github.com/users/KimHyeonwoo", "html_url": "https://github.com/KimHyeonwoo", "followers_url": "https://api.github.com/users/KimHyeonwoo/followers", "following_url": "https://api.github.com/users/KimHyeonwoo/following{/other_user}", "gists_url": "https://api.github.com/users/KimHyeonwoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/KimHyeonwoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/KimHyeonwoo/subscriptions", "organizations_url": "https://api.github.com/users/KimHyeonwoo/orgs", "repos_url": "https://api.github.com/users/KimHyeonwoo/repos", "events_url": "https://api.github.com/users/KimHyeonwoo/events{/privacy}", "received_events_url": "https://api.github.com/users/KimHyeonwoo/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
0
2023-07-12T00:02:03
2023-07-12T07:34:56
2023-07-12T07:34:56
CONTRIBUTOR
null
### Issue you'd like to raise. Current version of document loader for Notion DB doesn't supports following properties for metadata - `unique_id` - https://www.notion.so/help/unique-id - `status` - https://www.notion.so/help/guides/status-property-gives-clarity-on-tasks - `people` - useful property when you assign some task to assignees ### Suggestion: I would like to make a PR to fix this issue if it's okay.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7569/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7569/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7568
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7568/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7568/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7568/events
https://github.com/langchain-ai/langchain/pull/7568
1,799,921,555
PR_kwDOIPDwls5VQT8-
7,568
Make recursive loader yield while crawling
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-07-11T23:41:16
2023-07-14T04:55:21
2023-07-14T04:55:21
COLLABORATOR
null
Support actual lazy_load since it can take a while to crawl larger directories.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7568/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7568/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7568", "html_url": "https://github.com/langchain-ai/langchain/pull/7568", "diff_url": "https://github.com/langchain-ai/langchain/pull/7568.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7568.patch", "merged_at": "2023-07-14T04:55:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/7567
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7567/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7567/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7567/events
https://github.com/langchain-ai/langchain/pull/7567
1,799,918,725
PR_kwDOIPDwls5VQTV7
7,567
Accept Chain
{ "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-07-11T23:37:47
2023-07-13T07:22:35
2023-07-13T07:22:34
COLLABORATOR
null
By default, the run_on_evaluate method requires chains to be passed in via a constructor. If you're not looking at function types, it's common to try to pass your chain in directly. This PR proposes to - Accept a raw chain if it lacks memory. It may still be leaky if a child chain has memory (or for other sources of randomness), but that could also be the case if the constructor were incorrectly set up - Throw a helpful error if not, explaining how to fix and why this is a requirement. I don't update the public API types since we still want people to be in the habit of passing in the constructor, but this feels like a kinder UX Delta from the general eval config refactor but not directly related
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7567/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7567/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7567", "html_url": "https://github.com/langchain-ai/langchain/pull/7567", "diff_url": "https://github.com/langchain-ai/langchain/pull/7567.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7567.patch", "merged_at": "2023-07-13T07:22:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/7566
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7566/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7566/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7566/events
https://github.com/langchain-ai/langchain/pull/7566
1,799,819,592
PR_kwDOIPDwls5VP9PC
7,566
Revert pinecone v4 support
{ "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-07-11T22:03:40
2023-07-12T00:59:00
2023-07-12T00:58:59
COLLABORATOR
null
Revert 9d13dcd
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7566/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/7566/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7566", "html_url": "https://github.com/langchain-ai/langchain/pull/7566", "diff_url": "https://github.com/langchain-ai/langchain/pull/7566.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7566.patch", "merged_at": "2023-07-12T00:58:59" }
https://api.github.com/repos/langchain-ai/langchain/issues/7565
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7565/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7565/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7565/events
https://github.com/langchain-ai/langchain/pull/7565
1,799,816,745
PR_kwDOIPDwls5VP8m3
7,565
propagate callbacks through load_summarize_chain
{ "login": "alecf", "id": 135340, "node_id": "MDQ6VXNlcjEzNTM0MA==", "avatar_url": "https://avatars.githubusercontent.com/u/135340?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alecf", "html_url": "https://github.com/alecf", "followers_url": "https://api.github.com/users/alecf/followers", "following_url": "https://api.github.com/users/alecf/following{/other_user}", "gists_url": "https://api.github.com/users/alecf/gists{/gist_id}", "starred_url": "https://api.github.com/users/alecf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alecf/subscriptions", "organizations_url": "https://api.github.com/users/alecf/orgs", "repos_url": "https://api.github.com/users/alecf/repos", "events_url": "https://api.github.com/users/alecf/events{/privacy}", "received_events_url": "https://api.github.com/users/alecf/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-07-11T22:01:00
2023-08-08T16:04:43
2023-08-04T03:12:34
CONTRIBUTOR
null
This lets you pass callbacks when you create the summarize chain: ``` summarize = load_summarize_chain(llm, chain_type="map_reduce", callbacks=[my_callbacks]) summary = summarize(documents) ``` See #5572 for a similar surgical fix. tagging @hwchase17 for callbacks work <!-- 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: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - 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/7565/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7565/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7565", "html_url": "https://github.com/langchain-ai/langchain/pull/7565", "diff_url": "https://github.com/langchain-ai/langchain/pull/7565.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7565.patch", "merged_at": "2023-08-04T03:12:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/7564
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7564/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7564/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7564/events
https://github.com/langchain-ai/langchain/pull/7564
1,799,791,521
PR_kwDOIPDwls5VP3FC
7,564
Add into chat agent prompt to not prefix json blob with "json"
{ "login": "mrminman", "id": 9313965, "node_id": "MDQ6VXNlcjkzMTM5NjU=", "avatar_url": "https://avatars.githubusercontent.com/u/9313965?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mrminman", "html_url": "https://github.com/mrminman", "followers_url": "https://api.github.com/users/mrminman/followers", "following_url": "https://api.github.com/users/mrminman/following{/other_user}", "gists_url": "https://api.github.com/users/mrminman/gists{/gist_id}", "starred_url": "https://api.github.com/users/mrminman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mrminman/subscriptions", "organizations_url": "https://api.github.com/users/mrminman/orgs", "repos_url": "https://api.github.com/users/mrminman/repos", "events_url": "https://api.github.com/users/mrminman/events{/privacy}", "received_events_url": "https://api.github.com/users/mrminman/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-07-11T21:38:19
2023-07-12T16:56:04
2023-07-12T16:56:04
NONE
null
Fix bug where LLM was prefixing action JSON with the word "json" causing agent to not be able parse the action/action_input in the JSON. Response from ChatOpenAI LLM was: ``` json { "action": "Calculator", "action_input": "25% of 300" } ``` Bot asked me to submit pull request for this fix to issue I filed: https://github.com/hwchase17/langchain/issues/7554 This was breaking the DeepLeaning/Langchain tutorial on Agents: https://learn.deeplearning.ai/langchain/lesson/7/agents @hinthornw
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7564/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7564/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7564", "html_url": "https://github.com/langchain-ai/langchain/pull/7564", "diff_url": "https://github.com/langchain-ai/langchain/pull/7564.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7564.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7563
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7563/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7563/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7563/events
https://github.com/langchain-ai/langchain/pull/7563
1,799,768,998
PR_kwDOIPDwls5VPyJk
7,563
Rm old Run Evaluators
{ "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": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" } ]
closed
false
null
[]
null
1
2023-07-11T21:19:15
2023-07-13T07:38:02
2023-07-13T07:38:00
COLLABORATOR
null
Rm old run evaluator implementations + loaders
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7563/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7563/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7563", "html_url": "https://github.com/langchain-ai/langchain/pull/7563", "diff_url": "https://github.com/langchain-ai/langchain/pull/7563.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7563.patch", "merged_at": "2023-07-13T07:38:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/7562
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7562/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7562/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7562/events
https://github.com/langchain-ai/langchain/pull/7562
1,799,727,254
PR_kwDOIPDwls5VPpEl
7,562
add browserless loader
{ "login": "jagilley", "id": 37783831, "node_id": "MDQ6VXNlcjM3NzgzODMx", "avatar_url": "https://avatars.githubusercontent.com/u/37783831?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jagilley", "html_url": "https://github.com/jagilley", "followers_url": "https://api.github.com/users/jagilley/followers", "following_url": "https://api.github.com/users/jagilley/following{/other_user}", "gists_url": "https://api.github.com/users/jagilley/gists{/gist_id}", "starred_url": "https://api.github.com/users/jagilley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jagilley/subscriptions", "organizations_url": "https://api.github.com/users/jagilley/orgs", "repos_url": "https://api.github.com/users/jagilley/repos", "events_url": "https://api.github.com/users/jagilley/events{/privacy}", "received_events_url": "https://api.github.com/users/jagilley/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
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-07-11T20:45:46
2023-07-13T20:18:29
2023-07-13T20:18:28
CONTRIBUTOR
null
# Browserless Added support for Browserless' `/content` endpoint as a document loader. ### About Browserless Browserless is a cloud service that provides access to headless Chrome browsers via a REST API. It allows developers to automate Chromium in a serverless fashion without having to configure and maintain their own Chrome infrastructure.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7562/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7562/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7562", "html_url": "https://github.com/langchain-ai/langchain/pull/7562", "diff_url": "https://github.com/langchain-ai/langchain/pull/7562.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7562.patch", "merged_at": "2023-07-13T20:18:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/7561
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7561/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7561/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7561/events
https://github.com/langchain-ai/langchain/pull/7561
1,799,710,445
PR_kwDOIPDwls5VPlZ9
7,561
docs: update unstructured docstrings
{ "login": "MthwRobinson", "id": 1635179, "node_id": "MDQ6VXNlcjE2MzUxNzk=", "avatar_url": "https://avatars.githubusercontent.com/u/1635179?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MthwRobinson", "html_url": "https://github.com/MthwRobinson", "followers_url": "https://api.github.com/users/MthwRobinson/followers", "following_url": "https://api.github.com/users/MthwRobinson/following{/other_user}", "gists_url": "https://api.github.com/users/MthwRobinson/gists{/gist_id}", "starred_url": "https://api.github.com/users/MthwRobinson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MthwRobinson/subscriptions", "organizations_url": "https://api.github.com/users/MthwRobinson/orgs", "repos_url": "https://api.github.com/users/MthwRobinson/repos", "events_url": "https://api.github.com/users/MthwRobinson/events{/privacy}", "received_events_url": "https://api.github.com/users/MthwRobinson/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-07-11T20:32:13
2023-07-11T21:12:05
2023-07-11T21:12:05
CONTRIBUTOR
null
### Summary Updates the docstrings in the Unstructured document loaders to display more useful information on the integrations page. ### Reviewers - @rlancemartin - @eyurtsev - @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7561/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7561/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7561", "html_url": "https://github.com/langchain-ai/langchain/pull/7561", "diff_url": "https://github.com/langchain-ai/langchain/pull/7561.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7561.patch", "merged_at": "2023-07-11T21:12:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/7560
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7560/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7560/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7560/events
https://github.com/langchain-ai/langchain/pull/7560
1,799,661,561
PR_kwDOIPDwls5VPauU
7,560
Adding LLM wrapper for Kobold AI
{ "login": "ausboss", "id": 102309304, "node_id": "U_kgDOBhkduA", "avatar_url": "https://avatars.githubusercontent.com/u/102309304?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ausboss", "html_url": "https://github.com/ausboss", "followers_url": "https://api.github.com/users/ausboss/followers", "following_url": "https://api.github.com/users/ausboss/following{/other_user}", "gists_url": "https://api.github.com/users/ausboss/gists{/gist_id}", "starred_url": "https://api.github.com/users/ausboss/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ausboss/subscriptions", "organizations_url": "https://api.github.com/users/ausboss/orgs", "repos_url": "https://api.github.com/users/ausboss/repos", "events_url": "https://api.github.com/users/ausboss/events{/privacy}", "received_events_url": "https://api.github.com/users/ausboss/received_events", "type": "User", "site_admin": false }
[ { "id": 5510857403, "node_id": "LA_kwDOIPDwls8AAAABSHkCuw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation", "name": "needs documentation", "color": "DCAAC0", "default": false, "description": "PR needs to be updated with documentation" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
10
2023-07-11T19:54:16
2023-07-12T07:48:12
2023-07-12T07:48:12
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this comment with: - Description: adds two wrappers that lets you use Oobabooga's text-generation-webui api or KoboldAI api in lanchain - Issue: n/a - Dependencies: none extra, just what exists in lanchain - Tag maintainer: @baskaryan - Twitter handle: @zanzibased 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, I'm not sure if I followed this but I have been testing these for a while and using them with my discord langchain chatbot 2. an example notebook showing its use. https://colab.research.google.com/drive/1iAVfRnxHpwI4DAyD7rNGlKar212w24Uc?usp=sharing Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - 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/7560/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7560/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7560", "html_url": "https://github.com/langchain-ai/langchain/pull/7560", "diff_url": "https://github.com/langchain-ai/langchain/pull/7560.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7560.patch", "merged_at": "2023-07-12T07:48:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/7559
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7559/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7559/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7559/events
https://github.com/langchain-ai/langchain/issues/7559
1,799,649,527
I_kwDOIPDwls5rRHj3
7,559
` ValueError: Could not parse output` when using `QAGenerateChain`'s `.apply_and_parse()` method
{ "login": "AlxndrMlk", "id": 28199898, "node_id": "MDQ6VXNlcjI4MTk5ODk4", "avatar_url": "https://avatars.githubusercontent.com/u/28199898?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AlxndrMlk", "html_url": "https://github.com/AlxndrMlk", "followers_url": "https://api.github.com/users/AlxndrMlk/followers", "following_url": "https://api.github.com/users/AlxndrMlk/following{/other_user}", "gists_url": "https://api.github.com/users/AlxndrMlk/gists{/gist_id}", "starred_url": "https://api.github.com/users/AlxndrMlk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlxndrMlk/subscriptions", "organizations_url": "https://api.github.com/users/AlxndrMlk/orgs", "repos_url": "https://api.github.com/users/AlxndrMlk/repos", "events_url": "https://api.github.com/users/AlxndrMlk/events{/privacy}", "received_events_url": "https://api.github.com/users/AlxndrMlk/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
6
2023-07-11T19:44:49
2023-10-31T16:06:20
2023-10-31T16:06:19
NONE
null
### System Info python==3.9.17 langchain==0.0.190 Win 11 64 bit ### Who can help? @hwchase17 @agol ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```python # Instantiate the chain example_gen_chain = QAGenerateChain.from_llm(ChatOpenAI()) example_gen_chain.apply_and_parse([{'doc': data[2]}]) [Out]: ValueError Traceback (most recent call last) Cell In[36], line 1 ----> 1 example_gen_chain.apply_and_parse([{'doc': data[2]}]) File ~\anaconda3\envs\nlp-openai-langchain\lib\site-packages\langchain\chains\llm.py:257, in LLMChain.apply_and_parse(self, input_list, callbacks) 255 """Call apply and then parse the results.""" 256 result = self.apply(input_list, callbacks=callbacks) --> 257 return self._parse_result(result) File ~\anaconda3\envs\nlp-openai-langchain\lib\site-packages\langchain\chains\llm.py:263, in LLMChain._parse_result(self, result) 259 def _parse_result( 260 self, result: List[Dict[str, str]] 261 ) -> Sequence[Union[str, List[str], Dict[str, str]]]: 262 if self.prompt.output_parser is not None: --> 263 return [ 264 self.prompt.output_parser.parse(res[self.output_key]) for res in result 265 ] 266 else: 267 return result File ~\anaconda3\envs\nlp-openai-langchain\lib\site-packages\langchain\chains\llm.py:264, in <listcomp>(.0) 259 def _parse_result( 260 self, result: List[Dict[str, str]] 261 ) -> Sequence[Union[str, List[str], Dict[str, str]]]: 262 if self.prompt.output_parser is not None: 263 return [ --> 264 self.prompt.output_parser.parse(res[self.output_key]) for res in result 265 ] 266 else: 267 return result File ~\anaconda3\envs\nlp-openai-langchain\lib\site-packages\langchain\output_parsers\regex.py:28, in RegexParser.parse(self, text) 26 else: 27 if self.default_output_key is None: ---> 28 raise ValueError(f"Could not parse output: {text}") 29 else: 30 return { 31 key: text if key == self.default_output_key else "" 32 for key in self.output_keys 33 } ValueError: Could not parse output: QUESTION: What is the fabric composition of the Maine Expedition Shirt with PrimaLoft®? ANSWER: The fabric composition of the Maine Expedition Shirt with PrimaLoft® is 85% premium wool and 15% nylon. ``` ### Expected behavior Returns parsed output.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7559/reactions", "total_count": 2, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7559/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7558
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7558/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7558/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7558/events
https://github.com/langchain-ai/langchain/issues/7558
1,799,618,568
I_kwDOIPDwls5rRAAI
7,558
Use `func` as a default `coroutine` method in Tool instantiation
{ "login": "jbkoh", "id": 1572627, "node_id": "MDQ6VXNlcjE1NzI2Mjc=", "avatar_url": "https://avatars.githubusercontent.com/u/1572627?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jbkoh", "html_url": "https://github.com/jbkoh", "followers_url": "https://api.github.com/users/jbkoh/followers", "following_url": "https://api.github.com/users/jbkoh/following{/other_user}", "gists_url": "https://api.github.com/users/jbkoh/gists{/gist_id}", "starred_url": "https://api.github.com/users/jbkoh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbkoh/subscriptions", "organizations_url": "https://api.github.com/users/jbkoh/orgs", "repos_url": "https://api.github.com/users/jbkoh/repos", "events_url": "https://api.github.com/users/jbkoh/events{/privacy}", "received_events_url": "https://api.github.com/users/jbkoh/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-07-11T19:23:13
2023-10-17T16:04:49
2023-10-17T16:04:48
CONTRIBUTOR
null
### Feature request There are tools with `func` but whose implementation of coroutine would be just same. E.g., ```python def adder(x, y): return x+y async def aadder(x, y): return x+y adder_tool = Tool(func=adder, coroutine=aadder, ...) ``` I have to define `adder` and `aadder` redundantly. Of course the logic can be abstracted within the two definitions, but I'd prefer just having the same function and reuse the `func` at the async calling. A possible implementation would look like this at [this line](https://github.com/hwchase17/langchain/blob/master/langchain/tools/base.py#L453C1-L473C65) ```python async def _arun( self, *args: Any, run_manager: Optional[AsyncCallbackManagerForToolRun] = None, **kwargs: Any, ) -> Any: """Use the tool asynchronously.""" if self.coroutine: ... elif self.default_coroutine: # introducing some parameter return self.run(*args, run_manager=run_manager, **kwargs) raise NotImplementedError("Tool does not support async") ``` with this the adding `adder` will look like this: ```python def adder(x, y): return x+y adder_tool = Tool(func=adder, default_coroutine=True, ...) ``` ### Motivation Simplify function documentations ### Your contribution I can make a PR as proposed if it's the right approach.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7558/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/7558/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7557
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7557/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7557/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7557/events
https://github.com/langchain-ai/langchain/issues/7557
1,799,513,554
I_kwDOIPDwls5rQmXS
7,557
Follow-up Query Recommender Callback
{ "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 }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
2
2023-07-11T18:18:50
2023-12-21T16:07:34
2023-12-21T16:07:33
CONTRIBUTOR
null
### Feature request Introduce a follow-up query recommender callback to enhance user experience and engagement in case of chatbot use case. The recommender callback will suggest relevant follow-up queries generated by LLM based on the user's conversation history, facilitating smoother interactions. The proposed flow is as follows: - Utilize the configured memory to recommend follow-up queries by analyzing the chat history. - In the absence of configured memory, leverage the current question and answer to suggest follow-up queries. Usage: It's up to the user how they want to utilize these recommended queries ### Motivation The inclusion of this feature would greatly benefit various chatbot use cases. By suggesting follow-up queries, the chatbot can proactively guide the conversation, helping users navigate complex interactions more efficiently. This feature has the potential to enhance user satisfaction and streamline the overall user experience. While the exact extent of its usefulness may vary, it is a valuable addition that can significantly improve the chatbot's capabilities. ### Your contribution I can work on this, let me know your thoughts @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7557/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7557/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7556
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7556/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7556/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7556/events
https://github.com/langchain-ai/langchain/pull/7556
1,799,420,026
PR_kwDOIPDwls5VOn8i
7,556
Add notebook example for Lemon AI NLP Workflow Automation
{ "login": "felixbrock", "id": 70200999, "node_id": "MDQ6VXNlcjcwMjAwOTk5", "avatar_url": "https://avatars.githubusercontent.com/u/70200999?v=4", "gravatar_id": "", "url": "https://api.github.com/users/felixbrock", "html_url": "https://github.com/felixbrock", "followers_url": "https://api.github.com/users/felixbrock/followers", "following_url": "https://api.github.com/users/felixbrock/following{/other_user}", "gists_url": "https://api.github.com/users/felixbrock/gists{/gist_id}", "starred_url": "https://api.github.com/users/felixbrock/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/felixbrock/subscriptions", "organizations_url": "https://api.github.com/users/felixbrock/orgs", "repos_url": "https://api.github.com/users/felixbrock/repos", "events_url": "https://api.github.com/users/felixbrock/events{/privacy}", "received_events_url": "https://api.github.com/users/felixbrock/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
3
2023-07-11T17:30:03
2023-07-12T07:22:27
2023-07-11T19:15:12
CONTRIBUTOR
null
- Description: Added notebook to LangChain docs that explains how to use Lemon AI NLP Workflow Automation tool with Langchain - Issue: not applicable - Dependencies: not applicable - Tag maintainer: @agola11 - Twitter handle: felixbrockm
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7556/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7556/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7556", "html_url": "https://github.com/langchain-ai/langchain/pull/7556", "diff_url": "https://github.com/langchain-ai/langchain/pull/7556.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7556.patch", "merged_at": "2023-07-11T19:15:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/7555
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7555/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7555/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7555/events
https://github.com/langchain-ai/langchain/pull/7555
1,799,416,787
PR_kwDOIPDwls5VOnO0
7,555
Added support for chat_history
{ "login": "lkuligin", "id": 11026406, "node_id": "MDQ6VXNlcjExMDI2NDA2", "avatar_url": "https://avatars.githubusercontent.com/u/11026406?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lkuligin", "html_url": "https://github.com/lkuligin", "followers_url": "https://api.github.com/users/lkuligin/followers", "following_url": "https://api.github.com/users/lkuligin/following{/other_user}", "gists_url": "https://api.github.com/users/lkuligin/gists{/gist_id}", "starred_url": "https://api.github.com/users/lkuligin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lkuligin/subscriptions", "organizations_url": "https://api.github.com/users/lkuligin/orgs", "repos_url": "https://api.github.com/users/lkuligin/repos", "events_url": "https://api.github.com/users/lkuligin/events{/privacy}", "received_events_url": "https://api.github.com/users/lkuligin/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
3
2023-07-11T17:28:23
2023-07-11T19:27:26
2023-07-11T19:27:26
CONTRIBUTOR
null
#7469
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7555/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7555/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7555", "html_url": "https://github.com/langchain-ai/langchain/pull/7555", "diff_url": "https://github.com/langchain-ai/langchain/pull/7555.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7555.patch", "merged_at": "2023-07-11T19:27:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/7554
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7554/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7554/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7554/events
https://github.com/langchain-ai/langchain/issues/7554
1,799,345,871
I_kwDOIPDwls5rP9bP
7,554
Using Agent - ChatOpenAI - response can't be parsed because it starts with 'json' for next action (RC identified and fix proposed)
{ "login": "mrminman", "id": 9313965, "node_id": "MDQ6VXNlcjkzMTM5NjU=", "avatar_url": "https://avatars.githubusercontent.com/u/9313965?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mrminman", "html_url": "https://github.com/mrminman", "followers_url": "https://api.github.com/users/mrminman/followers", "following_url": "https://api.github.com/users/mrminman/following{/other_user}", "gists_url": "https://api.github.com/users/mrminman/gists{/gist_id}", "starred_url": "https://api.github.com/users/mrminman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mrminman/subscriptions", "organizations_url": "https://api.github.com/users/mrminman/orgs", "repos_url": "https://api.github.com/users/mrminman/repos", "events_url": "https://api.github.com/users/mrminman/events{/privacy}", "received_events_url": "https://api.github.com/users/mrminman/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
5
2023-07-11T16:48:21
2023-10-10T16:15:58
2023-10-10T16:15:46
NONE
null
### System Info LangChain 0.230 python 3.10 From first example of using calculator from: https://learn.deeplearning.ai/langchain/lesson/7/agents > Entering new chain... ACTION: json { "action": "Calculator", "action_input": "25% of 300" } The text is what the ChatOutputParser in agents/chat/output_parser.py gets (I prefixed it with ACTION in my print statement). The word 'json' is now prefixing the JSON blob from the ChatOpenAI LLM which causes the agent to fail. One possible solution that I verified work but not sure if it's the right one is checking if it prefixes with json and just remove that: if action.startswith("json"): action = action[4:] This seems to work and lets both the first two examples in the tutorial work. ### Who can help? @hwchase17 and @agola11 for LLM/Chat wrappers/Agents. ### 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 Steps to reproduce behavior. Run source code from @hwchase17 Deeplearning class: https://learn.deeplearning.ai/langchain/lesson/7/agents The calculator and wikipedia examples don't run. ### Expected behavior The calculator and wikipedia examples work by parsing the "new?" output from ChatOpenAI in the tutorial.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7554/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/7554/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7553
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7553/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7553/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7553/events
https://github.com/langchain-ai/langchain/pull/7553
1,799,331,094
PR_kwDOIPDwls5VOUXm
7,553
Lint Fix: Update chat agents' output parser to extract action by regex
{ "login": "kdcokenny", "id": 99611484, "node_id": "U_kgDOBe_zXA", "avatar_url": "https://avatars.githubusercontent.com/u/99611484?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kdcokenny", "html_url": "https://github.com/kdcokenny", "followers_url": "https://api.github.com/users/kdcokenny/followers", "following_url": "https://api.github.com/users/kdcokenny/following{/other_user}", "gists_url": "https://api.github.com/users/kdcokenny/gists{/gist_id}", "starred_url": "https://api.github.com/users/kdcokenny/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kdcokenny/subscriptions", "organizations_url": "https://api.github.com/users/kdcokenny/orgs", "repos_url": "https://api.github.com/users/kdcokenny/repos", "events_url": "https://api.github.com/users/kdcokenny/events{/privacy}", "received_events_url": "https://api.github.com/users/kdcokenny/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
2
2023-07-11T16:39:17
2023-07-28T05:42:23
2023-07-28T05:42:23
CONTRIBUTOR
null
I formatted the code in order to pass the lint checks for the PR #7511
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7553/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7553/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7553", "html_url": "https://github.com/langchain-ai/langchain/pull/7553", "diff_url": "https://github.com/langchain-ai/langchain/pull/7553.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7553.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7552
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7552/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7552/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7552/events
https://github.com/langchain-ai/langchain/issues/7552
1,799,329,321
I_kwDOIPDwls5rP5Yp
7,552
GPTIndexChatMemory doesn't work as expected with langchain and the agent doesn't use the chat history
{ "login": "Eng-ZeyadTarek", "id": 61242145, "node_id": "MDQ6VXNlcjYxMjQyMTQ1", "avatar_url": "https://avatars.githubusercontent.com/u/61242145?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Eng-ZeyadTarek", "html_url": "https://github.com/Eng-ZeyadTarek", "followers_url": "https://api.github.com/users/Eng-ZeyadTarek/followers", "following_url": "https://api.github.com/users/Eng-ZeyadTarek/following{/other_user}", "gists_url": "https://api.github.com/users/Eng-ZeyadTarek/gists{/gist_id}", "starred_url": "https://api.github.com/users/Eng-ZeyadTarek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Eng-ZeyadTarek/subscriptions", "organizations_url": "https://api.github.com/users/Eng-ZeyadTarek/orgs", "repos_url": "https://api.github.com/users/Eng-ZeyadTarek/repos", "events_url": "https://api.github.com/users/Eng-ZeyadTarek/events{/privacy}", "received_events_url": "https://api.github.com/users/Eng-ZeyadTarek/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-07-11T16:38:22
2023-10-17T16:04:55
2023-10-17T16:04:54
NONE
null
### System Info langchain version: '0.0.230' llama-index version: '0.7.4' python: 3.10.11 ### Who can help? @hwchase17 @agola11 @eyurtsev ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [X] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction **When I'm trying to use GPTIndexChatMemory to embed my conversation and store the whole of it, this feature (memory) doesn't work anymore, and this is my code, also I want to save the memory in a folder with its embeddings and I can't** ``` from llama_index.langchain_helpers.memory_wrapper import GPTIndexChatMemory, GPTIndexMemory from langchain.chat_models import ChatOpenAI from langchain.agents import AgentType from llama_index import ServiceContext from llama_index import GPTListIndex from langchain.embeddings import OpenAIEmbeddings llm = ChatOpenAI(temperature=0) embed_model = LangchainEmbedding(OpenAIEmbeddings()) service_context = ServiceContext.from_defaults(embed_model=embed_model) index = GPTListIndex([], service_context=service_context) memory = GPTIndexChatMemory( index=index, memory_key="chat_history", query_kwargs={"response_mode": "compact", "service_context":service_context}, input_key="input", return_messages=True, return_source= True ) agent_executor = initialize_agent( [], llm, verbose = True,agent=AgentType.CONVERSATIONAL_REACT_DESCRIPTION, memory=memory, handle_parsing_errors="Check your output and make sure it conforms!" ) agent_executor.agent.llm_chain.prompt.template = """Assistant is a large language model trained by OpenAI. Assistant is designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-depth explanations and discussions on a wide range of topics. As a language model, Assistant is able to generate human-like text based on the input it receives, allowing it to engage in natural-sounding conversations and provide responses that are coherent and relevant to the topic at hand. Assistant is constantly learning and improving, and its capabilities are constantly evolving. It is able to process and understand large amounts of text, and can use this knowledge to provide accurate and informative responses to a wide range of questions. Additionally, Assistant is able to generate its own text based on the input it receives, allowing it to engage in discussions and provide explanations and descriptions on a wide range of topics. Overall, Assistant is a powerful tool that can help with a wide range of tasks and provide valuable insights and information on a wide range of topics. Whether you need help with a specific question or just want to have a conversation about a particular topic, Assistant is here to assist. please use the following format: AI: [your response here] Begin! Previous conversation history: {chat_history} New input: {input} {agent_scratchpad}""" print(agent_executor.run("my name is zeyad")) ``` this would be the output for the first print statement. **AI: Hello Zeyad! How can I assist you today?** `print("Do you know my name?")` **this would be the output for the first print statement (unexcepted output), one week ago it was working fine without any problems.** **AI: As an AI language model, I don't have access to personal information unless you provide it to me. Therefore, I don't know your name unless you tell me. Is there anything specific you would like assistance with?** ### Expected behavior the expected output for the second statement must be: AI: Yes, you told me before that your name is Zeyad. **I really appreciate any help you can provide.**
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7552/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7552/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7551
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7551/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7551/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7551/events
https://github.com/langchain-ai/langchain/issues/7551
1,799,323,572
I_kwDOIPDwls5rP3-0
7,551
Pass a JSON string and get an error mismatched or missing input parameter
{ "login": "andrea-mucci", "id": 81492948, "node_id": "MDQ6VXNlcjgxNDkyOTQ4", "avatar_url": "https://avatars.githubusercontent.com/u/81492948?v=4", "gravatar_id": "", "url": "https://api.github.com/users/andrea-mucci", "html_url": "https://github.com/andrea-mucci", "followers_url": "https://api.github.com/users/andrea-mucci/followers", "following_url": "https://api.github.com/users/andrea-mucci/following{/other_user}", "gists_url": "https://api.github.com/users/andrea-mucci/gists{/gist_id}", "starred_url": "https://api.github.com/users/andrea-mucci/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andrea-mucci/subscriptions", "organizations_url": "https://api.github.com/users/andrea-mucci/orgs", "repos_url": "https://api.github.com/users/andrea-mucci/repos", "events_url": "https://api.github.com/users/andrea-mucci/events{/privacy}", "received_events_url": "https://api.github.com/users/andrea-mucci/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-07-11T16:34:25
2023-07-12T00:44:36
2023-07-12T00:44:36
NONE
null
### System Info LangChain: 0.0.230 Python: 3.10 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I have a dictionary in python ```python dict = { "keyfeatures": [ { "title": "Search for Charitable Activities", "description": "The system must provide a search function that allows users to enter keywords and returns a list of charitable activities that match those keywords." }, { "title": "Display Charitable Activities", "description": "The system must display the search results in a user-friendly format." }, { "title": "Filter and Sort Charitable Activities", "description": "The system must provide options for users to filter and sort the search results." }, { "title": "View Details of a Charitable Activity", "description": "The system must allow users to select a charitable activity from the search results and view more detailed information about it." }, { "title": "Save or Bookmark Charitable Activities", "description": "The system must allow users to save or bookmark charitable activities that they're interested in." } ] } ``` i convert the dictionary in a json string ```python json_string = json.dumps(dict) ``` and i obtain the following string ```json {"keyfeatures": [{"title": "Search for Charitable Activities", "description": "The system must provide a search function that allows users to enter keywords and returns a list of charitable activities that match those keywords."}, {"title": "Display Charitable Activities", "description": "The system must display the search results in a user-friendly format."}, {"title": "Filter and Sort Charitable Activities", "description": "The system must provide options for users to filter and sort the search results."}, {"title": "View Details of a Charitable Activity", "description": "The system must allow users to select a charitable activity from the search results and view more detailed information about it."}, {"title": "Save or Bookmark Charitable Activities", "description": "The system must allow users to save or bookmark charitable activities that they're interested in."}]} ``` if i pass that string to an AIMessagePromptTemplate ```python AIMessagePromptTemplate.from_template(msg) ``` i get the following error: ```text File "/home/andrea/PycharmProjects/ArchAI/venv/lib/python3.10/site-packages/langchain/prompts/chat.py", line 85, in from_template prompt = PromptTemplate.from_template(template, template_format=template_format) File "/home/andrea/PycharmProjects/ArchAI/venv/lib/python3.10/site-packages/langchain/prompts/prompt.py", line 145, in from_template return cls( File "/home/andrea/PycharmProjects/ArchAI/venv/lib/python3.10/site-packages/langchain/load/serializable.py", line 74, in __init__ super().__init__(**kwargs) File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__ pydantic.error_wrappers.ValidationError: 1 validation error for PromptTemplate __root__ Invalid prompt schema; check for mismatched or missing input parameters. '"title"' (type=value_error) ``` i have already added f-string formater with multiple curly-brackets but still fail thanks in advance ### Expected behavior the PromptMessage must import a formatted JSON string correctly without interfere with internal template curly-brackets format
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7551/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/7551/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7550
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7550/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7550/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7550/events
https://github.com/langchain-ai/langchain/pull/7550
1,799,309,917
PR_kwDOIPDwls5VOPvr
7,550
Add env setup
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "id": 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-07-11T16:25:11
2023-07-11T16:48:40
2023-07-11T16:48:40
COLLABORATOR
null
Include setup
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7550/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7550/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7550", "html_url": "https://github.com/langchain-ai/langchain/pull/7550", "diff_url": "https://github.com/langchain-ai/langchain/pull/7550.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7550.patch", "merged_at": "2023-07-11T16:48:40" }
https://api.github.com/repos/langchain-ai/langchain/issues/7549
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7549/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7549/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7549/events
https://github.com/langchain-ai/langchain/pull/7549
1,799,294,681
PR_kwDOIPDwls5VOMUu
7,549
Lint Fix: Lost in the middle
{ "login": "kdcokenny", "id": 99611484, "node_id": "U_kgDOBe_zXA", "avatar_url": "https://avatars.githubusercontent.com/u/99611484?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kdcokenny", "html_url": "https://github.com/kdcokenny", "followers_url": "https://api.github.com/users/kdcokenny/followers", "following_url": "https://api.github.com/users/kdcokenny/following{/other_user}", "gists_url": "https://api.github.com/users/kdcokenny/gists{/gist_id}", "starred_url": "https://api.github.com/users/kdcokenny/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kdcokenny/subscriptions", "organizations_url": "https://api.github.com/users/kdcokenny/orgs", "repos_url": "https://api.github.com/users/kdcokenny/repos", "events_url": "https://api.github.com/users/kdcokenny/events{/privacy}", "received_events_url": "https://api.github.com/users/kdcokenny/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-07-11T16:17:21
2023-07-15T22:38:15
2023-07-15T22:38:15
CONTRIBUTOR
null
Fixed lint checking for PR #7520
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7549/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7549/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7549", "html_url": "https://github.com/langchain-ai/langchain/pull/7549", "diff_url": "https://github.com/langchain-ai/langchain/pull/7549.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7549.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7548
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7548/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7548/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7548/events
https://github.com/langchain-ai/langchain/issues/7548
1,799,257,114
I_kwDOIPDwls5rPnwa
7,548
TypeError: issubclass() arg 1 must be a class when using langchain in azure
{ "login": "levalencia", "id": 6962857, "node_id": "MDQ6VXNlcjY5NjI4NTc=", "avatar_url": "https://avatars.githubusercontent.com/u/6962857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/levalencia", "html_url": "https://github.com/levalencia", "followers_url": "https://api.github.com/users/levalencia/followers", "following_url": "https://api.github.com/users/levalencia/following{/other_user}", "gists_url": "https://api.github.com/users/levalencia/gists{/gist_id}", "starred_url": "https://api.github.com/users/levalencia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/levalencia/subscriptions", "organizations_url": "https://api.github.com/users/levalencia/orgs", "repos_url": "https://api.github.com/users/levalencia/repos", "events_url": "https://api.github.com/users/levalencia/events{/privacy}", "received_events_url": "https://api.github.com/users/levalencia/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
22
2023-07-11T15:57:23
2023-07-12T22:28:37
2023-07-12T06:25:35
CONTRIBUTOR
null
### System Info langchain 0.0.225 also tested with 0.0.229 I can only reproduce it in Azure, I cant reproduce it locally. ### Who can help? I have a simple python app with streamlit and langchain, I am deploying this to Azure via CI/CD with the following YAML definition stages: - stage: Build displayName: Build stage jobs: - job: BuildJob pool: vmImage: $(vmImageName) steps: - task: UsePythonVersion@0 inputs: versionSpec: '$(pythonVersion)' displayName: 'Use Python $(pythonVersion)' - script: | python -m venv antenv source antenv/bin/activate python -m pip install --upgrade pip pip install setup streamlit pip install --target="./.python_packages/lib/site-packages" -r ./requirements.txt workingDirectory: $(projectRoot) displayName: "Install requirements" - task: ArchiveFiles@2 displayName: 'Archive files' inputs: rootFolderOrFile: '$(projectRoot)' includeRootFolder: false archiveType: zip archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip replaceExistingArchive: true - upload: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip displayName: 'Upload package' artifact: drop - stage: Deploy displayName: 'Deploy Web App' dependsOn: Build condition: succeeded() jobs: - deployment: DeploymentJob pool: vmImage: $(vmImageName) environment: $(environmentName) strategy: runOnce: deploy: steps: - task: UsePythonVersion@0 inputs: versionSpec: '$(pythonVersion)' displayName: 'Use Python version' - task: AzureAppServiceSettings@1 displayName: 'Set App Settings' inputs: azureSubscription: 'AzureAIPocPrincipal' appName: 'test' resourceGroupName: 'AzureAIPoc' appSettings: | [ { "name": "ENABLE_ORYX_BUILD", "value": 1 }, { "name": "SCM_DO_BUILD_DURING_DEPLOYMENT", "value": 1 }, { "name": "POST_BUILD_COMMAND", "value": "pip install -r ./requirements.txt" } ] - task: AzureWebApp@1 displayName: 'Deploy Azure Web App : {{ webAppName }}' inputs: azureSubscription: 'AzureAIPocPrincipal' appType: 'webAppLinux' deployToSlotOrASE: true resourceGroupName: 'AzureAIPoc' slotName: 'production' appName: 'test' package: '$(Pipeline.Workspace)/drop/$(Build.BuildId).zip' startUpCommand: 'python -m streamlit run app/home.py --server.port 8000 --server.address 0.0.0.0' My requirements file is: langchain==0.0.225 streamlit openai python-dotenv pinecone-client streamlit-chat chromadb tiktoken pymssql typing-inspect==0.8.0 typing_extensions==4.5.0 However I am getting the following error: TypeError: issubclass() arg 1 must be a class Traceback: File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.__dict__) File "/tmp/8db82251b0e58bc/app/pages/xxv0.2.py", line 6, in <module> import langchain File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/__init__.py", line 6, in <module> from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/agents/__init__.py", line 2, in <module> from langchain.agents.agent import ( File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/agents/agent.py", line 26, in <module> from langchain.chains.base import Chain File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/chains/__init__.py", line 2, in <module> from langchain.chains.api.base import APIChain File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/chains/api/base.py", line 13, in <module> from langchain.chains.api.prompt import API_RESPONSE_PROMPT, API_URL_PROMPT File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/chains/api/prompt.py", line 2, in <module> from langchain.prompts.prompt import PromptTemplate File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/prompts/__init__.py", line 12, in <module> from langchain.prompts.example_selector import ( File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/prompts/example_selector/__init__.py", line 4, in <module> from langchain.prompts.example_selector.semantic_similarity import ( File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/prompts/example_selector/semantic_similarity.py", line 8, in <module> from langchain.embeddings.base import Embeddings File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/embeddings/__init__.py", line 29, in <module> from langchain.embeddings.sagemaker_endpoint import SagemakerEndpointEmbeddings File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/embeddings/sagemaker_endpoint.py", line 7, in <module> from langchain.llms.sagemaker_endpoint import ContentHandlerBase File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/llms/__init__.py", line 52, in <module> from langchain.llms.vertexai import VertexAI File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/llms/vertexai.py", line 14, in <module> from langchain.utilities.vertexai import ( File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/utilities/__init__.py", line 3, in <module> from langchain.utilities.apify import ApifyWrapper File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/utilities/apify.py", line 5, in <module> from langchain.document_loaders import ApifyDatasetLoader File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/document_loaders/__init__.py", line 43, in <module> from langchain.document_loaders.embaas import EmbaasBlobLoader, EmbaasLoader File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/langchain/document_loaders/embaas.py", line 54, in <module> class BaseEmbaasLoader(BaseModel): File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/main.py", line 204, in __new__ fields[ann_name] = ModelField.infer( ^^^^^^^^^^^^^^^^^ File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/fields.py", line 488, in infer return cls( ^^^^ File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/fields.py", line 419, in __init__ self.prepare() File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/fields.py", line 539, in prepare self.populate_validators() File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/fields.py", line 801, in populate_validators *(get_validators() if get_validators else list(find_validators(self.type_, self.model_config))), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/validators.py", line 696, in find_validators yield make_typeddict_validator(type_, config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/validators.py", line 585, in make_typeddict_validator TypedDictModel = create_model_from_typeddict( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/annotated_types.py", line 35, in create_model_from_typeddict return create_model(typeddict_cls.__name__, **kwargs, **field_definitions) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/main.py", line 972, in create_model return type(__model_name, __base__, namespace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/main.py", line 204, in __new__ fields[ann_name] = ModelField.infer( ^^^^^^^^^^^^^^^^^ File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/fields.py", line 488, in infer return cls( ^^^^ File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/fields.py", line 419, in __init__ self.prepare() File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/fields.py", line 534, in prepare self._type_analysis() File "/tmp/8db82251b0e58bc/antenv/lib/python3.11/site-packages/pydantic/fields.py", line 638, in _type_analysis elif issubclass(origin, Tuple): # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/python/3.11.3/lib/python3.11/typing.py", line 1570, in __subclasscheck__ return issubclass(cls, self.__origin__) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I am not copying here the app script as the code works locally, I think its something more related to Azure App Service Plan Environment or the venv setup in the yaml file. ### 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 - [ ] Callbacks/Tracing - [ ] Async ### Reproduction n/a ### Expected behavior code should work :)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7548/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/7548/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7547
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7547/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7547/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7547/events
https://github.com/langchain-ai/langchain/issues/7547
1,799,224,657
I_kwDOIPDwls5rPf1R
7,547
0.0.229 VespaRetriver signature broken
{ "login": "stauntonjr", "id": 36486177, "node_id": "MDQ6VXNlcjM2NDg2MTc3", "avatar_url": "https://avatars.githubusercontent.com/u/36486177?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stauntonjr", "html_url": "https://github.com/stauntonjr", "followers_url": "https://api.github.com/users/stauntonjr/followers", "following_url": "https://api.github.com/users/stauntonjr/following{/other_user}", "gists_url": "https://api.github.com/users/stauntonjr/gists{/gist_id}", "starred_url": "https://api.github.com/users/stauntonjr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stauntonjr/subscriptions", "organizations_url": "https://api.github.com/users/stauntonjr/orgs", "repos_url": "https://api.github.com/users/stauntonjr/repos", "events_url": "https://api.github.com/users/stauntonjr/events{/privacy}", "received_events_url": "https://api.github.com/users/stauntonjr/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-07-11T15:41:42
2023-11-01T16:06:35
2023-11-01T16:06:34
NONE
null
### System Info langchain 0.0.229 cannot instantiate VespaRetriever (error that it takes only 1 argument but 4 were given) rolling version back ### 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 from langchain.retrievers.vespa_retriever import VespaRetriever vespa_query_body = { "yql": 'select * from abstracts where userQuery() or ({targetHits:1}nearestNeighbor(paragraph_embeddings,q))', 'input.query(q)': 'embed(q)', 'query': 'q', "hits": '3', "ranking": "hybrid", } vespa_content_field = "paragraph_embeddings" retriever = VespaRetriever(app=vespa_app, body=vespa_query_body, content_field=vespa_content_field) ### Expected behavior retriever should instantiate but does not
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7547/reactions", "total_count": 2, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7547/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7546
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7546/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7546/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7546/events
https://github.com/langchain-ai/langchain/pull/7546
1,799,142,822
PR_kwDOIPDwls5VNrdy
7,546
Added Memory Parameter to SQL-Chain
{ "login": "keenborder786", "id": 45242107, "node_id": "MDQ6VXNlcjQ1MjQyMTA3", "avatar_url": "https://avatars.githubusercontent.com/u/45242107?v=4", "gravatar_id": "", "url": "https://api.github.com/users/keenborder786", "html_url": "https://github.com/keenborder786", "followers_url": "https://api.github.com/users/keenborder786/followers", "following_url": "https://api.github.com/users/keenborder786/following{/other_user}", "gists_url": "https://api.github.com/users/keenborder786/gists{/gist_id}", "starred_url": "https://api.github.com/users/keenborder786/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/keenborder786/subscriptions", "organizations_url": "https://api.github.com/users/keenborder786/orgs", "repos_url": "https://api.github.com/users/keenborder786/repos", "events_url": "https://api.github.com/users/keenborder786/events{/privacy}", "received_events_url": "https://api.github.com/users/keenborder786/received_events", "type": "User", "site_admin": false }
[ { "id": 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
21
2023-07-11T14:59:47
2023-12-16T07:07:40
2023-07-31T19:16:52
CONTRIBUTOR
null
- Description: SQL Database Chain and Agent does not allow to pass in memory therefore added this feature with additional tests. - Issue: #6918 - Tag maintainer: @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7546/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7546/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7546", "html_url": "https://github.com/langchain-ai/langchain/pull/7546", "diff_url": "https://github.com/langchain-ai/langchain/pull/7546.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7546.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7545
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7545/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7545/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7545/events
https://github.com/langchain-ai/langchain/pull/7545
1,799,100,670
PR_kwDOIPDwls5VNiA-
7,545
fix cpal docs
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 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-07-11T14:43:15
2023-07-11T15:07:47
2023-07-11T15:07:46
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7545/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7545/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7545", "html_url": "https://github.com/langchain-ai/langchain/pull/7545", "diff_url": "https://github.com/langchain-ai/langchain/pull/7545.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7545.patch", "merged_at": "2023-07-11T15:07:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/7544
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7544/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7544/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7544/events
https://github.com/langchain-ai/langchain/pull/7544
1,799,037,692
PR_kwDOIPDwls5VNUJ3
7,544
bump 230
{ "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-07-11T14:12:43
2023-07-11T15:24:09
2023-07-11T15:24:08
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7544/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7544/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7544", "html_url": "https://github.com/langchain-ai/langchain/pull/7544", "diff_url": "https://github.com/langchain-ai/langchain/pull/7544.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7544.patch", "merged_at": "2023-07-11T15:24:08" }
https://api.github.com/repos/langchain-ai/langchain/issues/7543
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7543/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7543/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7543/events
https://github.com/langchain-ai/langchain/pull/7543
1,799,036,433
PR_kwDOIPDwls5VNT4Y
7,543
Update llama_index.py to new versions of llama-index
{ "login": "Vokturz", "id": 21696514, "node_id": "MDQ6VXNlcjIxNjk2NTE0", "avatar_url": "https://avatars.githubusercontent.com/u/21696514?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Vokturz", "html_url": "https://github.com/Vokturz", "followers_url": "https://api.github.com/users/Vokturz/followers", "following_url": "https://api.github.com/users/Vokturz/following{/other_user}", "gists_url": "https://api.github.com/users/Vokturz/gists{/gist_id}", "starred_url": "https://api.github.com/users/Vokturz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Vokturz/subscriptions", "organizations_url": "https://api.github.com/users/Vokturz/orgs", "repos_url": "https://api.github.com/users/Vokturz/repos", "events_url": "https://api.github.com/users/Vokturz/events{/privacy}", "received_events_url": "https://api.github.com/users/Vokturz/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-07-11T14:12:03
2023-07-11T14:21:45
2023-07-11T14:19:25
CONTRIBUTOR
null
- Description: Llama-index updated its files and the retrievers no longer worked. I also added the async version of `get_relevant_documents` @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7543/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7543/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7543", "html_url": "https://github.com/langchain-ai/langchain/pull/7543", "diff_url": "https://github.com/langchain-ai/langchain/pull/7543.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7543.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7542
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7542/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7542/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7542/events
https://github.com/langchain-ai/langchain/issues/7542
1,799,011,449
I_kwDOIPDwls5rOrx5
7,542
Issue: Passing auth object to LLMRequestsChain
{ "login": "EricSpeidel", "id": 12648651, "node_id": "MDQ6VXNlcjEyNjQ4NjUx", "avatar_url": "https://avatars.githubusercontent.com/u/12648651?v=4", "gravatar_id": "", "url": "https://api.github.com/users/EricSpeidel", "html_url": "https://github.com/EricSpeidel", "followers_url": "https://api.github.com/users/EricSpeidel/followers", "following_url": "https://api.github.com/users/EricSpeidel/following{/other_user}", "gists_url": "https://api.github.com/users/EricSpeidel/gists{/gist_id}", "starred_url": "https://api.github.com/users/EricSpeidel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/EricSpeidel/subscriptions", "organizations_url": "https://api.github.com/users/EricSpeidel/orgs", "repos_url": "https://api.github.com/users/EricSpeidel/repos", "events_url": "https://api.github.com/users/EricSpeidel/events{/privacy}", "received_events_url": "https://api.github.com/users/EricSpeidel/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
0
2023-07-11T13:59:38
2023-07-14T12:38:25
2023-07-14T12:38:25
CONTRIBUTOR
null
### Issue you'd like to raise. Accessing many corporate resources requires special authentication, e.g. Kerberos. The `requests` library supports passing an auth object, e.g. `requests.get(url, auth=HttpNegotiateAuth(), verify=False)` to use SSPI. We're able to pass a `requests_wrapper `to `LLMRequestsChain`, but it only allows changing headers, not the actual get method that is used. ### Suggestion: Allow for more generic generic wrappers to be passed? Allow passing a requests-compatible auth object?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7542/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7542/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7541
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7541/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7541/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7541/events
https://github.com/langchain-ai/langchain/pull/7541
1,798,971,320
PR_kwDOIPDwls5VNFd-
7,541
Update combined.py
{ "login": "mzamini92", "id": 32536264, "node_id": "MDQ6VXNlcjMyNTM2MjY0", "avatar_url": "https://avatars.githubusercontent.com/u/32536264?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mzamini92", "html_url": "https://github.com/mzamini92", "followers_url": "https://api.github.com/users/mzamini92/followers", "following_url": "https://api.github.com/users/mzamini92/following{/other_user}", "gists_url": "https://api.github.com/users/mzamini92/gists{/gist_id}", "starred_url": "https://api.github.com/users/mzamini92/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mzamini92/subscriptions", "organizations_url": "https://api.github.com/users/mzamini92/orgs", "repos_url": "https://api.github.com/users/mzamini92/repos", "events_url": "https://api.github.com/users/mzamini92/events{/privacy}", "received_events_url": "https://api.github.com/users/mzamini92/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-07-11T13:40:10
2023-08-01T01:15:01
2023-08-01T01:15:01
CONTRIBUTOR
null
from my understanding, the `check_repeated_memory_variable` validator will raise an error if any of the variables in the `memories` list are repeated. However, the `load_memory_variables` method does not check for repeated variables. This means that it is possible for the `CombinedMemory` instance to return a dictionary of memory variables that contains duplicate values. This code will check for repeated variables in the `data` dictionary returned by the `load_memory_variables` method of each sub-memory. If a repeated variable is found, an error will be raised. <!-- 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: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - 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/7541/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7541/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7541", "html_url": "https://github.com/langchain-ai/langchain/pull/7541", "diff_url": "https://github.com/langchain-ai/langchain/pull/7541.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7541.patch", "merged_at": "2023-08-01T01:15:01" }
https://api.github.com/repos/langchain-ai/langchain/issues/7540
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7540/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7540/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7540/events
https://github.com/langchain-ai/langchain/pull/7540
1,798,915,469
PR_kwDOIPDwls5VM5PY
7,540
clarify about api key
{ "login": "benman1", "id": 10786684, "node_id": "MDQ6VXNlcjEwNzg2Njg0", "avatar_url": "https://avatars.githubusercontent.com/u/10786684?v=4", "gravatar_id": "", "url": "https://api.github.com/users/benman1", "html_url": "https://github.com/benman1", "followers_url": "https://api.github.com/users/benman1/followers", "following_url": "https://api.github.com/users/benman1/following{/other_user}", "gists_url": "https://api.github.com/users/benman1/gists{/gist_id}", "starred_url": "https://api.github.com/users/benman1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/benman1/subscriptions", "organizations_url": "https://api.github.com/users/benman1/orgs", "repos_url": "https://api.github.com/users/benman1/repos", "events_url": "https://api.github.com/users/benman1/events{/privacy}", "received_events_url": "https://api.github.com/users/benman1/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-07-11T13:12:24
2023-07-11T20:46:07
2023-07-11T20:46:07
CONTRIBUTOR
null
I found it unclear, where to get the API keys for JinaChat. Mentioning this in the docstring should be helpful. #7490 Twitter handle: benji1a @delgermurun
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7540/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/7540/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7540", "html_url": "https://github.com/langchain-ai/langchain/pull/7540", "diff_url": "https://github.com/langchain-ai/langchain/pull/7540.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7540.patch", "merged_at": "2023-07-11T20:46:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/7539
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7539/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7539/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7539/events
https://github.com/langchain-ai/langchain/issues/7539
1,798,902,303
I_kwDOIPDwls5rORIf
7,539
Importance of VectorStoreToolkit, vectorstore_agent and VectorStoreInfo in document based domain specific question answering
{ "login": "pradeepdev-1995", "id": 41164884, "node_id": "MDQ6VXNlcjQxMTY0ODg0", "avatar_url": "https://avatars.githubusercontent.com/u/41164884?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pradeepdev-1995", "html_url": "https://github.com/pradeepdev-1995", "followers_url": "https://api.github.com/users/pradeepdev-1995/followers", "following_url": "https://api.github.com/users/pradeepdev-1995/following{/other_user}", "gists_url": "https://api.github.com/users/pradeepdev-1995/gists{/gist_id}", "starred_url": "https://api.github.com/users/pradeepdev-1995/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pradeepdev-1995/subscriptions", "organizations_url": "https://api.github.com/users/pradeepdev-1995/orgs", "repos_url": "https://api.github.com/users/pradeepdev-1995/repos", "events_url": "https://api.github.com/users/pradeepdev-1995/events{/privacy}", "received_events_url": "https://api.github.com/users/pradeepdev-1995/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
6
2023-07-11T13:06:13
2023-10-23T16:07:02
2023-10-23T16:07:01
NONE
null
### Issue you'd like to raise. I am trying to query the documents using the below stack **Langchain+ embedding tool + vectore store + LLM model** There are many tools and techniques for this in langchain including **load_qa_chain, RetrievalQA,VectorstoreIndexCreator,ConversationalRetrievalChain**. Those are already giving the good results(Not optimal) But found one more technique including **VectorStoreInfo,VectorStoreToolkit and vectorstore_agent** What is the advantage/Importance of this pipeline which using **VectorStoreInfo,VectorStoreToolkit and vectorstore_agent** over the other which doesnt follow this pipeline(use any of **load_qa_chain, RetrievalQA,VectorstoreIndexCreator,ConversationalRetrievalChain**) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7539/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/7539/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7537
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7537/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7537/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7537/events
https://github.com/langchain-ai/langchain/pull/7537
1,798,821,814
PR_kwDOIPDwls5VMkm5
7,537
feat:add DBGPTRetriever
{ "login": "Aries-ckt", "id": 13723926, "node_id": "MDQ6VXNlcjEzNzIzOTI2", "avatar_url": "https://avatars.githubusercontent.com/u/13723926?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Aries-ckt", "html_url": "https://github.com/Aries-ckt", "followers_url": "https://api.github.com/users/Aries-ckt/followers", "following_url": "https://api.github.com/users/Aries-ckt/following{/other_user}", "gists_url": "https://api.github.com/users/Aries-ckt/gists{/gist_id}", "starred_url": "https://api.github.com/users/Aries-ckt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aries-ckt/subscriptions", "organizations_url": "https://api.github.com/users/Aries-ckt/orgs", "repos_url": "https://api.github.com/users/Aries-ckt/repos", "events_url": "https://api.github.com/users/Aries-ckt/events{/privacy}", "received_events_url": "https://api.github.com/users/Aries-ckt/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
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-07-11T12:23:55
2023-08-01T00:50:50
2023-08-01T00:50:50
NONE
null
- Description: 1.add DBGPTRetriever implement 2.update dbgpt.mdx and dbgpt.ipynb for how to use DBGPTRetriever. - Issue: None, - Dependencies: None, - Tag maintainer: @rlancemartin, @eyurtsev, have a look, thanks . ``` def _get_relevant_documents( self, query: str, *, run_manager: CallbackManagerForRetrieverRun ) -> List[Document]: """Get documents relevant for a query.""" try: from pilot import EmbeddingEngine except ImportError: raise ImportError( "You need to install `pip install db-gpt` to use this retriever." ) embedding_engine = EmbeddingEngine( model_name=self.embedding_model_path, vector_store_config=self.vector_store_config, ) docs = embedding_engine.similar_search(query, self.top_k) return docs ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7537/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7537/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7537", "html_url": "https://github.com/langchain-ai/langchain/pull/7537", "diff_url": "https://github.com/langchain-ai/langchain/pull/7537.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7537.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7536
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7536/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7536/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7536/events
https://github.com/langchain-ai/langchain/issues/7536
1,798,820,813
I_kwDOIPDwls5rN9PN
7,536
openai.error.InvalidRequestError: Resource not found
{ "login": "RajKKapadia", "id": 37063055, "node_id": "MDQ6VXNlcjM3MDYzMDU1", "avatar_url": "https://avatars.githubusercontent.com/u/37063055?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RajKKapadia", "html_url": "https://github.com/RajKKapadia", "followers_url": "https://api.github.com/users/RajKKapadia/followers", "following_url": "https://api.github.com/users/RajKKapadia/following{/other_user}", "gists_url": "https://api.github.com/users/RajKKapadia/gists{/gist_id}", "starred_url": "https://api.github.com/users/RajKKapadia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RajKKapadia/subscriptions", "organizations_url": "https://api.github.com/users/RajKKapadia/orgs", "repos_url": "https://api.github.com/users/RajKKapadia/repos", "events_url": "https://api.github.com/users/RajKKapadia/events{/privacy}", "received_events_url": "https://api.github.com/users/RajKKapadia/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-07-11T12:23:21
2023-10-17T16:05:04
2023-10-17T16:05:03
NONE
null
### System Info Python 3.9.12 Langchain 0.0.229 OS Linux Mint 21.1 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I am following this tutorial on structured output https://python.langchain.com/docs/modules/model_io/output_parsers/structured I am passing my openai API key from config, I have made sure that it is being passed as I can see the output of the `chat_model` instance... ```python from langchain.output_parsers import StructuredOutputParser, ResponseSchema from langchain.prompts import PromptTemplate, ChatPromptTemplate, HumanMessagePromptTemplate from langchain.chat_models import ChatOpenAI from config import config response_schemas = [ ResponseSchema(name="answer", description="answer to the user's question"), ResponseSchema(name="source", description="source used to answer the user's question, should be a website.") ] output_parser = StructuredOutputParser.from_response_schemas(response_schemas) format_instructions = output_parser.get_format_instructions() prompt = PromptTemplate( template="answer the users question as best as possible.\n{format_instructions}\n{question}", input_variables=["question"], partial_variables={"format_instructions": format_instructions} ) chat_model = ChatOpenAI(temperature=0, openai_api_key=config.OPENAI_API_KEY) print(chat_model) prompt = ChatPromptTemplate( messages=[ HumanMessagePromptTemplate.from_template("answer the users question as best as possible.\n{format_instructions}\n{question}") ], input_variables=["question"], partial_variables={"format_instructions": format_instructions} ) _input = prompt.format_prompt(question="what's the capital of france?") print(_input.to_messages()) output = chat_model(_input.to_messages()) print(output) print(output_parser.parse(output.content)) ``` ### Expected behavior The expected output of the code should be ```json {'answer': 'Paris', 'source': 'https://en.wikipedia.org/wiki/Paris'} ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7536/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/7536/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7535
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7535/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7535/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7535/events
https://github.com/langchain-ai/langchain/issues/7535
1,798,812,094
I_kwDOIPDwls5rN7G-
7,535
Support for sparse tables
{ "login": "saswat0", "id": 32325136, "node_id": "MDQ6VXNlcjMyMzI1MTM2", "avatar_url": "https://avatars.githubusercontent.com/u/32325136?v=4", "gravatar_id": "", "url": "https://api.github.com/users/saswat0", "html_url": "https://github.com/saswat0", "followers_url": "https://api.github.com/users/saswat0/followers", "following_url": "https://api.github.com/users/saswat0/following{/other_user}", "gists_url": "https://api.github.com/users/saswat0/gists{/gist_id}", "starred_url": "https://api.github.com/users/saswat0/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/saswat0/subscriptions", "organizations_url": "https://api.github.com/users/saswat0/orgs", "repos_url": "https://api.github.com/users/saswat0/repos", "events_url": "https://api.github.com/users/saswat0/events{/privacy}", "received_events_url": "https://api.github.com/users/saswat0/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-07-11T12:18:49
2023-10-17T16:05:09
2023-10-17T16:05:08
NONE
null
### Feature request The sql agent should query in a manner that it gets **unique** values as sample data (metadata) instead of all values. Only then will it be able to understand which columns to query from. Otherwise, it might get confused between similar-sounding column names (ex: age, age_group) ### Motivation Databases are typically very sparse (several columns are null). In such cases, the sql agent will perform poorly. The reason is it uses the InfoSQLDatabaseTool(sql_db_schema) to get all sample rows from the database. If the values are themselves null, then it doesn't get an accurate idea of what each column is supposed to contain. This would affect the query generation and the checking part too. ### Your contribution I'm not so sure as of now.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7535/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7535/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7534
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7534/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7534/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7534/events
https://github.com/langchain-ai/langchain/pull/7534
1,798,792,953
PR_kwDOIPDwls5VMeOw
7,534
[Minor] Remove tagger from spacy sentencizer
{ "login": "jona-sassenhagen", "id": 4321826, "node_id": "MDQ6VXNlcjQzMjE4MjY=", "avatar_url": "https://avatars.githubusercontent.com/u/4321826?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jona-sassenhagen", "html_url": "https://github.com/jona-sassenhagen", "followers_url": "https://api.github.com/users/jona-sassenhagen/followers", "following_url": "https://api.github.com/users/jona-sassenhagen/following{/other_user}", "gists_url": "https://api.github.com/users/jona-sassenhagen/gists{/gist_id}", "starred_url": "https://api.github.com/users/jona-sassenhagen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jona-sassenhagen/subscriptions", "organizations_url": "https://api.github.com/users/jona-sassenhagen/orgs", "repos_url": "https://api.github.com/users/jona-sassenhagen/repos", "events_url": "https://api.github.com/users/jona-sassenhagen/events{/privacy}", "received_events_url": "https://api.github.com/users/jona-sassenhagen/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-07-11T12:07:57
2023-07-11T21:18:31
2023-07-11T20:43:46
CONTRIBUTOR
null
@svlandeg gave me a tip for how to improve a bit on https://github.com/hwchase17/langchain/pull/7442 for some extra speed and memory gains. The tagger isn't needed for sentencization, so can be disabled too. @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7534/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7534/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7534", "html_url": "https://github.com/langchain-ai/langchain/pull/7534", "diff_url": "https://github.com/langchain-ai/langchain/pull/7534.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7534.patch", "merged_at": "2023-07-11T20:43:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/7533
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7533/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7533/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7533/events
https://github.com/langchain-ai/langchain/pull/7533
1,798,785,250
PR_kwDOIPDwls5VMci2
7,533
Fast load conversationsummarymemory from existing summary
{ "login": "ShantanuNair", "id": 8559347, "node_id": "MDQ6VXNlcjg1NTkzNDc=", "avatar_url": "https://avatars.githubusercontent.com/u/8559347?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ShantanuNair", "html_url": "https://github.com/ShantanuNair", "followers_url": "https://api.github.com/users/ShantanuNair/followers", "following_url": "https://api.github.com/users/ShantanuNair/following{/other_user}", "gists_url": "https://api.github.com/users/ShantanuNair/gists{/gist_id}", "starred_url": "https://api.github.com/users/ShantanuNair/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShantanuNair/subscriptions", "organizations_url": "https://api.github.com/users/ShantanuNair/orgs", "repos_url": "https://api.github.com/users/ShantanuNair/repos", "events_url": "https://api.github.com/users/ShantanuNair/events{/privacy}", "received_events_url": "https://api.github.com/users/ShantanuNair/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-07-11T12:03:53
2023-08-01T01:14:12
2023-08-01T01:14:12
CONTRIBUTOR
null
- Description: Adds an optional buffer arg to the memory's from_messages() method. If provided the existing memory will be loaded instead of regenerating a summary from the loaded messages. Why? If we have past messages to load from, it is likely we also have an existing summary. This is particularly helpful in cases where the chat is ephemeral and/or is backed by serverless where the chat history is not stored but where the updated chat history is passed back and forth between a backend/frontend. Eg: Take a stateless qa backend implementation that loads messages on every request and generates a response — without this addition, each time the messages are loaded via from_messages, the summaries are recomputed even though they may have just been computed during the previous response. With this, the previously computed summary can be passed in and avoid: 1) spending extra $$$ on tokens, and 2) increased response time by avoiding regenerating previously generated summary. Tag maintainer: @hwchase17 Twitter handle: https://twitter.com/ShantanuNair
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7533/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7533/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7533", "html_url": "https://github.com/langchain-ai/langchain/pull/7533", "diff_url": "https://github.com/langchain-ai/langchain/pull/7533.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7533.patch", "merged_at": "2023-08-01T01:14:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/7532
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7532/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7532/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7532/events
https://github.com/langchain-ai/langchain/issues/7532
1,798,735,631
I_kwDOIPDwls5rNocP
7,532
Generating answers from LLM's pretrianed knowledge base, instead of from the embedded document.
{ "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": 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
6
2023-07-11T11:35:56
2023-11-10T16:08:12
2023-11-10T16:08:11
NONE
null
### System Info langchain==0.0.219 python 3.9 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` import os import openai import pinecone from langchain.document_loaders import DirectoryLoader from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain.embeddings.openai import OpenAIEmbeddings from langchain.vectorstores import Pinecone from langchain.llms import OpenAI from langchain.chains.question_answering import load_qa_chain directory = '/content/data' def load_docs(directory): loader = DirectoryLoader(directory) documents = loader.load() return documents documents = load_docs(directory) def split_docs(documents, chunk_size=1000, chunk_overlap=20): text_splitter = RecursiveCharacterTextSplitter(chunk_size=chunk_size, chunk_overlap=chunk_overlap) docs = text_splitter.split_documents(documents) return docs docs = split_docs(documents) embeddings = OpenAIEmbeddings(model_name="ada") pinecone.init( api_key="pinecone api key", environment="env" ) index_name = "langchain-demo" index = Pinecone.from_documents(docs, embeddings, index_name=index_name) model_name = "gpt-4" llm = OpenAI(model_name=model_name) chain = load_qa_chain(llm, chain_type="stuff") def get_similiar_docs(query, k=2, score=False): if score: similar_docs = index.similarity_search_with_score(query, k=k) else: similar_docs = index.similarity_search(query, k=k) return similar_docs def get_answer(query): similar_docs = get_similiar_docs(query) answer = chain.run(input_documents=similar_docs, question=query) return answer ``` In the above code, If I ask any question it is answered from an outer world other than the document corpus. ### Expected behavior If I am asked any domain-specific query, it should answer based on the embedded document corpus only. I am not expecting any outer-domain answer. If the query is not related to the embedded document store, then it shouldn't answer anything, instead of searching and generating the answer from its own base pretrained knowledge.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7532/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7532/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7531
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7531/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7531/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7531/events
https://github.com/langchain-ai/langchain/issues/7531
1,798,725,077
I_kwDOIPDwls5rNl3V
7,531
Issue: ConfluenceLoader 403 Forbidden Failed to parse Connect Session Auth Token
{ "login": "ydsgroup", "id": 6151918, "node_id": "MDQ6VXNlcjYxNTE5MTg=", "avatar_url": "https://avatars.githubusercontent.com/u/6151918?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ydsgroup", "html_url": "https://github.com/ydsgroup", "followers_url": "https://api.github.com/users/ydsgroup/followers", "following_url": "https://api.github.com/users/ydsgroup/following{/other_user}", "gists_url": "https://api.github.com/users/ydsgroup/gists{/gist_id}", "starred_url": "https://api.github.com/users/ydsgroup/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ydsgroup/subscriptions", "organizations_url": "https://api.github.com/users/ydsgroup/orgs", "repos_url": "https://api.github.com/users/ydsgroup/repos", "events_url": "https://api.github.com/users/ydsgroup/events{/privacy}", "received_events_url": "https://api.github.com/users/ydsgroup/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
3
2023-07-11T11:29:58
2023-07-12T06:21:31
2023-07-12T06:20:55
NONE
null
### Issue you'd like to raise. I am trying to integrate confluence for open ai embedding and vector store using in memory doc-array. I am sure this must not be issue Langchain but thought of posting here . Any pointer would really appreciated. I created one free trial version account with atlassian.com and trying one POC with confluence pages. from langchain.document_loaders import ConfluenceLoader . loader = ConfluenceLoader(url="https://yogeshdeshmukh.atlassian.net/wiki", token="XXXX") documentLoaders = documentLoaders + loader.load(space_key="YYYY", include_attachments=False, limit=10) As per logs it calls [https://yogeshdeshmukh.atlassian.net:443](https://yogeshdeshmukh.atlassian.net/) "GET /wiki/rest/api/content?spaceKey=~YYYY&limit=10&status=current&expand=body.storage&type=page HTTP/1.1" 403 None DEBUG:atlassian.rest_client:HTTP: GET rest/api/content -> 403 Forbidden DEBUG:atlassian.rest_client:HTTP: Response text -> {"error": "Failed to parse Connect Session Auth Token"} ERROR:atlassian.confluence:'message' Traceback (most recent call last): File "/Users/ydeshmukh/Library/Python/3.9/lib/python/site-packages/atlassian/confluence.py", line 3122, in raise_for_status error_msg = j["message"] Any idea do i need to provide some additional parameters . I tried with password but was failing later came to know password base basic auth deprecated hence register for token but that also failing . ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7531/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/7531/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7530
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7530/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7530/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7530/events
https://github.com/langchain-ai/langchain/pull/7530
1,798,722,883
PR_kwDOIPDwls5VMOuL
7,530
Reuse the existing collection if configured properly in Qdrant.from_texts
{ "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 }
[ { "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
2
2023-07-11T11:28:34
2023-07-12T08:22:19
2023-07-11T20:24:36
CONTRIBUTOR
null
This PR changes the behavior of `Qdrant.from_texts` so the collection is reused if not requested to recreate it. Previously, calling `Qdrant.from_texts` or `Qdrant.from_documents` resulted in removing the old data which was confusing for many. @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7530/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7530/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7530", "html_url": "https://github.com/langchain-ai/langchain/pull/7530", "diff_url": "https://github.com/langchain-ai/langchain/pull/7530.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7530.patch", "merged_at": "2023-07-11T20:24:36" }
https://api.github.com/repos/langchain-ai/langchain/issues/7529
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7529/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7529/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7529/events
https://github.com/langchain-ai/langchain/issues/7529
1,798,689,044
I_kwDOIPDwls5rNdEU
7,529
$contain is not a valid operator in SelfQueryRetrieval
{ "login": "levalencia", "id": 6962857, "node_id": "MDQ6VXNlcjY5NjI4NTc=", "avatar_url": "https://avatars.githubusercontent.com/u/6962857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/levalencia", "html_url": "https://github.com/levalencia", "followers_url": "https://api.github.com/users/levalencia/followers", "following_url": "https://api.github.com/users/levalencia/following{/other_user}", "gists_url": "https://api.github.com/users/levalencia/gists{/gist_id}", "starred_url": "https://api.github.com/users/levalencia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/levalencia/subscriptions", "organizations_url": "https://api.github.com/users/levalencia/orgs", "repos_url": "https://api.github.com/users/levalencia/repos", "events_url": "https://api.github.com/users/levalencia/events{/privacy}", "received_events_url": "https://api.github.com/users/levalencia/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
4
2023-07-11T11:07:41
2023-10-23T17:24:37
2023-10-17T16:05:13
CONTRIBUTOR
null
### System Info 0.0.228 ### 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 - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Code to reproduce: ``` embeddings = OpenAIEmbeddings(deployment=OPENAI_EMBEDDING_DEPLOYMENT_NAME, model=OPENAI_EMBEDDING_MODEL_NAME, chunk_size=1) # create new index #pinecone.create_index("langchain-self-retriever-demo", dimension=1536) vectorstore = Pinecone.from_existing_index(index_name="cubigo", embedding=embeddings, namespace="vwProfilesMetadata") metadata_field_info = [ AttributeInfo( name="FirstName", description="The first name of the resident", type="string", ), AttributeInfo( name="LastName", description="The last name of the resident", type="string", ), AttributeInfo( name="Gender", description="The gender of the resident", type="string", ), AttributeInfo( name="Birthdate", description="The birthdate of the resident or the date the resident was born", type="Date" ), AttributeInfo( name="Birthplace", description="The birthplace of the resident or the place the resident was born", type="string" ), AttributeInfo( name="Hometown", description="The town or city where the resident grew up", type="string" ) ] document_content_description = "The content of the document describes " \ "a resident of the facility, each document is a resident and it " \ "has all the information about the resident like FirstName," \ "LastName, RoleName, Gender, PhoneNumber, CellPhoneNumber, Address, " \ "Birthdate, Birthplace, Hometown, Education, CollegeName, PastOccupations, " \ "Veteran, NameOfSpouse, ReligiousPreferences, SpokenLanguages, " \ "ActiveLiveDescription, RetiredLiveDescription, Accomplishments, AnniversaryDate, " \ "YourTypicalDay, TalentsAndHobbies, InterestCategories, OtherInterestCategories," \ "FavoriteActor, FavoriteActress, FavoriteAnimal, FavoriteArtist, FavoriteAuthor, " \ "FavoriteBandMusicalArtist, FavoriteBook, FavoriteClimate, FavoriteColor, FavoriteCuisine, " \ "FavoriteDance, FavoriteDessert, FavoriteDrink, FavoriteFood, FavoriteFruit, FavoriteFutureTravelDestination, " \ "FavoriteGame, FavoriteMovie, FavoritePastTravelDestination, FavoriteSeasonOfTheYear, FavoriteSong, FavoriteSport, " \ "FavoriteSportsTeam, FavoriteTvShow, FavoriteVegetable" user_input = get_text() llm = AzureChatOpenAI( openai_api_base=OPENAI_DEPLOYMENT_ENDPOINT, openai_api_version=OPENAI_API_VERSION , deployment_name=OPENAI_DEPLOYMENT_NAME, openai_api_key=OPENAI_API_KEY, openai_api_type = OPENAI_API_TYPE , model_name=OPENAI_MODEL_NAME, temperature=0) retriever = SelfQueryRetriever.from_llm( llm, vectorstore, document_content_description, metadata_field_info, verbose=True, enable_limit=True ) #response = retriever.get_relevant_documents(user_input) chain = RetrievalQAWithSourcesChain.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever, return_source_documents=True) if user_input: response = chain({"question": user_input}) ``` ``` Exception: ` ApiException: (400) Reason: Bad Request HTTP response headers: HTTPHeaderDict({'content-type': 'application/json', 'date': 'Tue, 11 Jul 2023 11:04:33 GMT', 'x-envoy-upstream-service-time': '0', 'content-length': '68', 'server': 'envoy'}) HTTP response body: {"code":3,"message":"$contain is not a valid operator","details":[] ```}` Question I am asking: Who is interested in baking? if I ask: Who likes baking? Then no errors ### Expected behavior Should get a clear response or no answer.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7529/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/7529/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7528
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7528/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7528/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7528/events
https://github.com/langchain-ai/langchain/issues/7528
1,798,675,621
I_kwDOIPDwls5rNZyl
7,528
Using Open source LLM models in SQL Chain
{ "login": "kb-shiva", "id": 139226282, "node_id": "U_kgDOCExsqg", "avatar_url": "https://avatars.githubusercontent.com/u/139226282?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kb-shiva", "html_url": "https://github.com/kb-shiva", "followers_url": "https://api.github.com/users/kb-shiva/followers", "following_url": "https://api.github.com/users/kb-shiva/following{/other_user}", "gists_url": "https://api.github.com/users/kb-shiva/gists{/gist_id}", "starred_url": "https://api.github.com/users/kb-shiva/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kb-shiva/subscriptions", "organizations_url": "https://api.github.com/users/kb-shiva/orgs", "repos_url": "https://api.github.com/users/kb-shiva/repos", "events_url": "https://api.github.com/users/kb-shiva/events{/privacy}", "received_events_url": "https://api.github.com/users/kb-shiva/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
7
2023-07-11T10:59:28
2023-11-17T10:14:08
null
NONE
null
### Using Open source LLM models in SQL Chain Is it possible to use open source LLM models in SQL chain ? I have tried using tapex/Flan models in SQL Chain, but getting a serialization error on dict[] classes. Error: ``` File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__ pydantic.error_wrappers.ValidationError: 1 validation error for SQLDatabaseChain __root__ -> llm **_value is not a valid dict (type=type_error.dict)_** ``` Are there any samples/snippets are available for using open source LLM models in SQL Chain ? Sample code snippet I tried that is throwing the error: ``` tokenizer = TapexTokenizer.from_pretrained("microsoft/tapex-base-finetuned-wtq") model = BartForConditionalGeneration.from_pretrained("microsoft/tapex-base-finetuned-wtq") chain = SQLDatabaseChain(llm=model, database=db, verbose=True) chain.run("context query ?") ``` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7528/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7528/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7527
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7527/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7527/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7527/events
https://github.com/langchain-ai/langchain/issues/7527
1,798,612,838
I_kwDOIPDwls5rNKdm
7,527
SelfQueryRetriever, Add option to return all when user asks
{ "login": "levalencia", "id": 6962857, "node_id": "MDQ6VXNlcjY5NjI4NTc=", "avatar_url": "https://avatars.githubusercontent.com/u/6962857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/levalencia", "html_url": "https://github.com/levalencia", "followers_url": "https://api.github.com/users/levalencia/followers", "following_url": "https://api.github.com/users/levalencia/following{/other_user}", "gists_url": "https://api.github.com/users/levalencia/gists{/gist_id}", "starred_url": "https://api.github.com/users/levalencia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/levalencia/subscriptions", "organizations_url": "https://api.github.com/users/levalencia/orgs", "repos_url": "https://api.github.com/users/levalencia/repos", "events_url": "https://api.github.com/users/levalencia/events{/privacy}", "received_events_url": "https://api.github.com/users/levalencia/received_events", "type": "User", "site_admin": false }
[ { "id": 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-07-11T10:21:55
2023-11-20T16:06:02
2023-11-20T16:06:01
CONTRIBUTOR
null
### Feature request I tested the enable_limit to True and asking thins like 1. Get 3 residents who were born in xxx 2. Get 5 Residens who were bon in xxx It works pretty well. However in my use case, users can ask also: List all the residents who were born in xxx. When questions like this are done, by default it will return only 4 documents and not all. ![image](https://github.com/hwchase17/langchain/assets/6962857/aaeec974-56d3-47c4-90eb-9bde4782cb22) ### Motivation My use case requires sometimes to list all documents that match the criteria, not only 4. ### Your contribution I am a beginner in langchain (only used it for 2 months), so not sure where in the code this can be fixed, but with the proper guidance I should be able to contribute (if somebody is willing to guide me)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7527/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7527/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7526
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7526/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7526/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7526/events
https://github.com/langchain-ai/langchain/issues/7526
1,798,503,336
I_kwDOIPDwls5rMvuo
7,526
RetrievalQAWithSourcesChain acall does not write fromatted prompt to terminal if verbose=True
{ "login": "jlootensdataroots", "id": 128462763, "node_id": "U_kgDOB6gvqw", "avatar_url": "https://avatars.githubusercontent.com/u/128462763?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jlootensdataroots", "html_url": "https://github.com/jlootensdataroots", "followers_url": "https://api.github.com/users/jlootensdataroots/followers", "following_url": "https://api.github.com/users/jlootensdataroots/following{/other_user}", "gists_url": "https://api.github.com/users/jlootensdataroots/gists{/gist_id}", "starred_url": "https://api.github.com/users/jlootensdataroots/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jlootensdataroots/subscriptions", "organizations_url": "https://api.github.com/users/jlootensdataroots/orgs", "repos_url": "https://api.github.com/users/jlootensdataroots/repos", "events_url": "https://api.github.com/users/jlootensdataroots/events{/privacy}", "received_events_url": "https://api.github.com/users/jlootensdataroots/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-07-11T09:22:43
2023-07-11T11:21:36
2023-07-11T11:06:40
NONE
null
### System Info python==3.10 langchain==0.0.169 ### Who can help? @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [X] Async ### Reproduction Steps to reproduce: 1. Open the [example notebook](https://colab.research.google.com/drive/1ut3LVSSxsN_C52Pn1ceqWdHjSzhxuZol?usp=sharing) 2. Replace ```insert API key here```with your API key 3. Run all cells ### Expected behavior Asynchronously calling the RetrievalQAWithSourcesChain with ```chain_type_kwargs = {"prompt": prompt, "verbose": True}``` should result in the same terminal output as the synchronous version instead of skipping "Prompt after formatting: ..." ```result = chain(query)``` output: ``` > Entering new StuffDocumentsChain chain... > Entering new LLMChain chain... Prompt after formatting: PROMPT_AFTER_FORMATTING > Finished chain. > Finished chain. ``` Wrong ```result = await chain.acall(query)``` output: ``` > Entering new StuffDocumentsChain chain... > Entering new LLMChain chain... > Finished chain. > Finished chain. ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7526/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7526/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7525
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7525/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7525/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7525/events
https://github.com/langchain-ai/langchain/pull/7525
1,798,476,485
PR_kwDOIPDwls5VLYUn
7,525
fix: openapi controller prompt, when bot is unable to resolve an api …
{ "login": "ydh926", "id": 43948155, "node_id": "MDQ6VXNlcjQzOTQ4MTU1", "avatar_url": "https://avatars.githubusercontent.com/u/43948155?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ydh926", "html_url": "https://github.com/ydh926", "followers_url": "https://api.github.com/users/ydh926/followers", "following_url": "https://api.github.com/users/ydh926/following{/other_user}", "gists_url": "https://api.github.com/users/ydh926/gists{/gist_id}", "starred_url": "https://api.github.com/users/ydh926/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ydh926/subscriptions", "organizations_url": "https://api.github.com/users/ydh926/orgs", "repos_url": "https://api.github.com/users/ydh926/repos", "events_url": "https://api.github.com/users/ydh926/events{/privacy}", "received_events_url": "https://api.github.com/users/ydh926/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-07-11T09:08:48
2023-08-01T00:56:44
2023-08-01T00:56:44
CONTRIBUTOR
null
…call, it needs retry <!-- 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: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - 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/7525/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7525/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7525", "html_url": "https://github.com/langchain-ai/langchain/pull/7525", "diff_url": "https://github.com/langchain-ai/langchain/pull/7525.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7525.patch", "merged_at": "2023-08-01T00:56:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/7524
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7524/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7524/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7524/events
https://github.com/langchain-ai/langchain/issues/7524
1,798,403,821
I_kwDOIPDwls5rMXbt
7,524
Specific name of the current chain is not displayed
{ "login": "AI-Chef", "id": 125665099, "node_id": "U_kgDOB31_Sw", "avatar_url": "https://avatars.githubusercontent.com/u/125665099?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AI-Chef", "html_url": "https://github.com/AI-Chef", "followers_url": "https://api.github.com/users/AI-Chef/followers", "following_url": "https://api.github.com/users/AI-Chef/following{/other_user}", "gists_url": "https://api.github.com/users/AI-Chef/gists{/gist_id}", "starred_url": "https://api.github.com/users/AI-Chef/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AI-Chef/subscriptions", "organizations_url": "https://api.github.com/users/AI-Chef/orgs", "repos_url": "https://api.github.com/users/AI-Chef/repos", "events_url": "https://api.github.com/users/AI-Chef/events{/privacy}", "received_events_url": "https://api.github.com/users/AI-Chef/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
5
2023-07-11T08:28:40
2023-07-14T00:14:47
2023-07-14T00:14:47
CONTRIBUTOR
null
### System Info LangChain v0.0.229, Python v3.10.12, Ubuntu 20.04.2 LTS ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [X] Callbacks/Tracing - [ ] Async ### Reproduction I am encountering an issue where the specific name of the current chain is not being displayed in the console output, even though I have set 'verbose=True' in the MultiPromptChain and other Chains. When the program enters a new chain, it only prints 'Entering new chain...' without specifying the name of the chain. This makes it difficult to debug and understand which chain is currently being used. Could you please look into this issue and provide a way to display the name of the current chain in the console output? Thank you. The output could be ``` > Entering new chain... > Entering new chain... lib/python3.10/site-packages/langchain/chains/llm.py:275: UserWarning: The predict_and_parse method is deprecated, instead pass an output parser directly to LLMChain. warnings.warn( > Finished chain. math: {'input': 'What is the derivative of a function?'} > Entering new chain... Prompt after formatting: You are a very good mathematician. You are great at answering math questions. \nYou are so good because you are able to break down hard problems into their component parts, \nanswer the component parts, and then put them together to answer the broader question. Here is a question: What is the derivative of a function? > Finished chain. > Finished chain. ``` ### Expected behavior ``` > Entering new MultiPromptChain chain... > Entering new LLMRouterChain chain... lib/python3.10/site-packages/langchain/chains/llm.py:275: UserWarning: The predict_and_parse method is deprecated, instead pass an output parser directly to LLMChain. warnings.warn( > Finished chain. math: {'input': 'What is the derivative of a function?'} > Entering new LLMChain[math] chain... Prompt after formatting: You are a very good mathematician. You are great at answering math questions. \nYou are so good because you are able to break down hard problems into their component parts, \nanswer the component parts, and then put them together to answer the broader question. Here is a question: What is the derivative of a function? > Finished chain. > Finished chain. ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7524/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7524/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7523
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7523/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7523/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7523/events
https://github.com/langchain-ai/langchain/issues/7523
1,798,387,965
I_kwDOIPDwls5rMTj9
7,523
AttributeError: 'str' object has no attribute 'upsert' in Pinecone Hybrid Search
{ "login": "levalencia", "id": 6962857, "node_id": "MDQ6VXNlcjY5NjI4NTc=", "avatar_url": "https://avatars.githubusercontent.com/u/6962857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/levalencia", "html_url": "https://github.com/levalencia", "followers_url": "https://api.github.com/users/levalencia/followers", "following_url": "https://api.github.com/users/levalencia/following{/other_user}", "gists_url": "https://api.github.com/users/levalencia/gists{/gist_id}", "starred_url": "https://api.github.com/users/levalencia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/levalencia/subscriptions", "organizations_url": "https://api.github.com/users/levalencia/orgs", "repos_url": "https://api.github.com/users/levalencia/repos", "events_url": "https://api.github.com/users/levalencia/events{/privacy}", "received_events_url": "https://api.github.com/users/levalencia/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-07-11T08:19:47
2023-10-18T16:06:03
2023-10-18T16:06:02
CONTRIBUTOR
null
### System Info 0.0.228 ### Who can help? @lbsnrs ### 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 Following tutorial here: https://python.langchain.com/docs/modules/data_connection/retrievers/integrations/pinecone_hybrid_search ``` bm25_encoder = BM25Encoder().default() embed = OpenAIEmbeddings(deployment=OPENAI_EMBEDDING_DEPLOYMENT_NAME, model=OPENAI_EMBEDDING_MODEL_NAME, chunk_size=1) retriever = PineconeHybridSearchRetriever( embeddings=embed, sparse_encoder=bm25_encoder, index="cubigometadatanotindexed" ) retriever.add_texts(["foo", "bar", "FirstName0003384 is a guy", "FirstName0003381 is a girl"]) result = retriever.get_relevant_documents("Who is FirstName0003381?") ``` I get this error: ``` AttributeError: 'str' object has no attribute 'upsert' Traceback: File "C:\Users\xx\anaconda3\envs\xxChatbotv3\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script exec(code, module.__dict__) File "C:\Users\xx\repos\xxChatbotv1\app\pages\Pinecone Hybrid Search.py", line 116, in <module> main() File "C:\Users\xx\repos\xxChatbotv1\app\pages\Pinecone Hybrid Search.py", line 112, in main retriever.add_texts(["foo", "bar", "FirstName0003384 is a guy", "hello"]) File "C:\Users\xx\anaconda3\envs\zzChatbotv3\Lib\site-packages\langchain\retrievers\pinecone_hybrid_search.py", line 121, in add_texts create_index( File "C:\Users\xx\anaconda3\envs\zzChatbotv3\Lib\site-packages\langchain\retrievers\pinecone_hybrid_search.py", line 98, in create_index index.upsert(vectors) ^^^^^^^^^^^^ ``` ### Expected behavior The texts should be added to the index without error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7523/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/7523/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7522
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7522/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7522/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7522/events
https://github.com/langchain-ai/langchain/issues/7522
1,798,351,804
I_kwDOIPDwls5rMKu8
7,522
TypeError: issubclass() arg 1 must be a class
{ "login": "ZhuJD-China", "id": 50070803, "node_id": "MDQ6VXNlcjUwMDcwODAz", "avatar_url": "https://avatars.githubusercontent.com/u/50070803?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZhuJD-China", "html_url": "https://github.com/ZhuJD-China", "followers_url": "https://api.github.com/users/ZhuJD-China/followers", "following_url": "https://api.github.com/users/ZhuJD-China/following{/other_user}", "gists_url": "https://api.github.com/users/ZhuJD-China/gists{/gist_id}", "starred_url": "https://api.github.com/users/ZhuJD-China/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ZhuJD-China/subscriptions", "organizations_url": "https://api.github.com/users/ZhuJD-China/orgs", "repos_url": "https://api.github.com/users/ZhuJD-China/repos", "events_url": "https://api.github.com/users/ZhuJD-China/events{/privacy}", "received_events_url": "https://api.github.com/users/ZhuJD-China/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
21
2023-07-11T07:59:09
2023-10-18T16:06:08
2023-10-18T16:06:07
NONE
null
### Issue you'd like to raise. Traceback (most recent call last): File "D:\EmbeddingsSearch\llm-python\02b_llama_chroma.py", line 2, in <module> from llama_index import SimpleDirectoryReader, StorageContext, GPTVectorStoreIndex File "F:\Anaconda\lib\site-packages\llama_index\__init__.py", line 15, in <module> from llama_index.embeddings.langchain import LangchainEmbedding File "F:\Anaconda\lib\site-packages\llama_index\embeddings\__init__.py", line 4, in <module> from llama_index.embeddings.langchain import LangchainEmbedding File "F:\Anaconda\lib\site-packages\llama_index\embeddings\langchain.py", line 6, in <module> from langchain.embeddings.base import Embeddings as LCEmbeddings File "C:\Users\Leaper\AppData\Roaming\Python\Python310\site-packages\langchain\__init__.py", line 6, in <module> from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain File "C:\Users\Leaper\AppData\Roaming\Python\Python310\site-packages\langchain\agents\__init__.py", line 2, in <module> from langchain.agents.agent import ( File "C:\Users\Leaper\AppData\Roaming\Python\Python310\site-packages\langchain\agents\agent.py", line 16, in <module> from langchain.agents.tools import InvalidTool File "C:\Users\Leaper\AppData\Roaming\Python\Python310\site-packages\langchain\agents\tools.py", line 8, in <module> from langchain.tools.base import BaseTool, Tool, tool File "C:\Users\Leaper\AppData\Roaming\Python\Python310\site-packages\langchain\tools\__init__.py", line 3, in <module> from langchain.tools.arxiv.tool import ArxivQueryRun File "C:\Users\Leaper\AppData\Roaming\Python\Python310\site-packages\langchain\tools\arxiv\tool.py", line 12, in <module> from langchain.utilities.arxiv import ArxivAPIWrapper File "C:\Users\Leaper\AppData\Roaming\Python\Python310\site-packages\langchain\utilities\__init__.py", line 3, in <module> from langchain.utilities.apify import ApifyWrapper File "C:\Users\Leaper\AppData\Roaming\Python\Python310\site-packages\langchain\utilities\apify.py", line 5, in <module> from langchain.document_loaders import ApifyDatasetLoader File "C:\Users\Leaper\AppData\Roaming\Python\Python310\site-packages\langchain\document_loaders\__init__.py", line 44, in <module> from langchain.document_loaders.embaas import EmbaasBlobLoader, EmbaasLoader File "C:\Users\Leaper\AppData\Roaming\Python\Python310\site-packages\langchain\document_loaders\embaas.py", line 54, in <module> class BaseEmbaasLoader(BaseModel): File "pydantic\main.py", line 204, in pydantic.main.ModelMetaclass.__new__ File "pydantic\fields.py", line 488, in pydantic.fields.ModelField.infer File "pydantic\fields.py", line 419, in pydantic.fields.ModelField.__init__ File "pydantic\fields.py", line 539, in pydantic.fields.ModelField.prepare File "pydantic\fields.py", line 801, in pydantic.fields.ModelField.populate_validators File "pydantic\validators.py", line 696, in find_validators File "pydantic\validators.py", line 585, in pydantic.validators.make_typeddict_validator File "pydantic\annotated_types.py", line 35, in pydantic.annotated_types.create_model_from_typeddict File "pydantic\main.py", line 972, in pydantic.main.create_model File "pydantic\main.py", line 204, in pydantic.main.ModelMetaclass.__new__ File "pydantic\fields.py", line 488, in pydantic.fields.ModelField.infer File "pydantic\fields.py", line 419, in pydantic.fields.ModelField.__init__ File "pydantic\fields.py", line 534, in pydantic.fields.ModelField.prepare File "pydantic\fields.py", line 638, in pydantic.fields.ModelField._type_analysis File "F:\Anaconda\lib\typing.py", line 1158, in __subclasscheck__ return issubclass(cls, self.__origin__) TypeError: issubclass() arg 1 must be a class Process finished with exit code 1 ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7522/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7522/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7521
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7521/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7521/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7521/events
https://github.com/langchain-ai/langchain/pull/7521
1,798,297,796
PR_kwDOIPDwls5VKxVY
7,521
Adds OpenAI functions powered document metadata tagger
{ "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": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
3
2023-07-11T07:27:37
2023-07-13T05:12:42
2023-07-13T05:12:42
CONTRIBUTOR
null
Adds a new document transformer that automatically extracts metadata for a document based on an input schema. I also moved `document_transformers.py` to `document_transformers/__init__.py` to group it with this new transformer - it didn't seem to cause issues in the notebook, but let me know if I've done something wrong there. Also had a linter issue I couldn't figure out: ``` MacBook-Pro:langchain jacoblee$ make lint poetry run mypy . docs/dist/conf.py: error: Duplicate module named "conf" (also at "./docs/api_reference/conf.py") docs/dist/conf.py: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules for more info docs/dist/conf.py: note: Common resolutions include: a) using `--exclude` to avoid checking one of them, b) adding `__init__.py` somewhere, c) using `--explicit-package-bases` or adjusting MYPYPATH Found 1 error in 1 file (errors prevented further checking) make: *** [lint] Error 2 ``` @rlancemartin @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7521/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7521/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7521", "html_url": "https://github.com/langchain-ai/langchain/pull/7521", "diff_url": "https://github.com/langchain-ai/langchain/pull/7521.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7521.patch", "merged_at": "2023-07-13T05:12:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/7520
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7520/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7520/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7520/events
https://github.com/langchain-ai/langchain/pull/7520
1,798,247,106
PR_kwDOIPDwls5VKmVs
7,520
Lost in the middle: We have been ordering documents the WRONG way. (for long context)
{ "login": "GMartin-dev", "id": 1821407, "node_id": "MDQ6VXNlcjE4MjE0MDc=", "avatar_url": "https://avatars.githubusercontent.com/u/1821407?v=4", "gravatar_id": "", "url": "https://api.github.com/users/GMartin-dev", "html_url": "https://github.com/GMartin-dev", "followers_url": "https://api.github.com/users/GMartin-dev/followers", "following_url": "https://api.github.com/users/GMartin-dev/following{/other_user}", "gists_url": "https://api.github.com/users/GMartin-dev/gists{/gist_id}", "starred_url": "https://api.github.com/users/GMartin-dev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GMartin-dev/subscriptions", "organizations_url": "https://api.github.com/users/GMartin-dev/orgs", "repos_url": "https://api.github.com/users/GMartin-dev/repos", "events_url": "https://api.github.com/users/GMartin-dev/events{/privacy}", "received_events_url": "https://api.github.com/users/GMartin-dev/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
{ "login": "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-07-11T06:59:05
2023-07-18T14:45:16
2023-07-18T14:45:16
CONTRIBUTOR
null
Motivation, it seems that when dealing with a long context and "big" number of relevant documents we must avoid using out of the box score ordering from vector stores. See: https://arxiv.org/pdf/2306.01150.pdf So, I added an additional parameter that allows you to reorder the retrieved documents so we can work around this performance degradation. The relevance respect the original search score but accommodates the lest relevant document in the middle of the context. Extract from the paper (one image speaks 1000 tokens): ![image](https://github.com/hwchase17/langchain/assets/1821407/fafe4843-6e18-4fa6-9416-50cc1d32e811) This seems to be common to all diff arquitectures. SO I think we need a good generic way to implement this reordering and run some test in our already running retrievers. It could be that my approach is not the best one from the architecture point of view, happy to have a discussion about that. For me this was the best place to introduce the change and start retesting diff implementations. @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7520/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/7520/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7520", "html_url": "https://github.com/langchain-ai/langchain/pull/7520", "diff_url": "https://github.com/langchain-ai/langchain/pull/7520.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7520.patch", "merged_at": "2023-07-18T14:45:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/7519
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7519/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7519/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7519/events
https://github.com/langchain-ai/langchain/issues/7519
1,798,231,461
I_kwDOIPDwls5rLtWl
7,519
Hybrid search indexing how to
{ "login": "levalencia", "id": 6962857, "node_id": "MDQ6VXNlcjY5NjI4NTc=", "avatar_url": "https://avatars.githubusercontent.com/u/6962857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/levalencia", "html_url": "https://github.com/levalencia", "followers_url": "https://api.github.com/users/levalencia/followers", "following_url": "https://api.github.com/users/levalencia/following{/other_user}", "gists_url": "https://api.github.com/users/levalencia/gists{/gist_id}", "starred_url": "https://api.github.com/users/levalencia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/levalencia/subscriptions", "organizations_url": "https://api.github.com/users/levalencia/orgs", "repos_url": "https://api.github.com/users/levalencia/repos", "events_url": "https://api.github.com/users/levalencia/events{/privacy}", "received_events_url": "https://api.github.com/users/levalencia/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
3
2023-07-11T06:48:37
2023-10-28T16:05:35
2023-10-28T16:05:34
CONTRIBUTOR
null
### Issue with current documentation: https://python.langchain.com/docs/modules/data_connection/retrievers/integrations/pinecone_hybrid_search ### Idea or request for content: Its not clear on this page how to index data in pinecone for hybrid search, I am already indexing like this and it works, but for sparse values and the bm25encoder this is very confusing. ``` df = loadSqlData() df.to_csv('profiles.csv', index=False) # Iterate through DataFrame rows # Time Complexity: O(n), where n is the number of rows in the DataFrame for _, record in df.iterrows(): start_time = time.time() # Get metadata for this record # Time Complexity: O(1) metadata = { 'IdentityId': str(record['IdentityId']) } st.write(f'Time taken for metadata extraction: {time.time() - start_time} seconds') start_time = time.time() # Split record text into chunks # Time Complexity: O(m), where m is the size of the text record_texts = text_splitter.split_text(record['content']) st.write(f'Time taken for text splitting: {time.time() - start_time} seconds') start_time = time.time() # Create metadata for each chunk # Time Complexity: O(k), where k is the number of chunks in the text record_metadatas = [{ "chunk": j, "text": text, **metadata } for j, text in enumerate(record_texts)] st.write(f'Time taken for metadata dictionary creation: {time.time() - start_time} seconds') start_time = time.time() # Append chunks and metadata to current batches # Time Complexity: O(1) texts.extend(record_texts) metadatas.extend(record_metadatas) st.write(f'Time taken for data appending: {time.time() - start_time} seconds') # If batch_limit is reached, upsert vectors # Time Complexity: Depends on the upsert implementation if len(texts) >= batch_limit: start_time = time.time() ids = [str(uuid4()) for _ in range(len(texts))] # Simulating embedding and upserting here Pinecone.from_texts( texts, embed, index_name="xx", metadatas=metadatas, namespace="vwProfiles2") texts = [] metadatas = [] st.write(f'Time taken for vector upsertion (simulated): {time.time() - start_time} seconds') # Upsert any remaining vectors after the loop # Time Complexity: Depends on the upsert implementation if len(texts) > 0: start_time = time.time() ids = [str(uuid4()) for _ in range(len(texts))] # Simulating embedding and upserting here Pinecone.from_texts( texts, embed, index_name="x", metadatas=metadatas, namespace="vwProfiles2") st.write(f'Time taken for remaining vector upsertion (simulated): {time.time() - start_time} seconds') st.write('Rows indexed: ', len(df)) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7519/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7519/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7518
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7518/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7518/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7518/events
https://github.com/langchain-ai/langchain/issues/7518
1,798,199,037
I_kwDOIPDwls5rLlb9
7,518
AttributeError: 'tuple' object has no attribute 'page_content'
{ "login": "levalencia", "id": 6962857, "node_id": "MDQ6VXNlcjY5NjI4NTc=", "avatar_url": "https://avatars.githubusercontent.com/u/6962857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/levalencia", "html_url": "https://github.com/levalencia", "followers_url": "https://api.github.com/users/levalencia/followers", "following_url": "https://api.github.com/users/levalencia/following{/other_user}", "gists_url": "https://api.github.com/users/levalencia/gists{/gist_id}", "starred_url": "https://api.github.com/users/levalencia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/levalencia/subscriptions", "organizations_url": "https://api.github.com/users/levalencia/orgs", "repos_url": "https://api.github.com/users/levalencia/repos", "events_url": "https://api.github.com/users/levalencia/events{/privacy}", "received_events_url": "https://api.github.com/users/levalencia/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
4
2023-07-11T06:24:41
2023-12-30T23:53:45
2023-07-12T06:37:11
CONTRIBUTOR
null
### System Info langchain 0.0.228 python 3.11 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I have a pinecone index with information which I upserted from a SQL table like this: ``` df = loadSqlData() df.to_csv('profiles.csv', index=False) # Iterate through DataFrame rows # Time Complexity: O(n), where n is the number of rows in the DataFrame for _, record in df.iterrows(): start_time = time.time() # Get metadata for this record # Time Complexity: O(1) metadata = { 'IdentityId': str(record['IdentityId']) } st.write(f'Time taken for metadata extraction: {time.time() - start_time} seconds') start_time = time.time() # Split record text into chunks # Time Complexity: O(m), where m is the size of the text record_texts = text_splitter.split_text(record['content']) st.write(f'Time taken for text splitting: {time.time() - start_time} seconds') start_time = time.time() # Create metadata for each chunk # Time Complexity: O(k), where k is the number of chunks in the text record_metadatas = [{ "chunk": j, "text": text, **metadata } for j, text in enumerate(record_texts)] st.write(f'Time taken for metadata dictionary creation: {time.time() - start_time} seconds') start_time = time.time() # Append chunks and metadata to current batches # Time Complexity: O(1) texts.extend(record_texts) metadatas.extend(record_metadatas) st.write(f'Time taken for data appending: {time.time() - start_time} seconds') # If batch_limit is reached, upsert vectors # Time Complexity: Depends on the upsert implementation if len(texts) >= batch_limit: start_time = time.time() ids = [str(uuid4()) for _ in range(len(texts))] # Simulating embedding and upserting here Pinecone.from_texts( texts, embed, index_name="cubigo", metadatas=metadatas, namespace="vwProfiles2") texts = [] metadatas = [] st.write(f'Time taken for vector upsertion (simulated): {time.time() - start_time} seconds') # Upsert any remaining vectors after the loop # Time Complexity: Depends on the upsert implementation if len(texts) > 0: start_time = time.time() ids = [str(uuid4()) for _ in range(len(texts))] # Simulating embedding and upserting here Pinecone.from_texts( texts, embed, index_name="cubigo", metadatas=metadatas, namespace="vwProfiles2") st.write(f'Time taken for remaining vector upsertion (simulated): {time.time() - start_time} seconds') st.write('Rows indexed: ', len(df)) ``` And now I am trying to make a chatbot with my SQL Table, I dont want to use SQLToolkit or Agent as its very slow. so I am trying to use the following code: ``` llm = AzureChatOpenAI( openai_api_base=OPENAI_DEPLOYMENT_ENDPOINT, openai_api_version=OPENAI_API_VERSION , deployment_name=OPENAI_DEPLOYMENT_NAME, openai_api_key=OPENAI_API_KEY, openai_api_type = OPENAI_API_TYPE , model_name=OPENAI_MODEL_NAME, temperature=0) embed = OpenAIEmbeddings(deployment=OPENAI_EMBEDDING_DEPLOYMENT_NAME, model=OPENAI_EMBEDDING_MODEL_NAME, chunk_size=1) user_input = get_text() vectorstore = Pinecone.from_existing_index("cubigo",embedding=embed, namespace="vwProfiles2") docs =vectorstore.similarity_search_with_score(user_input, k=250, namespace="vwProfiles2") #Who is from Bransk vectordb = Pinecone.from_documents(documents=docs, embedding=embed) qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=vectordb.as_retriever() ) response = qa.run(user_input) ``` But I get this error AttributeError: 'tuple' object has no attribute 'page_content' ``` File "C:\Users\xx\repos\xxChatbotv1\app\pages\07Chat With Pinecone Directly.py", line 100, in main vectordb = Pinecone.ncia\repos\xxChatbotv1\app\pages\07Chat With Pinecone Directly.py", line 100, in main vectordb = Pinecone.from_documents(documents=docs, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xx\anaconda3\envs\xxChatbotv3\Lib\site-packages\langchain\vectorstores\base.py", line 334, in from_documents texts = [d.page_content for d in documents] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xx\anaconda3\envs\xxChatbotv3\Lib\site-packages\langchain\vectorstores\base.py", line 334, in <listcomp> texts = [d.page_content for d in documents] ^^^^^^^^^^^^^^from_documents(documents=docs, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xx\anaconda3\envs\xxChatbotv3\Lib\site-packages\langchain\vectorstores\base.py", line 334, in from_documents texts = [d.page_content for d in documents] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xx\anaconda3\envs\xxChatbotv3\Lib\site-packages\langchain\vectorstores\base.py", line 334, in <listcomp> texts = [d.page_content for d in documents] ^^^^^^^^^^^^^^ ``` ### Expected behavior response in plain english?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7518/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/7518/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7517
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7517/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7517/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7517/events
https://github.com/langchain-ai/langchain/pull/7517
1,798,171,037
PR_kwDOIPDwls5VKVy1
7,517
Add Google GenAppBuilder as Tools
{ "login": "julienmiquel", "id": 86713160, "node_id": "MDQ6VXNlcjg2NzEzMTYw", "avatar_url": "https://avatars.githubusercontent.com/u/86713160?v=4", "gravatar_id": "", "url": "https://api.github.com/users/julienmiquel", "html_url": "https://github.com/julienmiquel", "followers_url": "https://api.github.com/users/julienmiquel/followers", "following_url": "https://api.github.com/users/julienmiquel/following{/other_user}", "gists_url": "https://api.github.com/users/julienmiquel/gists{/gist_id}", "starred_url": "https://api.github.com/users/julienmiquel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/julienmiquel/subscriptions", "organizations_url": "https://api.github.com/users/julienmiquel/orgs", "repos_url": "https://api.github.com/users/julienmiquel/repos", "events_url": "https://api.github.com/users/julienmiquel/events{/privacy}", "received_events_url": "https://api.github.com/users/julienmiquel/received_events", "type": "User", "site_admin": false }
[ { "id": 5510857403, "node_id": "LA_kwDOIPDwls8AAAABSHkCuw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation", "name": "needs documentation", "color": "DCAAC0", "default": false, "description": "PR needs to be updated with documentation" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
4
2023-07-11T06:03:25
2023-11-07T03:44:49
2023-11-07T03:44:49
NONE
null
<!-- Thank you for contributing to LangChain! - Description: Add the support of Google AppBuilder as tools. - Dependencies: None - Twitter handle: @MiquelJulien Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - 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/7517/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7517/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7517", "html_url": "https://github.com/langchain-ai/langchain/pull/7517", "diff_url": "https://github.com/langchain-ai/langchain/pull/7517.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7517.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7515
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7515/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7515/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7515/events
https://github.com/langchain-ai/langchain/pull/7515
1,798,141,514
PR_kwDOIPDwls5VKPYF
7,515
Create the partition if provided
{ "login": "byte911", "id": 92360792, "node_id": "U_kgDOBYFQWA", "avatar_url": "https://avatars.githubusercontent.com/u/92360792?v=4", "gravatar_id": "", "url": "https://api.github.com/users/byte911", "html_url": "https://github.com/byte911", "followers_url": "https://api.github.com/users/byte911/followers", "following_url": "https://api.github.com/users/byte911/following{/other_user}", "gists_url": "https://api.github.com/users/byte911/gists{/gist_id}", "starred_url": "https://api.github.com/users/byte911/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/byte911/subscriptions", "organizations_url": "https://api.github.com/users/byte911/orgs", "repos_url": "https://api.github.com/users/byte911/repos", "events_url": "https://api.github.com/users/byte911/events{/privacy}", "received_events_url": "https://api.github.com/users/byte911/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": 5796266916, "node_id": "LA_kwDOIPDwls8AAAABWXwDpA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/milvus", "name": "milvus", "color": "94A638", "default": false, "description": "" } ]
closed
false
null
[]
null
7
2023-07-11T05:37:49
2023-11-07T03:45:04
2023-11-07T03:45:04
NONE
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7515/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7515/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7515", "html_url": "https://github.com/langchain-ai/langchain/pull/7515", "diff_url": "https://github.com/langchain-ai/langchain/pull/7515.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7515.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7514
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7514/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7514/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7514/events
https://github.com/langchain-ai/langchain/pull/7514
1,798,127,447
PR_kwDOIPDwls5VKMSj
7,514
Minor update to reference other sql tool by tool names instead of hard coded string.
{ "login": "edwardzjl", "id": 7287580, "node_id": "MDQ6VXNlcjcyODc1ODA=", "avatar_url": "https://avatars.githubusercontent.com/u/7287580?v=4", "gravatar_id": "", "url": "https://api.github.com/users/edwardzjl", "html_url": "https://github.com/edwardzjl", "followers_url": "https://api.github.com/users/edwardzjl/followers", "following_url": "https://api.github.com/users/edwardzjl/following{/other_user}", "gists_url": "https://api.github.com/users/edwardzjl/gists{/gist_id}", "starred_url": "https://api.github.com/users/edwardzjl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/edwardzjl/subscriptions", "organizations_url": "https://api.github.com/users/edwardzjl/orgs", "repos_url": "https://api.github.com/users/edwardzjl/repos", "events_url": "https://api.github.com/users/edwardzjl/events{/privacy}", "received_events_url": "https://api.github.com/users/edwardzjl/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
4
2023-07-11T05:27:06
2023-07-11T21:44:24
2023-07-11T21:44:23
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: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - 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 --> Currently there are 4 tools in SQL agent-toolkits, and 2 of them have reference to the other 2. This PR change the reference from hard coded string to `{tool.name}`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7514/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/7514/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7514", "html_url": "https://github.com/langchain-ai/langchain/pull/7514", "diff_url": "https://github.com/langchain-ai/langchain/pull/7514.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7514.patch", "merged_at": "2023-07-11T21:44:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/7512
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7512/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7512/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7512/events
https://github.com/langchain-ai/langchain/pull/7512
1,798,082,205
PR_kwDOIPDwls5VKCgD
7,512
Add ConcurrentLoader
{ "login": "kdcokenny", "id": 99611484, "node_id": "U_kgDOBe_zXA", "avatar_url": "https://avatars.githubusercontent.com/u/99611484?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kdcokenny", "html_url": "https://github.com/kdcokenny", "followers_url": "https://api.github.com/users/kdcokenny/followers", "following_url": "https://api.github.com/users/kdcokenny/following{/other_user}", "gists_url": "https://api.github.com/users/kdcokenny/gists{/gist_id}", "starred_url": "https://api.github.com/users/kdcokenny/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kdcokenny/subscriptions", "organizations_url": "https://api.github.com/users/kdcokenny/orgs", "repos_url": "https://api.github.com/users/kdcokenny/repos", "events_url": "https://api.github.com/users/kdcokenny/events{/privacy}", "received_events_url": "https://api.github.com/users/kdcokenny/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-07-11T04:41:30
2023-08-01T00:56:31
2023-08-01T00:56:31
CONTRIBUTOR
null
Works just like the GenericLoader but concurrently for those who choose to optimize their workflow. @rlancemartin @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7512/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7512/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7512", "html_url": "https://github.com/langchain-ai/langchain/pull/7512", "diff_url": "https://github.com/langchain-ai/langchain/pull/7512.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7512.patch", "merged_at": "2023-08-01T00:56:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/7511
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7511/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7511/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7511/events
https://github.com/langchain-ai/langchain/pull/7511
1,798,046,592
PR_kwDOIPDwls5VJ61A
7,511
Update chat agents' output parser to extract action by regex
{ "login": "edwardzjl", "id": 7287580, "node_id": "MDQ6VXNlcjcyODc1ODA=", "avatar_url": "https://avatars.githubusercontent.com/u/7287580?v=4", "gravatar_id": "", "url": "https://api.github.com/users/edwardzjl", "html_url": "https://github.com/edwardzjl", "followers_url": "https://api.github.com/users/edwardzjl/followers", "following_url": "https://api.github.com/users/edwardzjl/following{/other_user}", "gists_url": "https://api.github.com/users/edwardzjl/gists{/gist_id}", "starred_url": "https://api.github.com/users/edwardzjl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/edwardzjl/subscriptions", "organizations_url": "https://api.github.com/users/edwardzjl/orgs", "repos_url": "https://api.github.com/users/edwardzjl/repos", "events_url": "https://api.github.com/users/edwardzjl/events{/privacy}", "received_events_url": "https://api.github.com/users/edwardzjl/received_events", "type": "User", "site_admin": false }
[ { "id": 5463330795, "node_id": "LA_kwDOIPDwls8AAAABRaPP6w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20test", "name": "needs test", "color": "E99695", "default": false, "description": "PR needs to be updated with tests" }, { "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-07-11T04:01:12
2023-08-04T01:47:44
2023-07-12T07:12:02
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: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - 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 --> Currently `ChatOutputParser` extracts actions by splitting the text on "```", and then load the second part as a json string. But sometimes the LLM will wrap the action in markdown code block like: ````markdown ```json { "action": "foo", "action_input": "bar" } ``` ```` Splitting text on "```" will cause `OutputParserException` in such case. This PR changes the behaviour to extract the `$JSON_BLOB` by regex, so that it can handle both ` ``` ``` ` and ` ```json ``` ` @hinthornw
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7511/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/7511/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7511", "html_url": "https://github.com/langchain-ai/langchain/pull/7511", "diff_url": "https://github.com/langchain-ai/langchain/pull/7511.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7511.patch", "merged_at": "2023-07-12T07:12:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/7510
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7510/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7510/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7510/events
https://github.com/langchain-ai/langchain/pull/7510
1,797,955,368
PR_kwDOIPDwls5VJm6o
7,510
Fix broken link from Marqo Ecosystem
{ "login": "OwenPendrighElliott", "id": 41710527, "node_id": "MDQ6VXNlcjQxNzEwNTI3", "avatar_url": "https://avatars.githubusercontent.com/u/41710527?v=4", "gravatar_id": "", "url": "https://api.github.com/users/OwenPendrighElliott", "html_url": "https://github.com/OwenPendrighElliott", "followers_url": "https://api.github.com/users/OwenPendrighElliott/followers", "following_url": "https://api.github.com/users/OwenPendrighElliott/following{/other_user}", "gists_url": "https://api.github.com/users/OwenPendrighElliott/gists{/gist_id}", "starred_url": "https://api.github.com/users/OwenPendrighElliott/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/OwenPendrighElliott/subscriptions", "organizations_url": "https://api.github.com/users/OwenPendrighElliott/orgs", "repos_url": "https://api.github.com/users/OwenPendrighElliott/repos", "events_url": "https://api.github.com/users/OwenPendrighElliott/events{/privacy}", "received_events_url": "https://api.github.com/users/OwenPendrighElliott/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-07-11T02:28:57
2023-07-11T21:15:15
2023-07-11T21:15:15
CONTRIBUTOR
null
Small fix to a link from the Marqo page in the ecosystem. The link was not updated correctly when the documentation structure changed to html pages instead of links to notebooks.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7510/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7510/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7510", "html_url": "https://github.com/langchain-ai/langchain/pull/7510", "diff_url": "https://github.com/langchain-ai/langchain/pull/7510.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7510.patch", "merged_at": "2023-07-11T21:15:15" }
https://api.github.com/repos/langchain-ai/langchain/issues/7509
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7509/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7509/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7509/events
https://github.com/langchain-ai/langchain/issues/7509
1,797,896,792
I_kwDOIPDwls5rKbpY
7,509
Langchain Import Issue
{ "login": "Fulladorn", "id": 29268902, "node_id": "MDQ6VXNlcjI5MjY4OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/29268902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Fulladorn", "html_url": "https://github.com/Fulladorn", "followers_url": "https://api.github.com/users/Fulladorn/followers", "following_url": "https://api.github.com/users/Fulladorn/following{/other_user}", "gists_url": "https://api.github.com/users/Fulladorn/gists{/gist_id}", "starred_url": "https://api.github.com/users/Fulladorn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Fulladorn/subscriptions", "organizations_url": "https://api.github.com/users/Fulladorn/orgs", "repos_url": "https://api.github.com/users/Fulladorn/repos", "events_url": "https://api.github.com/users/Fulladorn/events{/privacy}", "received_events_url": "https://api.github.com/users/Fulladorn/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
18
2023-07-11T01:12:10
2023-10-18T16:06:13
2023-10-18T16:06:12
NONE
null
### System Info Python 3.10.8 Langchain==0.0.229 AWS Sagemaker Studio w/ **PyTorch 2.0.0 Python 3.10 GPU Optimized** image ### Who can help? @hwchase17 or @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 - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Was working fine in a Jupyter Notebook in AWS Sagemaker Studio for the past few weeks but today running into an issue with no code changes... import chain issue? !pip install langchain openai chromadb tiktoken pypdf unstructured pdf2image; from langchain.document_loaders import TextLoader Results in: ```--------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[10], line 1 ----> 1 from langchain.document_loaders import TextLoader 2 docLoader = TextLoader('./docs/nlitest.txt', encoding='utf8') 3 document = docLoader.load() File /opt/conda/lib/python3.10/site-packages/langchain/__init__.py:6 3 from importlib import metadata 4 from typing import Optional ----> 6 from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain 7 from langchain.cache import BaseCache 8 from langchain.chains import ( 9 ConversationChain, 10 LLMBashChain, (...) 18 VectorDBQAWithSourcesChain, 19 ) File /opt/conda/lib/python3.10/site-packages/langchain/agents/__init__.py:2 1 """Interface for agents.""" ----> 2 from langchain.agents.agent import ( 3 Agent, 4 AgentExecutor, 5 AgentOutputParser, 6 BaseMultiActionAgent, 7 BaseSingleActionAgent, 8 LLMSingleActionAgent, 9 ) 10 from langchain.agents.agent_toolkits import ( 11 create_csv_agent, 12 create_json_agent, (...) 21 create_vectorstore_router_agent, 22 ) 23 from langchain.agents.agent_types import AgentType File /opt/conda/lib/python3.10/site-packages/langchain/agents/agent.py:25 17 from langchain.callbacks.base import BaseCallbackManager 18 from langchain.callbacks.manager import ( 19 AsyncCallbackManagerForChainRun, 20 AsyncCallbackManagerForToolRun, (...) 23 Callbacks, 24 ) ---> 25 from langchain.chains.base import Chain 26 from langchain.chains.llm import LLMChain 27 from langchain.input import get_color_mapping File /opt/conda/lib/python3.10/site-packages/langchain/chains/__init__.py:3 1 """Chains are easily reusable components which can be linked together.""" 2 from langchain.chains.api.base import APIChain ----> 3 from langchain.chains.api.openapi.chain import OpenAPIEndpointChain 4 from langchain.chains.combine_documents.base import AnalyzeDocumentChain 5 from langchain.chains.combine_documents.map_reduce import MapReduceDocumentsChain File /opt/conda/lib/python3.10/site-packages/langchain/chains/api/openapi/chain.py:17 15 from langchain.requests import Requests 16 from langchain.schema.language_model import BaseLanguageModel ---> 17 from langchain.tools.openapi.utils.api_models import APIOperation 20 class _ParamMapping(NamedTuple): 21 """Mapping from parameter name to parameter value.""" File /opt/conda/lib/python3.10/site-packages/langchain/tools/__init__.py:11 4 from langchain.tools.azure_cognitive_services import ( 5 AzureCogsFormRecognizerTool, 6 AzureCogsImageAnalysisTool, 7 AzureCogsSpeech2TextTool, 8 AzureCogsText2SpeechTool, 9 ) 10 from langchain.tools.base import BaseTool, StructuredTool, Tool, tool ---> 11 from langchain.tools.bing_search.tool import BingSearchResults, BingSearchRun 12 from langchain.tools.brave_search.tool import BraveSearch 13 from langchain.tools.convert_to_openai import format_tool_to_openai_function File /opt/conda/lib/python3.10/site-packages/langchain/tools/bing_search/__init__.py:3 1 """Bing Search API toolkit.""" ----> 3 from langchain.tools.bing_search.tool import BingSearchResults, BingSearchRun 5 __all__ = ["BingSearchRun", "BingSearchResults"] File /opt/conda/lib/python3.10/site-packages/langchain/tools/bing_search/tool.py:10 5 from langchain.callbacks.manager import ( 6 AsyncCallbackManagerForToolRun, 7 CallbackManagerForToolRun, 8 ) 9 from langchain.tools.base import BaseTool ---> 10 from langchain.utilities.bing_search import BingSearchAPIWrapper 13 class BingSearchRun(BaseTool): 14 """Tool that adds the capability to query the Bing search API.""" File /opt/conda/lib/python3.10/site-packages/langchain/utilities/__init__.py:3 1 """General utilities.""" 2 from langchain.requests import TextRequestsWrapper ----> 3 from langchain.utilities.apify import ApifyWrapper 4 from langchain.utilities.arxiv import ArxivAPIWrapper 5 from langchain.utilities.awslambda import LambdaWrapper File /opt/conda/lib/python3.10/site-packages/langchain/utilities/apify.py:5 1 from typing import Any, Callable, Dict, Optional 3 from pydantic import BaseModel, root_validator ----> 5 from langchain.document_loaders import ApifyDatasetLoader 6 from langchain.document_loaders.base import Document 7 from langchain.utils import get_from_dict_or_env File /opt/conda/lib/python3.10/site-packages/langchain/document_loaders/__init__.py:44 39 from langchain.document_loaders.duckdb_loader import DuckDBLoader 40 from langchain.document_loaders.email import ( 41 OutlookMessageLoader, 42 UnstructuredEmailLoader, 43 ) ---> 44 from langchain.document_loaders.embaas import EmbaasBlobLoader, EmbaasLoader 45 from langchain.document_loaders.epub import UnstructuredEPubLoader 46 from langchain.document_loaders.evernote import EverNoteLoader File /opt/conda/lib/python3.10/site-packages/langchain/document_loaders/embaas.py:54 50 bytes: str 51 """The base64 encoded bytes of the document to extract text from.""" ---> 54 class BaseEmbaasLoader(BaseModel): 55 """Base class for embedding a model into an Embaas document extraction API.""" 57 embaas_api_key: Optional[str] = None File /opt/conda/lib/python3.10/site-packages/pydantic/main.py:204, in pydantic.main.ModelMetaclass.__new__() File /opt/conda/lib/python3.10/site-packages/pydantic/fields.py:488, in pydantic.fields.ModelField.infer() File /opt/conda/lib/python3.10/site-packages/pydantic/fields.py:419, in pydantic.fields.ModelField.__init__() File /opt/conda/lib/python3.10/site-packages/pydantic/fields.py:539, in pydantic.fields.ModelField.prepare() File /opt/conda/lib/python3.10/site-packages/pydantic/fields.py:801, in pydantic.fields.ModelField.populate_validators() File /opt/conda/lib/python3.10/site-packages/pydantic/validators.py:696, in find_validators() File /opt/conda/lib/python3.10/site-packages/pydantic/validators.py:585, in pydantic.validators.make_typeddict_validator() File /opt/conda/lib/python3.10/site-packages/pydantic/annotated_types.py:35, in pydantic.annotated_types.create_model_from_typeddict() File /opt/conda/lib/python3.10/site-packages/pydantic/main.py:972, in pydantic.main.create_model() File /opt/conda/lib/python3.10/site-packages/pydantic/main.py:204, in pydantic.main.ModelMetaclass.__new__() File /opt/conda/lib/python3.10/site-packages/pydantic/fields.py:488, in pydantic.fields.ModelField.infer() File /opt/conda/lib/python3.10/site-packages/pydantic/fields.py:419, in pydantic.fields.ModelField.__init__() File /opt/conda/lib/python3.10/site-packages/pydantic/fields.py:534, in pydantic.fields.ModelField.prepare() File /opt/conda/lib/python3.10/site-packages/pydantic/fields.py:638, in pydantic.fields.ModelField._type_analysis() File /opt/conda/lib/python3.10/typing.py:1158, in _SpecialGenericAlias.__subclasscheck__(self, cls) 1156 return issubclass(cls.__origin__, self.__origin__) 1157 if not isinstance(cls, _GenericAlias): -> 1158 return issubclass(cls, self.__origin__) 1159 return super().__subclasscheck__(cls) TypeError: issubclass() arg 1 must be a class ``` ### Expected behavior The module should import with no error.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7509/reactions", "total_count": 5, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/7509/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7508
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7508/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7508/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7508/events
https://github.com/langchain-ai/langchain/pull/7508
1,797,860,844
PR_kwDOIPDwls5VJSsm
7,508
Split labeled criteria evaluator to new class
{ "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": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 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-07-11T00:32:53
2023-07-12T23:20:28
2023-07-12T23:20:26
COLLABORATOR
null
- Add an enum - Rm support for multi-criteria in single evaluator
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7508/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7508/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7508", "html_url": "https://github.com/langchain-ai/langchain/pull/7508", "diff_url": "https://github.com/langchain-ai/langchain/pull/7508.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7508.patch", "merged_at": "2023-07-12T23:20:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/7507
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7507/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7507/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7507/events
https://github.com/langchain-ai/langchain/pull/7507
1,797,834,241
PR_kwDOIPDwls5VJMro
7,507
Minor edits to QA docs
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 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-07-11T00:09:46
2023-07-11T05:15:06
2023-07-11T05:15:06
COLLABORATOR
null
Small clean-ups
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7507/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7507/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7507", "html_url": "https://github.com/langchain-ai/langchain/pull/7507", "diff_url": "https://github.com/langchain-ai/langchain/pull/7507.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7507.patch", "merged_at": "2023-07-11T05:15:06" }