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/14129
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14129/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14129/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14129/events
|
https://github.com/langchain-ai/langchain/issues/14129
| 2,021,147,121 |
I_kwDOIPDwls54eEHx
| 14,129 |
OpenSearchVectorSearch fails to detect AOSS is enabled when using RequestAWS4SignerAuth from opensearch-py
|
{
"login": "slangenbach",
"id": 2754095,
"node_id": "MDQ6VXNlcjI3NTQwOTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2754095?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/slangenbach",
"html_url": "https://github.com/slangenbach",
"followers_url": "https://api.github.com/users/slangenbach/followers",
"following_url": "https://api.github.com/users/slangenbach/following{/other_user}",
"gists_url": "https://api.github.com/users/slangenbach/gists{/gist_id}",
"starred_url": "https://api.github.com/users/slangenbach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/slangenbach/subscriptions",
"organizations_url": "https://api.github.com/users/slangenbach/orgs",
"repos_url": "https://api.github.com/users/slangenbach/repos",
"events_url": "https://api.github.com/users/slangenbach/events{/privacy}",
"received_events_url": "https://api.github.com/users/slangenbach/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] |
closed
| false | null |
[] | null | 3 | 2023-12-01T15:53:57 | 2024-01-09T10:12:53 | 2024-01-09T10:12:53 |
CONTRIBUTOR
| null |
### System Info
langchain 0.0.335
macOS 14.1.1 / Windows 10.0.19045
Python 3.11.6 / 3.10.9
### Who can help?
@naveentatikonda
### 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
Install dependencies
```shell
pip install langchain opensearch-py boto3
```
Import packages
```python
import boto3
from langchain.embeddings import FakeEmbeddings
from langchain.vectorstores.opensearch_vector_search import OpenSearchVectorSearch
from opensearchpy import RequestsAWSV4SignerAuth, RequestsHttpConnection
```
Create AOSS auth
```python
boto_session = boto3.Session()
aoss_auth = RequestsAWSV4SignerAuth(credentials=boto_session.get_credentials(), region=boto_session.region_name, service="aoss")
```
Create AOSS vector search class
```python
embeddings = FakeEmbeddings(size=42)
database = OpenSearchVectorSearch(
opensearch_url="https://some_aoss_endpoint:443",
http_auth=aoss_auth,
connection_class=RequestsHttpConnection,
index_name="test",
embedding_function=embeddings,
```
Check if AOSS vector search identifies itself as AOSS
```python
database.is_aoss
```
Returns **False**
### Expected behavior
AOSS should correctly identify itself as AOSS given the configuration above, which means that `database.is_aoss` should return **True** in this case.
The issue is related to how the internal `_is_aoss_enabled` method works:
```python
def _is_aoss_enabled(http_auth: Any) -> bool:
"""Check if the service is http_auth is set as `aoss`."""
if (
http_auth is not None
and hasattr(http_auth, "service")
and http_auth.service == "aoss"
):
return True
return False
```
The `RequestsAWSV4SignerAuth` does not expose the _service_ property directly, but via the _signer_ attribute. In order to respect that, `is_aoss_enabled` should be adapted as following:
```python
def _is_aoss_enabled(http_auth: Any) -> bool:
"""Check if the service set via http_auth equals `aoss`."""
if http_auth is not None:
if hasattr(http_auth, "service") and http_auth.service == "aoss":
return True
elif hasattr(http_auth, "signer") and http_auth.signer.service == "aoss":
return True
else:
return False
return False
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14129/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14129/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14128
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14128/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14128/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14128/events
|
https://github.com/langchain-ai/langchain/issues/14128
| 2,021,099,502 |
I_kwDOIPDwls54d4fu
| 14,128 |
AttributeError: 'NotImplementedType' object has no attribute 'get_input_schema'
|
{
"login": "austinmw",
"id": 12224358,
"node_id": "MDQ6VXNlcjEyMjI0MzU4",
"avatar_url": "https://avatars.githubusercontent.com/u/12224358?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/austinmw",
"html_url": "https://github.com/austinmw",
"followers_url": "https://api.github.com/users/austinmw/followers",
"following_url": "https://api.github.com/users/austinmw/following{/other_user}",
"gists_url": "https://api.github.com/users/austinmw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/austinmw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/austinmw/subscriptions",
"organizations_url": "https://api.github.com/users/austinmw/orgs",
"repos_url": "https://api.github.com/users/austinmw/repos",
"events_url": "https://api.github.com/users/austinmw/events{/privacy}",
"received_events_url": "https://api.github.com/users/austinmw/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 | 4 | 2023-12-01T15:26:49 | 2023-12-20T05:11:23 | null |
NONE
| null |
### System Info
Using latest docker versions for langchain templates
### Who can help?
@hwchase17
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
First, following the quickstart for Templates until it gets to LangSmith deployment:
1. `pip install -U langchain-cli`
2. `langchain app new my-app`
3. `cd my-app`
4. `langchain app add pirate-speak`
Then, since I don't have access to LangServe, follow the template README for docker deployment:
5. `docker build . -t my-langserve-app`
6. `docker run -e OPENAI_API_KEY=$OPENAI_API_KEY -p 8080:8080 my-langserve-app`
Results in error:
```
Traceback (most recent call last):
File "/usr/local/bin/uvicorn", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 416, in main
run(
File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 587, in run
server.run()
File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 68, in serve
config.load()
File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 467, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/code/app/server.py", line 14, in <module>
add_routes(app, NotImplemented)
File "/usr/local/lib/python3.11/site-packages/langserve/server.py", line 627, in add_routes
input_type_ = _resolve_model(runnable.get_input_schema(), "Input", model_namespace)
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NotImplementedType' object has no attribute 'get_input_schema'
```
I also tried the `research-assistant` template and got a similar `get_input_schema` error.
Am I missing a setup step?
### Expected behavior
Deploying the solution locally
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14128/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14128/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14127
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14127/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14127/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14127/events
|
https://github.com/langchain-ai/langchain/issues/14127
| 2,020,934,355 |
I_kwDOIPDwls54dQLT
| 14,127 |
Volc Engine MaaS has wrong entry in LLM type to class dict (causing SpaCy to not work with LangChain anymore)
|
{
"login": "DirkKoelewijn",
"id": 9843017,
"node_id": "MDQ6VXNlcjk4NDMwMTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/9843017?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DirkKoelewijn",
"html_url": "https://github.com/DirkKoelewijn",
"followers_url": "https://api.github.com/users/DirkKoelewijn/followers",
"following_url": "https://api.github.com/users/DirkKoelewijn/following{/other_user}",
"gists_url": "https://api.github.com/users/DirkKoelewijn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DirkKoelewijn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DirkKoelewijn/subscriptions",
"organizations_url": "https://api.github.com/users/DirkKoelewijn/orgs",
"repos_url": "https://api.github.com/users/DirkKoelewijn/repos",
"events_url": "https://api.github.com/users/DirkKoelewijn/events{/privacy}",
"received_events_url": "https://api.github.com/users/DirkKoelewijn/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 4 | 2023-12-01T13:58:13 | 2023-12-04T08:58:10 | 2023-12-04T08:58:10 |
NONE
| null |
### System Info
* Windows 11 Home (build 22621.2715)
* Python 3.12.0
* Clean virtual environment using Poetry with following dependencies:
```
python = "3.12.0"
langchain = "0.0.344"
spacy = "3.7.2"
spacy-llm = "0.6.4"
```
### Who can help?
@h3l As the creator of the pull request where VolcEngine was introduced
@baskaryan As tag handler of that pull request
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Anything that triggers spaCy's registry to make an inventory, for example:
```python
import spacy
spacy.blank("en")
```
With the last part of the Traceback being:
```
File "PROJECT_FOLDER\.venv\Lib\site-packages\langchain\llms\__init__.py", line 699, in __getattr__
k: v() for k, v in get_type_to_cls_dict().items()
^^^
File "PROJECT_FOLDER\.venv\Lib\site-packages\langchain_core\load\serializable.py", line 97, in __init__
super().__init__(**kwargs)
File "PROJECT_FOLDER\.venv\Lib\site-packages\pydantic\v1\main.py", line 341, in __init__
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for VolcEngineMaasLLM
__root__
Did not find volc_engine_maas_ak, please add an environment variable `VOLC_ACCESSKEY` which contains it, or pass `volc_engine_maas_ak` as a named parameter. (type=value_error)
```
#### What I think causes this
I am quite certain that this is caused by [`langchain.llms.__init__.py:869 (for commit b161f30)`](https://github.com/langchain-ai/langchain/blob/b161f302ff56a14d8d0331cbec4a3efa23d06e1a/libs/langchain/langchain/llms/__init__.py#L869C51-L869C51):
```python
def get_type_to_cls_dict() -> Dict[str, Callable[[], Type[BaseLLM]]]:
return {
"ai21": _import_ai21,
"aleph_alpha": _import_aleph_alpha,
"amazon_api_gateway": _import_amazon_api_gateway,
...
"qianfan_endpoint": _import_baidu_qianfan_endpoint,
"yandex_gpt": _import_yandex_gpt,
# Line below is the only that actually calls the import function, returning a class instead of an import function
"VolcEngineMaasLLM": _import_volcengine_maas(),
}
```
The Volc Engine Maas LLM is the only in this dict to actually call the import function, while all other entries only the function itself, and do not call it.
### Expected behavior
Class to type dict only returns import functions, not actual classes:
```python
def get_type_to_cls_dict() -> Dict[str, Callable[[], Type[BaseLLM]]]:
return {
"ai21": _import_ai21,
"aleph_alpha": _import_aleph_alpha,
"amazon_api_gateway": _import_amazon_api_gateway,
...
"qianfan_endpoint": _import_baidu_qianfan_endpoint,
"yandex_gpt": _import_yandex_gpt,
# What I think would be correct (now without function call)
"VolcEngineMaasLLM": _import_volcengine_maas,
}
```
Unfortunately I don't have time to put in a PR myself, but I hope this helps finding the solution!
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14127/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14127/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14126
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14126/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14126/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14126/events
|
https://github.com/langchain-ai/langchain/pull/14126
| 2,020,930,478 |
PR_kwDOIPDwls5g5s-Q
| 14,126 |
Improve indexing performance for Postgres (remote database) for refresh
|
{
"login": "mescanne",
"id": 1679620,
"node_id": "MDQ6VXNlcjE2Nzk2MjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/1679620?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mescanne",
"html_url": "https://github.com/mescanne",
"followers_url": "https://api.github.com/users/mescanne/followers",
"following_url": "https://api.github.com/users/mescanne/following{/other_user}",
"gists_url": "https://api.github.com/users/mescanne/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mescanne/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mescanne/subscriptions",
"organizations_url": "https://api.github.com/users/mescanne/orgs",
"repos_url": "https://api.github.com/users/mescanne/repos",
"events_url": "https://api.github.com/users/mescanne/events{/privacy}",
"received_events_url": "https://api.github.com/users/mescanne/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": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false |
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-12-01T13:55:57 | 2023-12-01T16:36:03 | 2023-12-01T16:36:03 |
CONTRIBUTOR
| null |
**Description:** By combining the document timestamp refresh within a single call to update(), this enables batching of multiple documents in a single SQL statement. This is important for non-local databases where tens of milliseconds has a huge impact on performance when doing document-by-document SQL statements.
**Issue:** #11935
**Dependencies:** None
**Tag maintainer:** @eyurtsev
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14126/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14126/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14126",
"html_url": "https://github.com/langchain-ai/langchain/pull/14126",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14126.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14126.patch",
"merged_at": "2023-12-01T16:36:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14125
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14125/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14125/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14125/events
|
https://github.com/langchain-ai/langchain/pull/14125
| 2,020,718,789 |
PR_kwDOIPDwls5g4-dX
| 14,125 |
Support of custom hugging face inference endpoints url
|
{
"login": "dmitryrPlanner5D",
"id": 120242470,
"node_id": "U_kgDOByrBJg",
"avatar_url": "https://avatars.githubusercontent.com/u/120242470?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dmitryrPlanner5D",
"html_url": "https://github.com/dmitryrPlanner5D",
"followers_url": "https://api.github.com/users/dmitryrPlanner5D/followers",
"following_url": "https://api.github.com/users/dmitryrPlanner5D/following{/other_user}",
"gists_url": "https://api.github.com/users/dmitryrPlanner5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dmitryrPlanner5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dmitryrPlanner5D/subscriptions",
"organizations_url": "https://api.github.com/users/dmitryrPlanner5D/orgs",
"repos_url": "https://api.github.com/users/dmitryrPlanner5D/repos",
"events_url": "https://api.github.com/users/dmitryrPlanner5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/dmitryrPlanner5D/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": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-12-01T11:43:27 | 2023-12-04T20:08:51 | 2023-12-04T20:08:51 |
CONTRIBUTOR
| null |
- **Description:** to support not only publicly available Hugging Face endpoints, but also protected ones (created with "Inference Endpoints" Hugging Face feature), I have added ability to specify custom api_url. But if not specified, default behaviour won't change
- **Issue:** #9181,
- **Dependencies:** no extra dependencies
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14125/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14125/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14125",
"html_url": "https://github.com/langchain-ai/langchain/pull/14125",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14125.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14125.patch",
"merged_at": "2023-12-04T20:08:51"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14124
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14124/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14124/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14124/events
|
https://github.com/langchain-ai/langchain/issues/14124
| 2,020,608,208 |
I_kwDOIPDwls54cAjQ
| 14,124 |
Specify a custom tokenizer for the ConversationSummaryBufferMemory
|
{
"login": "lidija-jovanovska",
"id": 20389987,
"node_id": "MDQ6VXNlcjIwMzg5OTg3",
"avatar_url": "https://avatars.githubusercontent.com/u/20389987?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lidija-jovanovska",
"html_url": "https://github.com/lidija-jovanovska",
"followers_url": "https://api.github.com/users/lidija-jovanovska/followers",
"following_url": "https://api.github.com/users/lidija-jovanovska/following{/other_user}",
"gists_url": "https://api.github.com/users/lidija-jovanovska/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lidija-jovanovska/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lidija-jovanovska/subscriptions",
"organizations_url": "https://api.github.com/users/lidija-jovanovska/orgs",
"repos_url": "https://api.github.com/users/lidija-jovanovska/repos",
"events_url": "https://api.github.com/users/lidija-jovanovska/events{/privacy}",
"received_events_url": "https://api.github.com/users/lidija-jovanovska/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-12-01T10:43:31 | 2023-12-01T10:45:49 | null |
NONE
| null |
### Feature request
Currently, the ConversationSummaryBufferMemory only supports the GPT2TokenizerFast and there is no option to pass a custom tokenizer. Different models have different corresponding tokenizers, so it makes sense to allow the option to specify a custom tokenizer.
The tokenizer fetching is implemented in langchain/schema/language_model.py:
@lru_cache(maxsize=None) # Cache the tokenizer
def get_tokenizer() -> Any:
try:
from transformers import GPT2TokenizerFast
except ImportError:
raise ImportError(
"Could not import transformers python package. "
"This is needed in order to calculate get_token_ids. "
"Please install it with `pip install transformers`."
)
# create a GPT-2 tokenizer instance
return GPT2TokenizerFast.from_pretrained("gpt2")
### Motivation
Using the exact tokenizer which the model uses will help in being more accurate in the context summarization cutoff.
### Your contribution
I could suggest a solution.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14124/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14124/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14123
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14123/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14123/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14123/events
|
https://github.com/langchain-ai/langchain/issues/14123
| 2,020,604,255 |
I_kwDOIPDwls54b_lf
| 14,123 |
How can we add Prompt in RetrievalQA
|
{
"login": "Boopalanoptisol",
"id": 105263483,
"node_id": "U_kgDOBkYxew",
"avatar_url": "https://avatars.githubusercontent.com/u/105263483?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Boopalanoptisol",
"html_url": "https://github.com/Boopalanoptisol",
"followers_url": "https://api.github.com/users/Boopalanoptisol/followers",
"following_url": "https://api.github.com/users/Boopalanoptisol/following{/other_user}",
"gists_url": "https://api.github.com/users/Boopalanoptisol/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Boopalanoptisol/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Boopalanoptisol/subscriptions",
"organizations_url": "https://api.github.com/users/Boopalanoptisol/orgs",
"repos_url": "https://api.github.com/users/Boopalanoptisol/repos",
"events_url": "https://api.github.com/users/Boopalanoptisol/events{/privacy}",
"received_events_url": "https://api.github.com/users/Boopalanoptisol/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-12-01T10:41:14 | 2023-12-01T10:48:43 | null |
NONE
| null |
qa = RetrievalQA.from_chain_type(llm=llm, retriever=docsearch.as_retriever(
search_kwargs={"k": 1}), verbose=True)
How can we add the prompts like systemPromptTemplate and humanPromptTemplate in the above code.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14123/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14123/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14121
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14121/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14121/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14121/events
|
https://github.com/langchain-ai/langchain/pull/14121
| 2,020,518,517 |
PR_kwDOIPDwls5g4SZz
| 14,121 |
fix: set maxsplit when parse python function docstring
|
{
"login": "lijie-lee",
"id": 37978118,
"node_id": "MDQ6VXNlcjM3OTc4MTE4",
"avatar_url": "https://avatars.githubusercontent.com/u/37978118?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lijie-lee",
"html_url": "https://github.com/lijie-lee",
"followers_url": "https://api.github.com/users/lijie-lee/followers",
"following_url": "https://api.github.com/users/lijie-lee/following{/other_user}",
"gists_url": "https://api.github.com/users/lijie-lee/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lijie-lee/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lijie-lee/subscriptions",
"organizations_url": "https://api.github.com/users/lijie-lee/orgs",
"repos_url": "https://api.github.com/users/lijie-lee/repos",
"events_url": "https://api.github.com/users/lijie-lee/events{/privacy}",
"received_events_url": "https://api.github.com/users/lijie-lee/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 2 | 2023-12-01T09:55:41 | 2023-12-01T18:46:54 | 2023-12-01T18:46:53 |
CONTRIBUTOR
| null |
Description
when the desc of arg in python docstring contains ":", the `_parse_python_function_docstring` will raise **ValueError: too many values to unpack (expected 2)**.
A sample desc would be:
"""
Args:
error_arg: this is an arg with an additional ":" symbol
"""
So, set `maxsplit` parameter to fix it.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14121/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14121/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14121",
"html_url": "https://github.com/langchain-ai/langchain/pull/14121",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14121.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14121.patch",
"merged_at": "2023-12-01T18:46:53"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14120
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14120/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14120/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14120/events
|
https://github.com/langchain-ai/langchain/issues/14120
| 2,020,491,917 |
I_kwDOIPDwls54bkKN
| 14,120 |
Expose Amazon Bedrock amazon-bedrock-invocationMetrics in response
|
{
"login": "ben-gineer",
"id": 4173590,
"node_id": "MDQ6VXNlcjQxNzM1OTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/4173590?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ben-gineer",
"html_url": "https://github.com/ben-gineer",
"followers_url": "https://api.github.com/users/ben-gineer/followers",
"following_url": "https://api.github.com/users/ben-gineer/following{/other_user}",
"gists_url": "https://api.github.com/users/ben-gineer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ben-gineer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ben-gineer/subscriptions",
"organizations_url": "https://api.github.com/users/ben-gineer/orgs",
"repos_url": "https://api.github.com/users/ben-gineer/repos",
"events_url": "https://api.github.com/users/ben-gineer/events{/privacy}",
"received_events_url": "https://api.github.com/users/ben-gineer/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] |
open
| false | null |
[] | null | 3 | 2023-12-01T09:41:44 | 2023-12-03T19:05:08 | null |
NONE
| null |
### Feature request
Amazon Bedrock now provides some useful metrics when it has finished:
`"completion":"Response from Bedrock...","stop_reason":"stop_sequence","stop":"\n\nHuman:","amazon-bedrock-invocationMetrics":{"inputTokenCount":16,"outputTokenCount":337,"invocationLatency":4151,"firstByteLatency":136}}`
It would be good to expose these via LangChain, similar to how OpenAI API provides them.
### Motivation
To make it easier to calculate the cost of Amazon Bedrock queries.
### Your contribution
I'm happy to test any solution. I'd look to existing developers to guide us how best to expose them.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14120/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14120/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14119
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14119/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14119/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14119/events
|
https://github.com/langchain-ai/langchain/issues/14119
| 2,020,436,621 |
I_kwDOIPDwls54bWqN
| 14,119 |
Trouble Connecting Langchain Chroma to Existing ChromaDB on Port 8001
|
{
"login": "srisls217",
"id": 26340363,
"node_id": "MDQ6VXNlcjI2MzQwMzYz",
"avatar_url": "https://avatars.githubusercontent.com/u/26340363?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/srisls217",
"html_url": "https://github.com/srisls217",
"followers_url": "https://api.github.com/users/srisls217/followers",
"following_url": "https://api.github.com/users/srisls217/following{/other_user}",
"gists_url": "https://api.github.com/users/srisls217/gists{/gist_id}",
"starred_url": "https://api.github.com/users/srisls217/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/srisls217/subscriptions",
"organizations_url": "https://api.github.com/users/srisls217/orgs",
"repos_url": "https://api.github.com/users/srisls217/repos",
"events_url": "https://api.github.com/users/srisls217/events{/privacy}",
"received_events_url": "https://api.github.com/users/srisls217/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false | null |
[] | null | 1 | 2023-12-01T09:09:40 | 2023-12-01T09:17:27 | null |
NONE
| null |
I am currently operating a chroma docker on port 8001 and using it for my node js application with the URL CHROMA_URI=http://localhost:8001/, which allows me to read the vectors.
However, when I try to use the same chroma_URI with langchain chroma, I encounter an error message. The error message reads: **{"lc":1,"type":"not_implemented","id":["langchain","vectorstores","chroma","Chroma"]}**.



The above screenshots are my codes.
does anyone face this issue?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14119/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14119/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14118
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14118/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14118/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14118/events
|
https://github.com/langchain-ai/langchain/pull/14118
| 2,020,424,087 |
PR_kwDOIPDwls5g39xA
| 14,118 |
ignore the first turn to apply "history" mechanism
|
{
"login": "MarkYQJ",
"id": 7116325,
"node_id": "MDQ6VXNlcjcxMTYzMjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/7116325?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MarkYQJ",
"html_url": "https://github.com/MarkYQJ",
"followers_url": "https://api.github.com/users/MarkYQJ/followers",
"following_url": "https://api.github.com/users/MarkYQJ/following{/other_user}",
"gists_url": "https://api.github.com/users/MarkYQJ/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MarkYQJ/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarkYQJ/subscriptions",
"organizations_url": "https://api.github.com/users/MarkYQJ/orgs",
"repos_url": "https://api.github.com/users/MarkYQJ/repos",
"events_url": "https://api.github.com/users/MarkYQJ/events{/privacy}",
"received_events_url": "https://api.github.com/users/MarkYQJ/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 4 | 2023-12-01T09:01:29 | 2023-12-13T01:31:02 | null |
NONE
| null |
This will generate a meaningless string "system: " for generating condense question; this increases the probability to make an improper condense question and misunderstand user's question. Below is a case
- Original Question: Can you explain the arguments of Meilisearch?
- Condense Question
- What are the benefits of using Meilisearch? (by CodeLlama)
- What are the reasons for using Meilisearch? (by GPT-4)
The condense questions (not matter from CodeLlam or GPT-4) are different from the original one.
By checking the content of each dialogue turn, generating history string only when the dialog content is not empty.
Since there is nothing before first turn, the "history" mechanism will be ignored at the very first turn.
Doing so, the condense question will be "What are the arguments for using Meilisearch?".
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14118/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14118/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14118",
"html_url": "https://github.com/langchain-ai/langchain/pull/14118",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14118.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14118.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14117
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14117/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14117/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14117/events
|
https://github.com/langchain-ai/langchain/issues/14117
| 2,020,382,738 |
I_kwDOIPDwls54bJgS
| 14,117 |
Cost doesnt work when used inside Tool
|
{
"login": "Yanni8",
"id": 99135388,
"node_id": "U_kgDOBeivnA",
"avatar_url": "https://avatars.githubusercontent.com/u/99135388?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Yanni8",
"html_url": "https://github.com/Yanni8",
"followers_url": "https://api.github.com/users/Yanni8/followers",
"following_url": "https://api.github.com/users/Yanni8/following{/other_user}",
"gists_url": "https://api.github.com/users/Yanni8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Yanni8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Yanni8/subscriptions",
"organizations_url": "https://api.github.com/users/Yanni8/orgs",
"repos_url": "https://api.github.com/users/Yanni8/repos",
"events_url": "https://api.github.com/users/Yanni8/events{/privacy}",
"received_events_url": "https://api.github.com/users/Yanni8/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-12-01T08:37:47 | 2023-12-01T13:40:19 | 2023-12-01T13:40:18 |
CONTRIBUTOR
| null |
### System Info
- Python 3.9.13
- langchain==0.0.344
- langchain-core==0.0.8
### Who can help?
@agola11
@hwchase17
@agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
1. Define a Custom Tool which useses some sort of OpenAI Model. For example GPT 3.5
2. Define a Tool agent which uses this Tool
3. Call the Agent inside a with Block with `get_openai_callback()`
4. The agent should now call the tool which uses an OpenAI Model
5. Calculate the Total Cost. By using the `get_openai_callback` variable. The cost does only include tokens used by the tool agent
### Expected behavior
It should Include all Cost. Including the one from the tool
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14117/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14117/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14114
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14114/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14114/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14114/events
|
https://github.com/langchain-ai/langchain/issues/14114
| 2,020,257,158 |
I_kwDOIPDwls54aq2G
| 14,114 |
Google Cloud Vertex AI Throws AttributeError: partially initialized module 'vertexai' has no attribute 'init'
|
{
"login": "007900",
"id": 152589841,
"node_id": "U_kgDOCRhWEQ",
"avatar_url": "https://avatars.githubusercontent.com/u/152589841?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/007900",
"html_url": "https://github.com/007900",
"followers_url": "https://api.github.com/users/007900/followers",
"following_url": "https://api.github.com/users/007900/following{/other_user}",
"gists_url": "https://api.github.com/users/007900/gists{/gist_id}",
"starred_url": "https://api.github.com/users/007900/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/007900/subscriptions",
"organizations_url": "https://api.github.com/users/007900/orgs",
"repos_url": "https://api.github.com/users/007900/repos",
"events_url": "https://api.github.com/users/007900/events{/privacy}",
"received_events_url": "https://api.github.com/users/007900/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-12-01T07:13:02 | 2023-12-01T19:51:02 | null |
NONE
| null |
### System Info
I was just trying to run the LLMs tutorial.
```
from langchain.llms import VertexAI
llm = VertexAI()
print(llm("What are some of the pros and cons of Python as a programming language?"))
```
I got this error.
```
File "C:\Users\******\anaconda3\envs\vertex-ai\Lib\site-packages\langchain_core\load\serializable.py", line 97, in __init__
super().__init__(**kwargs)
File "C:\Users\******\anaconda3\envs\vertex-ai\Lib\site-packages\pydantic\v1\main.py", line 339, in __init__
values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\******\anaconda3\envs\vertex-ai\Lib\site-packages\pydantic\v1\main.py", line 1102, in validate_model
values = validator(cls_, values)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\******\anaconda3\envs\vertex-ai\Lib\site-packages\langchain\llms\vertexai.py", line 249, in validate_environment
cls._try_init_vertexai(values)
File "C:\Users\******\anaconda3\envs\vertex-ai\Lib\site-packages\langchain\llms\vertexai.py", line 216, in _try_init_vertexai
init_vertexai(**params)
File "C:\Users\******\anaconda3\envs\vertex-ai\Lib\site-packages\langchain\utilities\vertexai.py", line 42, in init_vertexai
import vertexa
```
I try to install an older version of pydantic like pip install pydantic == 1.10 or 1.10.10, but still error about "validation_error" .
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Anaconda Navigator
1.Python version == 3.12.0
2.Langchain version == 0.0.344
3.Google-cloud-aiplatform version == 1.36.4
4.Pydantic version == 2.5.2
### Expected behavior
Running code without any issues.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14114/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14114/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14113
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14113/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14113/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14113/events
|
https://github.com/langchain-ai/langchain/issues/14113
| 2,020,249,681 |
I_kwDOIPDwls54apBR
| 14,113 |
Issue:How to get all the Pages of Confluence Spaces.
|
{
"login": "deepak-habilelabs",
"id": 137885024,
"node_id": "U_kgDOCDf1YA",
"avatar_url": "https://avatars.githubusercontent.com/u/137885024?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/deepak-habilelabs",
"html_url": "https://github.com/deepak-habilelabs",
"followers_url": "https://api.github.com/users/deepak-habilelabs/followers",
"following_url": "https://api.github.com/users/deepak-habilelabs/following{/other_user}",
"gists_url": "https://api.github.com/users/deepak-habilelabs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/deepak-habilelabs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deepak-habilelabs/subscriptions",
"organizations_url": "https://api.github.com/users/deepak-habilelabs/orgs",
"repos_url": "https://api.github.com/users/deepak-habilelabs/repos",
"events_url": "https://api.github.com/users/deepak-habilelabs/events{/privacy}",
"received_events_url": "https://api.github.com/users/deepak-habilelabs/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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 | 9 | 2023-12-01T07:07:47 | 2024-01-11T13:25:41 | null |
NONE
| null |
### Issue you'd like to raise.
I am in need to get all the pages and page id of a particular Confluence Spaces, How can I get all the page id?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14113/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14113/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14112
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14112/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14112/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14112/events
|
https://github.com/langchain-ai/langchain/issues/14112
| 2,020,223,271 |
I_kwDOIPDwls54aikn
| 14,112 |
How to connect an LLM Chain to Metaphor
|
{
"login": "markwealthio",
"id": 141135321,
"node_id": "U_kgDOCGmN2Q",
"avatar_url": "https://avatars.githubusercontent.com/u/141135321?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/markwealthio",
"html_url": "https://github.com/markwealthio",
"followers_url": "https://api.github.com/users/markwealthio/followers",
"following_url": "https://api.github.com/users/markwealthio/following{/other_user}",
"gists_url": "https://api.github.com/users/markwealthio/gists{/gist_id}",
"starred_url": "https://api.github.com/users/markwealthio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/markwealthio/subscriptions",
"organizations_url": "https://api.github.com/users/markwealthio/orgs",
"repos_url": "https://api.github.com/users/markwealthio/repos",
"events_url": "https://api.github.com/users/markwealthio/events{/privacy}",
"received_events_url": "https://api.github.com/users/markwealthio/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-12-01T06:47:10 | 2023-12-01T06:57:52 | null |
NONE
| null |
### Issue you'd like to raise.
I want to connect my ConversationChain to Metaphor. Please help me on how to do it! Thanks
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14112/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14112/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14111
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14111/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14111/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14111/events
|
https://github.com/langchain-ai/langchain/pull/14111
| 2,020,190,095 |
PR_kwDOIPDwls5g3Kn1
| 14,111 |
The _convert_message_to_dict function of the ErnieBotChat module does not process the SystemMessage, resulting in an error message.
|
{
"login": "xy200303",
"id": 130276203,
"node_id": "U_kgDOB8Pbaw",
"avatar_url": "https://avatars.githubusercontent.com/u/130276203?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xy200303",
"html_url": "https://github.com/xy200303",
"followers_url": "https://api.github.com/users/xy200303/followers",
"following_url": "https://api.github.com/users/xy200303/following{/other_user}",
"gists_url": "https://api.github.com/users/xy200303/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xy200303/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xy200303/subscriptions",
"organizations_url": "https://api.github.com/users/xy200303/orgs",
"repos_url": "https://api.github.com/users/xy200303/repos",
"events_url": "https://api.github.com/users/xy200303/events{/privacy}",
"received_events_url": "https://api.github.com/users/xy200303/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 5 | 2023-12-01T06:22:12 | 2023-12-06T15:06:25 | null |
NONE
| null |
The _convert_message_to_dict function of the ErnieBotChat module does not process the SystemMessage, resulting in an error message.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14111/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14111/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14111",
"html_url": "https://github.com/langchain-ai/langchain/pull/14111",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14111.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14111.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14110
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14110/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14110/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14110/events
|
https://github.com/langchain-ai/langchain/pull/14110
| 2,020,146,939 |
PR_kwDOIPDwls5g3A82
| 14,110 |
fix: use async_embed_with_retry in _aget_len_safe_embeddings
|
{
"login": "salqueng",
"id": 5074074,
"node_id": "MDQ6VXNlcjUwNzQwNzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/5074074?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/salqueng",
"html_url": "https://github.com/salqueng",
"followers_url": "https://api.github.com/users/salqueng/followers",
"following_url": "https://api.github.com/users/salqueng/following{/other_user}",
"gists_url": "https://api.github.com/users/salqueng/gists{/gist_id}",
"starred_url": "https://api.github.com/users/salqueng/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/salqueng/subscriptions",
"organizations_url": "https://api.github.com/users/salqueng/orgs",
"repos_url": "https://api.github.com/users/salqueng/repos",
"events_url": "https://api.github.com/users/salqueng/events{/privacy}",
"received_events_url": "https://api.github.com/users/salqueng/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": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-12-01T05:51:53 | 2023-12-01T18:47:07 | 2023-12-01T18:47:07 |
CONTRIBUTOR
| null |
**Description**
`embed_with_retry` is for sync operations and not for async operations.
Use `async_embed_with_retry` for appropriate async operations.
I'm using `OpenAIEmbedding(http_client=httpx.AsyncClient())` with only async operations.
However, I got an error when I use `embedding.aembed_documents` because `embed_with_retry` uses sync OpenAI client with async http client.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14110/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14110/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14110",
"html_url": "https://github.com/langchain-ai/langchain/pull/14110",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14110.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14110.patch",
"merged_at": "2023-12-01T18:47:07"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14109
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14109/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14109/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14109/events
|
https://github.com/langchain-ai/langchain/pull/14109
| 2,020,139,023 |
PR_kwDOIPDwls5g2_Jx
| 14,109 |
Multi-modal RAG on slide decks cookbook
|
{
"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"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 2 | 2023-12-01T05:45:50 | 2023-12-01T22:45:06 | 2023-12-01T22:44:53 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14109/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14109/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14109",
"html_url": "https://github.com/langchain-ai/langchain/pull/14109",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14109.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14109.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14108
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14108/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14108/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14108/events
|
https://github.com/langchain-ai/langchain/issues/14108
| 2,020,059,736 |
I_kwDOIPDwls54Z6pY
| 14,108 |
DOC: Link to subscribe to the "newsletter" on Community page is no longer valid
|
{
"login": "linzeyang",
"id": 4020306,
"node_id": "MDQ6VXNlcjQwMjAzMDY=",
"avatar_url": "https://avatars.githubusercontent.com/u/4020306?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/linzeyang",
"html_url": "https://github.com/linzeyang",
"followers_url": "https://api.github.com/users/linzeyang/followers",
"following_url": "https://api.github.com/users/linzeyang/following{/other_user}",
"gists_url": "https://api.github.com/users/linzeyang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/linzeyang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/linzeyang/subscriptions",
"organizations_url": "https://api.github.com/users/linzeyang/orgs",
"repos_url": "https://api.github.com/users/linzeyang/repos",
"events_url": "https://api.github.com/users/linzeyang/events{/privacy}",
"received_events_url": "https://api.github.com/users/linzeyang/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"
}
] |
open
| false | null |
[] | null | 1 | 2023-12-01T04:52:55 | 2023-12-01T04:59:00 | null |
CONTRIBUTOR
| null |
### Issue with current documentation:
The link to subscribe to the "newsletter" at the bottom of Community page (`/docs/docs/community.md`) is no longer available.

As the image above indicates, the "form has moved to a new address", and the new address (https://form.typeform.com/to/KjZB1auB?typeform-source=6w1pwbss0py.typeform.com) gives "This typeform is now closed", as the image shown below:

### Idea or request for content:
If the newsletter is still operating, replace the current link with a new one where people can subscribe to it.
If the newsletter is no longer running, replace the text with something else (eg. the link to langchain blogs).
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14108/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14108/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14107
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14107/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14107/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14107/events
|
https://github.com/langchain-ai/langchain/issues/14107
| 2,020,008,509 |
I_kwDOIPDwls54ZuI9
| 14,107 |
Issue: openai.ChatCompletion is no longer supported in openai>=1.0.0
|
{
"login": "noviljohnson",
"id": 41065220,
"node_id": "MDQ6VXNlcjQxMDY1MjIw",
"avatar_url": "https://avatars.githubusercontent.com/u/41065220?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/noviljohnson",
"html_url": "https://github.com/noviljohnson",
"followers_url": "https://api.github.com/users/noviljohnson/followers",
"following_url": "https://api.github.com/users/noviljohnson/following{/other_user}",
"gists_url": "https://api.github.com/users/noviljohnson/gists{/gist_id}",
"starred_url": "https://api.github.com/users/noviljohnson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/noviljohnson/subscriptions",
"organizations_url": "https://api.github.com/users/noviljohnson/orgs",
"repos_url": "https://api.github.com/users/noviljohnson/repos",
"events_url": "https://api.github.com/users/noviljohnson/events{/privacy}",
"received_events_url": "https://api.github.com/users/noviljohnson/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 4 | 2023-12-01T03:57:52 | 2023-12-11T05:58:02 | 2023-12-11T05:58:02 |
NONE
| null |
### Issue you'd like to raise.
i am using load_qa_chain()
chain=load_qa_chain(OpenAI(temperature=0.25,model_name="gpt-3.5-turbo-1106"), chain_type="stuff", prompt=PROMPT)
i got the following error
"""
APIRemovedInV1:
You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at
https://github.com/openai/openai-python for the API.
You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface.
Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28`
A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742
"""
and the line that raised the error is
anaconda3/envs/Doc2/lib/site-packages/langchain/llms/openai.py:115
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14107/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14107/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14106
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14106/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14106/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14106/events
|
https://github.com/langchain-ai/langchain/pull/14106
| 2,019,981,100 |
PR_kwDOIPDwls5g2b3Q
| 14,106 |
Update invalid link
|
{
"login": "YQisme",
"id": 80308783,
"node_id": "MDQ6VXNlcjgwMzA4Nzgz",
"avatar_url": "https://avatars.githubusercontent.com/u/80308783?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/YQisme",
"html_url": "https://github.com/YQisme",
"followers_url": "https://api.github.com/users/YQisme/followers",
"following_url": "https://api.github.com/users/YQisme/following{/other_user}",
"gists_url": "https://api.github.com/users/YQisme/gists{/gist_id}",
"starred_url": "https://api.github.com/users/YQisme/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/YQisme/subscriptions",
"organizations_url": "https://api.github.com/users/YQisme/orgs",
"repos_url": "https://api.github.com/users/YQisme/repos",
"events_url": "https://api.github.com/users/YQisme/events{/privacy}",
"received_events_url": "https://api.github.com/users/YQisme/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 2 | 2023-12-01T03:26:20 | 2023-12-01T16:47:39 | 2023-12-01T16:47:39 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14106/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14106/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14106",
"html_url": "https://github.com/langchain-ai/langchain/pull/14106",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14106.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14106.patch",
"merged_at": "2023-12-01T16:47:39"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14105
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14105/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14105/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14105/events
|
https://github.com/langchain-ai/langchain/pull/14105
| 2,019,980,727 |
PR_kwDOIPDwls5g2byF
| 14,105 |
Added an IMDb toolkit
|
{
"login": "STalukder20",
"id": 66654830,
"node_id": "MDQ6VXNlcjY2NjU0ODMw",
"avatar_url": "https://avatars.githubusercontent.com/u/66654830?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/STalukder20",
"html_url": "https://github.com/STalukder20",
"followers_url": "https://api.github.com/users/STalukder20/followers",
"following_url": "https://api.github.com/users/STalukder20/following{/other_user}",
"gists_url": "https://api.github.com/users/STalukder20/gists{/gist_id}",
"starred_url": "https://api.github.com/users/STalukder20/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/STalukder20/subscriptions",
"organizations_url": "https://api.github.com/users/STalukder20/orgs",
"repos_url": "https://api.github.com/users/STalukder20/repos",
"events_url": "https://api.github.com/users/STalukder20/events{/privacy}",
"received_events_url": "https://api.github.com/users/STalukder20/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 3 | 2023-12-01T03:25:55 | 2023-12-06T23:09:39 | null |
NONE
| null |
Adds support for an IMDb toolkit. Agents should now be able to retrieve up-to-date information from IMDb.
Issue #11926
Dependencies
- Cinemagoer (https://github.com/cinemagoer/cinemagoer)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14105/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14105/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14105",
"html_url": "https://github.com/langchain-ai/langchain/pull/14105",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14105.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14105.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14104
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14104/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14104/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14104/events
|
https://github.com/langchain-ai/langchain/pull/14104
| 2,019,934,748 |
PR_kwDOIPDwls5g2R1i
| 14,104 |
StarCoder LLM Wrapper
|
{
"login": "jasonl-18",
"id": 63970119,
"node_id": "MDQ6VXNlcjYzOTcwMTE5",
"avatar_url": "https://avatars.githubusercontent.com/u/63970119?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jasonl-18",
"html_url": "https://github.com/jasonl-18",
"followers_url": "https://api.github.com/users/jasonl-18/followers",
"following_url": "https://api.github.com/users/jasonl-18/following{/other_user}",
"gists_url": "https://api.github.com/users/jasonl-18/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jasonl-18/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jasonl-18/subscriptions",
"organizations_url": "https://api.github.com/users/jasonl-18/orgs",
"repos_url": "https://api.github.com/users/jasonl-18/repos",
"events_url": "https://api.github.com/users/jasonl-18/events{/privacy}",
"received_events_url": "https://api.github.com/users/jasonl-18/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 4 | 2023-12-01T02:34:47 | 2023-12-04T19:18:08 | 2023-12-04T19:18:07 |
NONE
| null |
**Description:**
An attempted LLM Wrapper implementing StarCoder https://github.com/bigcode-project/starcoder
**Issue:**
https://github.com/langchain-ai/langchain/issues/11252
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14104/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14104/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14104",
"html_url": "https://github.com/langchain-ai/langchain/pull/14104",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14104.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14104.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14103
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14103/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14103/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14103/events
|
https://github.com/langchain-ai/langchain/pull/14103
| 2,019,919,056 |
PR_kwDOIPDwls5g2PUn
| 14,103 |
templates[patch]: opensearch readme update
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-12-01T02:22:04 | 2023-12-01T16:48:01 | 2023-12-01T16:48:00 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14103/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14103/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14103",
"html_url": "https://github.com/langchain-ai/langchain/pull/14103",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14103.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14103.patch",
"merged_at": "2023-12-01T16:48:00"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14102
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14102/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14102/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14102/events
|
https://github.com/langchain-ai/langchain/pull/14102
| 2,019,911,027 |
PR_kwDOIPDwls5g2Nny
| 14,102 |
docs[patch]: Update facebook.ipynb
|
{
"login": "169",
"id": 10000925,
"node_id": "MDQ6VXNlcjEwMDAwOTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/169",
"html_url": "https://github.com/169",
"followers_url": "https://api.github.com/users/169/followers",
"following_url": "https://api.github.com/users/169/following{/other_user}",
"gists_url": "https://api.github.com/users/169/gists{/gist_id}",
"starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/169/subscriptions",
"organizations_url": "https://api.github.com/users/169/orgs",
"repos_url": "https://api.github.com/users/169/repos",
"events_url": "https://api.github.com/users/169/events{/privacy}",
"received_events_url": "https://api.github.com/users/169/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 2 | 2023-12-01T02:13:35 | 2023-12-01T16:49:56 | 2023-12-01T16:49:56 |
CONTRIBUTOR
| null |
### Description
Openai version 1.0.0 and later no longer supports the usage of camel case, So [the APIs](https://github.com/openai/openai-python/blob/main/api.md#finetuning) needs to be modified.
### Twitter handle
[lin_bob57617](https://twitter.com/lin_bob57617)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14102/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14102/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14102",
"html_url": "https://github.com/langchain-ai/langchain/pull/14102",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14102.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14102.patch",
"merged_at": "2023-12-01T16:49:56"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14100
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14100/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14100/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14100/events
|
https://github.com/langchain-ai/langchain/pull/14100
| 2,019,872,981 |
PR_kwDOIPDwls5g2GqQ
| 14,100 |
Support passing parameters to `llms.Databricks` and `llms.Mlflow`
|
{
"login": "harupy",
"id": 17039389,
"node_id": "MDQ6VXNlcjE3MDM5Mzg5",
"avatar_url": "https://avatars.githubusercontent.com/u/17039389?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/harupy",
"html_url": "https://github.com/harupy",
"followers_url": "https://api.github.com/users/harupy/followers",
"following_url": "https://api.github.com/users/harupy/following{/other_user}",
"gists_url": "https://api.github.com/users/harupy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/harupy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harupy/subscriptions",
"organizations_url": "https://api.github.com/users/harupy/orgs",
"repos_url": "https://api.github.com/users/harupy/repos",
"events_url": "https://api.github.com/users/harupy/events{/privacy}",
"received_events_url": "https://api.github.com/users/harupy/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-12-01T01:39:47 | 2023-12-02T03:27:18 | 2023-12-02T03:27:18 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
Before, we need to use `params` to pass extra parameters:
```python
from langchain.llms import Databricks
Databricks(..., params={"temperature": 0.0})
```
Now, we can directly specify extra params:
```python
from langchain.llms import Databricks
Databricks(..., temperature=0.0)
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14100/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14100/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14100",
"html_url": "https://github.com/langchain-ai/langchain/pull/14100",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14100.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14100.patch",
"merged_at": "2023-12-02T03:27:18"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14099
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14099/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14099/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14099/events
|
https://github.com/langchain-ai/langchain/pull/14099
| 2,019,852,790 |
PR_kwDOIPDwls5g2Cdc
| 14,099 |
docs[patch]: Update discord.ipynb
|
{
"login": "169",
"id": 10000925,
"node_id": "MDQ6VXNlcjEwMDAwOTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/169",
"html_url": "https://github.com/169",
"followers_url": "https://api.github.com/users/169/followers",
"following_url": "https://api.github.com/users/169/following{/other_user}",
"gists_url": "https://api.github.com/users/169/gists{/gist_id}",
"starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/169/subscriptions",
"organizations_url": "https://api.github.com/users/169/orgs",
"repos_url": "https://api.github.com/users/169/repos",
"events_url": "https://api.github.com/users/169/events{/privacy}",
"received_events_url": "https://api.github.com/users/169/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-12-01T01:21:35 | 2023-12-01T16:54:32 | 2023-12-01T16:54:31 |
CONTRIBUTOR
| null |
### Description
Now if `example` in Message is False, it will not be displayed. Update the output in this document.
```python
In [22]: m = HumanMessage(content="Text")
In [23]: m
Out[23]: HumanMessage(content='Text')
In [24]: m = HumanMessage(content="Text", example=True)
In [25]: m
Out[25]: HumanMessage(content='Text', example=True)
```
### Twitter handle
[lin_bob57617](https://twitter.com/lin_bob57617)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14099/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14099/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14099",
"html_url": "https://github.com/langchain-ai/langchain/pull/14099",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14099.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14099.patch",
"merged_at": "2023-12-01T16:54:31"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14098
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14098/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14098/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14098/events
|
https://github.com/langchain-ai/langchain/issues/14098
| 2,019,840,343 |
I_kwDOIPDwls54ZFFX
| 14,098 |
Runnablemap different input for each chain
|
{
"login": "vignxs",
"id": 83700788,
"node_id": "MDQ6VXNlcjgzNzAwNzg4",
"avatar_url": "https://avatars.githubusercontent.com/u/83700788?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vignxs",
"html_url": "https://github.com/vignxs",
"followers_url": "https://api.github.com/users/vignxs/followers",
"following_url": "https://api.github.com/users/vignxs/following{/other_user}",
"gists_url": "https://api.github.com/users/vignxs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vignxs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vignxs/subscriptions",
"organizations_url": "https://api.github.com/users/vignxs/orgs",
"repos_url": "https://api.github.com/users/vignxs/repos",
"events_url": "https://api.github.com/users/vignxs/events{/privacy}",
"received_events_url": "https://api.github.com/users/vignxs/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"
}
] |
open
| false | null |
[] | null | 3 | 2023-12-01T01:09:07 | 2023-12-01T01:26:15 | null |
NONE
| null |
### Issue you'd like to raise.
langchain_core.runnables.base.RunnableMap
Im trying use this and i want to know is there any way that i can give different input for each chain
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14098/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14098/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14097
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14097/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14097/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14097/events
|
https://github.com/langchain-ai/langchain/pull/14097
| 2,019,828,555 |
PR_kwDOIPDwls5g19OS
| 14,097 |
[Nits] Evaluation - Some Rendering Improvements
|
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-12-01T01:02:01 | 2023-12-01T17:06:08 | 2023-12-01T17:06:07 |
COLLABORATOR
| null |
- Improve rendering of aggregate results at the end
- flatten reference if present
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14097/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14097/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14097",
"html_url": "https://github.com/langchain-ai/langchain/pull/14097",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14097.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14097.patch",
"merged_at": "2023-12-01T17:06:07"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14096
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14096/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14096/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14096/events
|
https://github.com/langchain-ai/langchain/pull/14096
| 2,019,794,999 |
PR_kwDOIPDwls5g12jO
| 14,096 |
local docs build <5s
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-12-01T00:39:53 | 2023-12-01T01:39:31 | 2023-12-01T01:39:30 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14096/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14096/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14096",
"html_url": "https://github.com/langchain-ai/langchain/pull/14096",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14096.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14096.patch",
"merged_at": "2023-12-01T01:39:30"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14095
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14095/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14095/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14095/events
|
https://github.com/langchain-ai/langchain/pull/14095
| 2,019,703,284 |
PR_kwDOIPDwls5g1h1c
| 14,095 |
langchain[patch]: release 0.0.344
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-30T23:44:03 | 2023-11-30T23:57:12 | 2023-11-30T23:57:12 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14095/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14095/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14095",
"html_url": "https://github.com/langchain-ai/langchain/pull/14095",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14095.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14095.patch",
"merged_at": "2023-11-30T23:57:12"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14094
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14094/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14094/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14094/events
|
https://github.com/langchain-ai/langchain/pull/14094
| 2,019,694,786 |
PR_kwDOIPDwls5g1f4o
| 14,094 |
side by side style
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-30T23:39:15 | 2023-12-01T00:58:47 | 2023-12-01T00:54:40 |
COLLABORATOR
| null |
Extra changes are from merging in master - should just be the why.ipynb and columns.js
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14094/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14094/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14094",
"html_url": "https://github.com/langchain-ai/langchain/pull/14094",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14094.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14094.patch",
"merged_at": "2023-12-01T00:54:40"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14093
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14093/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14093/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14093/events
|
https://github.com/langchain-ai/langchain/pull/14093
| 2,019,679,910 |
PR_kwDOIPDwls5g1ceN
| 14,093 |
Update metaphor_search.ipynb
|
{
"login": "HubertY",
"id": 7818732,
"node_id": "MDQ6VXNlcjc4MTg3MzI=",
"avatar_url": "https://avatars.githubusercontent.com/u/7818732?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/HubertY",
"html_url": "https://github.com/HubertY",
"followers_url": "https://api.github.com/users/HubertY/followers",
"following_url": "https://api.github.com/users/HubertY/following{/other_user}",
"gists_url": "https://api.github.com/users/HubertY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/HubertY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HubertY/subscriptions",
"organizations_url": "https://api.github.com/users/HubertY/orgs",
"repos_url": "https://api.github.com/users/HubertY/repos",
"events_url": "https://api.github.com/users/HubertY/events{/privacy}",
"received_events_url": "https://api.github.com/users/HubertY/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-30T23:30:20 | 2024-01-18T00:16:06 | 2023-12-01T00:34:05 |
CONTRIBUTOR
| null |
- **Description:** Touch up of the documentation page for Metaphor Search Tool integration. Removes documentation for old built-in tool wrapper.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14093/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14093/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14093",
"html_url": "https://github.com/langchain-ai/langchain/pull/14093",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14093.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14093.patch",
"merged_at": "2023-12-01T00:34:05"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14092
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14092/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14092/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14092/events
|
https://github.com/langchain-ai/langchain/pull/14092
| 2,019,645,078 |
PR_kwDOIPDwls5g1Uwq
| 14,092 |
Template for Ollama + Multi-query retriever
|
{
"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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] |
closed
| false |
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-11-30T22:57:22 | 2023-12-01T16:53:18 | 2023-12-01T16:53:17 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14092/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14092/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14092",
"html_url": "https://github.com/langchain-ai/langchain/pull/14092",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14092.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14092.patch",
"merged_at": "2023-12-01T16:53:17"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14090
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14090/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14090/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14090/events
|
https://github.com/langchain-ai/langchain/pull/14090
| 2,019,542,035 |
PR_kwDOIPDwls5g0994
| 14,090 |
add streaming to huggingfacepipeline models
|
{
"login": "laudanum123",
"id": 19952607,
"node_id": "MDQ6VXNlcjE5OTUyNjA3",
"avatar_url": "https://avatars.githubusercontent.com/u/19952607?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/laudanum123",
"html_url": "https://github.com/laudanum123",
"followers_url": "https://api.github.com/users/laudanum123/followers",
"following_url": "https://api.github.com/users/laudanum123/following{/other_user}",
"gists_url": "https://api.github.com/users/laudanum123/gists{/gist_id}",
"starred_url": "https://api.github.com/users/laudanum123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/laudanum123/subscriptions",
"organizations_url": "https://api.github.com/users/laudanum123/orgs",
"repos_url": "https://api.github.com/users/laudanum123/repos",
"events_url": "https://api.github.com/users/laudanum123/events{/privacy}",
"received_events_url": "https://api.github.com/users/laudanum123/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": 5496111774,
"node_id": "LA_kwDOIPDwls8AAAABR5gCng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work",
"name": "needs work",
"color": "F9D0C4",
"default": false,
"description": "PRs that need more work"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 1 | 2023-11-30T21:31:52 | 2023-12-13T01:32:47 | null |
NONE
| null |
**Description:**
This PR includes modifications to the `HuggingFacePipeline` class in the `langchain` library. Changes include the removal of unused imports, a minor cleanup in the code for better readability, and the addition of an `_astream` method for asynchronous streaming support. The `_astream` method integrates the `TextIteratorStreamer` from the `transformers` library and ensures inputs and the model are on the same device (cuda). Additionally, a print statement has been added in the generation loop for debugging purposes.
**Issue:**
N/A
**Dependencies:**
- `transformers` library
**Tag maintainer:**
@baskaryan, @eyurtsev, @hwchase17 for review.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14090/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14090/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14090",
"html_url": "https://github.com/langchain-ai/langchain/pull/14090",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14090.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14090.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14089
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14089/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14089/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14089/events
|
https://github.com/langchain-ai/langchain/pull/14089
| 2,019,535,526 |
PR_kwDOIPDwls5g08hN
| 14,089 |
Bagatur/lcel why doc
|
{
"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": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-30T21:26:41 | 2023-12-02T00:13:32 | 2023-12-02T00:13:31 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14089/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14089/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14089",
"html_url": "https://github.com/langchain-ai/langchain/pull/14089",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14089.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14089.patch",
"merged_at": "2023-12-02T00:13:31"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14088
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14088/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14088/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14088/events
|
https://github.com/langchain-ai/langchain/issues/14088
| 2,019,492,749 |
I_kwDOIPDwls54XwON
| 14,088 |
Pydantic error field required (type=value_error.missing) in LLMChainExtractor or ContextualCompressionRetriever
|
{
"login": "benjaminwfriedman",
"id": 11875832,
"node_id": "MDQ6VXNlcjExODc1ODMy",
"avatar_url": "https://avatars.githubusercontent.com/u/11875832?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/benjaminwfriedman",
"html_url": "https://github.com/benjaminwfriedman",
"followers_url": "https://api.github.com/users/benjaminwfriedman/followers",
"following_url": "https://api.github.com/users/benjaminwfriedman/following{/other_user}",
"gists_url": "https://api.github.com/users/benjaminwfriedman/gists{/gist_id}",
"starred_url": "https://api.github.com/users/benjaminwfriedman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benjaminwfriedman/subscriptions",
"organizations_url": "https://api.github.com/users/benjaminwfriedman/orgs",
"repos_url": "https://api.github.com/users/benjaminwfriedman/repos",
"events_url": "https://api.github.com/users/benjaminwfriedman/events{/privacy}",
"received_events_url": "https://api.github.com/users/benjaminwfriedman/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-30T20:53:24 | 2023-11-30T22:24:23 | 2023-11-30T22:24:23 |
NONE
| null |
### System Info
langchain 0.0.343
langchain-core 0.0.7
### 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
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
retriever = AzureCognitiveSearchRetriever(content_key="content", top_k=5)
llm = AzureChatOpenAI(
openai_api_version="2023-05-15",
azure_deployment="larger-chat-35",
)
template = """
I want you to act as a research assistant. you will answer questions about the context.
Context: {context}
Question: {question}?
"""
prompt = PromptTemplate(
input_variables=["question", "context"],
template=template,
)
compressor = LLMChainExtractor.from_llm(llm)
compression_retriever = ContextualCompressionRetriever(base_compressors=compressor,
base_retriever=retriever)
```
### Expected behavior
I'd expect the compression_retriever to be instantiated. But instead I receive the following error:
```
pydantic.v1.error_wrappers.ValidationError: 1 validation error for ContextualCompressionRetriever
base_compressor
field required (type=value_error.missing)
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14088/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14088/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14087
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14087/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14087/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14087/events
|
https://github.com/langchain-ai/langchain/pull/14087
| 2,019,476,823 |
PR_kwDOIPDwls5g0vtr
| 14,087 |
Mask API key Acree LLM
|
{
"login": "raphaelreiss",
"id": 16869716,
"node_id": "MDQ6VXNlcjE2ODY5NzE2",
"avatar_url": "https://avatars.githubusercontent.com/u/16869716?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/raphaelreiss",
"html_url": "https://github.com/raphaelreiss",
"followers_url": "https://api.github.com/users/raphaelreiss/followers",
"following_url": "https://api.github.com/users/raphaelreiss/following{/other_user}",
"gists_url": "https://api.github.com/users/raphaelreiss/gists{/gist_id}",
"starred_url": "https://api.github.com/users/raphaelreiss/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raphaelreiss/subscriptions",
"organizations_url": "https://api.github.com/users/raphaelreiss/orgs",
"repos_url": "https://api.github.com/users/raphaelreiss/repos",
"events_url": "https://api.github.com/users/raphaelreiss/events{/privacy}",
"received_events_url": "https://api.github.com/users/raphaelreiss/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false |
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-11-30T20:40:59 | 2023-12-05T18:02:16 | 2023-12-05T18:02:15 |
CONTRIBUTOR
| null |
Description: Add masking of API Key for Acree LLM when printed.
Issue: https://github.com/langchain-ai/langchain/issues/12165
Dependencies: None
Tag maintainer: @eyurtsev
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14087/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14087/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14087",
"html_url": "https://github.com/langchain-ai/langchain/pull/14087",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14087.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14087.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14086
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14086/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14086/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14086/events
|
https://github.com/langchain-ai/langchain/pull/14086
| 2,019,445,176 |
PR_kwDOIPDwls5g0opG
| 14,086 |
core[patch]: release 0.0.8
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-30T20:20:31 | 2024-01-08T04:56:25 | 2023-11-30T23:12:06 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14086/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14086/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14086",
"html_url": "https://github.com/langchain-ai/langchain/pull/14086",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14086.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14086.patch",
"merged_at": "2023-11-30T23:12:06"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14085
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14085/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14085/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14085/events
|
https://github.com/langchain-ai/langchain/issues/14085
| 2,019,431,096 |
I_kwDOIPDwls54XhK4
| 14,085 |
RunnableWithFallbacks should have a parameter to choose whether to raise first error or last error
|
{
"login": "michaelgrewal",
"id": 58837913,
"node_id": "MDQ6VXNlcjU4ODM3OTEz",
"avatar_url": "https://avatars.githubusercontent.com/u/58837913?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/michaelgrewal",
"html_url": "https://github.com/michaelgrewal",
"followers_url": "https://api.github.com/users/michaelgrewal/followers",
"following_url": "https://api.github.com/users/michaelgrewal/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelgrewal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/michaelgrewal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelgrewal/subscriptions",
"organizations_url": "https://api.github.com/users/michaelgrewal/orgs",
"repos_url": "https://api.github.com/users/michaelgrewal/repos",
"events_url": "https://api.github.com/users/michaelgrewal/events{/privacy}",
"received_events_url": "https://api.github.com/users/michaelgrewal/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"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-30T20:12:47 | 2023-11-30T20:15:05 | null |
NONE
| null |
### Feature request
The `invoke()` method for RunnableWithFallbacks is only raising the first_error caught in the runnables. I would like to have an option to choose whether to raise the first error or last error.
Can this be a parameter for `invoke()`?
### Motivation
When using fallbacks, the first error could be related to the first Runnable. However, the error I'm actually interested to handle is the last error from the end of my fallbacks.
The last error is the most downstream error from my chains, and it's the error I want to handle in my app business logic.
### Your contribution
N/A
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14085/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14085/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14084
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14084/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14084/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14084/events
|
https://github.com/langchain-ai/langchain/issues/14084
| 2,019,400,383 |
I_kwDOIPDwls54XZq_
| 14,084 |
`BaseOutputParser` breaks pydantic `PrivateAttr`
|
{
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 4 | 2023-11-30T19:56:09 | 2023-12-02T18:33:06 | 2023-12-02T18:33:06 |
CONTRIBUTOR
| null |
### System Info
langchain== 0.0.340
pydantic==2.4.2
pydantic_core==2.10.1
### Who can help?
@hwchase17 @eyur
### 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
from langchain.schema import BaseOutputParser
from pydantic import PrivateAttr
class MyParser(BaseOutputParser[list[int]]):
_list: list[int] = PrivateAttr(default_factory=list)
def parse(self, text: str) -> list[int]:
return self._list
parser = MyParser()
assert parser.parse("test") == []
```
### Expected behavior
I expect `PrivateAttr` to still work within `BaseOutputParser`.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14084/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14084/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14083
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14083/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14083/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14083/events
|
https://github.com/langchain-ai/langchain/issues/14083
| 2,019,393,730 |
I_kwDOIPDwls54XYDC
| 14,083 |
in AWS langchain Bedrock, how do I set temperature?
|
{
"login": "mansourshams",
"id": 46978885,
"node_id": "MDQ6VXNlcjQ2OTc4ODg1",
"avatar_url": "https://avatars.githubusercontent.com/u/46978885?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mansourshams",
"html_url": "https://github.com/mansourshams",
"followers_url": "https://api.github.com/users/mansourshams/followers",
"following_url": "https://api.github.com/users/mansourshams/following{/other_user}",
"gists_url": "https://api.github.com/users/mansourshams/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mansourshams/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mansourshams/subscriptions",
"organizations_url": "https://api.github.com/users/mansourshams/orgs",
"repos_url": "https://api.github.com/users/mansourshams/repos",
"events_url": "https://api.github.com/users/mansourshams/events{/privacy}",
"received_events_url": "https://api.github.com/users/mansourshams/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] |
open
| false | null |
[] | null | 17 | 2023-11-30T19:51:15 | 2023-12-01T01:16:45 | null |
NONE
| null |
### System Info
in AWS langchain Bedrock, how do I set temperature?
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Tried putting it as a parameter of Bedrock and gave error that such parameter does not exist. Then put is as paramenters of kwargs and it had no effect
### Expected behavior
Expected this to be a direct parameter of Bedrock, but it seems that it is not
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14083/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14083/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14082
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14082/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14082/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14082/events
|
https://github.com/langchain-ai/langchain/issues/14082
| 2,019,376,935 |
I_kwDOIPDwls54XT8n
| 14,082 |
Combine langchain retrievers
|
{
"login": "RishiMalhotra920",
"id": 55925357,
"node_id": "MDQ6VXNlcjU1OTI1MzU3",
"avatar_url": "https://avatars.githubusercontent.com/u/55925357?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RishiMalhotra920",
"html_url": "https://github.com/RishiMalhotra920",
"followers_url": "https://api.github.com/users/RishiMalhotra920/followers",
"following_url": "https://api.github.com/users/RishiMalhotra920/following{/other_user}",
"gists_url": "https://api.github.com/users/RishiMalhotra920/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RishiMalhotra920/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RishiMalhotra920/subscriptions",
"organizations_url": "https://api.github.com/users/RishiMalhotra920/orgs",
"repos_url": "https://api.github.com/users/RishiMalhotra920/repos",
"events_url": "https://api.github.com/users/RishiMalhotra920/events{/privacy}",
"received_events_url": "https://api.github.com/users/RishiMalhotra920/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 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 | 8 | 2023-11-30T19:39:09 | 2023-12-06T09:30:57 | null |
NONE
| null |
### Issue you'd like to raise.
I am using ConversationalRetrievalChain. I have created two vector stores and I want the query from ConversationalRetrievalChain to be compared against both vector stores and results from both vector stores to be used to create the final answer.
So I have decided to create two retrievers
retriever1 = vectorstore1.as_retriever()
retriever2 = vectorstore2.as_retriever()
How can I now override the Retriever class so that when the query is compared against my custom_retriever, it is compared against documents from both retrievers, and documents from both retrievers are used to create the prompt.
Note: i don't want to merge the vectorstores because that messes up the similarity search.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14082/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14082/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14080
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14080/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14080/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14080/events
|
https://github.com/langchain-ai/langchain/issues/14080
| 2,019,317,039 |
I_kwDOIPDwls54XFUv
| 14,080 |
Random Seed when using LLM Agent
|
{
"login": "syyunn",
"id": 21968222,
"node_id": "MDQ6VXNlcjIxOTY4MjIy",
"avatar_url": "https://avatars.githubusercontent.com/u/21968222?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/syyunn",
"html_url": "https://github.com/syyunn",
"followers_url": "https://api.github.com/users/syyunn/followers",
"following_url": "https://api.github.com/users/syyunn/following{/other_user}",
"gists_url": "https://api.github.com/users/syyunn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/syyunn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/syyunn/subscriptions",
"organizations_url": "https://api.github.com/users/syyunn/orgs",
"repos_url": "https://api.github.com/users/syyunn/repos",
"events_url": "https://api.github.com/users/syyunn/events{/privacy}",
"received_events_url": "https://api.github.com/users/syyunn/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-30T18:56:50 | 2023-11-30T19:06:42 | null |
NONE
| null |
### System Info
Mac OS
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
When I am using Agent, random seed doesn't work.
model_kwargs = {
"seed": 2139
}
llm_agent = ChatOpenAI(temperature=0,
openai_api_key='sk-',
model_name='gpt-4-1106-preview',
model_kwargs=model_kwargs)
llm_cypher = ChatOpenAI(temperature=0,
openai_api_key='sk-',
model_name='gpt-4-1106-preview',
model_kwargs=model_kwargs)
llm_graph = ChatOpenAI(temperature=0,
openai_api_key='sk-',
model_name='gpt-4-1106-preview',
model_kwargs=model_kwargs)
tools = [
Tool(
name="GraphDB Search tool",
func=chain,
description=tool_description
)
]
chain = CustomGraphCypherQAChain.from_llm(
top_k=100,
llm=llm_graph,
return_direct=True, # this return the observation from cypher query directly without rethinking over observation
return_intermediate_steps=True, # this is only returned when it's call by chain() not by chain.run()
cypher_llm=llm_cypher,
graph=graph,
verbose=True,
cypher_prompt=CYPHER_GENERATION_PROMPT
)
def init_agent():
agent = initialize_agent(
tools,
llm_agent,
agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
verbose=True,
handle_errors=True,
handle_parsing_errors=True,
return_intermediate_steps=True,
max_iterations=10,
)
return agent
this agent don't reproduce for same input
### Expected behavior
I expect Agent keep resulting in same answer for the same input prompt
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14080/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14080/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14079
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14079/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14079/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14079/events
|
https://github.com/langchain-ai/langchain/issues/14079
| 2,019,294,151 |
I_kwDOIPDwls54W_vH
| 14,079 |
Support for Perplexity's PPLX models: `pplx-7b-online` and `pplx-70b-online`
|
{
"login": "jamino30",
"id": 79227536,
"node_id": "MDQ6VXNlcjc5MjI3NTM2",
"avatar_url": "https://avatars.githubusercontent.com/u/79227536?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamino30",
"html_url": "https://github.com/jamino30",
"followers_url": "https://api.github.com/users/jamino30/followers",
"following_url": "https://api.github.com/users/jamino30/following{/other_user}",
"gists_url": "https://api.github.com/users/jamino30/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamino30/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamino30/subscriptions",
"organizations_url": "https://api.github.com/users/jamino30/orgs",
"repos_url": "https://api.github.com/users/jamino30/repos",
"events_url": "https://api.github.com/users/jamino30/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamino30/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-30T18:41:11 | 2023-11-30T18:46:25 | null |
NONE
| null |
### Feature request
Support for Perplexity's new [PPLX models](https://blog.perplexity.ai/blog/introducing-pplx-online-llms).
### Motivation
Boosting online LLM support, particularly for Perplexity-based models, would be highly impactful and useful.
### Your contribution
Currently working on a PR!
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14079/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14079/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14078
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14078/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14078/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14078/events
|
https://github.com/langchain-ai/langchain/pull/14078
| 2,019,273,090 |
PR_kwDOIPDwls5g0CxF
| 14,078 |
Fix: (issue #14066) DOC: Summarization output broken
|
{
"login": "ggeutzzang",
"id": 375580,
"node_id": "MDQ6VXNlcjM3NTU4MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/375580?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ggeutzzang",
"html_url": "https://github.com/ggeutzzang",
"followers_url": "https://api.github.com/users/ggeutzzang/followers",
"following_url": "https://api.github.com/users/ggeutzzang/following{/other_user}",
"gists_url": "https://api.github.com/users/ggeutzzang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ggeutzzang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ggeutzzang/subscriptions",
"organizations_url": "https://api.github.com/users/ggeutzzang/orgs",
"repos_url": "https://api.github.com/users/ggeutzzang/repos",
"events_url": "https://api.github.com/users/ggeutzzang/events{/privacy}",
"received_events_url": "https://api.github.com/users/ggeutzzang/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-30T18:27:26 | 2023-12-03T18:13:57 | 2023-12-03T18:13:57 |
CONTRIBUTOR
| null |
- **Description:** : As described in the issue below,
https://python.langchain.com/docs/use_cases/summarization
I've modified the Python code in the above notebook to perform well.
I also modified the OpenAI LLM model to the latest version as shown below.
`gpt-3.5-turbo-16k --> gpt-3.5-turbo-1106`
This is because it seems to be a bit more responsive.
- **Issue:** : #14066
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14078/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14078/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14078",
"html_url": "https://github.com/langchain-ai/langchain/pull/14078",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14078.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14078.patch",
"merged_at": "2023-12-03T18:13:57"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14077
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14077/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14077/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14077/events
|
https://github.com/langchain-ai/langchain/issues/14077
| 2,019,257,671 |
I_kwDOIPDwls54W21H
| 14,077 |
MyCallbackHandler can't show logs explicitly
|
{
"login": "CankatSarac",
"id": 41361484,
"node_id": "MDQ6VXNlcjQxMzYxNDg0",
"avatar_url": "https://avatars.githubusercontent.com/u/41361484?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/CankatSarac",
"html_url": "https://github.com/CankatSarac",
"followers_url": "https://api.github.com/users/CankatSarac/followers",
"following_url": "https://api.github.com/users/CankatSarac/following{/other_user}",
"gists_url": "https://api.github.com/users/CankatSarac/gists{/gist_id}",
"starred_url": "https://api.github.com/users/CankatSarac/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CankatSarac/subscriptions",
"organizations_url": "https://api.github.com/users/CankatSarac/orgs",
"repos_url": "https://api.github.com/users/CankatSarac/repos",
"events_url": "https://api.github.com/users/CankatSarac/events{/privacy}",
"received_events_url": "https://api.github.com/users/CankatSarac/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-30T18:20:20 | 2023-11-30T18:25:42 | null |
NONE
| null |
### Issue you'd like to raise.
Hello everyone,
We are having request timeout on our calls and they are being getting retries after failing but we want to see how many times doing these retries and all their logs.
When the requests are timing out, nothing has been sending callbackhandler and we want to see how many retries had been done under the ChatOpenAI LLM model.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14077/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14077/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14074
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14074/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14074/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14074/events
|
https://github.com/langchain-ai/langchain/issues/14074
| 2,019,146,581 |
I_kwDOIPDwls54WbtV
| 14,074 |
Regardless of the text length, the QAGenerationChain consistently generates only one question.
|
{
"login": "khacsinhcs",
"id": 6119215,
"node_id": "MDQ6VXNlcjYxMTkyMTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/6119215?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/khacsinhcs",
"html_url": "https://github.com/khacsinhcs",
"followers_url": "https://api.github.com/users/khacsinhcs/followers",
"following_url": "https://api.github.com/users/khacsinhcs/following{/other_user}",
"gists_url": "https://api.github.com/users/khacsinhcs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/khacsinhcs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/khacsinhcs/subscriptions",
"organizations_url": "https://api.github.com/users/khacsinhcs/orgs",
"repos_url": "https://api.github.com/users/khacsinhcs/repos",
"events_url": "https://api.github.com/users/khacsinhcs/events{/privacy}",
"received_events_url": "https://api.github.com/users/khacsinhcs/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-30T17:21:42 | 2023-11-30T17:29:23 | null |
NONE
| null |
### System Info
Regardless of the text length, the QAGenerationChain consistently generates only one question.
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from langchain.chains import QAGenerationChain
from langchain.llms import OpenAI
# Initialize the language model
lm = OpenAI()
# Create the QA Generator Chain
qa_chain = QAGenerationChain.from_llm(llm=lm)
qa_chain.k = 4
# Example usage
context = """
Introduction
LangChain is a framework for developing applications powered by language models. It enables applications that:
Are context-aware: connect a language model to sources of context (prompt instructions, few shot examples, content to ground its response in, etc.)
Reason: rely on a language model to reason (about how to answer based on provided context, what actions to take, etc.)
This framework consists of several parts.
LangChain Libraries: The Python and JavaScript libraries. Contains interfaces and integrations for a myriad of components, a basic run time for combining these components into chains and agents, and off-the-shelf implementations of chains and agents.
LangChain Templates: A collection of easily deployable reference architectures for a wide variety of tasks.
LangServe: A library for deploying LangChain chains as a REST API.
LangSmith: A developer platform that lets you debug, test, evaluate, and monitor chains built on any LLM framework and seamlessly integrates with LangChain.
LangChain Diagram
Together, these products simplify the entire application lifecycle:
Develop: Write your applications in LangChain/LangChain.js. Hit the ground running using Templates for reference.
Productionize: Use LangSmith to inspect, test and monitor your chains, so that you can constantly improve and deploy with confidence.
Deploy: Turn any chain into an API with LangServe.
LangChain Libraries
The main value props of the LangChain packages are:
Components: composable tools and integrations for working with language models. Components are modular and easy-to-use, whether you are using the rest of the LangChain framework or not
Off-the-shelf chains: built-in assemblages of components for accomplishing higher-level tasks
Off-the-shelf chains make it easy to get started. Components make it easy to customize existing chains and build new ones.
Get started
Here’s how to install LangChain, set up your environment, and start building.
We recommend following our Quickstart guide to familiarize yourself with the framework by building your first LangChain application.
Read up on our Security best practices to make sure you're developing safely with LangChain.
NOTE
These docs focus on the Python LangChain library. Head here for docs on the JavaScript LangChain library.
LangChain Expression Language (LCEL)
LCEL is a declarative way to compose chains. LCEL was designed from day 1 to support putting prototypes in production, with no code changes, from the simplest “prompt + LLM” chain to the most complex chains.
Overview: LCEL and its benefits
Interface: The standard interface for LCEL objects
How-to: Key features of LCEL
Cookbook: Example code for accomplishing common tasks
Modules
LangChain provides standard, extendable interfaces and integrations for the following modules:
Model I/O
Interface with language models
Retrieval
Interface with application-specific data
Agents
Let models choose which tools to use given high-level directives
Examples, ecosystem, and resources
Use cases
Walkthroughs and techniques for common end-to-end use cases, like:
Document question answering
Chatbots
Analyzing structured data
and much more...
Integrations
LangChain is part of a rich ecosystem of tools that integrate with our framework and build on top of it. Check out our growing list of integrations.
Guides
Best practices for developing with LangChain.
API reference
Head to the reference section for full documentation of all classes and methods in the LangChain and LangChain Experimental Python packages.
Developer's guide
Check out the developer's guide for guidelines on contributing and help getting your dev environment set up.
Community
Head to the Community navigator to find places to ask questions, share feedback, meet other developers, and dream about the future of LLM’s.
"""
questions = qa_chain.run(context)
print(questions)
```
output
```
[{'question': 'What are the main value props of the LangChain packages?', 'answer': 'The main value props of the LangChain packages are composable tools and integrations for working with language models, off-the-shelf chains for accomplishing higher-level tasks, and the ability to easily deploy chains as a REST API.'}]
```
### Expected behavior
I expect to specify the number of responses by setting the 'k' value.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14074/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14074/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14073
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14073/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14073/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14073/events
|
https://github.com/langchain-ai/langchain/issues/14073
| 2,018,961,211 |
I_kwDOIPDwls54Vuc7
| 14,073 |
Dependency Issues with sentence-transformers and chromadb
|
{
"login": "itlackey",
"id": 6414031,
"node_id": "MDQ6VXNlcjY0MTQwMzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/6414031?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/itlackey",
"html_url": "https://github.com/itlackey",
"followers_url": "https://api.github.com/users/itlackey/followers",
"following_url": "https://api.github.com/users/itlackey/following{/other_user}",
"gists_url": "https://api.github.com/users/itlackey/gists{/gist_id}",
"starred_url": "https://api.github.com/users/itlackey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/itlackey/subscriptions",
"organizations_url": "https://api.github.com/users/itlackey/orgs",
"repos_url": "https://api.github.com/users/itlackey/repos",
"events_url": "https://api.github.com/users/itlackey/events{/privacy}",
"received_events_url": "https://api.github.com/users/itlackey/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-30T15:52:09 | 2023-11-30T16:02:01 | null |
NONE
| null |
### System Info
LangChain Version: 0.0.339
ChromaDB 0.4.18
sentence-transformers 2.2.1
Python 3.12.0
### Who can help?
@hwchase17
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Create a requirements file with these entries:
langchain
chromadb
sentence-transformers
Run pip install -r requirements.txt
### Expected behavior
I expect the install to complete correctly.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14073/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14073/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14071
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14071/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14071/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14071/events
|
https://github.com/langchain-ai/langchain/issues/14071
| 2,018,865,714 |
I_kwDOIPDwls54VXIy
| 14,071 |
SQLDatabase.get_table_info is not returning useful information
|
{
"login": "mikedewar",
"id": 149211,
"node_id": "MDQ6VXNlcjE0OTIxMQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/149211?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mikedewar",
"html_url": "https://github.com/mikedewar",
"followers_url": "https://api.github.com/users/mikedewar/followers",
"following_url": "https://api.github.com/users/mikedewar/following{/other_user}",
"gists_url": "https://api.github.com/users/mikedewar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mikedewar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mikedewar/subscriptions",
"organizations_url": "https://api.github.com/users/mikedewar/orgs",
"repos_url": "https://api.github.com/users/mikedewar/repos",
"events_url": "https://api.github.com/users/mikedewar/events{/privacy}",
"received_events_url": "https://api.github.com/users/mikedewar/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 5 | 2023-11-30T15:03:55 | 2023-12-03T10:30:35 | 2023-12-03T10:28:07 |
NONE
| null |
### System Info
Python 3.11.5
langchain 0.0.343
langchain-core 0.0.7
sqlalchemy 2.0.21
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
# make a little database
import sqlite3
con = sqlite3.connect("test.db")
cur = con.cursor()
cur.execute("DROP TABLE IF EXISTS test_table")
cur.execute("CREATE TABLE test_table(a, b, c, d)")
cur.execute("INSERT INTO test_table VALUES (1,2,3,4)")
cur.execute("INSERT INTO test_table VALUES (4,5,6,7)")
cur.execute("INSERT INTO test_table VALUES (8,9,10,11)")
con.commit()
# then...
from langchain.sql_database import SQLDatabase
db = SQLDatabase.from_uri("sqlite:///test.db", include_tables=["test_table"], sample_rows_in_table_info=2)
print(db.table_info)
---------------------------------------------------------------------------
OperationalError Traceback (most recent call last)
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/sqlalchemy/engine/base.py:1965, in Connection._exec_single_context(self, dialect, context, statement, parameters)
1964 if not evt_handled:
-> 1965 self.dialect.do_execute(
1966 cursor, str_statement, effective_parameters, context
1967 )
1969 if self._has_events or self.engine._has_events:
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/sqlalchemy/engine/default.py:921, in DefaultDialect.do_execute(self, cursor, statement, parameters, context)
920 def do_execute(self, cursor, statement, parameters, context=None):
--> 921 cursor.execute(statement, parameters)
OperationalError: near "FROM": syntax error
The above exception was the direct cause of the following exception:
OperationalError Traceback (most recent call last)
Cell In[23], line 3
1 from langchain.sql_database import SQLDatabase
2 db = SQLDatabase.from_uri("sqlite:///test.db", include_tables=["test_table"], sample_rows_in_table_info=2)
----> 3 print(db.table_info)
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/langchain/utilities/sql_database.py:286, in SQLDatabase.table_info(self)
283 @property
284 def table_info(self) -> str:
285 """Information about all tables in the database."""
--> 286 return self.get_table_info()
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/langchain/utilities/sql_database.py:334, in SQLDatabase.get_table_info(self, table_names)
332 table_info += f"\n{self._get_table_indexes(table)}\n"
333 if self._sample_rows_in_table_info:
--> 334 table_info += f"\n{self._get_sample_rows(table)}\n"
335 if has_extra_info:
336 table_info += "*/"
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/langchain/utilities/sql_database.py:357, in SQLDatabase._get_sample_rows(self, table)
354 try:
355 # get the sample rows
356 with self._engine.connect() as connection:
--> 357 sample_rows_result = connection.execute(command) # type: ignore
358 # shorten values in the sample rows
359 sample_rows = list(
360 map(lambda ls: [str(i)[:100] for i in ls], sample_rows_result)
361 )
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/sqlalchemy/engine/base.py:1412, in Connection.execute(self, statement, parameters, execution_options)
1410 raise exc.ObjectNotExecutableError(statement) from err
1411 else:
-> 1412 return meth(
1413 self,
1414 distilled_parameters,
1415 execution_options or NO_OPTIONS,
1416 )
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/sqlalchemy/sql/elements.py:516, in ClauseElement._execute_on_connection(self, connection, distilled_params, execution_options)
514 if TYPE_CHECKING:
515 assert isinstance(self, Executable)
--> 516 return connection._execute_clauseelement(
517 self, distilled_params, execution_options
518 )
519 else:
520 raise exc.ObjectNotExecutableError(self)
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/sqlalchemy/engine/base.py:1635, in Connection._execute_clauseelement(self, elem, distilled_parameters, execution_options)
1623 compiled_cache: Optional[CompiledCacheType] = execution_options.get(
1624 "compiled_cache", self.engine._compiled_cache
1625 )
1627 compiled_sql, extracted_params, cache_hit = elem._compile_w_cache(
1628 dialect=dialect,
1629 compiled_cache=compiled_cache,
(...)
1633 linting=self.dialect.compiler_linting | compiler.WARN_LINTING,
1634 )
-> 1635 ret = self._execute_context(
1636 dialect,
1637 dialect.execution_ctx_cls._init_compiled,
1638 compiled_sql,
1639 distilled_parameters,
1640 execution_options,
1641 compiled_sql,
1642 distilled_parameters,
1643 elem,
1644 extracted_params,
1645 cache_hit=cache_hit,
1646 )
1647 if has_events:
1648 self.dispatch.after_execute(
1649 self,
1650 elem,
(...)
1654 ret,
1655 )
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/sqlalchemy/engine/base.py:1844, in Connection._execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw)
1839 return self._exec_insertmany_context(
1840 dialect,
1841 context,
1842 )
1843 else:
-> 1844 return self._exec_single_context(
1845 dialect, context, statement, parameters
1846 )
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/sqlalchemy/engine/base.py:1984, in Connection._exec_single_context(self, dialect, context, statement, parameters)
1981 result = context._setup_result_proxy()
1983 except BaseException as e:
-> 1984 self._handle_dbapi_exception(
1985 e, str_statement, effective_parameters, cursor, context
1986 )
1988 return result
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/sqlalchemy/engine/base.py:2339, in Connection._handle_dbapi_exception(self, e, statement, parameters, cursor, context, is_sub_exec)
2337 elif should_wrap:
2338 assert sqlalchemy_exception is not None
-> 2339 raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
2340 else:
2341 assert exc_info[1] is not None
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/sqlalchemy/engine/base.py:1965, in Connection._exec_single_context(self, dialect, context, statement, parameters)
1963 break
1964 if not evt_handled:
-> 1965 self.dialect.do_execute(
1966 cursor, str_statement, effective_parameters, context
1967 )
1969 if self._has_events or self.engine._has_events:
1970 self.dispatch.after_cursor_execute(
1971 self,
1972 cursor,
(...)
1976 context.executemany,
1977 )
File ~/miniconda3/envs/forScience/lib/python3.11/site-packages/sqlalchemy/engine/default.py:921, in DefaultDialect.do_execute(self, cursor, statement, parameters, context)
920 def do_execute(self, cursor, statement, parameters, context=None):
--> 921 cursor.execute(statement, parameters)
OperationalError: (sqlite3.OperationalError) near "FROM": syntax error
[SQL: SELECT
FROM test_table
LIMIT ? OFFSET ?]
[parameters: (2, 0)]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
```
### Expected behavior
From https://python.langchain.com/docs/use_cases/qa_structured/sql I expect:
```
CREATE TABLE "test_table" (
"a" INTEGER,
"b" INTEGER,
"c" INTEGER,
"d" INTEGER
)
/*
2 rows from test_table table:
a b c d
1 2 3 4
5 6 7 8
*/
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14071/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14071/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14069
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14069/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14069/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14069/events
|
https://github.com/langchain-ai/langchain/issues/14069
| 2,018,694,209 |
I_kwDOIPDwls54UtRB
| 14,069 |
AzureOpenAI azure_ad_token_provider Keyerror
|
{
"login": "axen22",
"id": 53572480,
"node_id": "MDQ6VXNlcjUzNTcyNDgw",
"avatar_url": "https://avatars.githubusercontent.com/u/53572480?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/axen22",
"html_url": "https://github.com/axen22",
"followers_url": "https://api.github.com/users/axen22/followers",
"following_url": "https://api.github.com/users/axen22/following{/other_user}",
"gists_url": "https://api.github.com/users/axen22/gists{/gist_id}",
"starred_url": "https://api.github.com/users/axen22/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/axen22/subscriptions",
"organizations_url": "https://api.github.com/users/axen22/orgs",
"repos_url": "https://api.github.com/users/axen22/repos",
"events_url": "https://api.github.com/users/axen22/events{/privacy}",
"received_events_url": "https://api.github.com/users/axen22/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 6 | 2023-11-30T13:39:55 | 2023-12-05T23:54:12 | 2023-12-03T16:55:27 |
NONE
| null |
### System Info
When I use below snippet of code
```
import os
from azure.identity import DefaultAzureCredential
from azure.identity import get_bearer_token_provider
from langchain.llms import AzureOpenAI
from langchain.chat_models import AzureChatOpenAI
credential = DefaultAzureCredential(interactive_browser_tenant_id=tenant_id,
interactive_browser_client_id=client_id,
client_secret=client_secret)
token_provider = get_bearer_token_provider(credential, "https://cognitiveservices.azure.com/.default")
endpoint = "https://xxxx.openai.azure.com"
client = AzureOpenAI( azure_endpoint=endpoint,
api_version="2023-05-15",
azure_deployment="example-gpt-4",
azure_ad_token_provider=token_provider)
```
I get error :
```---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
Cell In[36], line 21
18 # api_version = "2023-05-15"
19 endpoint = "https://xxxx.openai.azure.com"
---> 21 client = AzureOpenAI(
22 azure_endpoint=endpoint,
23 api_version="2023-05-15",
24 azure_deployment="example-gpt-4",
25 azure_ad_token_provider=token_provider,
26 )
File ~/PycharmProjects/aicc/env/lib/python3.9/site-packages/langchain_core/load/serializable.py:97, in Serializable.__init__(self, **kwargs)
96 def __init__(self, **kwargs: Any) -> None:
---> 97 super().__init__(**kwargs)
98 self._lc_kwargs = kwargs
File ~/PycharmProjects/aicc/env/lib/python3.9/site-packages/pydantic/v1/main.py:339, in BaseModel.__init__(__pydantic_self__, **data)
333 """
334 Create a new model by parsing and validating input data from keyword arguments.
335
336 Raises ValidationError if the input data cannot be parsed to form a valid model.
337 """
338 # Uses something other than `self` the first arg to allow "self" as a settable attribute
--> 339 values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
340 if validation_error:
341 raise validation_error
File ~/PycharmProjects/aicc/env/lib/python3.9/site-packages/pydantic/v1/main.py:1102, in validate_model(model, input_data, cls)
1100 continue
1101 try:
-> 1102 values = validator(cls_, values)
1103 except (ValueError, TypeError, AssertionError) as exc:
1104 errors.append(ErrorWrapper(exc, loc=ROOT_KEY))
File ~/PycharmProjects/aicc/env/lib/python3.9/site-packages/langchain/llms/openai.py:887, in AzureOpenAI.validate_environment(cls, values)
877 values["openai_api_base"] += (
878 "/deployments/" + values["deployment_name"]
879 )
880 values["deployment_name"] = None
881 client_params = {
882 "api_version": values["openai_api_version"],
883 "azure_endpoint": values["azure_endpoint"],
884 "azure_deployment": values["deployment_name"],
885 "api_key": values["openai_api_key"],
886 "azure_ad_token": values["azure_ad_token"],
--> 887 "azure_ad_token_provider": values["azure_ad_token_provider"],
888 "organization": values["openai_organization"],
889 "base_url": values["openai_api_base"],
890 "timeout": values["request_timeout"],
891 "max_retries": values["max_retries"],
892 "default_headers": values["default_headers"],
893 "default_query": values["default_query"],
894 "http_client": values["http_client"],
895 }
896 values["client"] = openai.AzureOpenAI(**client_params).completions
897 values["async_client"] = openai.AsyncAzureOpenAI(
898 **client_params
899 ).completions
KeyError: 'azure_ad_token_provider'
```
Ive also tried AzureChatOpenAI , and I get the same error back.
The error is not reproduced when I use openai library AzureOpenAI .
Also on openai the azure_ad_token_provider has type azure_ad_token_provider: 'AzureADTokenProvider | None' = None while in langchain it has type azure_ad_token_provider: Optional[str] = None which also makes me wonder if it would take as input a different type than string to work with.
any ideas on how to fix this? Im actually using Azure Service principal authentication, and if I use as alternative field azure_ad_token = credential.get_token(“https://cognitiveservices.azure.com/.default”).token I get token expired after 60min which does not happen with a bearer token, so It is important to me to make the token_provider work.
libraries :
pydantic 1.10.12
pydantic_core 2.10.1
openai 1.2.0
langchain 0.0.342
langchain-core 0.0.7
### Who can help?
@hwchase17 @agola11
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
import os
from azure.identity import DefaultAzureCredential
from azure.identity import get_bearer_token_provider
from langchain.llms import AzureOpenAI
from langchain.chat_models import AzureChatOpenAI
credential = DefaultAzureCredential(interactive_browser_tenant_id=tenant_id,
interactive_browser_client_id=client_id,
client_secret=client_secret)
token_provider = get_bearer_token_provider(credential, "https://cognitiveservices.azure.com/.default")
endpoint = "https://xxxx.openai.azure.com"
client = AzureOpenAI( azure_endpoint=endpoint,
api_version="2023-05-15",
azure_deployment="example-gpt-4",
azure_ad_token_provider=token_provider)
### Expected behavior
client = AzureOpenAI( azure_endpoint=endpoint,
api_version="2023-05-15",
azure_deployment="example-gpt-4",
azure_ad_token_provider=token_provider)
should return a Runnable instance which I can use for LLMChain
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14069/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/14069/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14068
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14068/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14068/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14068/events
|
https://github.com/langchain-ai/langchain/pull/14068
| 2,018,647,603 |
PR_kwDOIPDwls5gx353
| 14,068 |
Add input_type override
|
{
"login": "billytrend-cohere",
"id": 144115527,
"node_id": "U_kgDOCJcHRw",
"avatar_url": "https://avatars.githubusercontent.com/u/144115527?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/billytrend-cohere",
"html_url": "https://github.com/billytrend-cohere",
"followers_url": "https://api.github.com/users/billytrend-cohere/followers",
"following_url": "https://api.github.com/users/billytrend-cohere/following{/other_user}",
"gists_url": "https://api.github.com/users/billytrend-cohere/gists{/gist_id}",
"starred_url": "https://api.github.com/users/billytrend-cohere/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/billytrend-cohere/subscriptions",
"organizations_url": "https://api.github.com/users/billytrend-cohere/orgs",
"repos_url": "https://api.github.com/users/billytrend-cohere/repos",
"events_url": "https://api.github.com/users/billytrend-cohere/events{/privacy}",
"received_events_url": "https://api.github.com/users/billytrend-cohere/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": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-30T13:15:07 | 2023-12-27T17:14:46 | 2023-12-04T20:10:25 |
CONTRIBUTOR
| null |
Add option to override input_type for cohere's v3 embeddings models
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14068/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14068/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14068",
"html_url": "https://github.com/langchain-ai/langchain/pull/14068",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14068.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14068.patch",
"merged_at": "2023-12-04T20:10:25"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14067
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14067/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14067/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14067/events
|
https://github.com/langchain-ai/langchain/pull/14067
| 2,018,497,879 |
PR_kwDOIPDwls5gxXHn
| 14,067 |
Chat model for Llamacpp runtime
|
{
"login": "jpodivin",
"id": 66251151,
"node_id": "MDQ6VXNlcjY2MjUxMTUx",
"avatar_url": "https://avatars.githubusercontent.com/u/66251151?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jpodivin",
"html_url": "https://github.com/jpodivin",
"followers_url": "https://api.github.com/users/jpodivin/followers",
"following_url": "https://api.github.com/users/jpodivin/following{/other_user}",
"gists_url": "https://api.github.com/users/jpodivin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jpodivin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jpodivin/subscriptions",
"organizations_url": "https://api.github.com/users/jpodivin/orgs",
"repos_url": "https://api.github.com/users/jpodivin/repos",
"events_url": "https://api.github.com/users/jpodivin/events{/privacy}",
"received_events_url": "https://api.github.com/users/jpodivin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5510857403,
"node_id": "LA_kwDOIPDwls8AAAABSHkCuw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation",
"name": "needs documentation",
"color": "DCAAC0",
"default": false,
"description": "PR needs to be updated with documentation"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 6 | 2023-11-30T11:57:54 | 2023-12-15T09:36:39 | null |
NONE
| null |
**Description:**
LllamaCpp runtime has been supported by langchain for some time. However, it lacked appropriate chat model to go with it. This PR adds chat model built around llamacpp llm, using some of the common facilities of chat models.
**Issue:**
Lack of chat model to use with llamacpp runtime.
**Dependencies:**
N/A
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14067/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14067/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14067",
"html_url": "https://github.com/langchain-ai/langchain/pull/14067",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14067.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14067.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14066
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14066/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14066/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14066/events
|
https://github.com/langchain-ai/langchain/issues/14066
| 2,018,460,541 |
I_kwDOIPDwls54T0N9
| 14,066 |
DOC: Summarization output broken
|
{
"login": "JanLeyva",
"id": 78868781,
"node_id": "MDQ6VXNlcjc4ODY4Nzgx",
"avatar_url": "https://avatars.githubusercontent.com/u/78868781?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/JanLeyva",
"html_url": "https://github.com/JanLeyva",
"followers_url": "https://api.github.com/users/JanLeyva/followers",
"following_url": "https://api.github.com/users/JanLeyva/following{/other_user}",
"gists_url": "https://api.github.com/users/JanLeyva/gists{/gist_id}",
"starred_url": "https://api.github.com/users/JanLeyva/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JanLeyva/subscriptions",
"organizations_url": "https://api.github.com/users/JanLeyva/orgs",
"repos_url": "https://api.github.com/users/JanLeyva/repos",
"events_url": "https://api.github.com/users/JanLeyva/events{/privacy}",
"received_events_url": "https://api.github.com/users/JanLeyva/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
open
| false | null |
[] | null | 0 | 2023-11-30T11:35:27 | 2023-11-30T21:19:05 | null |
NONE
| null |
### Issue with current documentation:
At end of [summarization documentation](https://python.langchain.com/docs/use_cases/summarization) the output is shown with a ValueError. Line that fail:
```python
summarize_document_chain.run(docs[0])
```
### Idea or request for content:
Looks like the docs[0] object is not what excepected.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14066/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14066/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14065
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14065/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14065/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14065/events
|
https://github.com/langchain-ai/langchain/issues/14065
| 2,018,435,817 |
I_kwDOIPDwls54TuLp
| 14,065 |
Disable HTTP Request logging in Langchain
|
{
"login": "DhruvaBansal00",
"id": 26373935,
"node_id": "MDQ6VXNlcjI2MzczOTM1",
"avatar_url": "https://avatars.githubusercontent.com/u/26373935?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DhruvaBansal00",
"html_url": "https://github.com/DhruvaBansal00",
"followers_url": "https://api.github.com/users/DhruvaBansal00/followers",
"following_url": "https://api.github.com/users/DhruvaBansal00/following{/other_user}",
"gists_url": "https://api.github.com/users/DhruvaBansal00/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DhruvaBansal00/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DhruvaBansal00/subscriptions",
"organizations_url": "https://api.github.com/users/DhruvaBansal00/orgs",
"repos_url": "https://api.github.com/users/DhruvaBansal00/repos",
"events_url": "https://api.github.com/users/DhruvaBansal00/events{/privacy}",
"received_events_url": "https://api.github.com/users/DhruvaBansal00/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-30T11:22:43 | 2023-11-30T21:19:09 | null |
NONE
| null |
### Issue you'd like to raise.
When using `langchain.chat_models` such as `ChatAnthropic` and `ChatOpenAI`, I am seeing a bunch of HTTP logs that look like the following:
`2023-11-30 16:43:09 httpx INFO: HTTP Request: POST https://api.anthropic.com/v1/complete "HTTP[/1.1] 200 OK"`
Any suggestions on how to disable them?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14065/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/14065/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14064
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14064/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14064/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14064/events
|
https://github.com/langchain-ai/langchain/issues/14064
| 2,018,340,971 |
I_kwDOIPDwls54TXBr
| 14,064 |
How to have agent decide what param should be pass into a tool?
|
{
"login": "Jeru2023",
"id": 123569003,
"node_id": "U_kgDOB12Daw",
"avatar_url": "https://avatars.githubusercontent.com/u/123569003?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Jeru2023",
"html_url": "https://github.com/Jeru2023",
"followers_url": "https://api.github.com/users/Jeru2023/followers",
"following_url": "https://api.github.com/users/Jeru2023/following{/other_user}",
"gists_url": "https://api.github.com/users/Jeru2023/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Jeru2023/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Jeru2023/subscriptions",
"organizations_url": "https://api.github.com/users/Jeru2023/orgs",
"repos_url": "https://api.github.com/users/Jeru2023/repos",
"events_url": "https://api.github.com/users/Jeru2023/events{/privacy}",
"received_events_url": "https://api.github.com/users/Jeru2023/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-30T10:31:15 | 2023-11-30T11:04:44 | null |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
I've created a custom tool to query the equity daily quote, I would like to have two parameters in the tool function: stock_name and trade_date, and I would expect LLM Agent will automatically decide how many days quotes or which day's quote it should retrieve.
```
class SearchSchema(BaseModel):
stock_name: str = Field(description="should be the name of the equity.")
trade_date: str = Field(description="should be the trading date of the equity.")
class DailyQuoteSearch(BaseTool):
name = "equity daily quote search"
description = "useful for equity daily quote retrieval"
return_direct = False
args_schema: Type[SearchSchema] = SearchSchema
def _run(self, stock_name: str, trade_date: str) -> str:
output = self.query_equity_daily_quote(stock_name, trade_date)
return output
```
However, LLM doesn't seem to know how to pass in the trade date? Is it possible to have LLM think about the what trade_date should be passed? or I expect too much on agent intelligence?
```
pydantic_core._pydantic_core.ValidationError: 1 validation error for SearchSchema
trade_date
Field required [type=missing, input_value={'stock_name': 'xxxx'}, input_type=dict]
```
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14064/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14064/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14063
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14063/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14063/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14063/events
|
https://github.com/langchain-ai/langchain/pull/14063
| 2,018,328,370 |
PR_kwDOIPDwls5gwxhA
| 14,063 |
Add openai v2 adapter
|
{
"login": "169",
"id": 10000925,
"node_id": "MDQ6VXNlcjEwMDAwOTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/169",
"html_url": "https://github.com/169",
"followers_url": "https://api.github.com/users/169/followers",
"following_url": "https://api.github.com/users/169/following{/other_user}",
"gists_url": "https://api.github.com/users/169/gists{/gist_id}",
"starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/169/subscriptions",
"organizations_url": "https://api.github.com/users/169/orgs",
"repos_url": "https://api.github.com/users/169/repos",
"events_url": "https://api.github.com/users/169/events{/privacy}",
"received_events_url": "https://api.github.com/users/169/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 4 | 2023-11-30T10:24:06 | 2023-12-04T20:12:31 | 2023-12-04T20:12:31 |
CONTRIBUTOR
| null |
### Description
Starting from [openai version 1.0.0](https://github.com/openai/openai-python/tree/17ac6779958b2b74999c634c4ea4c7b74906027a#module-level-client), the camel case form of `openai.ChatCompletion` is no longer supported and has been changed to lowercase `openai.chat.completions`. In addition, the returned object only accepts attribute access instead of index access:
```python
import openai
# optional; defaults to `os.environ['OPENAI_API_KEY']`
openai.api_key = '...'
# all client options can be configured just like the `OpenAI` instantiation counterpart
openai.base_url = "https://..."
openai.default_headers = {"x-foo": "true"}
completion = openai.chat.completions.create(
model="gpt-4",
messages=[
{
"role": "user",
"content": "How do I output all files in a directory using Python?",
},
],
)
print(completion.choices[0].message.content)
```
So I implemented a compatible adapter that supports both attribute access and index access:
```python
In [1]: from langchain.adapters import openai as lc_openai
...: messages = [{"role": "user", "content": "hi"}]
In [2]: result = lc_openai.chat.completions.create(
...: messages=messages, model="gpt-3.5-turbo", temperature=0
...: )
In [3]: result.choices[0].message
Out[3]: {'role': 'assistant', 'content': 'Hello! How can I assist you today?'}
In [4]: result["choices"][0]["message"]
Out[4]: {'role': 'assistant', 'content': 'Hello! How can I assist you today?'}
In [5]: result = await lc_openai.chat.completions.acreate(
...: messages=messages, model="gpt-3.5-turbo", temperature=0
...: )
In [6]: result.choices[0].message
Out[6]: {'role': 'assistant', 'content': 'Hello! How can I assist you today?'}
In [7]: result["choices"][0]["message"]
Out[7]: {'role': 'assistant', 'content': 'Hello! How can I assist you today?'}
In [8]: for rs in lc_openai.chat.completions.create(
...: messages=messages, model="gpt-3.5-turbo", temperature=0, stream=True
...: ):
...: print(rs.choices[0].delta)
...: print(rs["choices"][0]["delta"])
...:
{'role': 'assistant', 'content': ''}
{'role': 'assistant', 'content': ''}
{'content': 'Hello'}
{'content': 'Hello'}
{'content': '!'}
{'content': '!'}
In [20]: async for rs in await lc_openai.chat.completions.acreate(
...: messages=messages, model="gpt-3.5-turbo", temperature=0, stream=True
...: ):
...: print(rs.choices[0].delta)
...: print(rs["choices"][0]["delta"])
...:
{'role': 'assistant', 'content': ''}
{'role': 'assistant', 'content': ''}
{'content': 'Hello'}
{'content': 'Hello'}
{'content': '!'}
{'content': '!'}
...
```
### Twitter handle
[lin_bob57617](https://twitter.com/lin_bob57617)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14063/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14063/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14063",
"html_url": "https://github.com/langchain-ai/langchain/pull/14063",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14063.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14063.patch",
"merged_at": "2023-12-04T20:12:31"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14062
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14062/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14062/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14062/events
|
https://github.com/langchain-ai/langchain/issues/14062
| 2,018,246,092 |
I_kwDOIPDwls54S_3M
| 14,062 |
Azure OpenAI, gpt-4 model returns gpt-35-turbo
|
{
"login": "Manonandan",
"id": 33961984,
"node_id": "MDQ6VXNlcjMzOTYxOTg0",
"avatar_url": "https://avatars.githubusercontent.com/u/33961984?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Manonandan",
"html_url": "https://github.com/Manonandan",
"followers_url": "https://api.github.com/users/Manonandan/followers",
"following_url": "https://api.github.com/users/Manonandan/following{/other_user}",
"gists_url": "https://api.github.com/users/Manonandan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Manonandan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Manonandan/subscriptions",
"organizations_url": "https://api.github.com/users/Manonandan/orgs",
"repos_url": "https://api.github.com/users/Manonandan/repos",
"events_url": "https://api.github.com/users/Manonandan/events{/privacy}",
"received_events_url": "https://api.github.com/users/Manonandan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-30T09:38:58 | 2023-12-01T07:08:48 | 2023-12-01T07:08:47 |
NONE
| null |
### System Info
I am using gpt-4 deployed on AzureOpenAI.
I want to get the model used. From openai, I will get the model we used. But when I tried with langchain I got an older model.
Basically, I am integrating with other services. So it is essential to get the model name intact for the cost calculations.
What could be the issue with the langcahin?
It works great with openai chat completion.
### Who can help?
@hwchase17 @agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Steps to reproduce:
```
import os
from openai import AzureOpenAI
client = AzureOpenAI(
azure_endpoint = "{}",
api_key="{}",
api_version="{}",
azure_deployment="gpt4",
)
response = client.chat.completions.create(
model="gpt4",
messages=[{"role": "user", "content": "tell me a joke"}]
)
response.model
```
> 'gpt-4'
```
from langchain.schema import HumanMessage
from langchain.chat_models.azure_openai import AzureChatOpenAI
llm = AzureChatOpenAI(
azure_endpoint = "{}",
openai_api_key="{}",
openai_api_version="{}",
azure_deployment="gpt4",
model_version="0613",
temperature=0
)
response = llm.generate(messages=[[HumanMessage(content="tell me a joke")]])
response.llm_output["model_name"]
```
> 'gpt-3.5-turbo'
```
from langchain.chains import LLMChain
from langchain.prompts import PromptTemplate
prompt = PromptTemplate(
input_variables=["joke"],
template="Tell me a {joke}?",
)
chain = LLMChain(llm=llm, prompt=prompt)
response = chain.generate([{"joke":"joke"}])
response.llm_output["model_name"]
```
> 'gpt-3.5-turbo'
### Expected behavior
From all we should be getting gpt-4 as I have deployed only got-4 on azure openai
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14062/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/14062/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14061
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14061/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14061/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14061/events
|
https://github.com/langchain-ai/langchain/pull/14061
| 2,017,974,338 |
PR_kwDOIPDwls5gvkYs
| 14,061 |
docs(ernie): add deprecated note for ErnieChatBot
|
{
"login": "axiangcoding",
"id": 49201354,
"node_id": "MDQ6VXNlcjQ5MjAxMzU0",
"avatar_url": "https://avatars.githubusercontent.com/u/49201354?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/axiangcoding",
"html_url": "https://github.com/axiangcoding",
"followers_url": "https://api.github.com/users/axiangcoding/followers",
"following_url": "https://api.github.com/users/axiangcoding/following{/other_user}",
"gists_url": "https://api.github.com/users/axiangcoding/gists{/gist_id}",
"starred_url": "https://api.github.com/users/axiangcoding/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/axiangcoding/subscriptions",
"organizations_url": "https://api.github.com/users/axiangcoding/orgs",
"repos_url": "https://api.github.com/users/axiangcoding/repos",
"events_url": "https://api.github.com/users/axiangcoding/events{/privacy}",
"received_events_url": "https://api.github.com/users/axiangcoding/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-30T06:33:05 | 2023-12-01T19:16:31 | 2023-12-01T19:16:31 |
CONTRIBUTOR
| null |
- **Description:** just a little change of ErnieChatBot class description, sugguesting user to use more suitable class
- **Issue:** none,
- **Dependencies:** none,
- **Tag maintainer:** @baskaryan ,
- **Twitter handle:** none
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14061/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14061/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14061",
"html_url": "https://github.com/langchain-ai/langchain/pull/14061",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14061.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14061.patch",
"merged_at": "2023-12-01T19:16:31"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14060
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14060/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14060/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14060/events
|
https://github.com/langchain-ai/langchain/pull/14060
| 2,017,971,100 |
PR_kwDOIPDwls5gvjsT
| 14,060 |
fix(vectorstores): incorrect import for mongodb atlas DriverInfo
|
{
"login": "whitedogg13",
"id": 10307875,
"node_id": "MDQ6VXNlcjEwMzA3ODc1",
"avatar_url": "https://avatars.githubusercontent.com/u/10307875?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/whitedogg13",
"html_url": "https://github.com/whitedogg13",
"followers_url": "https://api.github.com/users/whitedogg13/followers",
"following_url": "https://api.github.com/users/whitedogg13/following{/other_user}",
"gists_url": "https://api.github.com/users/whitedogg13/gists{/gist_id}",
"starred_url": "https://api.github.com/users/whitedogg13/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/whitedogg13/subscriptions",
"organizations_url": "https://api.github.com/users/whitedogg13/orgs",
"repos_url": "https://api.github.com/users/whitedogg13/repos",
"events_url": "https://api.github.com/users/whitedogg13/events{/privacy}",
"received_events_url": "https://api.github.com/users/whitedogg13/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-30T06:30:05 | 2023-12-06T09:51:50 | 2023-12-03T18:22:14 |
CONTRIBUTOR
| null |
- **Description:** fix `import` issue for `mongodb atlas` vectore store integration
- **Issue:** none
- **Dependencies:** none
while trying to follow official `langchain`'s [mongodb integration guide](https://python.langchain.com/docs/integrations/vectorstores/mongodb_atlas), an import error will happen.
It's caused by incorrect import location:
- `from pymongo import DriverInfo` should be `from pymongo.driver_info import DriverInfo`
- reference: [pymongo's DriverInfo class](https://pymongo.readthedocs.io/en/stable/api/pymongo/driver_info.html#pymongo.driver_info.DriverInfo)
Thanks!
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14060/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14060/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14060",
"html_url": "https://github.com/langchain-ai/langchain/pull/14060",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14060.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14060.patch",
"merged_at": "2023-12-03T18:22:14"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14059
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14059/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14059/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14059/events
|
https://github.com/langchain-ai/langchain/pull/14059
| 2,017,877,415 |
PR_kwDOIPDwls5gvPUl
| 14,059 |
Create Closed Captioning Chain for .mp4 videos
|
{
"login": "LunarECL",
"id": 38317983,
"node_id": "MDQ6VXNlcjM4MzE3OTgz",
"avatar_url": "https://avatars.githubusercontent.com/u/38317983?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/LunarECL",
"html_url": "https://github.com/LunarECL",
"followers_url": "https://api.github.com/users/LunarECL/followers",
"following_url": "https://api.github.com/users/LunarECL/following{/other_user}",
"gists_url": "https://api.github.com/users/LunarECL/gists{/gist_id}",
"starred_url": "https://api.github.com/users/LunarECL/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LunarECL/subscriptions",
"organizations_url": "https://api.github.com/users/LunarECL/orgs",
"repos_url": "https://api.github.com/users/LunarECL/repos",
"events_url": "https://api.github.com/users/LunarECL/events{/privacy}",
"received_events_url": "https://api.github.com/users/LunarECL/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 2 | 2023-11-30T04:59:08 | 2023-12-04T21:32:15 | null |
NONE
| null |
Description: Video imagery to text (Closed Captioning)
This pull request introduces the VideoCaptioningChain, a tool for automated video captioning. It processes audio and video to generate subtitles and closed captions, merging them into a single SRT output.
Issue: https://github.com/langchain-ai/langchain/issues/11770
Dependencies: opencv-python, ffmpeg-python, assemblyai, transformers, pillow, torch, openai
Tag maintainer:
@baskaryan
@hwchase17
Hello!
We are a group of students from the University of Toronto (@LunarECL, @TomSadan, @nicoledroi1, @A2113S) that want to make a contribution to the LangChain community! We have ran make format, make lint and make test locally before submitting the PR. To our knowledge, our changes do not introduce any new errors.
Thank you for taking the time to review our PR!
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14059/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14059/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14059",
"html_url": "https://github.com/langchain-ai/langchain/pull/14059",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14059.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14059.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14058
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14058/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14058/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14058/events
|
https://github.com/langchain-ai/langchain/pull/14058
| 2,017,875,358 |
PR_kwDOIPDwls5gvO30
| 14,058 |
fix: Running SQLDatabaseChain adds prefix "SQLQuery:\n"
|
{
"login": "ridha",
"id": 206667,
"node_id": "MDQ6VXNlcjIwNjY2Nw==",
"avatar_url": "https://avatars.githubusercontent.com/u/206667?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ridha",
"html_url": "https://github.com/ridha",
"followers_url": "https://api.github.com/users/ridha/followers",
"following_url": "https://api.github.com/users/ridha/following{/other_user}",
"gists_url": "https://api.github.com/users/ridha/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ridha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ridha/subscriptions",
"organizations_url": "https://api.github.com/users/ridha/orgs",
"repos_url": "https://api.github.com/users/ridha/repos",
"events_url": "https://api.github.com/users/ridha/events{/privacy}",
"received_events_url": "https://api.github.com/users/ridha/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-30T04:56:40 | 2023-12-02T03:26:17 | 2023-12-02T03:26:16 |
CONTRIBUTOR
| null |
- **Issue:** https://github.com/langchain-ai/langchain/issues/12077
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14058/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14058/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14058",
"html_url": "https://github.com/langchain-ai/langchain/pull/14058",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14058.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14058.patch",
"merged_at": "2023-12-02T03:26:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14057
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14057/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14057/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14057/events
|
https://github.com/langchain-ai/langchain/issues/14057
| 2,017,823,760 |
I_kwDOIPDwls54RYwQ
| 14,057 |
Don't proceed with chatting until the user provides his name and phone number
|
{
"login": "agoor97",
"id": 81787449,
"node_id": "MDQ6VXNlcjgxNzg3NDQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/81787449?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/agoor97",
"html_url": "https://github.com/agoor97",
"followers_url": "https://api.github.com/users/agoor97/followers",
"following_url": "https://api.github.com/users/agoor97/following{/other_user}",
"gists_url": "https://api.github.com/users/agoor97/gists{/gist_id}",
"starred_url": "https://api.github.com/users/agoor97/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/agoor97/subscriptions",
"organizations_url": "https://api.github.com/users/agoor97/orgs",
"repos_url": "https://api.github.com/users/agoor97/repos",
"events_url": "https://api.github.com/users/agoor97/events{/privacy}",
"received_events_url": "https://api.github.com/users/agoor97/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 5 | 2023-11-30T03:53:16 | 2023-12-10T16:35:42 | 2023-12-10T16:35:42 |
NONE
| null |
### Issue you'd like to raise.
I want to customize a LLM (a GPT-3.5-turbo) for chatting but don't proceed with chatting until the user provides his name and his phone number and validates the count of his phone number.
Please help me I tried many methods but without any significant result
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14057/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14057/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14056
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14056/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14056/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14056/events
|
https://github.com/langchain-ai/langchain/pull/14056
| 2,017,804,674 |
PR_kwDOIPDwls5gu_sL
| 14,056 |
Harrison/mongo agent
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 9 | 2023-11-30T03:28:29 | 2023-12-06T22:59:19 | null |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14056/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14056/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14056",
"html_url": "https://github.com/langchain-ai/langchain/pull/14056",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14056.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14056.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14054
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14054/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14054/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14054/events
|
https://github.com/langchain-ai/langchain/issues/14054
| 2,017,743,973 |
I_kwDOIPDwls54RFRl
| 14,054 |
Issue: I can't visit the page of popular chains
|
{
"login": "zhuxiaosheng",
"id": 2718879,
"node_id": "MDQ6VXNlcjI3MTg4Nzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/2718879?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zhuxiaosheng",
"html_url": "https://github.com/zhuxiaosheng",
"followers_url": "https://api.github.com/users/zhuxiaosheng/followers",
"following_url": "https://api.github.com/users/zhuxiaosheng/following{/other_user}",
"gists_url": "https://api.github.com/users/zhuxiaosheng/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zhuxiaosheng/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zhuxiaosheng/subscriptions",
"organizations_url": "https://api.github.com/users/zhuxiaosheng/orgs",
"repos_url": "https://api.github.com/users/zhuxiaosheng/repos",
"events_url": "https://api.github.com/users/zhuxiaosheng/events{/privacy}",
"received_events_url": "https://api.github.com/users/zhuxiaosheng/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"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-30T02:16:12 | 2023-11-30T02:22:50 | null |
NONE
| null |
### Issue you'd like to raise.
Do you have a new url?
https://python.langchain.com/docs/modules/chains/popular/
thank you
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14054/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14054/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14053
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14053/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14053/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14053/events
|
https://github.com/langchain-ai/langchain/pull/14053
| 2,017,729,151 |
PR_kwDOIPDwls5guvwV
| 14,053 |
Add unit tests for Huggingface dataset loader
|
{
"login": "Amyh102",
"id": 15304273,
"node_id": "MDQ6VXNlcjE1MzA0Mjcz",
"avatar_url": "https://avatars.githubusercontent.com/u/15304273?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Amyh102",
"html_url": "https://github.com/Amyh102",
"followers_url": "https://api.github.com/users/Amyh102/followers",
"following_url": "https://api.github.com/users/Amyh102/following{/other_user}",
"gists_url": "https://api.github.com/users/Amyh102/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Amyh102/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Amyh102/subscriptions",
"organizations_url": "https://api.github.com/users/Amyh102/orgs",
"repos_url": "https://api.github.com/users/Amyh102/repos",
"events_url": "https://api.github.com/users/Amyh102/events{/privacy}",
"received_events_url": "https://api.github.com/users/Amyh102/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-30T01:59:20 | 2023-12-01T20:42:32 | 2023-12-01T20:42:32 |
CONTRIBUTOR
| null |
- **Description:** Add unit tests for huggingface dataset loader and sample huggingface dataset for future tests. Updates dependencies for `datasets` module.
- Adds coverage for [previous pull request](https://github.com/langchain-ai/langchain/pull/13864)
- **Tag maintainer:** @hwchase17
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14053/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14053/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14053",
"html_url": "https://github.com/langchain-ai/langchain/pull/14053",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14053.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14053.patch",
"merged_at": "2023-12-01T20:42:32"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14052
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14052/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14052/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14052/events
|
https://github.com/langchain-ai/langchain/pull/14052
| 2,017,698,302 |
PR_kwDOIPDwls5gupHz
| 14,052 |
Bagatur/lcel get started
|
{
"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-11-30T01:20:56 | 2023-12-01T20:42:48 | 2023-12-01T20:42:48 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14052/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14052/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14052",
"html_url": "https://github.com/langchain-ai/langchain/pull/14052",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14052.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14052.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14051
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14051/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14051/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14051/events
|
https://github.com/langchain-ai/langchain/pull/14051
| 2,017,681,422 |
PR_kwDOIPDwls5gulek
| 14,051 |
docs[patch]: Add mermaid JS theme dependency to docusaurus
|
{
"login": "akira",
"id": 43946,
"node_id": "MDQ6VXNlcjQzOTQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/43946?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akira",
"html_url": "https://github.com/akira",
"followers_url": "https://api.github.com/users/akira/followers",
"following_url": "https://api.github.com/users/akira/following{/other_user}",
"gists_url": "https://api.github.com/users/akira/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akira/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akira/subscriptions",
"organizations_url": "https://api.github.com/users/akira/orgs",
"repos_url": "https://api.github.com/users/akira/repos",
"events_url": "https://api.github.com/users/akira/events{/privacy}",
"received_events_url": "https://api.github.com/users/akira/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-30T01:00:44 | 2023-12-01T19:06:30 | 2023-12-01T19:06:29 |
CONTRIBUTOR
| null |
- **Description:** Add mermaid JS dependency and configs to documentation. Allows inline doc diagrams in markdown.
- **Dependencies:** NPM package @docusaurus/theme-mermaid
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14051/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14051/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14051",
"html_url": "https://github.com/langchain-ai/langchain/pull/14051",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14051.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14051.patch",
"merged_at": "2023-12-01T19:06:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14050
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14050/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14050/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14050/events
|
https://github.com/langchain-ai/langchain/issues/14050
| 2,017,681,132 |
I_kwDOIPDwls54Q17s
| 14,050 |
OpenAIAssistantRunnable input validation error
|
{
"login": "cnevelle-blueprint",
"id": 121252145,
"node_id": "U_kgDOBzopMQ",
"avatar_url": "https://avatars.githubusercontent.com/u/121252145?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cnevelle-blueprint",
"html_url": "https://github.com/cnevelle-blueprint",
"followers_url": "https://api.github.com/users/cnevelle-blueprint/followers",
"following_url": "https://api.github.com/users/cnevelle-blueprint/following{/other_user}",
"gists_url": "https://api.github.com/users/cnevelle-blueprint/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cnevelle-blueprint/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cnevelle-blueprint/subscriptions",
"organizations_url": "https://api.github.com/users/cnevelle-blueprint/orgs",
"repos_url": "https://api.github.com/users/cnevelle-blueprint/repos",
"events_url": "https://api.github.com/users/cnevelle-blueprint/events{/privacy}",
"received_events_url": "https://api.github.com/users/cnevelle-blueprint/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-30T01:00:23 | 2023-12-29T05:56:35 | null |
NONE
| null |
### System Info
Python 3.11 running locally in PyCharm.
### Who can help?
@hwchase17 @agola11
### Information
- [x] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
def research_tool(input, thread_id=None):
# Initialize Tavily Search
search = TavilySearchAPIWrapper()
tavily_tool = TavilySearchResults(api_wrapper=search)
salesforce_history_tool = create_pinecone_tool()
# Initialize PlayWright Web Browser
sync_browser = create_sync_playwright_browser()
toolkit = PlayWrightBrowserToolkit.from_browser(sync_browser=sync_browser)
# Initialize the Toolkit
tools = toolkit.get_tools()
tools.append(tavily_tool) # Add Tavily Search to the Toolkit
tools.append(salesforce_history_tool) # Add Salesforce History to the Toolkit
tools.extend(sf_tools) # Add Salesforce Tools to the Toolkit
agent = OpenAIAssistantRunnable.create_assistant(
name="Research Assistant",
instructions="You are a personal research assistant on company information",
tools=tools,
model="gpt-4-1106-preview",
as_agent=True,
)
agent_executor = AgentExecutor(agent=agent, tools=tools)
if thread_id:
result = agent_executor.invoke({"content": input, "thread_id": thread_id})
else:
result = agent_executor.invoke({"content": input})
output = result['output']
thread_id = result['thread_id']
return output, thread_id
```
### Expected behavior
I am looking to have my agent run using the Assistants API. Instead, I receive the following error:
```
[chain/start] [1:chain:AgentExecutor > 4:chain:OpenAIAssistantRunnable] Entering Chain run with input:
[inputs]
[chain/error] [1:chain:AgentExecutor > 4:chain:OpenAIAssistantRunnable] [315ms] Chain run errored with error:
"BadRequestError(\"Error code: 400 - {'error': {'message': '1 validation error for Request\\\\nbody -> tool_outputs -> 0 -> output\\\\n str type expected (type=type_error.str)', 'type': 'invalid_request_error', 'param': None, 'code': None}}\")"
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14050/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14050/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14048
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14048/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14048/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14048/events
|
https://github.com/langchain-ai/langchain/issues/14048
| 2,017,623,699 |
I_kwDOIPDwls54Qn6T
| 14,048 |
Callback.on_chain_start has wrong "inputs" in RefineDocumentsChain
|
{
"login": "ShuaiShao93",
"id": 7556010,
"node_id": "MDQ6VXNlcjc1NTYwMTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/7556010?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShuaiShao93",
"html_url": "https://github.com/ShuaiShao93",
"followers_url": "https://api.github.com/users/ShuaiShao93/followers",
"following_url": "https://api.github.com/users/ShuaiShao93/following{/other_user}",
"gists_url": "https://api.github.com/users/ShuaiShao93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShuaiShao93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShuaiShao93/subscriptions",
"organizations_url": "https://api.github.com/users/ShuaiShao93/orgs",
"repos_url": "https://api.github.com/users/ShuaiShao93/repos",
"events_url": "https://api.github.com/users/ShuaiShao93/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShuaiShao93/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-29T23:49:27 | 2023-11-30T19:01:31 | 2023-11-30T19:01:31 |
NONE
| null |
### System Info
Python 3.10, mac OS
### Who can help?
@agola11 @hwchase17
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
With this script
```
from langchain.chains import RefineDocumentsChain, LLMChain
from langchain.llms import OpenAI
from langchain.prompts import PromptTemplate
document_prompt = PromptTemplate.from_template("{page_content}")
document_variable_name = "context"
llm = OpenAI()
# The prompt here should take as an input variable the
# `document_variable_name`
prompt = PromptTemplate.from_template(
"Summarize this content: {context}"
)
initial_llm_chain = LLMChain(llm=llm, prompt=prompt)
initial_response_name = "prev_response"
# The prompt here should take as an input variable the
# `document_variable_name` as well as `initial_response_name`
prompt_refine = PromptTemplate.from_template(
"Here's your first summary: {prev_response}. "
"Now add to it based on the following context: {context}"
)
refine_llm_chain = LLMChain(llm=llm, prompt=prompt_refine)
chain = RefineDocumentsChain(
initial_llm_chain=initial_llm_chain,
refine_llm_chain=refine_llm_chain,
document_prompt=document_prompt,
document_variable_name=document_variable_name,
initial_response_name=initial_response_name,
)
from langchain.schema import Document
text = """Nuclear power in space is the use of nuclear power in outer space, typically either small fission systems or radioactive decay for electricity or heat. Another use is for scientific observation, as in a Mössbauer spectrometer. The most common type is a radioisotope thermoelectric generator, which has been used on many space probes and on crewed lunar missions. Small fission reactors for Earth observation satellites, such as the TOPAZ nuclear reactor, have also been flown.[1] A radioisotope heater unit is powered by radioactive decay and can keep components from becoming too cold to function, potentially over a span of decades.[2]
The United States tested the SNAP-10A nuclear reactor in space for 43 days in 1965,[3] with the next test of a nuclear reactor power system intended for space use occurring on 13 September 2012 with the Demonstration Using Flattop Fission (DUFF) test of the Kilopower reactor.[4]
After a ground-based test of the experimental 1965 Romashka reactor, which used uranium and direct thermoelectric conversion to electricity,[5] the USSR sent about 40 nuclear-electric satellites into space, mostly powered by the BES-5 reactor. The more powerful TOPAZ-II reactor produced 10 kilowatts of electricity.[3]
Examples of concepts that use nuclear power for space propulsion systems include the nuclear electric rocket (nuclear powered ion thruster(s)), the radioisotope rocket, and radioisotope electric propulsion (REP).[6] One of the more explored concepts is the nuclear thermal rocket, which was ground tested in the NERVA program. Nuclear pulse propulsion was the subject of Project Orion.[7]
"""
docs = [
Document(
page_content=split,
metadata={"source": "https://en.wikipedia.org/wiki/Nuclear_power_in_space"},
)
for split in text.split("\n\n")
]
```
When I attach a callback that prints the [inputs](https://github.com/langchain-ai/langchain/blob/00a6e8962cc778cd8f6268cefc304465598c02cf/libs/core/langchain_core/callbacks/base.py#L197) in `on_chain_start`, even if every sub-chain only uses one Document, the `inputs` is always the full Document list.
### Expected behavior
I expect the `inputs` in `on_chain_start` only includes the inputs that are used by this chain, not always the full list, otherwise it's totally meaningless to duplicate the same inputs many times.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14048/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14048/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14047
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14047/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14047/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14047/events
|
https://github.com/langchain-ai/langchain/pull/14047
| 2,017,521,342 |
PR_kwDOIPDwls5guCiK
| 14,047 |
DROP BOX Loader Documentation Update
|
{
"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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false |
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-11-29T22:16:16 | 2023-12-16T20:28:29 | 2023-11-30T01:25:35 |
CONTRIBUTOR
| null |
- **Description:** Update the document for drop box loader + made the messages more verbose when loading pdf file since people were getting confused
- **Issue:** #13952
- **Tag maintainer:** @baskaryan, @eyurtsev, @hwchase17,
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14047/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14047/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14047",
"html_url": "https://github.com/langchain-ai/langchain/pull/14047",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14047.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14047.patch",
"merged_at": "2023-11-30T01:25:35"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14046
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14046/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14046/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14046/events
|
https://github.com/langchain-ai/langchain/pull/14046
| 2,017,497,941 |
PR_kwDOIPDwls5gt9Py
| 14,046 |
[core/minor] Runnables: Implement a context api
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] |
closed
| false |
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-11-29T22:01:40 | 2023-12-06T23:02:30 | 2023-12-06T23:02:30 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14046/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14046/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14046",
"html_url": "https://github.com/langchain-ai/langchain/pull/14046",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14046.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14046.patch",
"merged_at": "2023-12-06T23:02:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14045
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14045/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14045/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14045/events
|
https://github.com/langchain-ai/langchain/pull/14045
| 2,017,425,050 |
PR_kwDOIPDwls5gttBB
| 14,045 |
docs[patch]: Add getting started section to LCEL doc
|
{
"login": "akira",
"id": 43946,
"node_id": "MDQ6VXNlcjQzOTQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/43946?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akira",
"html_url": "https://github.com/akira",
"followers_url": "https://api.github.com/users/akira/followers",
"following_url": "https://api.github.com/users/akira/following{/other_user}",
"gists_url": "https://api.github.com/users/akira/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akira/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akira/subscriptions",
"organizations_url": "https://api.github.com/users/akira/orgs",
"repos_url": "https://api.github.com/users/akira/repos",
"events_url": "https://api.github.com/users/akira/events{/privacy}",
"received_events_url": "https://api.github.com/users/akira/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-29T21:13:44 | 2023-12-01T20:23:44 | 2023-12-01T20:23:43 |
CONTRIBUTOR
| null |
### Description:
Doc addition for LCEL introduction. Adds a more basic starter guide for using LCEL.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14045/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14045/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14045",
"html_url": "https://github.com/langchain-ai/langchain/pull/14045",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14045.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14045.patch",
"merged_at": "2023-12-01T20:23:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14044
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14044/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14044/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14044/events
|
https://github.com/langchain-ai/langchain/pull/14044
| 2,017,424,774 |
PR_kwDOIPDwls5gts9O
| 14,044 |
Update Prompt Format Error
|
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-29T21:13:31 | 2023-12-01T17:06:36 | 2023-12-01T17:06:35 |
COLLABORATOR
| null |
The number of times I try to format a string (especially in lcel) is embarrassingly high. Think this may be more actionable than the default error message. Now I get nice helpful errors
```
KeyError: "Input to ChatPromptTemplate is missing variable 'input'. Expected: ['input'] Received: ['dialogue']"
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14044/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14044/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14044",
"html_url": "https://github.com/langchain-ai/langchain/pull/14044",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14044.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14044.patch",
"merged_at": "2023-12-01T17:06:35"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14043
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14043/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14043/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14043/events
|
https://github.com/langchain-ai/langchain/pull/14043
| 2,017,349,795 |
PR_kwDOIPDwls5gtcnl
| 14,043 |
templates[patch]: rag-google-cloud-sdp readme
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-29T20:16:48 | 2023-11-30T16:17:53 | 2023-11-30T16:17:52 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14043/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14043/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14043",
"html_url": "https://github.com/langchain-ai/langchain/pull/14043",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14043.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14043.patch",
"merged_at": "2023-11-30T16:17:52"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14042
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14042/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14042/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14042/events
|
https://github.com/langchain-ai/langchain/issues/14042
| 2,017,348,030 |
I_kwDOIPDwls54Pkm-
| 14,042 |
DOC: Expand documentation on how to authenticate and connect to Amazon OpenSearch Serverless
|
{
"login": "slangenbach",
"id": 2754095,
"node_id": "MDQ6VXNlcjI3NTQwOTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2754095?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/slangenbach",
"html_url": "https://github.com/slangenbach",
"followers_url": "https://api.github.com/users/slangenbach/followers",
"following_url": "https://api.github.com/users/slangenbach/following{/other_user}",
"gists_url": "https://api.github.com/users/slangenbach/gists{/gist_id}",
"starred_url": "https://api.github.com/users/slangenbach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/slangenbach/subscriptions",
"organizations_url": "https://api.github.com/users/slangenbach/orgs",
"repos_url": "https://api.github.com/users/slangenbach/repos",
"events_url": "https://api.github.com/users/slangenbach/events{/privacy}",
"received_events_url": "https://api.github.com/users/slangenbach/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-29T20:15:29 | 2023-12-01T15:57:46 | null |
CONTRIBUTOR
| null |
### Issue with current documentation:
The current [section on Amazon OpenSearch Serverless][1] (AOSS) vector store uses the `AWS4Auth` class to authenticate to AOSS, yet the official [OpenSearch documentation][2] suggests using the `AWS4SignerAuth` class instead. Using the latter does currently **not** work with LangChain due to how AOSS is detected when the class is instantiated (c.f. #14129 )
Further, the notebook lacks information on where to import the `AWS4Auth` class from and how to configure it with different AWS credentials (static access key/secret key, temporary credentials, etc.). It also lacks references on how to configure access policies (IAM, AOSS data access policies, etc.)
[1]: https://github.com/langchain-ai/langchain/blob/master/docs/docs/integrations/vectorstores/opensearch.ipynb
[2]: https://opensearch.org/docs/latest/clients/python-low-level/#connecting-to-amazon-opensearch-serverless
### Idea or request for content:
Add installation instructions for the [requests_aws4auth][1] package and links to its [Github repo][2] in order to showcase configuration with different AWS credentials. Additionally reference [AWS documentation for AOSS][3] in order to get started [setting up permissions][4]
[1]: https://pypi.org/project/requests-aws4auth/
[2]: https://github.com/tedder/requests-aws4auth#basic-usage
[3]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-getting-started.html
[4]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14042/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14042/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14041
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14041/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14041/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14041/events
|
https://github.com/langchain-ai/langchain/issues/14041
| 2,017,338,609 |
I_kwDOIPDwls54PiTx
| 14,041 |
Missing metadata in some callback handler methods
|
{
"login": "michaelgrewal",
"id": 58837913,
"node_id": "MDQ6VXNlcjU4ODM3OTEz",
"avatar_url": "https://avatars.githubusercontent.com/u/58837913?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/michaelgrewal",
"html_url": "https://github.com/michaelgrewal",
"followers_url": "https://api.github.com/users/michaelgrewal/followers",
"following_url": "https://api.github.com/users/michaelgrewal/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelgrewal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/michaelgrewal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelgrewal/subscriptions",
"organizations_url": "https://api.github.com/users/michaelgrewal/orgs",
"repos_url": "https://api.github.com/users/michaelgrewal/repos",
"events_url": "https://api.github.com/users/michaelgrewal/events{/privacy}",
"received_events_url": "https://api.github.com/users/michaelgrewal/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-29T20:08:28 | 2023-11-29T20:13:37 | null |
NONE
| null |
### Issue you'd like to raise.
I only see `metadata` as parameter for few callback handler methods, but I would like to have access to metadata in other methods such as `on_chain_error()` and `on_llm_error()`.
Currently, I can only see the `tags` in these methods.
I have error handling in my callback handler using `on_chain_error()` and I'd like to add information in my metadata dictionary to my exceptions (such as LLM name, model, things related to my chain, etc...).
I can put a list of tags, but I'd much prefer to use a dictionary to get certain keys and have my exceptions instantiated properly.
### Suggestion:
Please make both tags and metadata available for all callback handler methods.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14041/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14041/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14040
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14040/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14040/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14040/events
|
https://github.com/langchain-ai/langchain/pull/14040
| 2,017,271,110 |
PR_kwDOIPDwls5gtLMn
| 14,040 |
Add Hugging Face chat wrapper
|
{
"login": "andrewrreed",
"id": 23462538,
"node_id": "MDQ6VXNlcjIzNDYyNTM4",
"avatar_url": "https://avatars.githubusercontent.com/u/23462538?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewrreed",
"html_url": "https://github.com/andrewrreed",
"followers_url": "https://api.github.com/users/andrewrreed/followers",
"following_url": "https://api.github.com/users/andrewrreed/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewrreed/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewrreed/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewrreed/subscriptions",
"organizations_url": "https://api.github.com/users/andrewrreed/orgs",
"repos_url": "https://api.github.com/users/andrewrreed/repos",
"events_url": "https://api.github.com/users/andrewrreed/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewrreed/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 7 | 2023-11-29T19:24:35 | 2023-12-21T17:29:05 | 2023-12-21T17:29:04 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
## Issue
There previously has been no easy way to make use of models hosted on Hugging Face (via Inference API or Inference Endpoints) in combination with LangChains ChatModel abstraction.
## Description
This PR introduces a new chat_model integration that creates a wrapper around the `BaseChatModel` class that interfaces between LangChain's and the hosted LLM by leveraging [Hugging Face's Chat Templates](https://huggingface.co/docs/transformers/chat_templating).
## To do
- [x] Add wrapper class around`BaseChatModel` to interface with HF LLM integrations
- [x] Create a notebook `docs/integrations/chat` that demonstrates its use
- [x] Add unit test
## Tag maintainer
@hwchase17
## Twitter handle
@andrewrreed
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14040/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14040/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14040",
"html_url": "https://github.com/langchain-ai/langchain/pull/14040",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14040.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14040.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14039
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14039/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14039/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14039/events
|
https://github.com/langchain-ai/langchain/pull/14039
| 2,017,254,891 |
PR_kwDOIPDwls5gtHmx
| 14,039 |
Imdb feature and imdm toolkit
|
{
"login": "ryanWang2018",
"id": 38081565,
"node_id": "MDQ6VXNlcjM4MDgxNTY1",
"avatar_url": "https://avatars.githubusercontent.com/u/38081565?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ryanWang2018",
"html_url": "https://github.com/ryanWang2018",
"followers_url": "https://api.github.com/users/ryanWang2018/followers",
"following_url": "https://api.github.com/users/ryanWang2018/following{/other_user}",
"gists_url": "https://api.github.com/users/ryanWang2018/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ryanWang2018/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ryanWang2018/subscriptions",
"organizations_url": "https://api.github.com/users/ryanWang2018/orgs",
"repos_url": "https://api.github.com/users/ryanWang2018/repos",
"events_url": "https://api.github.com/users/ryanWang2018/events{/privacy}",
"received_events_url": "https://api.github.com/users/ryanWang2018/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 1 | 2023-11-29T19:16:01 | 2023-11-30T03:12:00 | null |
NONE
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14039/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14039/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14039",
"html_url": "https://github.com/langchain-ai/langchain/pull/14039",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14039.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14039.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14038
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14038/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14038/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14038/events
|
https://github.com/langchain-ai/langchain/issues/14038
| 2,017,209,201 |
I_kwDOIPDwls54PCtx
| 14,038 |
Add Optional Parameter for Unique IDs in FAISS.add_documents Function
|
{
"login": "XariZaru",
"id": 18338434,
"node_id": "MDQ6VXNlcjE4MzM4NDM0",
"avatar_url": "https://avatars.githubusercontent.com/u/18338434?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/XariZaru",
"html_url": "https://github.com/XariZaru",
"followers_url": "https://api.github.com/users/XariZaru/followers",
"following_url": "https://api.github.com/users/XariZaru/following{/other_user}",
"gists_url": "https://api.github.com/users/XariZaru/gists{/gist_id}",
"starred_url": "https://api.github.com/users/XariZaru/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/XariZaru/subscriptions",
"organizations_url": "https://api.github.com/users/XariZaru/orgs",
"repos_url": "https://api.github.com/users/XariZaru/repos",
"events_url": "https://api.github.com/users/XariZaru/events{/privacy}",
"received_events_url": "https://api.github.com/users/XariZaru/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-29T18:48:20 | 2023-11-29T18:48:40 | null |
NONE
| null |
### Feature request
I notice the other functions, such as add_texts and add_embeddings allow you to pass a unique list of IDs that can get paired with your embedding. There is no such parameter for the add_documents function. This means when you delete a document and add an updated version of it using add_documents, its unique ID won't be added to the vector store.
### Motivation
Inability to add unique ID to document after calling the add_documents function from FAISS
### Your contribution
Not sure as far as I know. If I can, let me know what you need from me.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14038/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14038/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14037
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14037/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14037/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14037/events
|
https://github.com/langchain-ai/langchain/pull/14037
| 2,017,162,531 |
PR_kwDOIPDwls5gszc5
| 14,037 |
langchain[patch]: Release 0.0.343
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-29T18:15:39 | 2023-11-29T18:31:04 | 2023-11-29T18:31:03 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14037/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14037/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14037",
"html_url": "https://github.com/langchain-ai/langchain/pull/14037",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14037.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14037.patch",
"merged_at": "2023-11-29T18:31:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14036
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14036/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14036/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14036/events
|
https://github.com/langchain-ai/langchain/issues/14036
| 2,017,151,134 |
I_kwDOIPDwls54O0ie
| 14,036 |
Issue: support for Azure Open AI latest GPT models like, GPT 4 turpo in the get_openai_callback()
|
{
"login": "sowsan",
"id": 11544153,
"node_id": "MDQ6VXNlcjExNTQ0MTUz",
"avatar_url": "https://avatars.githubusercontent.com/u/11544153?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sowsan",
"html_url": "https://github.com/sowsan",
"followers_url": "https://api.github.com/users/sowsan/followers",
"following_url": "https://api.github.com/users/sowsan/following{/other_user}",
"gists_url": "https://api.github.com/users/sowsan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sowsan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sowsan/subscriptions",
"organizations_url": "https://api.github.com/users/sowsan/orgs",
"repos_url": "https://api.github.com/users/sowsan/repos",
"events_url": "https://api.github.com/users/sowsan/events{/privacy}",
"received_events_url": "https://api.github.com/users/sowsan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-29T18:08:30 | 2023-11-29T18:08:50 | null |
NONE
| null |
### Issue you'd like to raise.
Would be great to add the support for Azure GPT latest models in the get_openai_callback() --> https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/callbacks/openai_info.py
https://github.com/langchain-ai/langchain/issues/12994
### Suggestion:
Please add the Azure GPT models (latest) https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/callbacks/openai_info.py
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14036/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14036/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14035
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14035/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14035/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14035/events
|
https://github.com/langchain-ai/langchain/pull/14035
| 2,017,140,541 |
PR_kwDOIPDwls5gsuw4
| 14,035 |
template pyproject updates
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-29T18:01:38 | 2023-11-29T18:21:19 | 2023-11-29T18:21:18 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14035/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14035/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14035",
"html_url": "https://github.com/langchain-ai/langchain/pull/14035",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14035.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14035.patch",
"merged_at": "2023-11-29T18:21:18"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14034
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14034/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14034/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14034/events
|
https://github.com/langchain-ai/langchain/issues/14034
| 2,017,049,508 |
I_kwDOIPDwls54Obuk
| 14,034 |
ConversationChain to Agent
|
{
"login": "markwealthio",
"id": 141135321,
"node_id": "U_kgDOCGmN2Q",
"avatar_url": "https://avatars.githubusercontent.com/u/141135321?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/markwealthio",
"html_url": "https://github.com/markwealthio",
"followers_url": "https://api.github.com/users/markwealthio/followers",
"following_url": "https://api.github.com/users/markwealthio/following{/other_user}",
"gists_url": "https://api.github.com/users/markwealthio/gists{/gist_id}",
"starred_url": "https://api.github.com/users/markwealthio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/markwealthio/subscriptions",
"organizations_url": "https://api.github.com/users/markwealthio/orgs",
"repos_url": "https://api.github.com/users/markwealthio/repos",
"events_url": "https://api.github.com/users/markwealthio/events{/privacy}",
"received_events_url": "https://api.github.com/users/markwealthio/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-29T17:07:22 | 2023-11-29T17:15:03 | null |
NONE
| null |
### Issue you'd like to raise.
Is it possible to convert a Conversation Chain into an Agent?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14034/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14034/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14033
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14033/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14033/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14033/events
|
https://github.com/langchain-ai/langchain/issues/14033
| 2,017,018,704 |
I_kwDOIPDwls54OUNQ
| 14,033 |
Optimal Integration of the ConversationalRetrievalChain (Open source llama-2) into gradio.
|
{
"login": "danilyef",
"id": 12939044,
"node_id": "MDQ6VXNlcjEyOTM5MDQ0",
"avatar_url": "https://avatars.githubusercontent.com/u/12939044?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danilyef",
"html_url": "https://github.com/danilyef",
"followers_url": "https://api.github.com/users/danilyef/followers",
"following_url": "https://api.github.com/users/danilyef/following{/other_user}",
"gists_url": "https://api.github.com/users/danilyef/gists{/gist_id}",
"starred_url": "https://api.github.com/users/danilyef/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danilyef/subscriptions",
"organizations_url": "https://api.github.com/users/danilyef/orgs",
"repos_url": "https://api.github.com/users/danilyef/repos",
"events_url": "https://api.github.com/users/danilyef/events{/privacy}",
"received_events_url": "https://api.github.com/users/danilyef/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-29T16:50:09 | 2023-11-29T16:57:01 | null |
NONE
| null |
### Issue you'd like to raise.
I want to integrate ConversationalRetrievalChain with history into Gradio app.
For now I have the following approach:
```
# Memory buffer
memory = ConversationBufferWindowMemory(k=2,memory_key="chat_history", return_messages=True)
# LLM chain
chain = ConversationalRetrievalChain.from_llm(llm=llm, chain_type='stuff',
retriever=vector_store.as_retriever(
search_kwargs={"k": 2}),
memory=memory)
with gr.Blocks() as demo:
gr.Markdown("# SageMaker Docs Chat 🤗")
gr.Markdown("### Ask me question about Amazon SageMaker!")
chatbot = gr.Chatbot(label="Chat history")
message = gr.Textbox(label="Ask me a question!")
clear = gr.Button("Clear")
def user(user_message, chat_history):
return gr.update(value="", interactive=False), chat_history + [[user_message, None]]
def bot(chat_history):
user_message = chat_history[-1][0]
llm_response = qa({"question": user_message})
bot_message = llm_response["answer"]
chat_history[-1][1] = ""
for character in bot_message:
chat_history[-1][1] += character
time.sleep(0.005)
yield chat_history
response = message.submit(user, [message, chatbot], [message, chatbot], queue=False).then(
bot, chatbot, chatbot
)
response.then(lambda: gr.update(interactive=True), None, [message], queue=False)
demo.queue()
demo.launch()
```
which works fine for the simple question answer without history. I tried to implement something similar to this guide (https://github.com/facebookresearch/llama-recipes/blob/main/demo_apps/Llama2_Gradio.ipynb), but failed to do so. Do you have any solution for this use-case or any specific guide?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14033/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14033/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14032
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14032/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14032/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14032/events
|
https://github.com/langchain-ai/langchain/pull/14032
| 2,016,988,540 |
PR_kwDOIPDwls5gsNnf
| 14,032 |
feat: Add a feature to serialize and deserialize memory types to and from JSON
|
{
"login": "Aditya-k-23",
"id": 65531635,
"node_id": "MDQ6VXNlcjY1NTMxNjM1",
"avatar_url": "https://avatars.githubusercontent.com/u/65531635?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Aditya-k-23",
"html_url": "https://github.com/Aditya-k-23",
"followers_url": "https://api.github.com/users/Aditya-k-23/followers",
"following_url": "https://api.github.com/users/Aditya-k-23/following{/other_user}",
"gists_url": "https://api.github.com/users/Aditya-k-23/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Aditya-k-23/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Aditya-k-23/subscriptions",
"organizations_url": "https://api.github.com/users/Aditya-k-23/orgs",
"repos_url": "https://api.github.com/users/Aditya-k-23/repos",
"events_url": "https://api.github.com/users/Aditya-k-23/events{/privacy}",
"received_events_url": "https://api.github.com/users/Aditya-k-23/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 4 | 2023-11-29T16:35:20 | 2024-01-07T19:19:58 | null |
NONE
| null |
Description: Add a feature to serialize and deserialize the memory types into JSON format,
Issue: #11275,
Dependencies: No new dependencies,
Tag maintainer: @baskaryan, @eyurtsev, @hwchase17
Co-Authors: @D3nam, @avaove, @malharpandya
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14032/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14032/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14032",
"html_url": "https://github.com/langchain-ai/langchain/pull/14032",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14032.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14032.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14031
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14031/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14031/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14031/events
|
https://github.com/langchain-ai/langchain/issues/14031
| 2,016,963,828 |
I_kwDOIPDwls54OGz0
| 14,031 |
Finished chain without an answer but full context have results
|
{
"login": "michelesa00",
"id": 119319987,
"node_id": "U_kgDOBxytsw",
"avatar_url": "https://avatars.githubusercontent.com/u/119319987?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/michelesa00",
"html_url": "https://github.com/michelesa00",
"followers_url": "https://api.github.com/users/michelesa00/followers",
"following_url": "https://api.github.com/users/michelesa00/following{/other_user}",
"gists_url": "https://api.github.com/users/michelesa00/gists{/gist_id}",
"starred_url": "https://api.github.com/users/michelesa00/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michelesa00/subscriptions",
"organizations_url": "https://api.github.com/users/michelesa00/orgs",
"repos_url": "https://api.github.com/users/michelesa00/repos",
"events_url": "https://api.github.com/users/michelesa00/events{/privacy}",
"received_events_url": "https://api.github.com/users/michelesa00/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-29T16:24:00 | 2023-12-09T00:56:03 | null |
NONE
| null |
### System Info
langchain==0.0.330, python 3.9
### Who can help?
@hwchase17 @agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I created an agent as follows:
```
def batch_embedding(node_label:str, text_node_properties:list):
vector_index = Neo4jVector.from_existing_graph(
OpenAIEmbeddings(),
url=URL_DB_GRAPH,
username=USERNAME,
password=PASSWORD,
index_name= node_label,
node_label= node_label,
text_node_properties=text_node_properties,
embedding_node_property='embedding',
)
return vector_index
```
model_name= "gpt-4"
llm= ChatOpenAI(temperature=0, model_name=model_name)
vector_index = batch_embedding("Alarms", ["solution", "description", "type"])
vector_qa = RetrievalQA.from_chain_type(
llm=llm, chain_type="stuff", retriever=vector_index.as_retriever())
```
cypher_chain = GraphCypherQAChain.from_llm(
cypher_llm = llm,
qa_llm = ChatOpenAI(temperature=0), graph=graph, verbose=True, cypher_prompt=CYPHER_GENERATION_PROMPT
)
```
tools = [
Tool(
name="Alarms",
func=vector_qa.run,
description=prompt_per_alarms,
),
Tool(
name="Graph",
func=cypher_chain.run,
description=prompt_per_Graph,
),
]
mrkl = initialize_agent(
tools, ChatOpenAI(temperature=0, model_name=model_name), agent=AgentType.OPENAI_FUNCTIONS, verbose=True, memory=memory
)
message = request.form['message']
response = mrkl.run(message)
When I receive an answer from cypher_chain.run I can see that I've a full context with an output but the finished chain says "I'm sorry, but I don't have the information.." (see the image attached)

.
I noticed that this issue come back when I have a full context with an array of data.
### Expected behavior
Finished chain contains the full context and write the answer.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14031/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/14031/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14030
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14030/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14030/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14030/events
|
https://github.com/langchain-ai/langchain/pull/14030
| 2,016,952,057 |
PR_kwDOIPDwls5gsFes
| 14,030 |
Update typo in map.ipynb
|
{
"login": "nnmer",
"id": 1620737,
"node_id": "MDQ6VXNlcjE2MjA3Mzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1620737?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nnmer",
"html_url": "https://github.com/nnmer",
"followers_url": "https://api.github.com/users/nnmer/followers",
"following_url": "https://api.github.com/users/nnmer/following{/other_user}",
"gists_url": "https://api.github.com/users/nnmer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nnmer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nnmer/subscriptions",
"organizations_url": "https://api.github.com/users/nnmer/orgs",
"repos_url": "https://api.github.com/users/nnmer/repos",
"events_url": "https://api.github.com/users/nnmer/events{/privacy}",
"received_events_url": "https://api.github.com/users/nnmer/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-29T16:18:51 | 2023-11-29T17:14:30 | 2023-11-29T17:14:29 |
CONTRIBUTOR
| null |
fix the typo in docs, using "with" instead of "when"
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14030/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14030/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14030",
"html_url": "https://github.com/langchain-ai/langchain/pull/14030",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14030.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14030.patch",
"merged_at": "2023-11-29T17:14:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14029
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14029/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14029/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14029/events
|
https://github.com/langchain-ai/langchain/pull/14029
| 2,016,920,184 |
PR_kwDOIPDwls5gr-dC
| 14,029 |
fix #12899
|
{
"login": "yoch",
"id": 795960,
"node_id": "MDQ6VXNlcjc5NTk2MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/795960?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yoch",
"html_url": "https://github.com/yoch",
"followers_url": "https://api.github.com/users/yoch/followers",
"following_url": "https://api.github.com/users/yoch/following{/other_user}",
"gists_url": "https://api.github.com/users/yoch/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yoch/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yoch/subscriptions",
"organizations_url": "https://api.github.com/users/yoch/orgs",
"repos_url": "https://api.github.com/users/yoch/repos",
"events_url": "https://api.github.com/users/yoch/events{/privacy}",
"received_events_url": "https://api.github.com/users/yoch/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": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-29T16:02:47 | 2023-11-29T21:03:54 | 2023-11-29T20:57:07 |
CONTRIBUTOR
| null |
- **Description:** use post field validation for `CohereRerank`
- **Issue:** #12899 and #13058
- **Dependencies:**
- **Tag maintainer:** @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14029/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14029/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14029",
"html_url": "https://github.com/langchain-ai/langchain/pull/14029",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14029.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14029.patch",
"merged_at": "2023-11-29T20:57:07"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14028
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14028/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14028/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14028/events
|
https://github.com/langchain-ai/langchain/pull/14028
| 2,016,875,537 |
PR_kwDOIPDwls5gr0nx
| 14,028 |
Fix .env file path in integration_test README.md
|
{
"login": "FacerAin",
"id": 16442978,
"node_id": "MDQ6VXNlcjE2NDQyOTc4",
"avatar_url": "https://avatars.githubusercontent.com/u/16442978?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/FacerAin",
"html_url": "https://github.com/FacerAin",
"followers_url": "https://api.github.com/users/FacerAin/followers",
"following_url": "https://api.github.com/users/FacerAin/following{/other_user}",
"gists_url": "https://api.github.com/users/FacerAin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/FacerAin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FacerAin/subscriptions",
"organizations_url": "https://api.github.com/users/FacerAin/orgs",
"repos_url": "https://api.github.com/users/FacerAin/repos",
"events_url": "https://api.github.com/users/FacerAin/events{/privacy}",
"received_events_url": "https://api.github.com/users/FacerAin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-29T15:40:18 | 2023-11-30T03:14:28 | 2023-11-30T03:14:28 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
### Description
Hello,
The [integration_test README](https://github.com/langchain-ai/langchain/tree/master/libs/langchain/tests) was indicating incorrect paths for the `.env.example` and `.env` files.
`tests/.env.example` ->`tests/integration_tests/.env.example`
While it’s a minor error, it could **potentially lead to confusion** for the document’s readers, so I’ve made the necessary corrections.
Thank you! ☺️
### Related Issue
- https://github.com/langchain-ai/langchain/pull/2806
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14028/reactions",
"total_count": 3,
"+1": 3,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14028/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14028",
"html_url": "https://github.com/langchain-ai/langchain/pull/14028",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14028.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14028.patch",
"merged_at": "2023-11-30T03:14:28"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14027
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14027/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14027/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14027/events
|
https://github.com/langchain-ai/langchain/issues/14027
| 2,016,824,570 |
I_kwDOIPDwls54Nkz6
| 14,027 |
Issue: Request: Need Help with CustomAgentExecutor for Accessing Dynamically Created Prompts
|
{
"login": "bvasista",
"id": 137420696,
"node_id": "U_kgDOCDDfmA",
"avatar_url": "https://avatars.githubusercontent.com/u/137420696?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bvasista",
"html_url": "https://github.com/bvasista",
"followers_url": "https://api.github.com/users/bvasista/followers",
"following_url": "https://api.github.com/users/bvasista/following{/other_user}",
"gists_url": "https://api.github.com/users/bvasista/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bvasista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bvasista/subscriptions",
"organizations_url": "https://api.github.com/users/bvasista/orgs",
"repos_url": "https://api.github.com/users/bvasista/repos",
"events_url": "https://api.github.com/users/bvasista/events{/privacy}",
"received_events_url": "https://api.github.com/users/bvasista/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
open
| false | null |
[] | null | 3 | 2023-11-29T15:19:25 | 2023-12-01T07:29:06 | null |
NONE
| null |
### Issue you'd like to raise.
I am currently piecing together some of the tutorials on the langchain documentation page to use a CustomOutputParser and a CustomPrompt Template similar to the ZeroShotReact Template.
While parsing the actions, I have a scenario where, the model returns Action as None & Action Input as None. In that case, I would like access to the dynamically created prompt with in the CustomOutputParser to call another LLM and return the action as call to another LLM to complete the action.
**Current Approach:**
```python
# Set up a prompt template
class CustomPromptTemplatePirate(StringPromptTemplate):
# The template to use
template: str
# The list of tools available
tools: List[Tool]
def format(self, **kwargs) -> str:
# Get the intermediate steps (AgentAction, Observation tuples)
# Format them in a particular way
intermediate_steps = kwargs.pop("intermediate_steps")
thoughts = ""
for action, observation in intermediate_steps:
thoughts += action.log
thoughts += f"\nObservation: {observation}\nThought: "
# Set the agent_scratchpad variable to that value
kwargs["agent_scratchpad"] = thoughts
# Create a tools variable from the list of tools provided
kwargs["tools"] = "\n".join([f"{tool.name}: {tool.description}" for tool in self.tools])
# Create a list of tool names for the tools provided
kwargs["tool_names"] = ", ".join([tool.name for tool in self.tools])
return self.template.format(**kwargs)
class CustomOutputParserPirate(AgentOutputParser):
def parse(self, llm_output: str) -> Union[AgentAction, AgentFinish]:
# Check if agent should finish
if "Final Answer:" in llm_output:
return AgentFinish(
# Return values is generally always a dictionary with a single `output` key
# It is not recommended to try anything else at the moment :)
return_values={"output": llm_output.split("Final Answer:")[-1].strip()},
log=llm_output,
)
# Parse out the action and action input
regex = r"Action\s*\d*\s*:(.*?)\nAction\s*\d*\s*Input\s*\d*\s*:[\s]*(.*)"
match = re.search(regex, llm_output, re.DOTALL)
if not match:
raise OutputParserException(f"Could not parse LLM output: `{llm_output}`")
action = match.group(1).strip()
action_input = match.group(2)
# Return the action and action input
return AgentAction(tool=action, tool_input=action_input.strip(" ").strip('"'), log=llm_output)
# Set up the base template
template = """Complete the objective as best you can. You have access to the following tools:
{tools}
Use the following format:
Question: the input question you must answer
Thought: you should always think about what to do
Action: the action to take, should be one of [{tool_names}]
Action Input: the input to the action
Observation: the result of the action
... (this Thought/Action/Action Input/Observation can repeat N times)
Thought: I now know the final answer
Final Answer: the final answer to the original input question
These were previous tasks you completed:
Begin!
Question: {input}
{agent_scratchpad}"""
search = SerpAPIWrapper()
tools= [Tool(
name="Search",
func=search.run,
description="useful for when you need to answer questions about current events",
)]
prompt = CustomPromptTemplatePirate(
template=template,
tools=tools,
# This omits the `agent_scratchpad`, `tools`, and `tool_names` variables because those are generated dynamically
# This includes the `intermediate_steps` variable because that is needed
input_variables=["input", "intermediate_steps"]
)
output_parser = CustomOutputParserPirate()
# LLM chain consisting of the LLM and a prompt
llm_chain = LLMChain(llm=llm, prompt=prompt)
tool_names = [tool.name for tool in tools]
agent = LLMSingleActionAgent(
llm_chain=llm_chain,
output_parser=output_parser,
stop=["\nObservation:"],
allowed_tools=tool_names
)
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True)
agent_executor.run("How many people live in canada as of 2023?")
```
**Challenges Faced:**
I am unable to figure out how to access the callback or any other similar approach to use the complete Prompt/User Input with in the context of the CustomOutputParser
**Desired Outcome:**
```python
def parse(self, llm_output: str, prompt:start) -> Union[AgentAction, AgentFinish]:
# Check if agent should finish
.....
if not 'Action' & not 'Action Input' :
call AgentAction with another llm fine_tuned defined as tool with the user question as input ex: Write a summary on Canada. I need a way to access the user question here.
```
I would greatly appreciate any advice, documentation, or examples that could assist me in accomplishing this task. Thank you very much for your time and support.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14027/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14027/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14025
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14025/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14025/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14025/events
|
https://github.com/langchain-ai/langchain/pull/14025
| 2,016,585,972 |
PR_kwDOIPDwls5gq0r3
| 14,025 |
Update text_splitter.py
|
{
"login": "govinda18",
"id": 25079291,
"node_id": "MDQ6VXNlcjI1MDc5Mjkx",
"avatar_url": "https://avatars.githubusercontent.com/u/25079291?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/govinda18",
"html_url": "https://github.com/govinda18",
"followers_url": "https://api.github.com/users/govinda18/followers",
"following_url": "https://api.github.com/users/govinda18/following{/other_user}",
"gists_url": "https://api.github.com/users/govinda18/gists{/gist_id}",
"starred_url": "https://api.github.com/users/govinda18/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/govinda18/subscriptions",
"organizations_url": "https://api.github.com/users/govinda18/orgs",
"repos_url": "https://api.github.com/users/govinda18/repos",
"events_url": "https://api.github.com/users/govinda18/events{/privacy}",
"received_events_url": "https://api.github.com/users/govinda18/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": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-29T13:23:21 | 2023-12-05T10:33:11 | 2023-12-01T19:57:50 |
CONTRIBUTOR
| null |
Description: Fixes a minor bug to make HTMLHeaderTextSplitter work.
Issue: https://github.com/langchain-ai/langchain/issues/14024
Dependencies: none,
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** Fixes a minor bug to make HTMLHeaderTextSplitter work.,
- **Issue:** [the issue # it fixes (if applicable),](https://github.com/langchain-ai/langchain/issues/14024)
- **Dependencies:** None
- **Tag maintainer:** @hwchase17
- **Twitter handle:** @GovindaTotla
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14025/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14025/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14025",
"html_url": "https://github.com/langchain-ai/langchain/pull/14025",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14025.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14025.patch",
"merged_at": "2023-12-01T19:57:50"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14024
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14024/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14024/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14024/events
|
https://github.com/langchain-ai/langchain/issues/14024
| 2,016,575,594 |
I_kwDOIPDwls54MoBq
| 14,024 |
HTMLHeaderTextSplitter throws TypeError: cannot parse from 'PosixPath'
|
{
"login": "govinda18",
"id": 25079291,
"node_id": "MDQ6VXNlcjI1MDc5Mjkx",
"avatar_url": "https://avatars.githubusercontent.com/u/25079291?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/govinda18",
"html_url": "https://github.com/govinda18",
"followers_url": "https://api.github.com/users/govinda18/followers",
"following_url": "https://api.github.com/users/govinda18/following{/other_user}",
"gists_url": "https://api.github.com/users/govinda18/gists{/gist_id}",
"starred_url": "https://api.github.com/users/govinda18/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/govinda18/subscriptions",
"organizations_url": "https://api.github.com/users/govinda18/orgs",
"repos_url": "https://api.github.com/users/govinda18/repos",
"events_url": "https://api.github.com/users/govinda18/events{/privacy}",
"received_events_url": "https://api.github.com/users/govinda18/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-29T13:17:28 | 2023-11-29T13:22:01 | null |
CONTRIBUTOR
| null |
### System Info
Python 3.10
Langchain 0.0.311
### 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
```python
from langchain.text_splitter import RecursiveCharacterTextSplitter
url = "https://plato.stanford.edu/entries/goedel/"
headers_to_split_on = [
("h1", "Header 1"),
("h2", "Header 2"),
("h3", "Header 3"),
("h4", "Header 4"),
]
html_splitter = HTMLHeaderTextSplitter(headers_to_split_on=headers_to_split_on)
# for local file use html_splitter.split_text_from_file(<path_to_file>)
html_header_splits = html_splitter.split_text_from_url(url)
chunk_size = 500
chunk_overlap = 30
text_splitter = RecursiveCharacterTextSplitter(
chunk_size=chunk_size, chunk_overlap=chunk_overlap
)
# Split
splits = text_splitter.split_documents(html_header_splits)
splits[80:85]
```
[Reference](https://python.langchain.com/docs/modules/data_connection/document_transformers/text_splitters/HTML_header_metadata#2-pipelined-to-another-splitter-with-html-loaded-from-a-web-url)
The bug seems to be in [etree](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/text_splitter.py#L586). A simple fix is perhaps like below:
```python
from lxml import etree
from pathlib import Path
path = Path(".../langchain/document_transformers/xsl/html_chunks_with_headers.xslt")
# etree.parse(path) Throws
etree.parse(str(path))
```
### Expected behavior
The code in the reproducer should work.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14024/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14024/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14022
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14022/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14022/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14022/events
|
https://github.com/langchain-ai/langchain/issues/14022
| 2,016,322,236 |
I_kwDOIPDwls54LqK8
| 14,022 |
Recursive query when connecting to postgres db
|
{
"login": "quartermaine",
"id": 24212117,
"node_id": "MDQ6VXNlcjI0MjEyMTE3",
"avatar_url": "https://avatars.githubusercontent.com/u/24212117?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/quartermaine",
"html_url": "https://github.com/quartermaine",
"followers_url": "https://api.github.com/users/quartermaine/followers",
"following_url": "https://api.github.com/users/quartermaine/following{/other_user}",
"gists_url": "https://api.github.com/users/quartermaine/gists{/gist_id}",
"starred_url": "https://api.github.com/users/quartermaine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/quartermaine/subscriptions",
"organizations_url": "https://api.github.com/users/quartermaine/orgs",
"repos_url": "https://api.github.com/users/quartermaine/repos",
"events_url": "https://api.github.com/users/quartermaine/events{/privacy}",
"received_events_url": "https://api.github.com/users/quartermaine/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-29T10:55:01 | 2023-11-29T11:09:53 | null |
NONE
| null |
> langchain-experimental : 0.0.42
> langchain : 0.0.340
> gpt4all : 2.0.2
> PostgreSQL : 15.5
I am trying to query my postgres db using the following code:
```
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain_experimental.sql import SQLDatabaseChain
from langchain.memory import ConversationBufferMemory
from langchain import SQLDatabase
from langchain.llms import GPT4All
from langchain.prompts import PromptTemplate
from langchain.globals import set_verbose
import os
username = "postgres"
password = "password"
host = "127.0.0.1" # internal IP
port = "5432"
mydatabase = "reporting_db"
pg_uri = f'postgresql://{username}:{password}@{host}:{port}/{mydatabase}'
my_db = SQLDatabase.from_uri(pg_uri)
_DEFAULT_TEMPLATE = '''Given an input question, first create a syntactically correct {dialect} query to run,
then look at the results of the query and return the answer.
Use the following format:
Question: "Question here"
SQLQuery: "SQL Query to run"
SQLResult: "Result of the SQLQuery"
Answer: "Final answer here"
Only use the following tables:
{table_info}
If someone asks for the book written, they really mean the work table.
Question: {input}'''
PROMPT = PromptTemplate(
input_variables=["input", "table_info", "dialect"],
template=_DEFAULT_TEMPLATE
)
path = "/var/lib/postgresql/data/llama-2-7b.Q2_K.gguf"
callbacks = [StreamingStdOutCallbackHandler()]
llm = GPT4All(model = path,
callbacks=callbacks,
n_threads=8,
max_tokens=81920,
verbose=True
)
set_verbose(True)
db_chain = SQLDatabaseChain.from_llm(llm = llm,
db = my_db,
prompt = PROMPT,
use_query_checker=True,
verbose = True
)
question = 'Count the rows on table Access'
answer = db_chain(question)
print(answer)```
but I am getting the following error:
```ERROR: sqlalchemy.exc.ProgrammingError: (psycopg2.errors.SyntaxError) syntax error at or near "```"
LINE 1: ```sql
^
[SQL: ```sql
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (
SELECT * FROM (]
```
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14022/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14022/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14021
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14021/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14021/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14021/events
|
https://github.com/langchain-ai/langchain/issues/14021
| 2,016,308,490 |
I_kwDOIPDwls54Lm0K
| 14,021 |
Unable to Integrate ConversationChain with Tools like duckduckgo or serp-api
|
{
"login": "markwealthio",
"id": 141135321,
"node_id": "U_kgDOCGmN2Q",
"avatar_url": "https://avatars.githubusercontent.com/u/141135321?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/markwealthio",
"html_url": "https://github.com/markwealthio",
"followers_url": "https://api.github.com/users/markwealthio/followers",
"following_url": "https://api.github.com/users/markwealthio/following{/other_user}",
"gists_url": "https://api.github.com/users/markwealthio/gists{/gist_id}",
"starred_url": "https://api.github.com/users/markwealthio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/markwealthio/subscriptions",
"organizations_url": "https://api.github.com/users/markwealthio/orgs",
"repos_url": "https://api.github.com/users/markwealthio/repos",
"events_url": "https://api.github.com/users/markwealthio/events{/privacy}",
"received_events_url": "https://api.github.com/users/markwealthio/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 3 | 2023-11-29T10:47:49 | 2023-11-29T11:17:59 | null |
NONE
| null |
### Issue you'd like to raise.
Hi, I'm looking for some implementation that's utilizing a ConversationChain and giving it access to Internet. I want to integrate duckduckgo or bing-api or serpapi into my ConversationChain.
Would appreciate any help! Thanks
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14021/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14021/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14020
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14020/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14020/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14020/events
|
https://github.com/langchain-ai/langchain/issues/14020
| 2,016,305,395 |
I_kwDOIPDwls54LmDz
| 14,020 |
Doctran translate documents
|
{
"login": "abasovvyusif",
"id": 98745261,
"node_id": "U_kgDOBeK7rQ",
"avatar_url": "https://avatars.githubusercontent.com/u/98745261?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abasovvyusif",
"html_url": "https://github.com/abasovvyusif",
"followers_url": "https://api.github.com/users/abasovvyusif/followers",
"following_url": "https://api.github.com/users/abasovvyusif/following{/other_user}",
"gists_url": "https://api.github.com/users/abasovvyusif/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abasovvyusif/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abasovvyusif/subscriptions",
"organizations_url": "https://api.github.com/users/abasovvyusif/orgs",
"repos_url": "https://api.github.com/users/abasovvyusif/repos",
"events_url": "https://api.github.com/users/abasovvyusif/events{/privacy}",
"received_events_url": "https://api.github.com/users/abasovvyusif/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-29T10:46:04 | 2023-12-04T11:18:55 | null |
NONE
| null |
### System Info
IPython : 8.15.0
ipykernel : 6.25.0
ipywidgets : 8.0.4
jupyter_client : 7.4.9
jupyter_core : 5.5.0
jupyter_server : 1.23.4
jupyterlab : 3.5.3
nbclient : 0.8.0
nbconvert : 7.10.0
nbformat : 5.9.2
notebook : 6.5.4
qtconsole : 5.4.2
traitlets : 5.7.1
Python 3.11.6
Langchain '0.0.340'
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [X] Async
### Reproduction
TypeError: object Document can't be used in 'await' expression
translated_document = await qa_translator.atransform_documents(documents)
from official documentation notebook :
https://github.com/langchain-ai/langchain/blob/1cd9d5f3328e144cbe5d6ef52a22029d4fdf0cce/docs/docs/integrations/document_transformers/doctran_translate_document.ipynb
### Expected behavior
The problem might be arise due to specific python version or asyncio .
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14020/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14020/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14019
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14019/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14019/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14019/events
|
https://github.com/langchain-ai/langchain/issues/14019
| 2,016,297,886 |
I_kwDOIPDwls54LkOe
| 14,019 |
Ability to use custom tools and openai build in functions on OpenAIAssistantRunnable
|
{
"login": "daniellefranca96",
"id": 134293046,
"node_id": "U_kgDOCAEmNg",
"avatar_url": "https://avatars.githubusercontent.com/u/134293046?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/daniellefranca96",
"html_url": "https://github.com/daniellefranca96",
"followers_url": "https://api.github.com/users/daniellefranca96/followers",
"following_url": "https://api.github.com/users/daniellefranca96/following{/other_user}",
"gists_url": "https://api.github.com/users/daniellefranca96/gists{/gist_id}",
"starred_url": "https://api.github.com/users/daniellefranca96/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/daniellefranca96/subscriptions",
"organizations_url": "https://api.github.com/users/daniellefranca96/orgs",
"repos_url": "https://api.github.com/users/daniellefranca96/repos",
"events_url": "https://api.github.com/users/daniellefranca96/events{/privacy}",
"received_events_url": "https://api.github.com/users/daniellefranca96/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-29T10:41:57 | 2023-11-29T10:42:16 | null |
NONE
| null |
### Feature request
It would interesting to have the option tu run a OpenAIAssistantRunnable that has access to custom tools and OpenAI build in tools like code_intrepreter, vision and retrieval.
### Motivation
It would increase the developers capabilty of creating even more powerful agents.
### Your contribution
n/a
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14019/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14019/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14018
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14018/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14018/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14018/events
|
https://github.com/langchain-ai/langchain/issues/14018
| 2,016,254,745 |
I_kwDOIPDwls54LZsZ
| 14,018 |
Issue: openai.NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
|
{
"login": "arunkumars27",
"id": 142901313,
"node_id": "U_kgDOCISAQQ",
"avatar_url": "https://avatars.githubusercontent.com/u/142901313?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arunkumars27",
"html_url": "https://github.com/arunkumars27",
"followers_url": "https://api.github.com/users/arunkumars27/followers",
"following_url": "https://api.github.com/users/arunkumars27/following{/other_user}",
"gists_url": "https://api.github.com/users/arunkumars27/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arunkumars27/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arunkumars27/subscriptions",
"organizations_url": "https://api.github.com/users/arunkumars27/orgs",
"repos_url": "https://api.github.com/users/arunkumars27/repos",
"events_url": "https://api.github.com/users/arunkumars27/events{/privacy}",
"received_events_url": "https://api.github.com/users/arunkumars27/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false | null |
[] | null | 6 | 2023-11-29T10:18:06 | 2023-12-31T16:33:50 | null |
NONE
| null |
### Issue you'd like to raise.
I use the below code to load data and splitted it and embedded it and finally pushing it into vector store. during that process,
I'm getting **openai.NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}**. After this method failed, I also tried with AzurecosmosDBVectorsearch vector store it also failed and returned the same error. Kindly help on this.
```
from langchain.embeddings.azure_openai import AzureOpenAIEmbeddings
from langchain.vectorstores.azure_cosmos_db import AzureCosmosDBVectorSearch
from langchain.vectorstores.chroma import Chroma
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.document_loaders import PyPDFLoader
# Load PDF
loaders = [
PyPDFLoader("ai.pdf")
]
docs = []
for loader in loaders:
docs.extend(loader.load())
# Define the Text Splitter
text_splitter = RecursiveCharacterTextSplitter(
chunk_size=1500,
chunk_overlap=150
)
# Create a split of the document using the text splitter
res_splits = text_splitter.split_documents(docs)
embedding = AzureOpenAIEmbeddings(
openai_api_version="1699-02-30",
openai_api_key="xxxxxxxxxxxxxxxxxxxxxxxxx",
# model_name="gpt-35-turbo",
azure_endpoint="https://ggggggggggggggggggggggg.openai.azure.com/")
persist_directory = 'docs/chroma/'
# Create the vector store
vectordb = Chroma.from_documents(
documents=res_splits,
embedding=embedding,
persist_directory=persist_directory
)
print(vectordb._collection.count())
```
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14018/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14018/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14017
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14017/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14017/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14017/events
|
https://github.com/langchain-ai/langchain/issues/14017
| 2,016,092,448 |
I_kwDOIPDwls54KyEg
| 14,017 |
when I run the demo from the cookbook,I get error Error code: 404 - {'error': {'message': 'The model `text-davinci-003` does not exist1', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}
|
{
"login": "Gzxl",
"id": 6359205,
"node_id": "MDQ6VXNlcjYzNTkyMDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/6359205?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Gzxl",
"html_url": "https://github.com/Gzxl",
"followers_url": "https://api.github.com/users/Gzxl/followers",
"following_url": "https://api.github.com/users/Gzxl/following{/other_user}",
"gists_url": "https://api.github.com/users/Gzxl/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Gzxl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Gzxl/subscriptions",
"organizations_url": "https://api.github.com/users/Gzxl/orgs",
"repos_url": "https://api.github.com/users/Gzxl/repos",
"events_url": "https://api.github.com/users/Gzxl/events{/privacy}",
"received_events_url": "https://api.github.com/users/Gzxl/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-29T08:45:42 | 2023-11-29T08:58:32 | null |
NONE
| null |
### System Info
Python 3.10.10 [email protected]
langchain-core@ 0.0.7
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
md_file = docs[0].page_content
headers_to_split_on = [
("###", "Section"),
]
markdown_splitter = MarkdownHeaderTextSplitter(headers_to_split_on=headers_to_split_on)
md_header_splits = markdown_splitter.split_text(md_file)
chunk_size = 500
chunk_overlap = 0
text_splitter = RecursiveCharacterTextSplitter(
chunk_size=chunk_size, chunk_overlap=chunk_overlap
)
all_splits = text_splitter.split_documents(md_header_splits)
vectorstore = Chroma.from_documents(documents=all_splits, embedding=OpenAIEmbeddings())
metadata_field_info = [
AttributeInfo(
name="Section",
description="Part of the document that the text comes from",
type="string or list[string]",
),
]
document_content_description = "Major sections of the document"
# Define self query retriever
llm = OpenAI(temperature=0)
retriever = SelfQueryRetriever.from_llm(
llm, vectorstore, document_content_description, metadata_field_info, verbose=True
)
llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0)
qa_chain = RetrievalQA.from_chain_type(llm, retriever=retriever)
qa_chain.run("衰老有哪些因素?")
### Expected behavior
how can I fix the problem
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14017/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14017/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14016
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/14016/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14016/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/14016/events
|
https://github.com/langchain-ai/langchain/pull/14016
| 2,016,049,187 |
PR_kwDOIPDwls5go-1T
| 14,016 |
Improve HyDe with custom prompts and ability to supply the run_manager
|
{
"login": "yvesloy",
"id": 19683811,
"node_id": "MDQ6VXNlcjE5NjgzODEx",
"avatar_url": "https://avatars.githubusercontent.com/u/19683811?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yvesloy",
"html_url": "https://github.com/yvesloy",
"followers_url": "https://api.github.com/users/yvesloy/followers",
"following_url": "https://api.github.com/users/yvesloy/following{/other_user}",
"gists_url": "https://api.github.com/users/yvesloy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yvesloy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yvesloy/subscriptions",
"organizations_url": "https://api.github.com/users/yvesloy/orgs",
"repos_url": "https://api.github.com/users/yvesloy/repos",
"events_url": "https://api.github.com/users/yvesloy/events{/privacy}",
"received_events_url": "https://api.github.com/users/yvesloy/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": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-29T08:17:41 | 2023-11-29T17:40:54 | 2023-11-29T17:40:53 |
CONTRIBUTOR
| null |
- **Description:** The class allows to only select between a few predefined prompts from the paper. That is not ideal, since other use cases might need a custom prompt. The changes made allow for this. To be able to monitor those, I also added functionality to supply a custom run_manager.
- **Issue:** no issue, but a new feature,
- **Dependencies:** none,
- **Tag maintainer:** @hwchase17,
- **Twitter handle:** @yvesloy
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14016/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/14016/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14016",
"html_url": "https://github.com/langchain-ai/langchain/pull/14016",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14016.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14016.patch",
"merged_at": "2023-11-29T17:40:53"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.