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/13909 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13909/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13909/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13909/events | https://github.com/langchain-ai/langchain/issues/13909 | 2,012,075,695 | I_kwDOIPDwls537dav | 13,909 | MultiVector Retriever BaseStore | {
"login": "raelix",
"id": 3819481,
"node_id": "MDQ6VXNlcjM4MTk0ODE=",
"avatar_url": "https://avatars.githubusercontent.com/u/3819481?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/raelix",
"html_url": "https://github.com/raelix",
"followers_url": "https://api.github.com/users/raelix/followers",
"following_url": "https://api.github.com/users/raelix/following{/other_user}",
"gists_url": "https://api.github.com/users/raelix/gists{/gist_id}",
"starred_url": "https://api.github.com/users/raelix/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raelix/subscriptions",
"organizations_url": "https://api.github.com/users/raelix/orgs",
"repos_url": "https://api.github.com/users/raelix/repos",
"events_url": "https://api.github.com/users/raelix/events{/privacy}",
"received_events_url": "https://api.github.com/users/raelix/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": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] | open | false | null | [] | null | 1 | 2023-11-27T11:33:30 | 2023-11-27T11:33:52 | null | CONTRIBUTOR | null | ### Feature request
MultiVectorRetriever is really helpful to add summary and hypothetical queries of our documents to improve the retrievers but only these two are stored in the vectorstore, instead the entire document is within a BaseStore (Memory or Local).
The main issue is that:
- the Memory one is not going to persist across restarts
- the File one is going to create tons of files
Why not keeping the original document in the vectorstore as well instead of using external file/memory?
### Motivation
Keep documents, questions and summaries on the same vectorstore.
### Your contribution
I could work on that but I would like to know your point of view. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13909/reactions",
"total_count": 2,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13909/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13908 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13908/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13908/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13908/events | https://github.com/langchain-ai/langchain/pull/13908 | 2,012,073,691 | PR_kwDOIPDwls5gbY6x | 13,908 | fix: fix qianfan validate_environment typo | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"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-27T11:32:13 | 2023-12-29T03:32:35 | 2023-11-27T19:17:27 | 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/13908/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13908/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13908",
"html_url": "https://github.com/langchain-ai/langchain/pull/13908",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13908.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13908.patch",
"merged_at": "2023-11-27T19:17:27"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13907 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13907/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13907/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13907/events | https://github.com/langchain-ai/langchain/pull/13907 | 2,012,036,150 | PR_kwDOIPDwls5gbQvy | 13,907 | feat: mask api_key for jina | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"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 | {
"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-27T11:09:12 | 2023-11-29T03:34:45 | 2023-11-29T02:24:50 | CONTRIBUTOR | null | for https://github.com/langchain-ai/langchain/issues/12165 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13907/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13907/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13907",
"html_url": "https://github.com/langchain-ai/langchain/pull/13907",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13907.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13907.patch",
"merged_at": "2023-11-29T02:24:50"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13906 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13906/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13906/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13906/events | https://github.com/langchain-ai/langchain/issues/13906 | 2,012,028,998 | I_kwDOIPDwls537SBG | 13,906 | imports of OpenAI and SQLDatabase don't work in .py file | {
"login": "nyck33",
"id": 25189545,
"node_id": "MDQ6VXNlcjI1MTg5NTQ1",
"avatar_url": "https://avatars.githubusercontent.com/u/25189545?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nyck33",
"html_url": "https://github.com/nyck33",
"followers_url": "https://api.github.com/users/nyck33/followers",
"following_url": "https://api.github.com/users/nyck33/following{/other_user}",
"gists_url": "https://api.github.com/users/nyck33/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nyck33/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nyck33/subscriptions",
"organizations_url": "https://api.github.com/users/nyck33/orgs",
"repos_url": "https://api.github.com/users/nyck33/repos",
"events_url": "https://api.github.com/users/nyck33/events{/privacy}",
"received_events_url": "https://api.github.com/users/nyck33/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 | 3 | 2023-11-27T11:04:57 | 2023-11-27T11:10:47 | null | NONE | null | ### System Info
Ubuntu 23.10
### Who can help?
@hwchase17 @agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from langchain import OpenAI, SQLDatabase
from snowflake.snowpark import Session
from langchain.chains import create_sql_query_chain
from dotenv import load_dotenv
import os
from urllib.parse import quote
load_dotenv()
# use the env vars in comments above to set the vars below
OpenAI_API_KEY = os.getenv("OPENAI_API_KEY")
snowflake_account = os.getenv("ACCOUNT")
username = os.getenv("USER")
password = os.getenv("SNOWSQL_PWD")
warehouse = os.getenv("WAREHOUSE")
database = 'LANGCHAIN_DEMO_DB' #os.getenv("DATABASE")
schema = 'PUBLIC' #os.getenv("SCHEMA")
role = os.getenv("ROLE")
# print out all env vars using f-strings each on a separate line but x out password
print(f"OpenAI_API_KEY: {'x' * len(OpenAI_API_KEY)}")
print(f"snowflake_account: {snowflake_account}")
#print(f"username: {username}")
#print(f"password: {password}")
print(f"warehouse: {warehouse}")
print(f"database: {database}")
print(f"schema: {schema}")
print(f"role: {role}")
encoded_password = quote(password, safe='')
```
but it works in my Jupyter notebook
![image](https://github.com/langchain-ai/langchain/assets/25189545/5ef3caa3-747e-4622-9714-a96f8e10a5ad)
https://medium.com/@muriithicliffernest/snowflake-langchain-generating-sql-queries-from-natural-language-queries-12c4e2918631 is the tutorial I followed for the .ipynb.
```
pip install --upgrade pip
pip install "snowflake-snowpark-python[pandas]" snowflake-sqlalchemy
pip install langchain openai langchain-experimental jupyter
```
are the instructions to install packages in that Medium article so I matched versions for both the conda env I'm using for the .py and .ipynb. Even if I use the same `langchain-snowlfake` env for both the error is still there. See the red line under `from langchain import OpenAI, SQLDatabase
` in the right half of the image which is showing `lanchain-sql.py`
### Expected behavior
The import should work, no red line. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13906/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13906/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13905 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13905/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13905/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13905/events | https://github.com/langchain-ai/langchain/pull/13905 | 2,011,835,828 | PR_kwDOIPDwls5galRN | 13,905 | IMPROVEMENT: import Document from core | {
"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": 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": 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-27T09:16:12 | 2023-11-27T20:48:44 | 2023-11-27T20:48:44 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13905/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13905/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13905",
"html_url": "https://github.com/langchain-ai/langchain/pull/13905",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13905.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13905.patch",
"merged_at": "2023-11-27T20:48:43"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13903 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13903/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13903/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13903/events | https://github.com/langchain-ai/langchain/pull/13903 | 2,011,758,303 | PR_kwDOIPDwls5gaU08 | 13,903 | Support for indexes that do not return a 'metadata' field in '_source' | {
"login": "assaftibm",
"id": 28494432,
"node_id": "MDQ6VXNlcjI4NDk0NDMy",
"avatar_url": "https://avatars.githubusercontent.com/u/28494432?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/assaftibm",
"html_url": "https://github.com/assaftibm",
"followers_url": "https://api.github.com/users/assaftibm/followers",
"following_url": "https://api.github.com/users/assaftibm/following{/other_user}",
"gists_url": "https://api.github.com/users/assaftibm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/assaftibm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/assaftibm/subscriptions",
"organizations_url": "https://api.github.com/users/assaftibm/orgs",
"repos_url": "https://api.github.com/users/assaftibm/repos",
"events_url": "https://api.github.com/users/assaftibm/events{/privacy}",
"received_events_url": "https://api.github.com/users/assaftibm/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6077048506,
"node_id": "LA_kwDOIPDwls8AAAABajhmug",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20elasticsearch",
"name": "integration: elasticsearch",
"color": "DAB5EC",
"default": false,
"description": "Related to elastic/elasticsearch integrations"
},
{
"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 | 4 | 2023-11-27T08:30:49 | 2023-11-30T17:21:28 | 2023-11-27T20:52:57 | CONTRIBUTOR | null |
Description: Some Elastic indexes do not return a 'metadata' field in '_source'. However, prior to this PR, the code assumed there always is a 'metadata' field. This PR adds support for cases where the field is missing by adding it manually.
Issue: #13869
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13903/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13903/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13903",
"html_url": "https://github.com/langchain-ai/langchain/pull/13903",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13903.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13903.patch",
"merged_at": "2023-11-27T20:52:57"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13902 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13902/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13902/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13902/events | https://github.com/langchain-ai/langchain/pull/13902 | 2,011,722,513 | PR_kwDOIPDwls5gaNF- | 13,902 | DOCS: update stack diagram | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 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-27T08:06:25 | 2023-11-28T22:19:14 | 2023-11-28T22:19:13 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13902/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13902/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13902",
"html_url": "https://github.com/langchain-ai/langchain/pull/13902",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13902.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13902.patch",
"merged_at": "2023-11-28T22:19:13"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13901 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13901/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13901/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13901/events | https://github.com/langchain-ai/langchain/pull/13901 | 2,011,713,191 | PR_kwDOIPDwls5gaLHO | 13,901 | AnthropicFunctions function_call compatibility | {
"login": "JohnnyFoulds",
"id": 28979940,
"node_id": "MDQ6VXNlcjI4OTc5OTQw",
"avatar_url": "https://avatars.githubusercontent.com/u/28979940?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/JohnnyFoulds",
"html_url": "https://github.com/JohnnyFoulds",
"followers_url": "https://api.github.com/users/JohnnyFoulds/followers",
"following_url": "https://api.github.com/users/JohnnyFoulds/following{/other_user}",
"gists_url": "https://api.github.com/users/JohnnyFoulds/gists{/gist_id}",
"starred_url": "https://api.github.com/users/JohnnyFoulds/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JohnnyFoulds/subscriptions",
"organizations_url": "https://api.github.com/users/JohnnyFoulds/orgs",
"repos_url": "https://api.github.com/users/JohnnyFoulds/repos",
"events_url": "https://api.github.com/users/JohnnyFoulds/events{/privacy}",
"received_events_url": "https://api.github.com/users/JohnnyFoulds/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"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-11-27T08:00:03 | 2023-11-28T21:22:55 | 2023-11-28T21:22:55 | CONTRIBUTOR | null | - **Description:** Updates to `AnthropicFunctions` to be compatible with the OpenAI `function_call` functionality.
- **Issue:** The functionality to indicate `auto`, `none` and a forced function_call was not completely implemented in the existing code.
- **Dependencies:** None
- **Tag maintainer:** @baskaryan , and any of the other maintainers if needed.
- **Twitter handle:** None
I have specifically tested this functionality via AWS Bedrock with the Claude-2 and Claude-Instant models.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13901/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13901/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13901",
"html_url": "https://github.com/langchain-ai/langchain/pull/13901",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13901.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13901.patch",
"merged_at": "2023-11-28T21:22:55"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13900 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13900/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13900/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13900/events | https://github.com/langchain-ai/langchain/issues/13900 | 2,011,642,730 | I_kwDOIPDwls535ztq | 13,900 | Issue: Retrieval QA Chain not giving response after Entering new RetrievalQA chain... | {
"login": "JoAmps",
"id": 64706945,
"node_id": "MDQ6VXNlcjY0NzA2OTQ1",
"avatar_url": "https://avatars.githubusercontent.com/u/64706945?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/JoAmps",
"html_url": "https://github.com/JoAmps",
"followers_url": "https://api.github.com/users/JoAmps/followers",
"following_url": "https://api.github.com/users/JoAmps/following{/other_user}",
"gists_url": "https://api.github.com/users/JoAmps/gists{/gist_id}",
"starred_url": "https://api.github.com/users/JoAmps/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JoAmps/subscriptions",
"organizations_url": "https://api.github.com/users/JoAmps/orgs",
"repos_url": "https://api.github.com/users/JoAmps/repos",
"events_url": "https://api.github.com/users/JoAmps/events{/privacy}",
"received_events_url": "https://api.github.com/users/JoAmps/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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-27T07:12:34 | 2023-11-27T07:21:21 | null | NONE | null | ### Issue you'd like to raise.
Sometimes when interacting with the bot using Retrieval QA chain, it just stops at Entering new RetrievalQA chain...
No response, it doesn't give the response, it just stops,
I am using qa.acall
and using the async callback handler
how to fix that, as that is unnacceptable
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13900/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13900/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13897 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13897/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13897/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13897/events | https://github.com/langchain-ai/langchain/issues/13897 | 2,011,474,672 | I_kwDOIPDwls535Krw | 13,897 | Issue: AgentExecutor stopping before reaching the set max_iteration and max_execution_time limits without meeting the stop condition | {
"login": "XO-Appleton",
"id": 41369365,
"node_id": "MDQ6VXNlcjQxMzY5MzY1",
"avatar_url": "https://avatars.githubusercontent.com/u/41369365?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/XO-Appleton",
"html_url": "https://github.com/XO-Appleton",
"followers_url": "https://api.github.com/users/XO-Appleton/followers",
"following_url": "https://api.github.com/users/XO-Appleton/following{/other_user}",
"gists_url": "https://api.github.com/users/XO-Appleton/gists{/gist_id}",
"starred_url": "https://api.github.com/users/XO-Appleton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/XO-Appleton/subscriptions",
"organizations_url": "https://api.github.com/users/XO-Appleton/orgs",
"repos_url": "https://api.github.com/users/XO-Appleton/repos",
"events_url": "https://api.github.com/users/XO-Appleton/events{/privacy}",
"received_events_url": "https://api.github.com/users/XO-Appleton/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"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-27T04:43:45 | 2023-11-29T13:52:34 | 2023-11-29T13:52:33 | NONE | null | ### Issue you'd like to raise.
```python
llm = ChatOpenAI(model=gpt_4, temperature=0, api_key=os.environ['OPENAI_API_KEY'])
llm_chain = LLMChain(llm=llm, prompt=react_prompt)
tool_names = [tool.name]
agent = LLMSingleActionAgent(
llm_chain=llm_chain,
output_parser=react_output_parser,
stop=["\nObservation:"],
allowed_tools=tool_names,
max_execution_time=240,
max_iterations=120,
handle_parsing_errors=True
)
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=[tool], verbose=True)
response = agent_executor.run(textual_description)
```
This is my setup for AgentExecutor. It is prompted to solve OpenAI gym's Taxi problem and only stop after the passenger is dropped off at the destination. But as the title suggests the AgentExecutor chain finishes before reaching the stopping limits or achieving the stopping condition.
Also when I use GPT-3 model sometimes it stops following the ReAct template occasionally and raises errors as my output parser cannot process the output correctly. I wonder if there is a way to change that.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13897/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13897/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13896 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13896/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13896/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13896/events | https://github.com/langchain-ai/langchain/issues/13896 | 2,011,448,434 | I_kwDOIPDwls535ERy | 13,896 | Error raised during decoding response from inference endpoint when using ChatGLM | {
"login": "henrywang0314",
"id": 48542403,
"node_id": "MDQ6VXNlcjQ4NTQyNDAz",
"avatar_url": "https://avatars.githubusercontent.com/u/48542403?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/henrywang0314",
"html_url": "https://github.com/henrywang0314",
"followers_url": "https://api.github.com/users/henrywang0314/followers",
"following_url": "https://api.github.com/users/henrywang0314/following{/other_user}",
"gists_url": "https://api.github.com/users/henrywang0314/gists{/gist_id}",
"starred_url": "https://api.github.com/users/henrywang0314/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/henrywang0314/subscriptions",
"organizations_url": "https://api.github.com/users/henrywang0314/orgs",
"repos_url": "https://api.github.com/users/henrywang0314/repos",
"events_url": "https://api.github.com/users/henrywang0314/events{/privacy}",
"received_events_url": "https://api.github.com/users/henrywang0314/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-11-27T04:12:28 | 2023-11-27T05:21:31 | null | NONE | null | ### System Info
langchain==0.0.316
python==3.10.13
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
i'm using the code here:https://python.langchain.com/docs/integrations/llms/chatglm
Here is the full error output:
Traceback (most recent call last):
File "C:\Users\vic\Desktop\chatGLM\.conda\lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\vic\Desktop\chatGLM\.conda\lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\vic\Desktop\chatGLM\.conda\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\vic\Desktop\chatGLM\.conda\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\llms\chatglm.py", line 107, in _call
parsed_response = response.json()
File "C:\Users\vic\Desktop\chatGLM\.conda\lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\vic\Desktop\chatGLM\test_server.py", line 36, in <module>
print(llm_chain.run(question))
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\chains\base.py", line 503, in run
return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\chains\base.py", line 308, in __call__
raise e
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\chains\base.py", line 302, in __call__
self._call(inputs, run_manager=run_manager)
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\chains\llm.py", line 93, in _call
response = self.generate([inputs], run_manager=run_manager)
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\chains\llm.py", line 103, in generate
return self.llm.generate_prompt(
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\llms\base.py", line 497, in generate_prompt
return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs)
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\llms\base.py", line 646, in generate
output = self._generate_helper(
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\llms\base.py", line 534, in _generate_helper
raise e
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\llms\base.py", line 521, in _generate_helper
self._generate(
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\llms\base.py", line 1043, in _generate
self._call(prompt, stop=stop, run_manager=run_manager, **kwargs)
File "C:\Users\vic\AppData\Roaming\Python\Python310\site-packages\langchain\llms\chatglm.py", line 120, in _call
raise ValueError(
ValueError: Error raised during decoding response from inference endpoint: Expecting value: line 1 column 1 (char 0).
### Expected behavior
output of ChatGLM's response is missing
print(response)
<Response [200]> | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13896/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13896/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13894 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13894/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13894/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13894/events | https://github.com/langchain-ai/langchain/pull/13894 | 2,011,378,648 | PR_kwDOIPDwls5gZCwl | 13,894 | Improve exclude path filesystem logic | {
"login": "johnlarkin1",
"id": 18692931,
"node_id": "MDQ6VXNlcjE4NjkyOTMx",
"avatar_url": "https://avatars.githubusercontent.com/u/18692931?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/johnlarkin1",
"html_url": "https://github.com/johnlarkin1",
"followers_url": "https://api.github.com/users/johnlarkin1/followers",
"following_url": "https://api.github.com/users/johnlarkin1/following{/other_user}",
"gists_url": "https://api.github.com/users/johnlarkin1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/johnlarkin1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/johnlarkin1/subscriptions",
"organizations_url": "https://api.github.com/users/johnlarkin1/orgs",
"repos_url": "https://api.github.com/users/johnlarkin1/repos",
"events_url": "https://api.github.com/users/johnlarkin1/events{/privacy}",
"received_events_url": "https://api.github.com/users/johnlarkin1/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"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."
}
] | open | false | null | [] | null | 2 | 2023-11-27T02:42:32 | 2023-11-27T23:20:11 | null | NONE | null | - **Description:** Improving the use of the exclude arguments for `FileSystemBlobLoader`
- **Issue:** #13751
- **Dependencies:** n/a
- **Tag maintainer:**
- **Twitter handle:** this PR won't get announced, but @jlarks32
See the issue above for more detail, but I don't think that the `exclude` parameter is being handled really like what the API is indicating / what we were thinking (largely due to annoyances with pathlib's `Path.match`). Let me know if you all want me to add some more unit tests and build this out a little bit more.
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
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/13894/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13894/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13894",
"html_url": "https://github.com/langchain-ai/langchain/pull/13894",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13894.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13894.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13893 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13893/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13893/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13893/events | https://github.com/langchain-ai/langchain/pull/13893 | 2,011,374,966 | PR_kwDOIPDwls5gZB_B | 13,893 | Add multi-input Reddit search tool | {
"login": "clwillhuang",
"id": 49571870,
"node_id": "MDQ6VXNlcjQ5NTcxODcw",
"avatar_url": "https://avatars.githubusercontent.com/u/49571870?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/clwillhuang",
"html_url": "https://github.com/clwillhuang",
"followers_url": "https://api.github.com/users/clwillhuang/followers",
"following_url": "https://api.github.com/users/clwillhuang/following{/other_user}",
"gists_url": "https://api.github.com/users/clwillhuang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/clwillhuang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/clwillhuang/subscriptions",
"organizations_url": "https://api.github.com/users/clwillhuang/orgs",
"repos_url": "https://api.github.com/users/clwillhuang/repos",
"events_url": "https://api.github.com/users/clwillhuang/events{/privacy}",
"received_events_url": "https://api.github.com/users/clwillhuang/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."
}
] | closed | false | null | [] | null | 1 | 2023-11-27T02:37:19 | 2023-12-01T22:56:21 | 2023-11-30T01:16:41 | CONTRIBUTOR | null | - **Description:** Added a tool called RedditSearchRun and an accompanying API wrapper, which searches Reddit for posts with support for time filtering, post sorting, query string and subreddit filtering.
- **Issue:** #13891
- **Dependencies:** `praw` module is used to search Reddit
- **Tag maintainer:** @baskaryan , and any of the other maintainers if needed
- **Twitter handle:** None.
Hello,
This is our first PR and we hope that our changes will be helpful to the community. We have run `make format`, `make lint` and `make test` locally before submitting the PR. To our knowledge, our changes do not introduce any new errors.
Our PR integrates the `praw` package which is already used by RedditPostsLoader in LangChain. Nonetheless, we have added integration tests and edited unit tests to test our changes. An example notebook is also provided. These changes were put together by me, @Anika2000, @CharlesXu123, and @Jeremy-Cheng-stack
Thank you in advance to the maintainers for their time.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13893/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/13893/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13893",
"html_url": "https://github.com/langchain-ai/langchain/pull/13893",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13893.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13893.patch",
"merged_at": "2023-11-30T01:16:41"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13891 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13891/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13891/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13891/events | https://github.com/langchain-ai/langchain/issues/13891 | 2,011,359,518 | I_kwDOIPDwls534uke | 13,891 | Adding a multi-input Reddit search tool | {
"login": "clwillhuang",
"id": 49571870,
"node_id": "MDQ6VXNlcjQ5NTcxODcw",
"avatar_url": "https://avatars.githubusercontent.com/u/49571870?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/clwillhuang",
"html_url": "https://github.com/clwillhuang",
"followers_url": "https://api.github.com/users/clwillhuang/followers",
"following_url": "https://api.github.com/users/clwillhuang/following{/other_user}",
"gists_url": "https://api.github.com/users/clwillhuang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/clwillhuang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/clwillhuang/subscriptions",
"organizations_url": "https://api.github.com/users/clwillhuang/orgs",
"repos_url": "https://api.github.com/users/clwillhuang/repos",
"events_url": "https://api.github.com/users/clwillhuang/events{/privacy}",
"received_events_url": "https://api.github.com/users/clwillhuang/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] | closed | false | null | [] | null | 2 | 2023-11-27T02:16:19 | 2023-12-11T03:21:33 | 2023-12-11T03:21:33 | CONTRIBUTOR | null | ### Feature request
We are working on a way to add a multi-input tool to LangChain for searching Reddit posts. Integrating the API as a tool will allow agents to search for posts using a specific search query and some query parameters like sort, time_filter, subreddit etc. to respond to prompts. The tool will use search functionality provided by [the `praw` package](https://praw.readthedocs.io/en/stable/code_overview/models/subreddit.html#praw.models.Subreddit.search).
### Motivation
Although LangChain currently has a document loader for Reddit (RedditPostsLoader), it is more centred around subreddit and username to load posts and we want to create our tool to provide more functionalities. Our tool will offer functionality for sorting and filtering by time, which is currently not handled by RedditPostsLoader. With this tool, agents can respond to prompts by interacting with the API without the user having to manually load the Reddit posts. The multi-input nature of the tool will make it useful for responding to more diverse prompts and we hope that users can use it to better leverage [multi-input tool](https://python.langchain.com/docs/modules/agents/tools/multi_input_tool) and [shared memory](https://python.langchain.com/docs/modules/agents/how_to/sharedmemory_for_tools) functionalities already provided by LangChain.
### Your contribution
We have our code already prepared and we will be submitting a PR soon. As encouraged by contributing.md, we have added integration tests, a notebook example, and edits for documentation generation. `praw` has also been added as an optional dependency. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13891/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13891/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13890 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13890/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13890/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13890/events | https://github.com/langchain-ai/langchain/pull/13890 | 2,011,351,167 | PR_kwDOIPDwls5gY8_x | 13,890 | DOC: Fix Sample Code for Compatibility with Pydantic 2.0 | {
"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": 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 | 2 | 2023-11-27T02:04:27 | 2023-11-28T08:48:41 | 2023-11-27T02:21:14 | CONTRIBUTOR | null | - **Description:**
I encountered an issue while running the existing sample code on the page https://python.langchain.com/docs/modules/agents/how_to/agent_iter in an environment with Pydantic 2.0 installed. The following error was triggered:
```python
ValidationError Traceback (most recent call last)
<ipython-input-12-2ffff2c87e76> in <cell line: 43>()
41
42 tools = [
---> 43 Tool(
44 name="GetPrime",
45 func=get_prime,
2 frames
/usr/local/lib/python3.10/dist-packages/pydantic/v1/main.py in __init__(__pydantic_self__, **data)
339 values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
340 if validation_error:
--> 341 raise validation_error
342 try:
343 object_setattr(__pydantic_self__, '__dict__', values)
ValidationError: 1 validation error for Tool
args_schema
subclass of BaseModel expected (type=type_error.subclass; expected_class=BaseModel)
```
I have made modifications to the example code to ensure it functions correctly in environments with Pydantic 2.0. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13890/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13890/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13890",
"html_url": "https://github.com/langchain-ai/langchain/pull/13890",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13890.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13890.patch",
"merged_at": "2023-11-27T02:21:14"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13889 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13889/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13889/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13889/events | https://github.com/langchain-ai/langchain/pull/13889 | 2,011,322,066 | PR_kwDOIPDwls5gY20h | 13,889 | Add retriever for Outline | {
"login": "yuskhan",
"id": 66191792,
"node_id": "MDQ6VXNlcjY2MTkxNzky",
"avatar_url": "https://avatars.githubusercontent.com/u/66191792?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yuskhan",
"html_url": "https://github.com/yuskhan",
"followers_url": "https://api.github.com/users/yuskhan/followers",
"following_url": "https://api.github.com/users/yuskhan/following{/other_user}",
"gists_url": "https://api.github.com/users/yuskhan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yuskhan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yuskhan/subscriptions",
"organizations_url": "https://api.github.com/users/yuskhan/orgs",
"repos_url": "https://api.github.com/users/yuskhan/repos",
"events_url": "https://api.github.com/users/yuskhan/events{/privacy}",
"received_events_url": "https://api.github.com/users/yuskhan/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": 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 | 3 | 2023-11-27T01:24:46 | 2023-11-28T01:51:55 | 2023-11-27T02:56:12 | CONTRIBUTOR | null | - **Description:** Added a retriever for the Outline API to ask questions on knowledge base
- **Issue:** resolves #11814
- **Dependencies:** None
- **Tag maintainer:** @baskaryan
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13889/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13889/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13889",
"html_url": "https://github.com/langchain-ai/langchain/pull/13889",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13889.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13889.patch",
"merged_at": "2023-11-27T02:56:12"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13888 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13888/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13888/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13888/events | https://github.com/langchain-ai/langchain/pull/13888 | 2,011,309,828 | PR_kwDOIPDwls5gY0L0 | 13,888 | Fixes error loading Obsidian templates | {
"login": "ealt",
"id": 13019253,
"node_id": "MDQ6VXNlcjEzMDE5MjUz",
"avatar_url": "https://avatars.githubusercontent.com/u/13019253?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ealt",
"html_url": "https://github.com/ealt",
"followers_url": "https://api.github.com/users/ealt/followers",
"following_url": "https://api.github.com/users/ealt/following{/other_user}",
"gists_url": "https://api.github.com/users/ealt/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ealt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ealt/subscriptions",
"organizations_url": "https://api.github.com/users/ealt/orgs",
"repos_url": "https://api.github.com/users/ealt/repos",
"events_url": "https://api.github.com/users/ealt/events{/privacy}",
"received_events_url": "https://api.github.com/users/ealt/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": 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-27T01:07:17 | 2023-12-04T20:55:38 | 2023-12-04T20:55:37 | CONTRIBUTOR | null | - **Description:** Obsidian templates can include [variables](https://help.obsidian.md/Plugins/Templates#Template+variables) using double curly braces. `ObsidianLoader` uses PyYaml to parse the frontmatter of documents. This parsing throws an error when encountering variables' curly braces. This is avoided by temporarily substituting safe strings before parsing.
- **Issue:** #13887
- **Tag maintainer:** @hwchase17 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13888/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13888/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13888",
"html_url": "https://github.com/langchain-ai/langchain/pull/13888",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13888.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13888.patch",
"merged_at": "2023-12-04T20:55:37"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13887 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13887/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13887/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13887/events | https://github.com/langchain-ai/langchain/issues/13887 | 2,011,308,854 | I_kwDOIPDwls534iM2 | 13,887 | ObsidianLoader fails when encountering template variables in the properties frontmatter of a file | {
"login": "ealt",
"id": 13019253,
"node_id": "MDQ6VXNlcjEzMDE5MjUz",
"avatar_url": "https://avatars.githubusercontent.com/u/13019253?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ealt",
"html_url": "https://github.com/ealt",
"followers_url": "https://api.github.com/users/ealt/followers",
"following_url": "https://api.github.com/users/ealt/following{/other_user}",
"gists_url": "https://api.github.com/users/ealt/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ealt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ealt/subscriptions",
"organizations_url": "https://api.github.com/users/ealt/orgs",
"repos_url": "https://api.github.com/users/ealt/repos",
"events_url": "https://api.github.com/users/ealt/events{/privacy}",
"received_events_url": "https://api.github.com/users/ealt/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2023-11-27T01:05:47 | 2023-11-27T01:08:49 | null | CONTRIBUTOR | null | ### System Info
langchain version 0.0.340
Python version: 3.11.5
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
1. Create an Obsidian template with a [template variable](https://help.obsidian.md/Plugins/Templates#Template+variables) in the [properties](https://help.obsidian.md/Editing+and+formatting/Properties#Property+format) section of the file.
2. Attempt to load a directory containing that template file using [ObsidianLoader](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/document_loaders/obsidian.py).
```shell
$ echo -e "---\nyear: {{date:YYYY}}\n---" > vault/template.md
$ python
>>> from langchain.document_loaders.obsidian import ObsidianLoader
>>> loader = ObsidianLoader('vault')
>>> loader.load()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/user/.conda/envs/localai/lib/python3.11/site-packages/langchain/document_loaders/obsidian.py", line 115, in load
front_matter = self._parse_front_matter(text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.conda/envs/localai/lib/python3.11/site-packages/langchain/document_loaders/obsidian.py", line 48, in _parse_front_matter
front_matter = yaml.safe_load(match.group(1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.conda/envs/localai/lib/python3.11/site-packages/yaml/__init__.py", line 125, in safe_load
return load(stream, SafeLoader)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.conda/envs/localai/lib/python3.11/site-packages/yaml/__init__.py", line 81, in load
return loader.get_single_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.conda/envs/localai/lib/python3.11/site-packages/yaml/constructor.py", line 51, in get_single_data
return self.construct_document(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.conda/envs/localai/lib/python3.11/site-packages/yaml/constructor.py", line 60, in construct_document
for dummy in generator:
File "/home/user/.conda/envs/localai/lib/python3.11/site-packages/yaml/constructor.py", line 413, in construct_yaml_map
value = self.construct_mapping(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.conda/envs/localai/lib/python3.11/site-packages/yaml/constructor.py", line 218, in construct_mapping
return super().construct_mapping(node, deep=deep)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.conda/envs/localai/lib/python3.11/site-packages/yaml/constructor.py", line 141, in construct_mapping
raise ConstructorError("while constructing a mapping", node.start_mark,
yaml.constructor.ConstructorError: while constructing a mapping
in "<unicode string>", line 1, column 7:
year: {{date:YYYY}}
^
found unhashable key
in "<unicode string>", line 1, column 8:
year: {{date:YYYY}}
```
### Expected behavior
[Template variables](https://help.obsidian.md/Plugins/Templates#Template+variables) are a feature in Obsidian and including them in the properties section of a file is perfectly valid, so [ObsidianLoader](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/document_loaders/obsidian.py) should have no issue loading a directory that includes a file that has template variable in its properties. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13887/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13887/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13886 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13886/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13886/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13886/events | https://github.com/langchain-ai/langchain/pull/13886 | 2,011,286,598 | PR_kwDOIPDwls5gYvPF | 13,886 | export more types | {
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"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."
}
] | closed | false | null | [] | null | 1 | 2023-11-27T00:30:26 | 2023-11-27T03:15:35 | 2023-11-27T03:15:34 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13886/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13886/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13886",
"html_url": "https://github.com/langchain-ai/langchain/pull/13886",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13886.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13886.patch",
"merged_at": "2023-11-27T03:15:34"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13885 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13885/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13885/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13885/events | https://github.com/langchain-ai/langchain/pull/13885 | 2,011,279,522 | PR_kwDOIPDwls5gYt0q | 13,885 | Mask API keys for various LLM/ChatModel Modules | {
"login": "AnasKhan0607",
"id": 76663779,
"node_id": "MDQ6VXNlcjc2NjYzNzc5",
"avatar_url": "https://avatars.githubusercontent.com/u/76663779?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/AnasKhan0607",
"html_url": "https://github.com/AnasKhan0607",
"followers_url": "https://api.github.com/users/AnasKhan0607/followers",
"following_url": "https://api.github.com/users/AnasKhan0607/following{/other_user}",
"gists_url": "https://api.github.com/users/AnasKhan0607/gists{/gist_id}",
"starred_url": "https://api.github.com/users/AnasKhan0607/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AnasKhan0607/subscriptions",
"organizations_url": "https://api.github.com/users/AnasKhan0607/orgs",
"repos_url": "https://api.github.com/users/AnasKhan0607/repos",
"events_url": "https://api.github.com/users/AnasKhan0607/events{/privacy}",
"received_events_url": "https://api.github.com/users/AnasKhan0607/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."
}
] | open | false | {
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-11-27T00:16:45 | 2023-12-05T22:11:32 | null | NONE | null | **Description:**
- Added masking of the API Keys for the modules:
- `langchain/chat_models/openai.py`
- `langchain/llms/openai.py`
- `langchain/llms/google_palm.py`
- `langchain/chat_models/google_palm.py`
- `langchain/llms/edenai.py`
- Updated the modules to utilize `SecretStr` from pydantic to securely manage API key.
- Added unit/integration tests
- `langchain/chat_models/asure_openai.py` used the `open_api_key` that is derived from the `ChatOpenAI` Class and it was assuming `openai_api_key` is a str so we changed it to expect `SecretStr` instead.
**Issue:** https://github.com/langchain-ai/langchain/issues/12165 ,
**Dependencies:** none,
**Tag maintainer:** @eyurtsev | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13885/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13885/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13885",
"html_url": "https://github.com/langchain-ai/langchain/pull/13885",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13885.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13885.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13884 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13884/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13884/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13884/events | https://github.com/langchain-ai/langchain/pull/13884 | 2,011,260,754 | PR_kwDOIPDwls5gYqIj | 13,884 | Extend OpenAIEmbeddings class to support non-`tiktoken` based embeddings | {
"login": "xychelsea",
"id": 29785699,
"node_id": "MDQ6VXNlcjI5Nzg1Njk5",
"avatar_url": "https://avatars.githubusercontent.com/u/29785699?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xychelsea",
"html_url": "https://github.com/xychelsea",
"followers_url": "https://api.github.com/users/xychelsea/followers",
"following_url": "https://api.github.com/users/xychelsea/following{/other_user}",
"gists_url": "https://api.github.com/users/xychelsea/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xychelsea/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xychelsea/subscriptions",
"organizations_url": "https://api.github.com/users/xychelsea/orgs",
"repos_url": "https://api.github.com/users/xychelsea/repos",
"events_url": "https://api.github.com/users/xychelsea/events{/privacy}",
"received_events_url": "https://api.github.com/users/xychelsea/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 | 5 | 2023-11-26T23:27:53 | 2023-12-03T20:04:18 | 2023-12-03T20:04:17 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** This extends `OpenAIEmbeddings` to add support for non-`tiktoken` based embeddings, specifically for use with the new `text-generation-webui` API (`--extensions openai`) which does not support `tiktoken` encodings, but rather strings
- **Issue:** Not found,
- **Dependencies:** HuggingFace `transformers.AutoTokenizer` is new dependency for running the model without `tiktoken`
- **Tag maintainer:** @baskaryan based on last commit for `langchain-core` refactor
- **Twitter handle:** @xychelsea
Modified the tokenization process to be model-agnostic, allowing for both OpenAI and non-OpenAI model tokenizations, by setting the new default `bool` flag `tiktoken_enabled` to `False`. This requeires HuggingFace’s AutoTokenizer and handling tokenization for models requiring different preprocessing steps to generate a chunked string request rather than a list of integers.
Updated the embeddings generation process to accommodate non-OpenAI models. This includes converting tokenized text into embeddings using OpenAI’s and Hugging Face’s model architectures.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13884/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 1,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13884/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13884",
"html_url": "https://github.com/langchain-ai/langchain/pull/13884",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13884.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13884.patch",
"merged_at": "2023-12-03T20:04:17"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13883 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13883/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13883/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13883/events | https://github.com/langchain-ai/langchain/pull/13883 | 2,011,256,390 | PR_kwDOIPDwls5gYpST | 13,883 | add skeleton of thought | {
"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": 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": 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-26T23:14:24 | 2023-11-27T17:41:09 | 2023-11-27T00:31:41 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13883/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13883/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13883",
"html_url": "https://github.com/langchain-ai/langchain/pull/13883",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13883.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13883.patch",
"merged_at": "2023-11-27T00:31:41"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13882 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13882/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13882/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13882/events | https://github.com/langchain-ai/langchain/pull/13882 | 2,011,244,811 | PR_kwDOIPDwls5gYm-9 | 13,882 | Add progress bar to OllamaEmbeddings | {
"login": "tylertitsworth",
"id": 43555799,
"node_id": "MDQ6VXNlcjQzNTU1Nzk5",
"avatar_url": "https://avatars.githubusercontent.com/u/43555799?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tylertitsworth",
"html_url": "https://github.com/tylertitsworth",
"followers_url": "https://api.github.com/users/tylertitsworth/followers",
"following_url": "https://api.github.com/users/tylertitsworth/following{/other_user}",
"gists_url": "https://api.github.com/users/tylertitsworth/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tylertitsworth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tylertitsworth/subscriptions",
"organizations_url": "https://api.github.com/users/tylertitsworth/orgs",
"repos_url": "https://api.github.com/users/tylertitsworth/repos",
"events_url": "https://api.github.com/users/tylertitsworth/events{/privacy}",
"received_events_url": "https://api.github.com/users/tylertitsworth/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 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-26T22:40:52 | 2023-11-27T21:56:13 | 2023-11-27T21:56:13 | CONTRIBUTOR | null | - **Description:** Adds a tqdm progress bar to OllamaEmbeddings when embedding a list.
- **Issue:** Related to #13637, but extended to Ollama.
- **Dependencies:** `tqdm` made a necessary dependency.
Thanks to @ugm2 for helping identify a common problem. Embeddings take a very long time to finish on local machines, and require a progress bar to help identify if one should even attempt the workload. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13882/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13882/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13882",
"html_url": "https://github.com/langchain-ai/langchain/pull/13882",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13882.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13882.patch",
"merged_at": "2023-11-27T21:56:13"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13881 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13881/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13881/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13881/events | https://github.com/langchain-ai/langchain/pull/13881 | 2,011,218,270 | PR_kwDOIPDwls5gYhbz | 13,881 | Mask api key for googlepalm chat models | {
"login": "faisalt14",
"id": 90787271,
"node_id": "MDQ6VXNlcjkwNzg3Mjcx",
"avatar_url": "https://avatars.githubusercontent.com/u/90787271?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/faisalt14",
"html_url": "https://github.com/faisalt14",
"followers_url": "https://api.github.com/users/faisalt14/followers",
"following_url": "https://api.github.com/users/faisalt14/following{/other_user}",
"gists_url": "https://api.github.com/users/faisalt14/gists{/gist_id}",
"starred_url": "https://api.github.com/users/faisalt14/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/faisalt14/subscriptions",
"organizations_url": "https://api.github.com/users/faisalt14/orgs",
"repos_url": "https://api.github.com/users/faisalt14/repos",
"events_url": "https://api.github.com/users/faisalt14/events{/privacy}",
"received_events_url": "https://api.github.com/users/faisalt14/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 | 2 | 2023-11-26T21:43:27 | 2023-11-26T21:44:59 | 2023-11-26T21:44:21 | NONE | null | **Description**: masked Google Palm - Chat_Models module API key and added unit tests,
**Issue**: the issue https://github.com/langchain-ai/langchain/issues/12165,
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13881/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13881/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13881",
"html_url": "https://github.com/langchain-ai/langchain/pull/13881",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13881.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13881.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13879 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13879/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13879/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13879/events | https://github.com/langchain-ai/langchain/pull/13879 | 2,011,161,846 | PR_kwDOIPDwls5gYWV9 | 13,879 | Make contributing to docs easier | {
"login": "daertommy",
"id": 66957603,
"node_id": "MDQ6VXNlcjY2OTU3NjAz",
"avatar_url": "https://avatars.githubusercontent.com/u/66957603?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/daertommy",
"html_url": "https://github.com/daertommy",
"followers_url": "https://api.github.com/users/daertommy/followers",
"following_url": "https://api.github.com/users/daertommy/following{/other_user}",
"gists_url": "https://api.github.com/users/daertommy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/daertommy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/daertommy/subscriptions",
"organizations_url": "https://api.github.com/users/daertommy/orgs",
"repos_url": "https://api.github.com/users/daertommy/repos",
"events_url": "https://api.github.com/users/daertommy/events{/privacy}",
"received_events_url": "https://api.github.com/users/daertommy/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 | 3 | 2023-11-26T18:55:45 | 2023-11-29T06:49:09 | 2023-11-29T01:53:38 | NONE | null | With this PR readers can suggest changes to the docs with an easy to use WYSIWYG markdown editor.
[This](https://holocron.so/github/pr/langchain-ai/langchain/master/editor) is how the editor looks like for this repo.
https://github.com/remorses/docusaurus-example/assets/31321188/43c8bc68-3668-4a25-bf1c-a70eceab7bcb | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13879/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13879/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13879",
"html_url": "https://github.com/langchain-ai/langchain/pull/13879",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13879.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13879.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13876 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13876/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13876/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13876/events | https://github.com/langchain-ai/langchain/issues/13876 | 2,011,079,659 | I_kwDOIPDwls533qPr | 13,876 | storing metadata with the VectorStoreRetrieverMemory memory module | {
"login": "ShukriChiu",
"id": 5136543,
"node_id": "MDQ6VXNlcjUxMzY1NDM=",
"avatar_url": "https://avatars.githubusercontent.com/u/5136543?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShukriChiu",
"html_url": "https://github.com/ShukriChiu",
"followers_url": "https://api.github.com/users/ShukriChiu/followers",
"following_url": "https://api.github.com/users/ShukriChiu/following{/other_user}",
"gists_url": "https://api.github.com/users/ShukriChiu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShukriChiu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShukriChiu/subscriptions",
"organizations_url": "https://api.github.com/users/ShukriChiu/orgs",
"repos_url": "https://api.github.com/users/ShukriChiu/repos",
"events_url": "https://api.github.com/users/ShukriChiu/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShukriChiu/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": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] | open | false | null | [] | null | 2 | 2023-11-26T15:14:26 | 2023-11-26T21:01:19 | null | NONE | null | ### Feature request
If I want to use VectorStoreRetrieverMemory to store my users' chat memories, I need to search and store them using user_id and session_id. However, memory.save_context doesn't have a 'metadata' option.
### Motivation
I want to associate chat merory with single user
### Your contribution
I can't submit PR | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13876/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13876/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13875 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13875/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13875/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13875/events | https://github.com/langchain-ai/langchain/pull/13875 | 2,011,016,674 | PR_kwDOIPDwls5gX5ry | 13,875 | max length attribute for spacy splitter for large docs | {
"login": "kunal8164705",
"id": 73680423,
"node_id": "MDQ6VXNlcjczNjgwNDIz",
"avatar_url": "https://avatars.githubusercontent.com/u/73680423?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kunal8164705",
"html_url": "https://github.com/kunal8164705",
"followers_url": "https://api.github.com/users/kunal8164705/followers",
"following_url": "https://api.github.com/users/kunal8164705/following{/other_user}",
"gists_url": "https://api.github.com/users/kunal8164705/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kunal8164705/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kunal8164705/subscriptions",
"organizations_url": "https://api.github.com/users/kunal8164705/orgs",
"repos_url": "https://api.github.com/users/kunal8164705/repos",
"events_url": "https://api.github.com/users/kunal8164705/events{/privacy}",
"received_events_url": "https://api.github.com/users/kunal8164705/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 | null | [] | null | 3 | 2023-11-26T12:12:00 | 2023-11-29T03:30:26 | 2023-11-29T03:30:26 | CONTRIBUTOR | null | For large size documents spacy splitter doesn't work it throws an error as shown in below screenshot.
Reason its default max_length is 1000000 and there is no option to increase it. So i added it in this PR.
![image](https://github.com/langchain-ai/langchain/assets/73680423/613625c3-0e21-4834-9aad-2a73cf56eecc)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13875/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13875/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13875",
"html_url": "https://github.com/langchain-ai/langchain/pull/13875",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13875.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13875.patch",
"merged_at": "2023-11-29T03:30:26"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13874 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13874/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13874/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13874/events | https://github.com/langchain-ai/langchain/pull/13874 | 2,011,011,732 | PR_kwDOIPDwls5gX4tr | 13,874 | Fix: (issue #13825) Getting an error with DallEAPIWrapper | {
"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": 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": 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 | 4 | 2023-11-26T11:56:40 | 2024-01-09T21:53:26 | 2023-11-29T03:31:25 | CONTRIBUTOR | null | - **Description:** As of OpenAI's Python package 1.0, the existing DallEAPIWrapper does not work correctly, so the example in the LangChain Documentation link below does not work either.
https://python.langchain.com/docs/integrations/tools/dalle_image_generator
Also, since OpenAI only supports DALL-E version 2 or version 3, I modified the DallEAPIWrapper to support it.
- **Issue:** #13825
- **Twitter handle:** ggeutzzang
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13874/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13874/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13874",
"html_url": "https://github.com/langchain-ai/langchain/pull/13874",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13874.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13874.patch",
"merged_at": "2023-11-29T03:31:25"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13872 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13872/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13872/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13872/events | https://github.com/langchain-ai/langchain/pull/13872 | 2,011,005,485 | PR_kwDOIPDwls5gX3gV | 13,872 | docs: fix link to `local_retrieval_qa` | {
"login": "superpung",
"id": 59875060,
"node_id": "MDQ6VXNlcjU5ODc1MDYw",
"avatar_url": "https://avatars.githubusercontent.com/u/59875060?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/superpung",
"html_url": "https://github.com/superpung",
"followers_url": "https://api.github.com/users/superpung/followers",
"following_url": "https://api.github.com/users/superpung/following{/other_user}",
"gists_url": "https://api.github.com/users/superpung/gists{/gist_id}",
"starred_url": "https://api.github.com/users/superpung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/superpung/subscriptions",
"organizations_url": "https://api.github.com/users/superpung/orgs",
"repos_url": "https://api.github.com/users/superpung/repos",
"events_url": "https://api.github.com/users/superpung/events{/privacy}",
"received_events_url": "https://api.github.com/users/superpung/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-26T11:35:48 | 2023-11-27T03:19:17 | 2023-11-27T03:16:46 | 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.
-->
The original link in [this section](https://python.langchain.com/docs/use_cases/question_answering/#:~:text=locally%2Drunning%20models-,here,-.):
https://python.langchain.com/docs/modules/use_cases/question_answering/local_retrieval_qa
After fix:
https://python.langchain.com/docs/use_cases/question_answering/local_retrieval_qa | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13872/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13872/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13872",
"html_url": "https://github.com/langchain-ai/langchain/pull/13872",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13872.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13872.patch",
"merged_at": "2023-11-27T03:16:46"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13871 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13871/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13871/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13871/events | https://github.com/langchain-ai/langchain/pull/13871 | 2,010,984,754 | PR_kwDOIPDwls5gXzcD | 13,871 | Fix: getting an error with DallEAPIWrapper #13825 | {
"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": 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": 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-26T10:26:19 | 2023-11-26T10:29:28 | 2023-11-26T10:28:59 | CONTRIBUTOR | null | - **Description:** Existing DallEAPIWrapper code will throw errors in OpenAI 1.0 and later packages.
Also, OpenAI now only supports DALL-E2 or DALL-E3.
I modified the existing DallEAPIWrapper to accommodate this.
- **Issue:** #13825
- **Twitter handle:** ggeutzzang
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13871/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13871/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13871",
"html_url": "https://github.com/langchain-ai/langchain/pull/13871",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13871.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13871.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13870 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13870/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13870/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13870/events | https://github.com/langchain-ai/langchain/issues/13870 | 2,010,975,800 | I_kwDOIPDwls533Q44 | 13,870 | KENDRA: issue with user_context parameter when using get_relevant_documents method (langchain.retrievers.kendra.AmazonKendraRetriever) | {
"login": "jflopezcolmenarejo",
"id": 57852024,
"node_id": "MDQ6VXNlcjU3ODUyMDI0",
"avatar_url": "https://avatars.githubusercontent.com/u/57852024?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jflopezcolmenarejo",
"html_url": "https://github.com/jflopezcolmenarejo",
"followers_url": "https://api.github.com/users/jflopezcolmenarejo/followers",
"following_url": "https://api.github.com/users/jflopezcolmenarejo/following{/other_user}",
"gists_url": "https://api.github.com/users/jflopezcolmenarejo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jflopezcolmenarejo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jflopezcolmenarejo/subscriptions",
"organizations_url": "https://api.github.com/users/jflopezcolmenarejo/orgs",
"repos_url": "https://api.github.com/users/jflopezcolmenarejo/repos",
"events_url": "https://api.github.com/users/jflopezcolmenarejo/events{/privacy}",
"received_events_url": "https://api.github.com/users/jflopezcolmenarejo/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 | 1 | 2023-11-26T09:55:33 | 2023-12-11T15:22:58 | 2023-12-11T15:22:58 | NONE | null | ### System Info
Python version: 3.11.5
Langchain version: 0.0.316
### Who can help?
@3coins
@hw
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I am using Amazon Kendra as vector store to retrieve relevant documents as part of a Q&A application. As `UserContext` I am using User token:
```
def get_kendra_json_token(user_name: str, groups: List[str]):
kendra_json_token = {
'username': user_name,
'groups': groups
}
return kendra_json_token
```
This output is subsequently converted to: `'user_context': {'Token': json.dumps(kendra_json_token)}`
Everything is fine when I build the Retriever:
```
def get_kendra_doc_retriever(inputs: KendraRequest) -> AmazonKendraRetriever:
try:
kendra_client = boto3.client("kendra", os.environ.get('AWS_REGION'))
retriever = AmazonKendraRetriever(
index_id=inputs.kendra_index_id,
top_k=get_param(AIAssistantParam.NB_KENDRA_DOCS),
client=kendra_client,
attribute_filter=inputs.attribute_filter,
user_context=inputs.user_context
)
logger.info(f'Kendra retriever successfully instantiated')
return retriever
```
But then, when I call `get_relevant_documents`:
```
def ask_question(
chain: Chain,
retriever: AmazonKendraRetriever,
question: str
) -> Response:
try:
context = retriever.get_relevant_documents(question)
```
I get this exception: `An error occurred (AccessDeniedException) when calling the Retrieve operation: The provided JSON token isn't valid. The username couldn't be parsed. Generate a new token with username as an array of strings and try your request again.` Of course, `username` should be an string.
If I change the code doing this (swapping the content of `user_name` and `groups` in the user token):
```
def get_kendra_json_token(user_name: List[str], groups: str):
kendra_json_token = {
'username': groups,
'groups': user_name
}
return kendra_json_token
```
everything works fine. It is like `user_name` and `groups` inputs parameters are messed up somewhere.
### Expected behavior
No exception should be raised when creating the user token as explained in the description above. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13870/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13870/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13869 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13869/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13869/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13869/events | https://github.com/langchain-ai/langchain/issues/13869 | 2,010,969,350 | I_kwDOIPDwls533PUG | 13,869 | Support for elastic index without metadata field | {
"login": "assaft",
"id": 4903680,
"node_id": "MDQ6VXNlcjQ5MDM2ODA=",
"avatar_url": "https://avatars.githubusercontent.com/u/4903680?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/assaft",
"html_url": "https://github.com/assaft",
"followers_url": "https://api.github.com/users/assaft/followers",
"following_url": "https://api.github.com/users/assaft/following{/other_user}",
"gists_url": "https://api.github.com/users/assaft/gists{/gist_id}",
"starred_url": "https://api.github.com/users/assaft/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/assaft/subscriptions",
"organizations_url": "https://api.github.com/users/assaft/orgs",
"repos_url": "https://api.github.com/users/assaft/repos",
"events_url": "https://api.github.com/users/assaft/events{/privacy}",
"received_events_url": "https://api.github.com/users/assaft/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6077048506,
"node_id": "LA_kwDOIPDwls8AAAABajhmug",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20elasticsearch",
"name": "integration: elasticsearch",
"color": "DAB5EC",
"default": false,
"description": "Related to elastic/elasticsearch integrations"
}
] | open | false | null | [] | null | 1 | 2023-11-26T09:33:34 | 2023-11-26T09:33:54 | null | NONE | null | ### Feature request
Currently the `_search` function in `ElasticsearchStore` assumes that the `hit` object returned in the search has a `metadata` field under `_source`:
```python
hit["_source"]["metadata"][field] = hit["_source"][field]
```
However, this is not the case in the index I work with - it does not have a `metadata` field. Due to that, an exception is raised.
Note that the following code does not help -
```python
if "metadata" not in fields:
fields.append("metadata")
```
The index still does not return any `metadata`.
I assume that in indexes created by `ElasticsearchStore` the `metadata` field is forced, and therefor there is no such issue. However, when using indexes created by external tools, it is better not to assume that the field exists, and support the case where it doesn't.
### Motivation
I'd prefer to re-use the existing `ElasticsearchStore` instead of my own implementation of it.
### Your contribution
I think I can contribute a PR handling this issue, if the admins confirm the feature request. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13869/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13869/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13868 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13868/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13868/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13868/events | https://github.com/langchain-ai/langchain/pull/13868 | 2,010,957,361 | PR_kwDOIPDwls5gXuBx | 13,868 | Added score_threshold parameter to actually filter when retrieval search type is 'similarity_score_threshold' | {
"login": "Frank995",
"id": 47689966,
"node_id": "MDQ6VXNlcjQ3Njg5OTY2",
"avatar_url": "https://avatars.githubusercontent.com/u/47689966?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Frank995",
"html_url": "https://github.com/Frank995",
"followers_url": "https://api.github.com/users/Frank995/followers",
"following_url": "https://api.github.com/users/Frank995/following{/other_user}",
"gists_url": "https://api.github.com/users/Frank995/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Frank995/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Frank995/subscriptions",
"organizations_url": "https://api.github.com/users/Frank995/orgs",
"repos_url": "https://api.github.com/users/Frank995/repos",
"events_url": "https://api.github.com/users/Frank995/events{/privacy}",
"received_events_url": "https://api.github.com/users/Frank995/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": 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-26T08:52:16 | 2024-01-02T14:28:26 | 2023-11-26T09:09:22 | CONTRIBUTOR | null | Replace this entire comment with:
- **Description:** currently similarity_score_threshold mode doesn't filter properly. This fixes it by adding the parameter and the relative filter
- **Issue:** not sure, I think a few,
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13868/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13868/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13868",
"html_url": "https://github.com/langchain-ai/langchain/pull/13868",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13868.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13868.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13867 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13867/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13867/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13867/events | https://github.com/langchain-ai/langchain/issues/13867 | 2,010,950,164 | I_kwDOIPDwls533KoU | 13,867 | bug: When running by example getting error: TypeError: 'dict' object is not callable | {
"login": "lolevsky",
"id": 4951086,
"node_id": "MDQ6VXNlcjQ5NTEwODY=",
"avatar_url": "https://avatars.githubusercontent.com/u/4951086?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lolevsky",
"html_url": "https://github.com/lolevsky",
"followers_url": "https://api.github.com/users/lolevsky/followers",
"following_url": "https://api.github.com/users/lolevsky/following{/other_user}",
"gists_url": "https://api.github.com/users/lolevsky/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lolevsky/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lolevsky/subscriptions",
"organizations_url": "https://api.github.com/users/lolevsky/orgs",
"repos_url": "https://api.github.com/users/lolevsky/repos",
"events_url": "https://api.github.com/users/lolevsky/events{/privacy}",
"received_events_url": "https://api.github.com/users/lolevsky/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 4 | 2023-11-26T08:25:23 | 2024-01-08T23:18:20 | null | NONE | null | ### System Info
#### Environment variable
```bash
BENTOML_DEBUG=''
BENTOML_QUIET=''
BENTOML_BUNDLE_LOCAL_BUILD=''
BENTOML_DO_NOT_TRACK=''
BENTOML_CONFIG=''
BENTOML_CONFIG_OPTIONS=''
BENTOML_PORT=''
BENTOML_HOST=''
BENTOML_API_WORKERS=''
```
#### System information
`bentoml`: 1.1.10
`python`: 3.11.5
`platform`: Linux-6.2.0-37-generic-x86_64-with-glibc2.35
`uid_gid`: 1000:1000
`conda`: 23.7.4
`in_conda_env`: True
<details><summary><code>conda_packages</code></summary>
<br>
```yaml
name: openllm
channels:
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- bzip2=1.0.8=h7b6447c_0
- ca-certificates=2023.08.22=h06a4308_0
- ld_impl_linux-64=2.38=h1181459_1
- libffi=3.4.4=h6a678d5_0
- libgcc-ng=11.2.0=h1234567_1
- libgomp=11.2.0=h1234567_1
- libstdcxx-ng=11.2.0=h1234567_1
- libuuid=1.41.5=h5eee18b_0
- ncurses=6.4=h6a678d5_0
- openssl=3.0.12=h7f8727e_0
- pip=23.3.1=py311h06a4308_0
- python=3.11.5=h955ad1f_0
- readline=8.2=h5eee18b_0
- setuptools=68.0.0=py311h06a4308_0
- sqlite=3.41.2=h5eee18b_0
- tk=8.6.12=h1ccaba5_0
- wheel=0.41.2=py311h06a4308_0
- xz=5.4.2=h5eee18b_0
- zlib=1.2.13=h5eee18b_0
- pip:
- accelerate==0.24.1
- aiohttp==3.9.0
- aiosignal==1.3.1
- anyio==3.7.1
- appdirs==1.4.4
- asgiref==3.7.2
- attrs==23.1.0
- beautifulsoup4==4.12.2
- bentoml==1.1.10
- bitsandbytes==0.41.2.post2
- build==0.10.0
- cattrs==23.1.2
- certifi==2023.11.17
- charset-normalizer==3.3.2
- circus==0.18.0
- click==8.1.7
- click-option-group==0.5.6
- cloudpickle==3.0.0
- coloredlogs==15.0.1
- contextlib2==21.6.0
- cuda-python==12.3.0
- dataclasses-json==0.6.2
- datasets==2.15.0
- deepmerge==1.1.0
- deprecated==1.2.14
- dill==0.3.7
- distlib==0.3.7
- distro==1.8.0
- einops==0.7.0
- fastapi==0.104.1
- fastcore==1.5.29
- filelock==3.13.1
- filetype==1.2.0
- frozenlist==1.4.0
- fs==2.4.16
- fsspec==2023.10.0
- ghapi==1.0.4
- greenlet==3.0.1
- h11==0.14.0
- httpcore==1.0.2
- httptools==0.6.1
- httpx==0.25.2
- huggingface-hub==0.19.4
- humanfriendly==10.0
- idna==3.6
- importlib-metadata==6.8.0
- inflection==0.5.1
- jinja2==3.1.2
- jsonpatch==1.33
- jsonpointer==2.4
- jsonschema==4.20.0
- jsonschema-specifications==2023.11.1
- langchain==0.0.340
- langsmith==0.0.66
- markdown-it-py==3.0.0
- markupsafe==2.1.3
- marshmallow==3.20.1
- mdurl==0.1.2
- mpmath==1.3.0
- msgpack==1.0.7
- multidict==6.0.4
- multiprocess==0.70.15
- mypy-extensions==1.0.0
- networkx==3.2.1
- ninja==1.11.1.1
- numpy==1.26.2
- nvidia-cublas-cu12==12.1.3.1
- nvidia-cuda-cupti-cu12==12.1.105
- nvidia-cuda-nvrtc-cu12==12.1.105
- nvidia-cuda-runtime-cu12==12.1.105
- nvidia-cudnn-cu12==8.9.2.26
- nvidia-cufft-cu12==11.0.2.54
- nvidia-curand-cu12==10.3.2.106
- nvidia-cusolver-cu12==11.4.5.107
- nvidia-cusparse-cu12==12.1.0.106
- nvidia-ml-py==11.525.150
- nvidia-nccl-cu12==2.18.1
- nvidia-nvjitlink-cu12==12.3.101
- nvidia-nvtx-cu12==12.1.105
- openllm==0.4.28
- openllm-client==0.4.28
- openllm-core==0.4.28
- opentelemetry-api==1.20.0
- opentelemetry-instrumentation==0.41b0
- opentelemetry-instrumentation-aiohttp-client==0.41b0
- opentelemetry-instrumentation-asgi==0.41b0
- opentelemetry-sdk==1.20.0
- opentelemetry-semantic-conventions==0.41b0
- opentelemetry-util-http==0.41b0
- optimum==1.14.1
- orjson==3.9.10
- packaging==23.2
- pandas==2.1.3
- pathspec==0.11.2
- pillow==10.1.0
- pip-requirements-parser==32.0.1
- pip-tools==7.3.0
- platformdirs==4.0.0
- prometheus-client==0.19.0
- protobuf==4.25.1
- psutil==5.9.6
- pyarrow==14.0.1
- pyarrow-hotfix==0.6
- pydantic==1.10.13
- pygments==2.17.2
- pyparsing==3.1.1
- pyproject-hooks==1.0.0
- python-dateutil==2.8.2
- python-dotenv==1.0.0
- python-json-logger==2.0.7
- python-multipart==0.0.6
- pytz==2023.3.post1
- pyyaml==6.0.1
- pyzmq==25.1.1
- ray==2.8.0
- referencing==0.31.0
- regex==2023.10.3
- requests==2.31.0
- rich==13.7.0
- rpds-py==0.13.1
- safetensors==0.4.0
- schema==0.7.5
- scipy==1.11.4
- sentencepiece==0.1.99
- simple-di==0.1.5
- six==1.16.0
- sniffio==1.3.0
- soupsieve==2.5
- sqlalchemy==2.0.23
- starlette==0.27.0
- sympy==1.12
- tenacity==8.2.3
- tokenizers==0.15.0
- torch==2.1.0
- tornado==6.3.3
- tqdm==4.66.1
- transformers==4.35.2
- triton==2.1.0
- typing-extensions==4.8.0
- typing-inspect==0.9.0
- tzdata==2023.3
- urllib3==2.1.0
- uvicorn==0.24.0.post1
- uvloop==0.19.0
- virtualenv==20.24.7
- vllm==0.2.2
- watchfiles==0.21.0
- websockets==12.0
- wrapt==1.16.0
- xformers==0.0.22.post7
- xxhash==3.4.1
- yarl==1.9.3
- zipp==3.17.0
prefix: /home/lolevsky/anaconda3/envs/openllm
```
</details>
<details><summary><code>pip_packages</code></summary>
<br>
```
accelerate==0.24.1
aiohttp==3.9.0
aiosignal==1.3.1
anyio==3.7.1
appdirs==1.4.4
asgiref==3.7.2
attrs==23.1.0
beautifulsoup4==4.12.2
bentoml==1.1.10
bitsandbytes==0.41.2.post2
build==0.10.0
cattrs==23.1.2
certifi==2023.11.17
charset-normalizer==3.3.2
circus==0.18.0
click==8.1.7
click-option-group==0.5.6
cloudpickle==3.0.0
coloredlogs==15.0.1
contextlib2==21.6.0
cuda-python==12.3.0
dataclasses-json==0.6.2
datasets==2.15.0
deepmerge==1.1.0
Deprecated==1.2.14
dill==0.3.7
distlib==0.3.7
distro==1.8.0
einops==0.7.0
fastapi==0.104.1
fastcore==1.5.29
filelock==3.13.1
filetype==1.2.0
frozenlist==1.4.0
fs==2.4.16
fsspec==2023.10.0
ghapi==1.0.4
greenlet==3.0.1
h11==0.14.0
httpcore==1.0.2
httptools==0.6.1
httpx==0.25.2
huggingface-hub==0.19.4
humanfriendly==10.0
idna==3.6
importlib-metadata==6.8.0
inflection==0.5.1
Jinja2==3.1.2
jsonpatch==1.33
jsonpointer==2.4
jsonschema==4.20.0
jsonschema-specifications==2023.11.1
langchain==0.0.340
langsmith==0.0.66
markdown-it-py==3.0.0
MarkupSafe==2.1.3
marshmallow==3.20.1
mdurl==0.1.2
mpmath==1.3.0
msgpack==1.0.7
multidict==6.0.4
multiprocess==0.70.15
mypy-extensions==1.0.0
networkx==3.2.1
ninja==1.11.1.1
numpy==1.26.2
nvidia-cublas-cu12==12.1.3.1
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==8.9.2.26
nvidia-cufft-cu12==11.0.2.54
nvidia-curand-cu12==10.3.2.106
nvidia-cusolver-cu12==11.4.5.107
nvidia-cusparse-cu12==12.1.0.106
nvidia-ml-py==11.525.150
nvidia-nccl-cu12==2.18.1
nvidia-nvjitlink-cu12==12.3.101
nvidia-nvtx-cu12==12.1.105
openllm==0.4.28
openllm-client==0.4.28
openllm-core==0.4.28
opentelemetry-api==1.20.0
opentelemetry-instrumentation==0.41b0
opentelemetry-instrumentation-aiohttp-client==0.41b0
opentelemetry-instrumentation-asgi==0.41b0
opentelemetry-sdk==1.20.0
opentelemetry-semantic-conventions==0.41b0
opentelemetry-util-http==0.41b0
optimum==1.14.1
orjson==3.9.10
packaging==23.2
pandas==2.1.3
pathspec==0.11.2
Pillow==10.1.0
pip-requirements-parser==32.0.1
pip-tools==7.3.0
platformdirs==4.0.0
prometheus-client==0.19.0
protobuf==4.25.1
psutil==5.9.6
pyarrow==14.0.1
pyarrow-hotfix==0.6
pydantic==1.10.13
Pygments==2.17.2
pyparsing==3.1.1
pyproject_hooks==1.0.0
python-dateutil==2.8.2
python-dotenv==1.0.0
python-json-logger==2.0.7
python-multipart==0.0.6
pytz==2023.3.post1
PyYAML==6.0.1
pyzmq==25.1.1
ray==2.8.0
referencing==0.31.0
regex==2023.10.3
requests==2.31.0
rich==13.7.0
rpds-py==0.13.1
safetensors==0.4.0
schema==0.7.5
scipy==1.11.4
sentencepiece==0.1.99
simple-di==0.1.5
six==1.16.0
sniffio==1.3.0
soupsieve==2.5
SQLAlchemy==2.0.23
starlette==0.27.0
sympy==1.12
tenacity==8.2.3
tokenizers==0.15.0
torch==2.1.0
tornado==6.3.3
tqdm==4.66.1
transformers==4.35.2
triton==2.1.0
typing-inspect==0.9.0
typing_extensions==4.8.0
tzdata==2023.3
urllib3==2.1.0
uvicorn==0.24.0.post1
uvloop==0.19.0
virtualenv==20.24.7
vllm==0.2.2
watchfiles==0.21.0
websockets==12.0
wrapt==1.16.0
xformers==0.0.22.post7
xxhash==3.4.1
yarl==1.9.3
zipp==3.17.0
```
</details>
### 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
I am following the example and wrote the code:
```
llm = OpenLLM(server_url=server_url, server_type='http')
llm("What is the difference between a duck and a goose? And why there are so many Goose in Canada?")
```
Seems like First request is hitting the server
```
(scheme=http,method=POST,path=/v1/metadata,type=application/json,length=2) (status=200
```
Till now its look promising, but then I am getting error ```TypeError: 'dict' object is not callable```.
As attached in the trace:
```
Traceback (most recent call last):
File "/home/lolevsky/Github/Zodiac/main.py", line 24, in <module>
run_zodiac()
File "/home/lolevsky/Github/Zodiac/main.py", line 9, in run_zodiac
resA = llm("What is the difference between a duck and a goose? And why there are so many Goose in Canada?")
File "/usr/local/lib/python3.10/dist-packages/langchain/llms/base.py", line 876, in __call__
self.generate(
File "/usr/local/lib/python3.10/dist-packages/langchain/llms/base.py", line 626, in generate
params = self.dict()
File "/usr/local/lib/python3.10/dist-packages/langchain/llms/base.py", line 974, in dict
starter_dict = dict(self._identifying_params)
File "/usr/local/lib/python3.10/dist-packages/langchain/llms/openllm.py", line 220, in _identifying_params
self.llm_kwargs.update(self._client._config())
TypeError: 'dict' object is not callable
```
### To reproduce
This is how I had setup the envirment:
- conda create --name openllm python=3.11
- conda activate openllm
- pip install openllm
- pip install langchain
### Expected behavior
Should not get errors, should hit the server for prompting | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13867/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13867/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13866 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13866/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13866/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13866/events | https://github.com/langchain-ai/langchain/pull/13866 | 2,010,937,355 | PR_kwDOIPDwls5gXqGN | 13,866 | Update PGVector __query_collection with extended filters | {
"login": "Frank995",
"id": 47689966,
"node_id": "MDQ6VXNlcjQ3Njg5OTY2",
"avatar_url": "https://avatars.githubusercontent.com/u/47689966?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Frank995",
"html_url": "https://github.com/Frank995",
"followers_url": "https://api.github.com/users/Frank995/followers",
"following_url": "https://api.github.com/users/Frank995/following{/other_user}",
"gists_url": "https://api.github.com/users/Frank995/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Frank995/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Frank995/subscriptions",
"organizations_url": "https://api.github.com/users/Frank995/orgs",
"repos_url": "https://api.github.com/users/Frank995/repos",
"events_url": "https://api.github.com/users/Frank995/events{/privacy}",
"received_events_url": "https://api.github.com/users/Frank995/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 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 | 3 | 2023-11-26T07:41:30 | 2024-01-02T14:29:03 | 2024-01-02T14:28:24 | CONTRIBUTOR | null | - **Description:** current SQL filtering capabilities of PGVector document matching are limited to "is equal" and "is in", this extends it and generalise the code to any (potential) future other matching type
- **Dependencies:** none
- **Tag maintainer:** @hwchase17 ,
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13866/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13866/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13866",
"html_url": "https://github.com/langchain-ai/langchain/pull/13866",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13866.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13866.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13865 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13865/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13865/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13865/events | https://github.com/langchain-ai/langchain/issues/13865 | 2,010,911,639 | I_kwDOIPDwls533BOX | 13,865 | DOC: How langchain_experimental.rl_chain works | {
"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": 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"
}
] | open | false | null | [] | null | 3 | 2023-11-26T06:33:13 | 2023-11-28T21:54:55 | null | NONE | null | ### Issue with current documentation:
Hi, can we get more documentation on `langchain_experimental.rl_chain`? I'm having trouble wrapping my head around how it works, and the documentation is sparse.
From the notebook intro, originally I thought it was going to tune the human written prompt template and then output a new and improved prompt template that it found was better. However it seems to be doing something else.
### Idea or request for content:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13865/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13865/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13864 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13864/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13864/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13864/events | https://github.com/langchain-ai/langchain/pull/13864 | 2,010,895,096 | PR_kwDOIPDwls5gXhqm | 13,864 | Add object parsing functionality | {
"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": 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-26T05:08:26 | 2023-11-29T03:33:17 | 2023-11-29T03:33:17 | CONTRIBUTOR | null | * **Description:** Parses huggingface dataset Sequence objects into strings for Document loading.
* **Issue:** Fixes #10674
* **Tag maintainter:** @baskaryan @eyurtsev
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13864/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13864/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13864",
"html_url": "https://github.com/langchain-ai/langchain/pull/13864",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13864.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13864.patch",
"merged_at": "2023-11-29T03:33:17"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13863 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13863/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13863/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13863/events | https://github.com/langchain-ai/langchain/issues/13863 | 2,010,867,450 | I_kwDOIPDwls5322b6 | 13,863 | CalledProcessError: bash command for LLAVA in Multimodal giving error | {
"login": "andysingal",
"id": 20493493,
"node_id": "MDQ6VXNlcjIwNDkzNDkz",
"avatar_url": "https://avatars.githubusercontent.com/u/20493493?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andysingal",
"html_url": "https://github.com/andysingal",
"followers_url": "https://api.github.com/users/andysingal/followers",
"following_url": "https://api.github.com/users/andysingal/following{/other_user}",
"gists_url": "https://api.github.com/users/andysingal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andysingal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andysingal/subscriptions",
"organizations_url": "https://api.github.com/users/andysingal/orgs",
"repos_url": "https://api.github.com/users/andysingal/repos",
"events_url": "https://api.github.com/users/andysingal/events{/privacy}",
"received_events_url": "https://api.github.com/users/andysingal/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 3 | 2023-11-26T02:43:06 | 2023-11-27T20:32:19 | null | NONE | null | ### System Info
RTX 3090
```
Here is notebook for reference: https://colab.research.google.com/drive/1Rwdrji34CV4QJofVl9jAT7-EwodvphA4?usp=sharing
```
### Who can help?
@agola11 @ey
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
!wget -O /content/models/ggml-model-f16.gguf https://huggingface.co/mys/ggml_llava-v1.5-7b/resolve/main/ggml-model-f16.gguf
!wget -O /content/models/ggml-model-q5_k.gguf https://huggingface.co/mys/ggml_llava-v1.5-7b/resolve/main/ggml-model-q5_k.gguf
```
```
%%bash
# Define the directory containing the images
IMG_DIR=/content/LLAVA/
# Loop through each image in the directory
for img in "${IMG_DIR}"*.jpg; do
# Extract the base name of the image without extension
base_name=$(basename "$img" .jpg)
# Define the output file name based on the image name
output_file="${IMG_DIR}${base_name}.txt"
# Execute the command and save the output to the defined output file
/content/llama.cpp/bin/llava -m /content/models/ggml-model-q5_k.gguf --mmproj /content/models//mmproj-model-f16.gguf --temp 0.1 -p "Describe the image in detail. Be specific about graphs, such as bar plots." --image "$img" > "$output_file"
done
```
gives error:
```
bash: line 14: /content/llama.cpp/bin/llava: No such file or directory
bash: line 14: /content/llama.cpp/bin/llava: No such file or directory
bash: line 14: /content/llama.cpp/bin/llava: No such file or directory
bash: line 14: /content/llama.cpp/bin/llava: No such file or directory
bash: line 14: /content/llama.cpp/bin/llava: No such file or directory
bash: line 14: /content/llama.cpp/bin/llava: No such file or directory
bash: line 14: /content/llama.cpp/bin/llava: No such file or directory
bash: line 14: /content/llama.cpp/bin/llava: No such file or directory
bash: line 14: /content/llama.cpp/bin/llava: No such file or directory
bash: line 14: /content/llama.cpp/bin/llava: No such file or directory
---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
[<ipython-input-51-e049cdfbb7ce>](https://localhost:8080/#) in <cell line: 1>()
----> 1 get_ipython().run_cell_magic('bash', '', '\n# Define the directory containing the images\nIMG_DIR=/content/LLAVA/\n\n# Loop through each image in the directory\nfor img in "${IMG_DIR}"*.jpg; do\n # Extract the base name of the image without extension\n base_name=$(basename "$img" .jpg)\n\n # Define the output file name based on the image name\n output_file="${IMG_DIR}${base_name}.txt"\n\n # Execute the command and save the output to the defined output file\n /content/llama.cpp/bin/llava -m /content/models/ggml-model-q5_k.gguf --mmproj /content/models//mmproj-model-f16.gguf --temp 0.1 -p "Describe the image in detail. Be specific about graphs, such as bar plots." --image "$img" > "$output_file"\n\ndone\n')
4 frames
<decorator-gen-103> in shebang(self, line, cell)
[/usr/local/lib/python3.10/dist-packages/IPython/core/magics/script.py](https://localhost:8080/#) in shebang(self, line, cell)
243 sys.stderr.flush()
244 if args.raise_error and p.returncode!=0:
--> 245 raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
246
247 def _run_script(self, p, cell, to_close):
CalledProcessError: Command 'b'\n# Define the directory containing the images\nIMG_DIR=/content/LLAVA/\n\n# Loop through each image in the directory\nfor img in "${IMG_DIR}"*.jpg; do\n # Extract the base name of the image without extension\n base_name=$(basename "$img" .jpg)\n\n # Define the output file name based on the image name\n output_file="${IMG_DIR}${base_name}.txt"\n\n # Execute the command and save the output to the defined output file\n /content/llama.cpp/bin/llava -m /content/models/ggml-model-q5_k.gguf --mmproj /content/models//mmproj-model-f16.gguf --temp 0.1 -p "Describe the image in detail. Be specific about graphs, such as bar plots." --image "$img" > "$output_file"\n\ndone\n'' returned non-zero exit status 127.
```
### Expected behavior
it should run , but do not understand
```
from langchain.llms import LlamaCpp
llm = LlamaCpp(model_path="/path/to/llama/model")
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13863/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13863/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13862 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13862/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13862/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13862/events | https://github.com/langchain-ai/langchain/pull/13862 | 2,010,846,253 | PR_kwDOIPDwls5gXYVv | 13,862 | Docs `adapters` moved | {
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"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-26T00:57:39 | 2023-11-27T22:07:36 | 2023-11-27T21:05:43 | COLLABORATOR | null | Current docs for adapters are in the `Guides/Adapters which is not a good place.
- moved Adapters into `Integratons/Components/Adapters/
- simplified the OpenAI adapter notebook
- rerouted the old OpenAI adapter page URL to a new one. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13862/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13862/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13862",
"html_url": "https://github.com/langchain-ai/langchain/pull/13862",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13862.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13862.patch",
"merged_at": "2023-11-27T21:05:43"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13861 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13861/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13861/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13861/events | https://github.com/langchain-ai/langchain/issues/13861 | 2,010,829,835 | I_kwDOIPDwls532tQL | 13,861 | TypeError using Baseten in a RAG | {
"login": "nclsmitchell",
"id": 11957979,
"node_id": "MDQ6VXNlcjExOTU3OTc5",
"avatar_url": "https://avatars.githubusercontent.com/u/11957979?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nclsmitchell",
"html_url": "https://github.com/nclsmitchell",
"followers_url": "https://api.github.com/users/nclsmitchell/followers",
"following_url": "https://api.github.com/users/nclsmitchell/following{/other_user}",
"gists_url": "https://api.github.com/users/nclsmitchell/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nclsmitchell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nclsmitchell/subscriptions",
"organizations_url": "https://api.github.com/users/nclsmitchell/orgs",
"repos_url": "https://api.github.com/users/nclsmitchell/repos",
"events_url": "https://api.github.com/users/nclsmitchell/events{/privacy}",
"received_events_url": "https://api.github.com/users/nclsmitchell/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-25T23:39:12 | 2023-11-25T23:50:48 | null | NONE | null | ### System Info
Hello,
I am trying to use a Baseten base LLM in a RAG pipeline.
```
from operator import itemgetter
from langchain.llms import Baseten
from langchain.schema.runnable import RunnableMap
llm = Baseten(model="MODEL_ID", verbose=True)
rag_chain_from_docs = (
{
"context": lambda input: format_docs(input["documents"]),
"question": itemgetter("question"),
}
| rag_prompt_custom
| llm
| StrOutputParser()
)
rag_chain_with_source = RunnableMap(
{"documents": retriever, "question": RunnablePassthrough()}
) | {
"documents": lambda input: [doc.metadata for doc in input["documents"]],
"answer": rag_chain_from_docs,
}
rag_chain_with_source.invoke("What is Task Decomposition")
```
I am using a FAISS retriever and I am getting the following error on the `.invoke()` method:
```
File "/Users/usr/miniconda3/envs/langchain/lib/python3.11/site-packages/langchain/llms/baseten.py", line 69, in _call
response = model.predict({"prompt": prompt, **kwargs})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/usr/miniconda3/envs/langchain/lib/python3.11/site-packages/baseten/common/core.py", line 67, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/usr/miniconda3/envs/langchain/lib/python3.11/site-packages/baseten/baseten_deployed_model.py", line 124, in predict
raise TypeError('predict can be called with either a list, a pandas DataFrame, or a numpy array.')
TypeError: predict can be called with either a list, a pandas DataFrame, or a numpy array.
```
It seems the `model.predict()` method is expecting a list. Does anyone already encountered this error?
Thank you in advance !
### Who can help?
@hwchase17 @agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from operator import itemgetter
from langchain.llms import Baseten
from langchain.schema.runnable import RunnableMap
llm = Baseten(model="MODEL_ID", verbose=True)
rag_chain_from_docs = (
{
"context": lambda input: format_docs(input["documents"]),
"question": itemgetter("question"),
}
| rag_prompt_custom
| llm
| StrOutputParser()
)
rag_chain_with_source = RunnableMap(
{"documents": retriever, "question": RunnablePassthrough()}
) | {
"documents": lambda input: [doc.metadata for doc in input["documents"]],
"answer": rag_chain_from_docs,
}
rag_chain_with_source.invoke("What is Task Decomposition")
```
### Expected behavior
It seems the `model.predict()` method is expecting a list. Could you fix this issue? | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13861/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13861/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13860 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13860/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13860/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13860/events | https://github.com/langchain-ai/langchain/pull/13860 | 2,010,827,140 | PR_kwDOIPDwls5gXUrK | 13,860 | Serpapi google jobs tool | {
"login": "zushenglu",
"id": 58179949,
"node_id": "MDQ6VXNlcjU4MTc5OTQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/58179949?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zushenglu",
"html_url": "https://github.com/zushenglu",
"followers_url": "https://api.github.com/users/zushenglu/followers",
"following_url": "https://api.github.com/users/zushenglu/following{/other_user}",
"gists_url": "https://api.github.com/users/zushenglu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zushenglu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zushenglu/subscriptions",
"organizations_url": "https://api.github.com/users/zushenglu/orgs",
"repos_url": "https://api.github.com/users/zushenglu/repos",
"events_url": "https://api.github.com/users/zushenglu/events{/privacy}",
"received_events_url": "https://api.github.com/users/zushenglu/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": 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-25T23:24:58 | 2023-11-25T23:38:00 | 2023-11-25T23:26:56 | CONTRIBUTOR | null | Implemented tool for searching google jobs
<!-- 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/13860/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13860/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13860",
"html_url": "https://github.com/langchain-ai/langchain/pull/13860",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13860.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13860.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13859 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13859/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13859/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13859/events | https://github.com/langchain-ai/langchain/issues/13859 | 2,010,826,017 | I_kwDOIPDwls532sUh | 13,859 | Issue: <Please write a comprehensive title after the 'Issue: ' prefix> | {
"login": "isayahc",
"id": 18591926,
"node_id": "MDQ6VXNlcjE4NTkxOTI2",
"avatar_url": "https://avatars.githubusercontent.com/u/18591926?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/isayahc",
"html_url": "https://github.com/isayahc",
"followers_url": "https://api.github.com/users/isayahc/followers",
"following_url": "https://api.github.com/users/isayahc/following{/other_user}",
"gists_url": "https://api.github.com/users/isayahc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/isayahc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/isayahc/subscriptions",
"organizations_url": "https://api.github.com/users/isayahc/orgs",
"repos_url": "https://api.github.com/users/isayahc/repos",
"events_url": "https://api.github.com/users/isayahc/events{/privacy}",
"received_events_url": "https://api.github.com/users/isayahc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | closed | false | null | [] | null | 1 | 2023-11-25T23:18:35 | 2023-11-26T01:05:46 | 2023-11-26T01:05:46 | NONE | null | ### Issue you'd like to raise.
```# Load Tools
tools = load_tools(["serpapi","langchain_experimental_python_repl"], llm=llm)
```
error
```
Exception has occurred: ImportError
This tool has been moved to langchain experiment. This tool has access to a python REPL. For best practices make sure to sandbox this tool. Read To keep using this code as is, install langchain experimental and update relevant imports replacing 'langchain' with 'langchain_experimental'
File "/home/isayahc/projects/buy-bot/react_agent.py", line 49, in create_agent_executor
tools = load_tools(["serpapi","python_repl"], llm=llm)
File "/home/isayahc/projects/buy-bot/react_agent.py", line 88, in <module>
agent_executor = create_agent_executor()
ImportError: This tool has been moved to langchain experiment. This tool has access to a python REPL. For best practices make sure to sandbox this tool. Read h To keep using this code as is, install langchain experimental and update relevant imports replacing 'langchain' with 'langchain_experimental'
```
how do i fix this?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13859/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13859/timeline | null | not_planned | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13858 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13858/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13858/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13858/events | https://github.com/langchain-ai/langchain/issues/13858 | 2,010,821,824 | I_kwDOIPDwls532rTA | 13,858 | Issue: Load tools from experimental langchain module | {
"login": "isayahc",
"id": 18591926,
"node_id": "MDQ6VXNlcjE4NTkxOTI2",
"avatar_url": "https://avatars.githubusercontent.com/u/18591926?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/isayahc",
"html_url": "https://github.com/isayahc",
"followers_url": "https://api.github.com/users/isayahc/followers",
"following_url": "https://api.github.com/users/isayahc/following{/other_user}",
"gists_url": "https://api.github.com/users/isayahc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/isayahc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/isayahc/subscriptions",
"organizations_url": "https://api.github.com/users/isayahc/orgs",
"repos_url": "https://api.github.com/users/isayahc/repos",
"events_url": "https://api.github.com/users/isayahc/events{/privacy}",
"received_events_url": "https://api.github.com/users/isayahc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2023-11-25T22:57:56 | 2023-11-25T22:58:22 | null | NONE | null | ### Issue you'd like to raise.
Exception has occurred: ImportError
This tool has been moved to langchain experiment. This tool has access to a python REPL. For best practices make sure to sandbox this tool. Read https://github.com/langchain-ai/langchain/blob/master/SECURITY.md To keep using this code as is, install langchain experimental and update relevant imports replacing 'langchain' with 'langchain_experimental'
File "/home/isayahc/projects/buy-bot/react_agent.py", line 43, in create_agent_executor
tools = load_tools(["serpapi","python_repl"], llm=llm)
File "/home/isayahc/projects/buy-bot/react_agent.py", line 81, in
agent_executor = create_agent_executor()
ImportError: This tool has been moved to langchain experiment. This tool has access to a python REPL. For best practices make sure to sandbox this tool. Read https://github.com/langchain-ai/langchain/blob/master/SECURITY.md To keep using this code as is, install langchain experimental and update relevant imports replacing 'langchain' with 'langchain_experimental'
I am trying to use the python repl, and load it to my tools
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13858/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13858/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13856 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13856/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13856/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13856/events | https://github.com/langchain-ai/langchain/issues/13856 | 2,010,817,039 | I_kwDOIPDwls532qIP | 13,856 | Issue: what string works for experimental tool | {
"login": "isayahc",
"id": 18591926,
"node_id": "MDQ6VXNlcjE4NTkxOTI2",
"avatar_url": "https://avatars.githubusercontent.com/u/18591926?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/isayahc",
"html_url": "https://github.com/isayahc",
"followers_url": "https://api.github.com/users/isayahc/followers",
"following_url": "https://api.github.com/users/isayahc/following{/other_user}",
"gists_url": "https://api.github.com/users/isayahc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/isayahc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/isayahc/subscriptions",
"organizations_url": "https://api.github.com/users/isayahc/orgs",
"repos_url": "https://api.github.com/users/isayahc/repos",
"events_url": "https://api.github.com/users/isayahc/events{/privacy}",
"received_events_url": "https://api.github.com/users/isayahc/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"
}
] | closed | false | null | [] | null | 3 | 2023-11-25T22:34:55 | 2023-11-25T22:56:58 | 2023-11-25T22:56:58 | NONE | null | ### Issue you'd like to raise.
Exception has occurred: ImportError
This tool has been moved to langchain experiment. This tool has access to a python REPL. For best practices make sure to sandbox this tool. Read https://github.com/langchain-ai/langchain/blob/master/SECURITY.md To keep using this code as is, install langchain experimental and update relevant imports replacing 'langchain' with 'langchain_experimental'
File "/home/isayahc/projects/buy-bot/react_agent.py", line 43, in create_agent_executor
tools = load_tools(["serpapi","python_repl"], llm=llm)
File "/home/isayahc/projects/buy-bot/react_agent.py", line 81, in <module>
agent_executor = create_agent_executor()
ImportError: This tool has been moved to langchain experiment. This tool has access to a python REPL. For best practices make sure to sandbox this tool. Read https://github.com/langchain-ai/langchain/blob/master/SECURITY.md To keep using this code as is, install langchain experimental and update relevant imports replacing 'langchain' with 'langchain_experimental'
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13856/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13856/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13855 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13855/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13855/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13855/events | https://github.com/langchain-ai/langchain/pull/13855 | 2,010,791,416 | PR_kwDOIPDwls5gXN3W | 13,855 | Migrating Langchain's openai-python usage to v1.0.0 | {
"login": "JoshuaConcon",
"id": 8160540,
"node_id": "MDQ6VXNlcjgxNjA1NDA=",
"avatar_url": "https://avatars.githubusercontent.com/u/8160540?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/JoshuaConcon",
"html_url": "https://github.com/JoshuaConcon",
"followers_url": "https://api.github.com/users/JoshuaConcon/followers",
"following_url": "https://api.github.com/users/JoshuaConcon/following{/other_user}",
"gists_url": "https://api.github.com/users/JoshuaConcon/gists{/gist_id}",
"starred_url": "https://api.github.com/users/JoshuaConcon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JoshuaConcon/subscriptions",
"organizations_url": "https://api.github.com/users/JoshuaConcon/orgs",
"repos_url": "https://api.github.com/users/JoshuaConcon/repos",
"events_url": "https://api.github.com/users/JoshuaConcon/events{/privacy}",
"received_events_url": "https://api.github.com/users/JoshuaConcon/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."
}
] | open | false | null | [] | null | 1 | 2023-11-25T20:44:17 | 2023-12-03T19:03:24 | null | NONE | null | - **Description:**
- Converting Langchain to support openai-python v1.0.0 as per the [Official OpenAI v1.0.0 Migration Guide](https://github.com/openai/openai-python/discussions/742) and the [OpenAI v1.0.0 Migration Guide by Microsoft](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/migration?tabs=python%2Cdalle-fix)
- **TODO:**
- [x] Run `openai migrate `
- [x] Audit changes
- [x] `libs/langchain/chains/moderation.py`
- [x] `libs/langchain/chat_models/jinachat.py`
- [x] `libs/langchain/chat_models/openai.py`
- [x] `libs/langchain/document_loaders/parsrs/audio.py`
- [x] `libs/langchain/embeddings/localai.py`
- [x] `libs/langchain/embeddings/openai.py`
- [x] `libs/langchain/llms/gooseai.py`
- [x] `libs/langchain/llms/openai.py`
- [x] `libs/langchain/utilities/dalle_image_generator.py`
- [x] `tests/integration_tests/adapters/test_openai.py`
- [x] `tests/integration_tests/embeddings/test_azure_openai.py`
- [x] `tests/integration_tests/embeddings/test_openai.py`
- [x] `tests/integration_tests/unit_tests/llms/test_openai.py`
- **Issue:** #11755
- **Dependencies:** [openai-python v1.0.0](https://github.com/openai/openai-python)
- **Tag maintainer:** @baskaryan @eyurtsev @hwchase17
- **Twitter handle:** [@Joshua_Concon](https://twitter.com/joshua_concon) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13855/reactions",
"total_count": 2,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 2,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13855/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13855",
"html_url": "https://github.com/langchain-ai/langchain/pull/13855",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13855.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13855.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13853 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13853/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13853/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13853/events | https://github.com/langchain-ai/langchain/pull/13853 | 2,010,754,544 | PR_kwDOIPDwls5gXGxC | 13,853 | RELEASE: core 0.0.6 | {
"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 | 2 | 2023-11-25T18:21:03 | 2023-11-26T07:22:15 | 2023-11-25T18:21:14 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13853/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13853/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13853",
"html_url": "https://github.com/langchain-ai/langchain/pull/13853",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13853.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13853.patch",
"merged_at": "2023-11-25T18:21:14"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13852 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13852/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13852/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13852/events | https://github.com/langchain-ai/langchain/pull/13852 | 2,010,753,140 | PR_kwDOIPDwls5gXGfp | 13,852 | bump 0.0.339rc3 | {
"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": 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-25T18:16:14 | 2023-11-25T18:37:31 | 2023-11-25T18:37: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/13852/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13852/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13852",
"html_url": "https://github.com/langchain-ai/langchain/pull/13852",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13852.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13852.patch",
"merged_at": "2023-11-25T18:37:30"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13851 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13851/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13851/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13851/events | https://github.com/langchain-ai/langchain/pull/13851 | 2,010,693,807 | PR_kwDOIPDwls5gW6sT | 13,851 | Reduce the number of tokens required to describe a Cypher/Neo4j schema | {
"login": "tomasonjo",
"id": 19948365,
"node_id": "MDQ6VXNlcjE5OTQ4MzY1",
"avatar_url": "https://avatars.githubusercontent.com/u/19948365?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tomasonjo",
"html_url": "https://github.com/tomasonjo",
"followers_url": "https://api.github.com/users/tomasonjo/followers",
"following_url": "https://api.github.com/users/tomasonjo/following{/other_user}",
"gists_url": "https://api.github.com/users/tomasonjo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tomasonjo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tomasonjo/subscriptions",
"organizations_url": "https://api.github.com/users/tomasonjo/orgs",
"repos_url": "https://api.github.com/users/tomasonjo/repos",
"events_url": "https://api.github.com/users/tomasonjo/events{/privacy}",
"received_events_url": "https://api.github.com/users/tomasonjo/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 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 | {
"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-25T15:13:00 | 2023-12-02T01:58:42 | 2023-11-29T19:13:13 | CONTRIBUTOR | null | Instead of using JSON-like syntax to describe node and relationship properties we changed to a shorter and more concise schema description
Old:
```
Node properties are the following:
[{'properties': [{'property': 'name', 'type': 'STRING'}], 'labels': 'Movie'}, {'properties': [{'property': 'name', 'type': 'STRING'}], 'labels': 'Actor'}]
Relationship properties are the following:
[]
The relationships are the following:
['(:Actor)-[:ACTED_IN]->(:Movie)']
```
New:
```
Node properties are the following:
Movie {name: STRING},Actor {name: STRING}
Relationship properties are the following:
The relationships are the following:
(:Actor)-[:ACTED_IN]->(:Movie)
```
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13851/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13851/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13851",
"html_url": "https://github.com/langchain-ai/langchain/pull/13851",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13851.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13851.patch",
"merged_at": "2023-11-29T19:13:13"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13850 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13850/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13850/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13850/events | https://github.com/langchain-ai/langchain/pull/13850 | 2,010,688,272 | PR_kwDOIPDwls5gW5pK | 13,850 | Allow users to pass local embeddings to Weaviate Hybrid Search Retriever #5539 | {
"login": "nerd4me",
"id": 4291004,
"node_id": "MDQ6VXNlcjQyOTEwMDQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/4291004?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nerd4me",
"html_url": "https://github.com/nerd4me",
"followers_url": "https://api.github.com/users/nerd4me/followers",
"following_url": "https://api.github.com/users/nerd4me/following{/other_user}",
"gists_url": "https://api.github.com/users/nerd4me/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nerd4me/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nerd4me/subscriptions",
"organizations_url": "https://api.github.com/users/nerd4me/orgs",
"repos_url": "https://api.github.com/users/nerd4me/repos",
"events_url": "https://api.github.com/users/nerd4me/events{/privacy}",
"received_events_url": "https://api.github.com/users/nerd4me/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": 5496183033,
"node_id": "LA_kwDOIPDwls8AAAABR5kY-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20weaviate",
"name": "integration: weaviate",
"color": "9B0BAF",
"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": 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."
}
] | open | false | null | [] | null | 2 | 2023-11-25T14:56:58 | 2023-12-13T01:16:11 | null | NONE | null | <!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/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.
-->
#5539 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13850/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13850/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13850",
"html_url": "https://github.com/langchain-ai/langchain/pull/13850",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13850.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13850.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13849 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13849/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13849/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13849/events | https://github.com/langchain-ai/langchain/pull/13849 | 2,010,642,572 | PR_kwDOIPDwls5gWviR | 13,849 | Fix bugs with Cypher validation | {
"login": "tomasonjo",
"id": 19948365,
"node_id": "MDQ6VXNlcjE5OTQ4MzY1",
"avatar_url": "https://avatars.githubusercontent.com/u/19948365?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tomasonjo",
"html_url": "https://github.com/tomasonjo",
"followers_url": "https://api.github.com/users/tomasonjo/followers",
"following_url": "https://api.github.com/users/tomasonjo/following{/other_user}",
"gists_url": "https://api.github.com/users/tomasonjo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tomasonjo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tomasonjo/subscriptions",
"organizations_url": "https://api.github.com/users/tomasonjo/orgs",
"repos_url": "https://api.github.com/users/tomasonjo/repos",
"events_url": "https://api.github.com/users/tomasonjo/events{/privacy}",
"received_events_url": "https://api.github.com/users/tomasonjo/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 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-25T13:47:03 | 2023-11-27T03:30:11 | 2023-11-27T03:30:11 | CONTRIBUTOR | null | Fixes https://github.com/langchain-ai/langchain/issues/13803. Thanks to @sakusaku-rich | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13849/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13849/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13849",
"html_url": "https://github.com/langchain-ai/langchain/pull/13849",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13849.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13849.patch",
"merged_at": "2023-11-27T03:30:11"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13848 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13848/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13848/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13848/events | https://github.com/langchain-ai/langchain/pull/13848 | 2,010,608,967 | PR_kwDOIPDwls5gWn1B | 13,848 | 🎞️ add json format to OllamaCommon class | {
"login": "shroominic",
"id": 34897716,
"node_id": "MDQ6VXNlcjM0ODk3NzE2",
"avatar_url": "https://avatars.githubusercontent.com/u/34897716?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shroominic",
"html_url": "https://github.com/shroominic",
"followers_url": "https://api.github.com/users/shroominic/followers",
"following_url": "https://api.github.com/users/shroominic/following{/other_user}",
"gists_url": "https://api.github.com/users/shroominic/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shroominic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shroominic/subscriptions",
"organizations_url": "https://api.github.com/users/shroominic/orgs",
"repos_url": "https://api.github.com/users/shroominic/repos",
"events_url": "https://api.github.com/users/shroominic/events{/privacy}",
"received_events_url": "https://api.github.com/users/shroominic/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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."
}
] | closed | false | null | [] | null | 5 | 2023-11-25T13:12:10 | 2023-12-05T22:45:32 | 2023-12-05T22:45:32 | CONTRIBUTOR | null | The Ollama Client now allows a pure [json mode](https://github.com/jmorganca/ollama/blob/main/docs/api.md#request-json-mode) which I just added to the OllamaCommon class.
This allows using it like in this example:
<img width="876" alt="Screenshot 2023-11-25 at 14 11 19" src="https://github.com/langchain-ai/langchain/assets/34897716/1e47584e-58e0-497d-806d-00ef8e3ea6a5">
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13848/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13848/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13848",
"html_url": "https://github.com/langchain-ai/langchain/pull/13848",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13848.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13848.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13847 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13847/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13847/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13847/events | https://github.com/langchain-ai/langchain/issues/13847 | 2,010,605,909 | I_kwDOIPDwls5312lV | 13,847 | create_extraction_chain does not work with other LLMs?i try with llama_api | {
"login": "Dante690",
"id": 102960711,
"node_id": "U_kgDOBiMORw",
"avatar_url": "https://avatars.githubusercontent.com/u/102960711?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Dante690",
"html_url": "https://github.com/Dante690",
"followers_url": "https://api.github.com/users/Dante690/followers",
"following_url": "https://api.github.com/users/Dante690/following{/other_user}",
"gists_url": "https://api.github.com/users/Dante690/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Dante690/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dante690/subscriptions",
"organizations_url": "https://api.github.com/users/Dante690/orgs",
"repos_url": "https://api.github.com/users/Dante690/repos",
"events_url": "https://api.github.com/users/Dante690/events{/privacy}",
"received_events_url": "https://api.github.com/users/Dante690/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 4 | 2023-11-25T13:01:51 | 2023-12-09T12:12:50 | null | NONE | null | ### System Info
Python 3.9.18
### 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
- [x] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Hi i try this example, but doesnt work
```
from llamaapi import LlamaAPI
from langchain.chains import create_extraction_chain
llama = LlamaAPI("My Api KEy")
from langchain_experimental.llms import ChatLlamaAPI
model = ChatLlamaAPI(client=llama)
schema = {
"properties": {
"name": {"type": "string"},
"height": {"type": "integer"},
"hair_color": {"type": "string"},
},
"required": ["name", "height"],
}
inp = """
Alex is 5 feet tall. Claudia is 1 feet taller Alex and jumps higher than him. Claudia is a brunette and Alex is blonde.
"""
chain = create_extraction_chain(schema, model)
chain.run(inp)
```
File "C:\mini\envs\py39\lib\site-packages\langchain\output_parsers\openai_func
tions.py", line 136, in parse_result
return res.get(self.key_name) if partial else res[self.key_name]
TypeError: string indices must be integers
### Expected behavior
Extraction from text | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13847/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13847/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13845 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13845/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13845/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13845/events | https://github.com/langchain-ai/langchain/issues/13845 | 2,010,590,203 | I_kwDOIPDwls531yv7 | 13,845 | Add memeory to langchain AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION agent | {
"login": "saadShirgaonkar",
"id": 54815063,
"node_id": "MDQ6VXNlcjU0ODE1MDYz",
"avatar_url": "https://avatars.githubusercontent.com/u/54815063?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/saadShirgaonkar",
"html_url": "https://github.com/saadShirgaonkar",
"followers_url": "https://api.github.com/users/saadShirgaonkar/followers",
"following_url": "https://api.github.com/users/saadShirgaonkar/following{/other_user}",
"gists_url": "https://api.github.com/users/saadShirgaonkar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/saadShirgaonkar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/saadShirgaonkar/subscriptions",
"organizations_url": "https://api.github.com/users/saadShirgaonkar/orgs",
"repos_url": "https://api.github.com/users/saadShirgaonkar/repos",
"events_url": "https://api.github.com/users/saadShirgaonkar/events{/privacy}",
"received_events_url": "https://api.github.com/users/saadShirgaonkar/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": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"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-25T12:05:33 | 2023-11-25T12:18:13 | null | NONE | null | ### System Info
I am write a code and i want to add history to my langchain agent. History is present in chats list
### 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
- [x] Memory
- [x] Agents / Agent Executors
- [x] Tools / Toolkits
- [x] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
`async def chat_with_agent(user_input, formatting_data, chats: list):
"""
Initiates a chat with the agent based on the user input.
"""
try:
# Initialize the chat model
llm_model = "gpt-4-1106-preview"
llm = ChatOpenAI(temperature=0.3, model=llm_model)
# Load necessary tools
tool = StructuredTool.from_function(get_human_input)
tools = load_tools(["serpapi"], llm=llm)
tools_list = [tool, exposure, get_user_profile, get_user_risk_profile, get_stock_technical_analysis,
get_stock_fundamental_analysis, get_mutual_fund_exposure, get_stock_based_news,
user_agent_chat_history]
# Initialize the agent
agent = initialize_agent(
tools + tools_list,
llm,
agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,
handle_parsing_errors=True,
verbose=True,
max_execution_time=1800,
max_iterations=300,
agent_kwargs={
'prefix': "Answer the questions as best you can. Use tools when needed. First task is check user "
"If the query requires and domain specific experts and mention it in response there are other"
"experts in system like stock expert, tax expert, mutual fund expert "
"First: you task is to answer only financial question only"
},
return_intermediate_steps=True
)
# Add additional prompt
extra_prompt = ("You are Relationship Manager. All values are in Indian Rupees. Answers or tasks always lie "
"in the capacity of the tools. So ensure you are not expecting anything outside of it."
)
final_input = "This is user input " + user_input + " This is helping prompt " + extra_prompt
try:
logger.info(f"User input + extra prompt: {user_input + extra_prompt}")
# Run the agent
result = agent(final_input)
except Exception as e:
logger.exception(f"Error while running the agent: {e}")
result = str(e)
logger.info(f"Agent chat result: {result['output']}")
response = personalised_response_from_ai(final_input, str(result['output']), str(result["intermediate_steps"]),
formatting_data)
"""report = report_writing_tool(user_input, str(result['output']), str(result["intermediate_steps"]))"""
logger.info(f"Response from GPT: {response}")
# return f" {response}, Report: {report}"
if response:
return response
else:
return str(result['output'])
except Exception as e:
logger.error(f"Error while talking with RM Agent: {str(e)}")
raise HTTPException(status_code=500, detail=str(e))`
### Expected behavior
I want add history to my agent | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13845/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13845/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13844 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13844/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13844/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13844/events | https://github.com/langchain-ai/langchain/pull/13844 | 2,010,565,614 | PR_kwDOIPDwls5gWfZn | 13,844 | feat: allow users to pass local embeddings to Weaviate Hybrid Search … | {
"login": "nerd4me",
"id": 4291004,
"node_id": "MDQ6VXNlcjQyOTEwMDQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/4291004?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nerd4me",
"html_url": "https://github.com/nerd4me",
"followers_url": "https://api.github.com/users/nerd4me/followers",
"following_url": "https://api.github.com/users/nerd4me/following{/other_user}",
"gists_url": "https://api.github.com/users/nerd4me/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nerd4me/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nerd4me/subscriptions",
"organizations_url": "https://api.github.com/users/nerd4me/orgs",
"repos_url": "https://api.github.com/users/nerd4me/repos",
"events_url": "https://api.github.com/users/nerd4me/events{/privacy}",
"received_events_url": "https://api.github.com/users/nerd4me/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 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-25T10:37:07 | 2023-11-25T14:37:15 | 2023-11-25T14:37:01 | NONE | null | …Retriever #5539
<!-- 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/13844/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13844/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13844",
"html_url": "https://github.com/langchain-ai/langchain/pull/13844",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13844.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13844.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13843 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13843/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13843/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13843/events | https://github.com/langchain-ai/langchain/pull/13843 | 2,010,554,546 | PR_kwDOIPDwls5gWdH0 | 13,843 | DOCS: fixed error in the docstring of RunnablePassthrough class | {
"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": 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-25T10:02:26 | 2023-11-27T08:06:55 | 2023-11-27T08:06:55 | CONTRIBUTOR | null | This pull request addresses an issue found in the example code within the docstring of `libs/core/langchain_core/runnables/passthrough.py`
The original code snippet caused a `NameError` due to the missing import of `RunnableLambda`. The error was as follows:
```
12 return "completion"
13
---> 14 chain = RunnableLambda(fake_llm) | {
15 'original': RunnablePassthrough(), # Original LLM output
16 'parsed': lambda text: text[::-1] # Parsing logic
NameError: name 'RunnableLambda' is not defined
```
To resolve this, I have modified the example code to include the necessary import statement for `RunnableLambda`. Additionally, I have adjusted the indentation in the code snippet to ensure consistency and readability.
The modified code now successfully defines and utilizes `RunnableLambda`, ensuring that users referencing the docstring will have a functional and clear example to follow.
There are no related GitHub issues for this particular change.
Modified Code:
```python
from langchain_core.runnables import RunnablePassthrough, RunnableParallel
from langchain_core.runnables import RunnableLambda
runnable = RunnableParallel(
origin=RunnablePassthrough(),
modified=lambda x: x+1
)
runnable.invoke(1) # {'origin': 1, 'modified': 2}
def fake_llm(prompt: str) -> str: # Fake LLM for the example
return "completion"
chain = RunnableLambda(fake_llm) | {
'original': RunnablePassthrough(), # Original LLM output
'parsed': lambda text: text[::-1] # Parsing logic
}
chain.invoke('hello') # {'original': 'completion', 'parsed': 'noitelpmoc'}
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13843/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13843/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13843",
"html_url": "https://github.com/langchain-ai/langchain/pull/13843",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13843.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13843.patch",
"merged_at": "2023-11-27T08:06:55"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13842 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13842/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13842/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13842/events | https://github.com/langchain-ai/langchain/issues/13842 | 2,010,536,775 | I_kwDOIPDwls531ltH | 13,842 | Does only openai support SystemMessage? | {
"login": "estuday",
"id": 45581281,
"node_id": "MDQ6VXNlcjQ1NTgxMjgx",
"avatar_url": "https://avatars.githubusercontent.com/u/45581281?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/estuday",
"html_url": "https://github.com/estuday",
"followers_url": "https://api.github.com/users/estuday/followers",
"following_url": "https://api.github.com/users/estuday/following{/other_user}",
"gists_url": "https://api.github.com/users/estuday/gists{/gist_id}",
"starred_url": "https://api.github.com/users/estuday/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/estuday/subscriptions",
"organizations_url": "https://api.github.com/users/estuday/orgs",
"repos_url": "https://api.github.com/users/estuday/repos",
"events_url": "https://api.github.com/users/estuday/events{/privacy}",
"received_events_url": "https://api.github.com/users/estuday/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-11-25T08:57:09 | 2023-11-25T09:03:51 | null | NONE | null | ### System Info
None
### 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
My chat model is ERNIE-Bot, running the following code reported an error:
![image](https://github.com/langchain-ai/langchain/assets/45581281/8aee32db-9ca8-4fb3-aec4-4617219c375d)
But after I removed SystemMessage it works fine. So I want to know, do all models support SystemMessage?
![image](https://github.com/langchain-ai/langchain/assets/45581281/df82fd89-944b-4e51-bdc4-1fc121106731)
### Expected behavior
None | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13842/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13842/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13841 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13841/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13841/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13841/events | https://github.com/langchain-ai/langchain/pull/13841 | 2,010,525,544 | PR_kwDOIPDwls5gWXZS | 13,841 | Add OneNote document loader | {
"login": "Dylan20XX",
"id": 56706206,
"node_id": "MDQ6VXNlcjU2NzA2MjA2",
"avatar_url": "https://avatars.githubusercontent.com/u/56706206?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Dylan20XX",
"html_url": "https://github.com/Dylan20XX",
"followers_url": "https://api.github.com/users/Dylan20XX/followers",
"following_url": "https://api.github.com/users/Dylan20XX/following{/other_user}",
"gists_url": "https://api.github.com/users/Dylan20XX/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Dylan20XX/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dylan20XX/subscriptions",
"organizations_url": "https://api.github.com/users/Dylan20XX/orgs",
"repos_url": "https://api.github.com/users/Dylan20XX/repos",
"events_url": "https://api.github.com/users/Dylan20XX/events{/privacy}",
"received_events_url": "https://api.github.com/users/Dylan20XX/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"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 | 2 | 2023-11-25T08:15:25 | 2023-11-27T07:59:58 | 2023-11-27T07:59:53 | CONTRIBUTOR | null | - **Description:** Added OneNote document loader
- **Issue:** #12125
- **Dependencies:** msal | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13841/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13841/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13841",
"html_url": "https://github.com/langchain-ai/langchain/pull/13841",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13841.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13841.patch",
"merged_at": "2023-11-27T07:59:53"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13840 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13840/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13840/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13840/events | https://github.com/langchain-ai/langchain/pull/13840 | 2,010,518,296 | PR_kwDOIPDwls5gWV9W | 13,840 | Update llamacpp.ipynb | {
"login": "eltociear",
"id": 22633385,
"node_id": "MDQ6VXNlcjIyNjMzMzg1",
"avatar_url": "https://avatars.githubusercontent.com/u/22633385?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eltociear",
"html_url": "https://github.com/eltociear",
"followers_url": "https://api.github.com/users/eltociear/followers",
"following_url": "https://api.github.com/users/eltociear/following{/other_user}",
"gists_url": "https://api.github.com/users/eltociear/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eltociear/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eltociear/subscriptions",
"organizations_url": "https://api.github.com/users/eltociear/orgs",
"repos_url": "https://api.github.com/users/eltociear/repos",
"events_url": "https://api.github.com/users/eltociear/events{/privacy}",
"received_events_url": "https://api.github.com/users/eltociear/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-25T07:47:14 | 2023-11-27T07:47:19 | 2023-11-27T07:47:19 | CONTRIBUTOR | null | specifed -> specified
<!-- 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/13840/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13840/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13840",
"html_url": "https://github.com/langchain-ai/langchain/pull/13840",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13840.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13840.patch",
"merged_at": "2023-11-27T07:47:19"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13839 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13839/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13839/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13839/events | https://github.com/langchain-ai/langchain/pull/13839 | 2,010,502,398 | PR_kwDOIPDwls5gWSz9 | 13,839 | The experimental package needs to be compatible with the usage of importing agents | {
"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": 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": 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": 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-25T06:49:18 | 2023-11-27T22:03:48 | 2023-11-27T22:03:47 | CONTRIBUTOR | null |
- **Description:** The experimental package needs to be compatible with the usage of importing agents
For example, if i use `from langchain.agents import create_pandas_dataframe_agent`, running the program will prompt the following information:
```
Traceback (most recent call last):
File "/Users/dongwm/test/main.py", line 1, in <module>
from langchain.agents import create_pandas_dataframe_agent
File "/Users/dongwm/test/venv/lib/python3.11/site-packages/langchain/agents/__init__.py", line 87, in __getattr__
raise ImportError(
ImportError: create_pandas_dataframe_agent has been moved to langchain experimental. See https://github.com/langchain-ai/langchain/discussions/11680 for more information.
Please update your import statement from: `langchain.agents.create_pandas_dataframe_agent` to `langchain_experimental.agents.create_pandas_dataframe_agent`.
```
But when I changed to `from langchain_experimental.agents import create_pandas_dataframe_agent`, it was actually wrong:
```python
Traceback (most recent call last):
File "/Users/dongwm/test/main.py", line 2, in <module>
from langchain_experimental.agents import create_pandas_dataframe_agent
ImportError: cannot import name 'create_pandas_dataframe_agent' from 'langchain_experimental.agents' (/Users/dongwm/test/venv/lib/python3.11/site-packages/langchain_experimental/agents/__init__.py)
```
I should use `from langchain_experimental.agents.agent_toolkits import create_pandas_dataframe_agent`. In order to solve the problem and make it compatible, I added additional import code to the langchain_experimental package. Now it can be like this Used `from langchain_experimental.agents import create_pandas_dataframe_agent`
- **Twitter handle:** [lin_bob57617](https://twitter.com/lin_bob57617)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13839/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13839/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13839",
"html_url": "https://github.com/langchain-ai/langchain/pull/13839",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13839.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13839.patch",
"merged_at": "2023-11-27T22:03:47"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13838 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13838/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13838/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13838/events | https://github.com/langchain-ai/langchain/issues/13838 | 2,010,498,080 | I_kwDOIPDwls531cQg | 13,838 | Unable to get page count. Is poppler installed and in PATH | {
"login": "akashAD98",
"id": 62583018,
"node_id": "MDQ6VXNlcjYyNTgzMDE4",
"avatar_url": "https://avatars.githubusercontent.com/u/62583018?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akashAD98",
"html_url": "https://github.com/akashAD98",
"followers_url": "https://api.github.com/users/akashAD98/followers",
"following_url": "https://api.github.com/users/akashAD98/following{/other_user}",
"gists_url": "https://api.github.com/users/akashAD98/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akashAD98/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akashAD98/subscriptions",
"organizations_url": "https://api.github.com/users/akashAD98/orgs",
"repos_url": "https://api.github.com/users/akashAD98/repos",
"events_url": "https://api.github.com/users/akashAD98/events{/privacy}",
"received_events_url": "https://api.github.com/users/akashAD98/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"
}
] | open | false | null | [] | null | 2 | 2023-11-25T06:31:04 | 2023-12-19T16:07:28 | null | NONE | null | ### System Info
im running it on google Collab
### Who can help?
trying the example of mult-modal rag - I tried everything no matter what if still getting this error
please tell if if there is any alternative way or how can we install it? @bas
### 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
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
just run it on collab & we will not able to get output from partitions
https://github.com/langchain-ai/langchain/blob/master/cookbook/Multi_modal_RAG.ipynb
![image](https://github.com/langchain-ai/langchain/assets/62583018/2f10bb44-82e9-4dc9-9c66-e84b5a18c6e1)
### Expected behavior
it should work normal without error on collab | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13838/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13838/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13836 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13836/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13836/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13836/events | https://github.com/langchain-ai/langchain/pull/13836 | 2,010,430,908 | PR_kwDOIPDwls5gWE6i | 13,836 | Astra DB, chat message history | {
"login": "hemidactylus",
"id": 14221764,
"node_id": "MDQ6VXNlcjE0MjIxNzY0",
"avatar_url": "https://avatars.githubusercontent.com/u/14221764?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hemidactylus",
"html_url": "https://github.com/hemidactylus",
"followers_url": "https://api.github.com/users/hemidactylus/followers",
"following_url": "https://api.github.com/users/hemidactylus/following{/other_user}",
"gists_url": "https://api.github.com/users/hemidactylus/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hemidactylus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hemidactylus/subscriptions",
"organizations_url": "https://api.github.com/users/hemidactylus/orgs",
"repos_url": "https://api.github.com/users/hemidactylus/repos",
"events_url": "https://api.github.com/users/hemidactylus/events{/privacy}",
"received_events_url": "https://api.github.com/users/hemidactylus/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 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-25T01:50:15 | 2023-11-25T02:12:29 | 2023-11-25T02:12:29 | CONTRIBUTOR | null | This PR adds a chat message history component that uses Astra DB for persistence through the JSON API.
The `astrapy` package is required for this class to work.
I have added tests and a small notebook, and updated the relevant references in the other docs pages.
(@rlancemartin this is the counterpart of the Cassandra equivalent class you so helpfully reviewed back at the end of June)
Thank you! | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13836/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13836/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13836",
"html_url": "https://github.com/langchain-ai/langchain/pull/13836",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13836.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13836.patch",
"merged_at": "2023-11-25T02:12:29"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13835 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13835/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13835/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13835/events | https://github.com/langchain-ai/langchain/pull/13835 | 2,010,412,419 | PR_kwDOIPDwls5gWA3X | 13,835 | IMPROVEMENT: langchain anthropic nits | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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-11-25T01:12:23 | 2023-12-04T20:31:02 | 2023-12-04T20:31:01 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13835/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13835/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13835",
"html_url": "https://github.com/langchain-ai/langchain/pull/13835",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13835.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13835.patch",
"merged_at": "2023-12-04T20:31:01"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13834 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13834/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13834/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13834/events | https://github.com/langchain-ai/langchain/pull/13834 | 2,010,404,432 | PR_kwDOIPDwls5gV_Cu | 13,834 | Astra DB, LLM cache classes (exact-match and semantic cache) | {
"login": "hemidactylus",
"id": 14221764,
"node_id": "MDQ6VXNlcjE0MjIxNzY0",
"avatar_url": "https://avatars.githubusercontent.com/u/14221764?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hemidactylus",
"html_url": "https://github.com/hemidactylus",
"followers_url": "https://api.github.com/users/hemidactylus/followers",
"following_url": "https://api.github.com/users/hemidactylus/following{/other_user}",
"gists_url": "https://api.github.com/users/hemidactylus/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hemidactylus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hemidactylus/subscriptions",
"organizations_url": "https://api.github.com/users/hemidactylus/orgs",
"repos_url": "https://api.github.com/users/hemidactylus/repos",
"events_url": "https://api.github.com/users/hemidactylus/events{/privacy}",
"received_events_url": "https://api.github.com/users/hemidactylus/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 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 | 2 | 2023-11-25T01:01:57 | 2023-11-25T02:53:37 | 2023-11-25T02:53:37 | CONTRIBUTOR | null | This PR provides idiomatic implementations for the exact-match and the semantic LLM caches using Astra DB as backend through the database's HTTP JSON API. These caches require the `astrapy` library as dependency.
Comes with integration tests and example usage in the `llm_cache.ipynb` in the docs.
@baskaryan this is the Astra DB counterpart for the Cassandra classes you merged some time ago, tagging you for your familiarity with the topic. Thank you!
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13834/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13834/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13834",
"html_url": "https://github.com/langchain-ai/langchain/pull/13834",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13834.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13834.patch",
"merged_at": "2023-11-25T02:53:37"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13833 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13833/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13833/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13833/events | https://github.com/langchain-ai/langchain/issues/13833 | 2,010,391,830 | I_kwDOIPDwls531CUW | 13,833 | lang chain Azure vector search not working neither on its direct fields nor on its metadata fields | {
"login": "savitaraghuvanshi",
"id": 12087877,
"node_id": "MDQ6VXNlcjEyMDg3ODc3",
"avatar_url": "https://avatars.githubusercontent.com/u/12087877?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/savitaraghuvanshi",
"html_url": "https://github.com/savitaraghuvanshi",
"followers_url": "https://api.github.com/users/savitaraghuvanshi/followers",
"following_url": "https://api.github.com/users/savitaraghuvanshi/following{/other_user}",
"gists_url": "https://api.github.com/users/savitaraghuvanshi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/savitaraghuvanshi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/savitaraghuvanshi/subscriptions",
"organizations_url": "https://api.github.com/users/savitaraghuvanshi/orgs",
"repos_url": "https://api.github.com/users/savitaraghuvanshi/repos",
"events_url": "https://api.github.com/users/savitaraghuvanshi/events{/privacy}",
"received_events_url": "https://api.github.com/users/savitaraghuvanshi/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 | 3 | 2023-11-25T00:45:36 | 2023-12-02T15:37:41 | null | NONE | null | Please help , I am blocked on it from many days .
**I am trying to filter question of answer from pdf doc based on uploaded email filter . Only if email match happen answer the question from that document else just empty .
I tried following code its not working rather even in case of OTHER email id also it give answer from my email uploaded document which is wrong , seems like filtering not working .**
First i tried by putting email as metadata it did not work then i added as independent email field its not working there either .
I am instantiating vector store like below , it has email field in it . I am able to create and successfully able to upload pdf doc with all the fields including email is populated . I checked created index and email field is filterable , searchable .
- Creating azure instance as below :
`
`self.vector_store = AzureSearch(azure_search_endpoint=endpoint, azure_search_key=admin_key, index_name=index_name, embedding_function=embedding_function,fields=fields)`
- After doc uploaded as shown below it has email in it .
```
"@odata.context": "https://ops-documents.search.windows.net/indexes('index-new-5')/$metadata#docs(*)",
"value": [
{
"@search.score": 1,
"id": "NjQ1YWViNWQtNDJkNy00NTcxLTlkMTktMDIzZTc0NTZlNDhm",
"content": "ICAO TRIP 2023 – .",
"metadata": "{\"source\": \"7-pl\", \"page\": 7, \"file_id\": \"65612fd773a9aa51a0939c96\", \"upload_document_name\": \"SITA Lab Furhat Backoffice IMM officer Dialog - v1.pdf\", \"email\": \"savita.raghuvanshi@st.com\", \"company\": \"sita\"}",
"email": "savita.raghuvanshi@st.com"
```
-
- Using following way to search :
```
my_retriever = self.vector_store.as_retriever(search_kwargs={'filter': { 'email': email }})
qa = RetrievalQA.from_chain_type(llm=self.llm,chain_type="stuff",retriever=my_retriever,chain_type_kwargs={"prompt": self.PROMPT},
return_source_documents=True,
)
results = qa({"query": question})
```
```
Installations using as :
**I am using OPENAI_API_VERSION="2023-10-01-preview" with gpt4 model**
azure-common==1.1.28
azure-core==1.29.5
azure-identity==1.15.0
azure-search==1.0.0b2
azure-search-documents==11.4.0b8
langchain==0.0.326
```
Kindly let me know if anything needed from me . Thanks so much for your help . | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13833/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13833/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13832 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13832/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13832/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13832/events | https://github.com/langchain-ai/langchain/pull/13832 | 2,010,387,805 | PR_kwDOIPDwls5gV7QT | 13,832 | Added title metadata to GoogleDriveLoader for optional File Loaders | {
"login": "raelix",
"id": 3819481,
"node_id": "MDQ6VXNlcjM4MTk0ODE=",
"avatar_url": "https://avatars.githubusercontent.com/u/3819481?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/raelix",
"html_url": "https://github.com/raelix",
"followers_url": "https://api.github.com/users/raelix/followers",
"following_url": "https://api.github.com/users/raelix/following{/other_user}",
"gists_url": "https://api.github.com/users/raelix/gists{/gist_id}",
"starred_url": "https://api.github.com/users/raelix/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raelix/subscriptions",
"organizations_url": "https://api.github.com/users/raelix/orgs",
"repos_url": "https://api.github.com/users/raelix/repos",
"events_url": "https://api.github.com/users/raelix/events{/privacy}",
"received_events_url": "https://api.github.com/users/raelix/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": 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-25T00:40:52 | 2023-11-25T02:53:55 | 2023-11-25T02:53:55 | CONTRIBUTOR | null | - **Description:** Simple change, I just added title metadata to GoogleDriveLoader for optional File Loaders
- **Dependencies:** no dependencies
- **Tag maintainer:** @hwchase17 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13832/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13832/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13832",
"html_url": "https://github.com/langchain-ai/langchain/pull/13832",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13832.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13832.patch",
"merged_at": "2023-11-25T02:53:55"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13831 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13831/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13831/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13831/events | https://github.com/langchain-ai/langchain/pull/13831 | 2,010,383,961 | PR_kwDOIPDwls5gV6Xy | 13,831 | docs: `Hugging Face` platform page | {
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"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": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
] | null | 4 | 2023-11-25T00:36:15 | 2023-12-03T20:28:11 | 2023-12-03T19:06:43 | COLLABORATOR | null | `Hugging Face` is definitely a platform. It includes many integrations for many modules (LLM, Embedding, DocumentLoader, Tool)
So, a doc page was added that defines Hugging Face as a platform.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13831/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13831/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13831",
"html_url": "https://github.com/langchain-ai/langchain/pull/13831",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13831.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13831.patch",
"merged_at": "2023-12-03T19:06:43"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13830 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13830/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13830/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13830/events | https://github.com/langchain-ai/langchain/issues/13830 | 2,010,379,993 | I_kwDOIPDwls530_bZ | 13,830 | Unable to implement memory in RAG agent, asking for chat_history | {
"login": "burberg92",
"id": 78668495,
"node_id": "MDQ6VXNlcjc4NjY4NDk1",
"avatar_url": "https://avatars.githubusercontent.com/u/78668495?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/burberg92",
"html_url": "https://github.com/burberg92",
"followers_url": "https://api.github.com/users/burberg92/followers",
"following_url": "https://api.github.com/users/burberg92/following{/other_user}",
"gists_url": "https://api.github.com/users/burberg92/gists{/gist_id}",
"starred_url": "https://api.github.com/users/burberg92/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/burberg92/subscriptions",
"organizations_url": "https://api.github.com/users/burberg92/orgs",
"repos_url": "https://api.github.com/users/burberg92/repos",
"events_url": "https://api.github.com/users/burberg92/events{/privacy}",
"received_events_url": "https://api.github.com/users/burberg92/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": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
}
] | open | false | null | [] | null | 1 | 2023-11-25T00:31:32 | 2023-11-25T00:35:58 | null | NONE | null | ### Issue you'd like to raise.
Hi I am trying to implement memory in an RAG agent and am following documentation, but I get the following error:
ValueError: variable chat_history should be a list of base messages, got
It seems that I should be passing in a chat_history, but all the notebook examples I have seen only pass the question. I have seen some implementations use initialize_agent(), while others use AgentExecutor(). Any help on how to implement memory with the agent would be greatly appreciated.
this is my implementation:
```from langchain.vectorstores import Pinecone
from langchain.llms import Cohere
from langchain.retrievers.multi_query import MultiQueryRetriever
from langchain.prompts import PromptTemplate
import logging
from langchain.chains import LLMChain, ConversationChain
from langchain.chains.conversation.memory import ConversationBufferWindowMemory
from langchain.chains import RetrievalQA
from langchain.agents import Tool
from langchain.retrievers import ContextualCompressionRetriever
from langchain.retrievers.document_compressors import CohereRerank
index = pinecone.Index(index_name)
vectorstore = Pinecone(index, embeddings, "text")
llm = Cohere(cohere_api_key=cohere_api_key)
retriever_from_llm = MultiQueryRetriever.from_llm(
retriever=vectorstore.as_retriever(search_kwargs={"k": 10,
'filter': {'user_id_str': '42',
'internal_mydocai_id_str': {"$in":["4", "5"]}}}), llm=llm
)
from langchain.prompts import PromptTemplate
QUERY_PROMPT = PromptTemplate(
input_variables=["question"],
template="""You are an AI language model assistant. Your task is to output the original query and four
different versions of the given user query to retrieve relevant documents from a vector
database. By generating multiple perspectives on the user question, your goal is to help
the user overcome some of the limitations of the distance-based similarity search, while staying in the scope of the original question.
Provide the original query and the alternative questions separated by newlines. Do not output anything else.
Original question: {question}""",
)
logging.basicConfig()
logging.getLogger("langchain.retrievers.multi_query").setLevel(logging.INFO)
compressor = CohereRerank(model= "rerank-multilingual-v2.0", cohere_api_key=cohere_api_key, client=co, user_agent="mydocument", top_n=5
)
compression_retriever = ContextualCompressionRetriever(
base_compressor=compressor, base_retriever=retriever_from_llm
)
compressed_docs = compression_retriever.get_relevant_documents(
question
memory = ConversationBufferWindowMemory(k=2, memory_key="chat_history", input_key='input', output_key="output")
# retrieval qa chain
qa = RetrievalQA.from_chain_type(
llm=llm,
chain_type="stuff",
retriever=compression_retriever,
)
tools = [
Tool(
name='Knowledge Base',
func=qa.run,
description=(
'use this tool when answering general knowledge queries to get '
'more information about the topic'
)
)
]
agent = initialize_agent(
agent='chat-conversational-react-description',
tools=tools,
llm=llm,
verbose=True,
max_iterations=3,
early_stopping_method='generate',
memory=memory
)
agent(question)
```
Error:
```
ValueError: variable chat_history should be a list of base messages, got
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13830/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13830/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13829 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13829/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13829/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13829/events | https://github.com/langchain-ai/langchain/pull/13829 | 2,010,368,152 | PR_kwDOIPDwls5gV2wi | 13,829 | BUGFIX: Import types and typevars from core | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"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."
}
] | closed | false | null | [] | null | 1 | 2023-11-25T00:18:34 | 2023-11-25T01:04:12 | 2023-11-25T01:04:11 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13829/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13829/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13829",
"html_url": "https://github.com/langchain-ai/langchain/pull/13829",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13829.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13829.patch",
"merged_at": "2023-11-25T01:04:11"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13828 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13828/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13828/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13828/events | https://github.com/langchain-ai/langchain/pull/13828 | 2,010,334,066 | PR_kwDOIPDwls5gVuzB | 13,828 | Simplified Docugami cookbook to remove code now available in docugami library | {
"login": "tjaffri",
"id": 749277,
"node_id": "MDQ6VXNlcjc0OTI3Nw==",
"avatar_url": "https://avatars.githubusercontent.com/u/749277?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tjaffri",
"html_url": "https://github.com/tjaffri",
"followers_url": "https://api.github.com/users/tjaffri/followers",
"following_url": "https://api.github.com/users/tjaffri/following{/other_user}",
"gists_url": "https://api.github.com/users/tjaffri/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tjaffri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tjaffri/subscriptions",
"organizations_url": "https://api.github.com/users/tjaffri/orgs",
"repos_url": "https://api.github.com/users/tjaffri/repos",
"events_url": "https://api.github.com/users/tjaffri/events{/privacy}",
"received_events_url": "https://api.github.com/users/tjaffri/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": 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-24T23:48:06 | 2023-11-27T08:07:25 | 2023-11-27T08:07:25 | CONTRIBUTOR | null | The cookbook had some code to upload files, and wait for the processing to finish.
This code is now moved to the `docugami` library so removing from the cookbook to simplify.
Thanks @rlancemartin for suggesting this when working on evals. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13828/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13828/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13828",
"html_url": "https://github.com/langchain-ai/langchain/pull/13828",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13828.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13828.patch",
"merged_at": "2023-11-27T08:07:25"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13827 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13827/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13827/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13827/events | https://github.com/langchain-ai/langchain/pull/13827 | 2,010,262,562 | PR_kwDOIPDwls5gVlZS | 13,827 | Multitenant adddocs | {
"login": "jeremyb-data",
"id": 113480651,
"node_id": "U_kgDOBsOTyw",
"avatar_url": "https://avatars.githubusercontent.com/u/113480651?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremyb-data",
"html_url": "https://github.com/jeremyb-data",
"followers_url": "https://api.github.com/users/jeremyb-data/followers",
"following_url": "https://api.github.com/users/jeremyb-data/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremyb-data/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremyb-data/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremyb-data/subscriptions",
"organizations_url": "https://api.github.com/users/jeremyb-data/orgs",
"repos_url": "https://api.github.com/users/jeremyb-data/repos",
"events_url": "https://api.github.com/users/jeremyb-data/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremyb-data/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 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-24T22:34:08 | 2023-11-27T21:01:56 | 2023-11-27T20:59:57 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** Added a line to pass the tenant parameter to add_data_object
- **Issue:** An extra line added from the fix for #9956
- **Dependencies:** n/a
- **Tag maintainer:** @baskaryan
Tested locally, works as expected with the line change. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13827/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13827/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13827",
"html_url": "https://github.com/langchain-ai/langchain/pull/13827",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13827.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13827.patch",
"merged_at": "2023-11-27T20:59:57"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13826 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13826/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13826/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13826/events | https://github.com/langchain-ai/langchain/issues/13826 | 2,010,243,906 | I_kwDOIPDwls530eNC | 13,826 | Langchain Database Agent with local LLM | {
"login": "dinonovak",
"id": 18152490,
"node_id": "MDQ6VXNlcjE4MTUyNDkw",
"avatar_url": "https://avatars.githubusercontent.com/u/18152490?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dinonovak",
"html_url": "https://github.com/dinonovak",
"followers_url": "https://api.github.com/users/dinonovak/followers",
"following_url": "https://api.github.com/users/dinonovak/following{/other_user}",
"gists_url": "https://api.github.com/users/dinonovak/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dinonovak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dinonovak/subscriptions",
"organizations_url": "https://api.github.com/users/dinonovak/orgs",
"repos_url": "https://api.github.com/users/dinonovak/repos",
"events_url": "https://api.github.com/users/dinonovak/events{/privacy}",
"received_events_url": "https://api.github.com/users/dinonovak/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 4 | 2023-11-24T21:49:25 | 2023-11-29T21:21:35 | null | NONE | null | I am using local LLM with langchain: openhermes-2.5-mistral-7b.Q8_0.gguf
When using database agent this is how I am initiating things:
`db = SQLDatabase.from_uri(sql_uri)
model_path = "./openhermes-2.5-mistral-7b.Q8_0.gguf"
n_gpu_layers = 1 # Change this value based on your model and your GPU VRAM pool.
n_batch = 512 # Should be between 1 and n_ctx, consider the amount of VRAM in your GPU.
n_ctx=50000
callback_manager = CallbackManager([StreamingStdOutCallbackHandler()])
llm = LlamaCpp(
model_path=model_path,
#temperature=0,
n_gpu_layers=n_gpu_layers, n_batch=n_batch,
n_ctx=n_ctx,
callback_manager=callback_manager,
verbose=True,
)
#toolkit = CustomSQLDatabaseToolkit(db=db, llm=llm)
toolkit = SQLDatabaseToolkit(db=db, llm=llm)
toolkit.get_tools()
PREFIX = '''You are a SQL expert. You have access to a Microsoft SQL Server database.
Identify which tables can be used to answer the user's question and write and execute a SQL query accordingly.
'''
FORMAT_INSTRUCTIONS = """RESPONSE FORMAT INSTRUCTIONS
----------------------------
When responding please, please output a response in this format:
thought: Reason about what action to take next, and whether to use a tool.
action: The tool to use. Must be one of: {tool_names}
action_input: The input to the tool
For example:
thought: I need to get all tables from database
action: sql_db_list_tables
action_input: Empty string
"""
agent_executor = create_sql_agent(
llm=llm,
toolkit=toolkit,
agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
verbose=True,
handle_parsing_errors=True,
agent_kwargs={
'prefix': PREFIX,
'format_instructions': FORMAT_INSTRUCTIONS,
}
)
now = datetime.datetime.now()
print("Starting executor : ")
print(now.strftime("%Y-%m-%d %H:%M:%S"))
agent_executor.run("Who is oldest user")`
When Entering chain I usually get error "Could not parse LLM output" as despite the instructions Action Input part is not created by LLM.
> Entering new AgentExecutor chain...
Action: sql_db_list_tables
Traceback (most recent call last):
File "/Users/dino/Codings/python/LLM_test1/.venv/lib/python3.9/site-packages/langchain/agents/agent.py", line 1032, in _take_next_step
output = self.agent.plan(
File "/Users/dino/Codings/python/LLM_test1/.venv/lib/python3.9/site-packages/langchain/agents/agent.py", line 636, in plan
return self.output_parser.parse(full_output)
File "/Users/dino/Codings/python/LLM_test1/.venv/lib/python3.9/site-packages/langchain/agents/mrkl/output_parser.py", line 70, in parse
raise OutputParserException(
langchain.schema.output_parser.OutputParserException: Could not parse LLM output: `Action: sql_db_list_tables`
Any Idea how to fix this ? | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13826/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13826/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13825 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13825/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13825/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13825/events | https://github.com/langchain-ai/langchain/issues/13825 | 2,010,209,501 | I_kwDOIPDwls530Vzd | 13,825 | getting an error with DallEAPIWrapper | {
"login": "IgorianKiselev02",
"id": 51312865,
"node_id": "MDQ6VXNlcjUxMzEyODY1",
"avatar_url": "https://avatars.githubusercontent.com/u/51312865?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/IgorianKiselev02",
"html_url": "https://github.com/IgorianKiselev02",
"followers_url": "https://api.github.com/users/IgorianKiselev02/followers",
"following_url": "https://api.github.com/users/IgorianKiselev02/following{/other_user}",
"gists_url": "https://api.github.com/users/IgorianKiselev02/gists{/gist_id}",
"starred_url": "https://api.github.com/users/IgorianKiselev02/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/IgorianKiselev02/subscriptions",
"organizations_url": "https://api.github.com/users/IgorianKiselev02/orgs",
"repos_url": "https://api.github.com/users/IgorianKiselev02/repos",
"events_url": "https://api.github.com/users/IgorianKiselev02/events{/privacy}",
"received_events_url": "https://api.github.com/users/IgorianKiselev02/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 | 3 | 2023-11-24T20:46:33 | 2023-11-27T03:09:19 | null | NONE | null | ### System Info
Hello! I got this error while trying to run code from [docs](https://python.langchain.com/docs/integrations/tools/dalle_image_generator).
I have Python 3.11.3, openai 1.3.5 and langchain 0.0.340 .
```
You tried to access openai.Image, 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
```
### 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
Write code from [docs](https://python.langchain.com/docs/integrations/tools/dalle_image_generator) and run it using python3.
```python
from langchain.chains import LLMChain
from langchain.llms import OpenAI
from langchain.prompts import PromptTemplate
from langchain.utilities.dalle_image_generator import DallEAPIWrapper
llm = OpenAI(temperature=0.9)
prompt = PromptTemplate(
input_variables=["image_desc"],
template="Generate a detailed prompt to generate an image based on the following description: {image_desc}",
)
chain = LLMChain(llm=llm, prompt=prompt)
image_url = DallEAPIWrapper().run(chain.run("halloween night at a haunted museum"))
print(image_url)
```
### Expected behavior
get an image url | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13825/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13825/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13824 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13824/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13824/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13824/events | https://github.com/langchain-ai/langchain/pull/13824 | 2,010,185,730 | PR_kwDOIPDwls5gVVDa | 13,824 | add more imports | {
"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": 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 | 2 | 2023-11-24T20:16:56 | 2023-11-25T01:04:25 | 2023-11-25T01:04:24 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13824/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13824/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13824",
"html_url": "https://github.com/langchain-ai/langchain/pull/13824",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13824.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13824.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13822 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13822/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13822/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13822/events | https://github.com/langchain-ai/langchain/pull/13822 | 2,010,165,192 | PR_kwDOIPDwls5gVQpA | 13,822 | Split out langchain-anthropic | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"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-24T19:45:47 | 2023-11-27T23:38:04 | 2023-11-27T23:38:03 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13822/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13822/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13822",
"html_url": "https://github.com/langchain-ai/langchain/pull/13822",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13822.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13822.patch",
"merged_at": "2023-11-27T23:38:03"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13821 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13821/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13821/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13821/events | https://github.com/langchain-ai/langchain/issues/13821 | 2,010,029,887 | I_kwDOIPDwls53zp8_ | 13,821 | Is it possible to switch language models if the ms in the first model is large? | {
"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 | 2 | 2023-11-24T17:25:34 | 2023-11-24T17:42:20 | null | NONE | null | ### Issue you'd like to raise.
My ChatOpenAI usually takes a response time of 1000 ms. I want the model to switch to either GooglePalm or some other language model when the response time of ChatOpenAI is large. Is it possible?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13821/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13821/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13820 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13820/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13820/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13820/events | https://github.com/langchain-ai/langchain/pull/13820 | 2,009,994,395 | PR_kwDOIPDwls5gUq3C | 13,820 | Adds the Yellowbrick Data Warehouse as a supported vector store | {
"login": "markcusack",
"id": 6406557,
"node_id": "MDQ6VXNlcjY0MDY1NTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/6406557?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/markcusack",
"html_url": "https://github.com/markcusack",
"followers_url": "https://api.github.com/users/markcusack/followers",
"following_url": "https://api.github.com/users/markcusack/following{/other_user}",
"gists_url": "https://api.github.com/users/markcusack/gists{/gist_id}",
"starred_url": "https://api.github.com/users/markcusack/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/markcusack/subscriptions",
"organizations_url": "https://api.github.com/users/markcusack/orgs",
"repos_url": "https://api.github.com/users/markcusack/repos",
"events_url": "https://api.github.com/users/markcusack/events{/privacy}",
"received_events_url": "https://api.github.com/users/markcusack/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 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-24T16:52:12 | 2023-12-11T10:08:12 | 2023-12-03T21:35:53 | CONTRIBUTOR | null | - **Description** An integration to allow the Yellowbrick Data Warehouse to function as a vector store | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13820/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13820/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13820",
"html_url": "https://github.com/langchain-ai/langchain/pull/13820",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13820.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13820.patch",
"merged_at": "2023-12-03T21:35:53"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13819 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13819/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13819/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13819/events | https://github.com/langchain-ai/langchain/pull/13819 | 2,009,890,088 | PR_kwDOIPDwls5gUUL6 | 13,819 | Add *LCEL* Transformers | {
"login": "pprados",
"id": 204694,
"node_id": "MDQ6VXNlcjIwNDY5NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pprados",
"html_url": "https://github.com/pprados",
"followers_url": "https://api.github.com/users/pprados/followers",
"following_url": "https://api.github.com/users/pprados/following{/other_user}",
"gists_url": "https://api.github.com/users/pprados/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pprados/subscriptions",
"organizations_url": "https://api.github.com/users/pprados/orgs",
"repos_url": "https://api.github.com/users/pprados/repos",
"events_url": "https://api.github.com/users/pprados/events{/privacy}",
"received_events_url": "https://api.github.com/users/pprados/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 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-24T15:22:21 | 2023-12-20T13:35:43 | null | CONTRIBUTOR | null | **Description:**
Langchain introduces the `BaseDocumentTransformer` interface for document transformation, featuring two abstract methods:
- `def transform_documents(self, documents: Sequence[Document], **kwargs: Any) -> Sequence[Document]`
- `async def atransform_documents(self, documents: Sequence[Document], **kwargs: Any) -> Sequence[Document]`
However, this interface lacks compatibility with **LCEL**.
Document transformation can vary in speed, from quick processes like text splitting to more extensive processes such as generating document summaries, translation via `DoctranTextTranslator`, and creating questions. Introducing an asynchronous lazy approach for transformations would be advantageous, facilitating use in streams and reducing memory consumption.
Furthermore, making all this compatible with **LCEL** presents an opportunity. The proposed solution involves an incremental approach. The initial step is to introduce a new, asynchronous, and lazy LCEL-compatible interface. Subsequently, all existing transformations (21 classes) would migrate to this new interface.
The `RunnableGeneratorDocumentTransformer` interface, derived from `RunnableSerializable` and `BaseDocumentTransformer`, offers two new methods:
- `lazy_transform_documents()`
- `alazy_transform_documents()`
This class aims to replace `BaseDocumentTransformer`.
These methods are generators, possibly asynchronous (`AsyncIterator[Document]`). The default implementations of `transform_documents()` and `atransform_documents()` use the lazy versions internally to maintain compatibility with streams.
A new version of `TextSplitter` and `CharacterTextSplitter` is proposed to demonstrate modifying the current transformer code to accommodate the new interface. (See `unit_test/document_transformers/new_text_splitter.py` and `unit_test/document_transformers/test_new_text_splitter.py`).
The update enables a series of transformations:
```python
runnable = (CharacterTextSplitter(...) | TokenTextSplitter(...))
transformed = list(runnable.invoke([doc1, doc2]))
```
The addition of the `+` operator allows multiple transformations for the same inputs:
```python
runnable = (CharacterTextSplitter(...) + TokenTextSplitter(...))
transformed = list(runnable.invoke([doc1, doc2]))
```
Operators can be combined:
```python
runnable = (UpperTransformer(...) + CharacterTextSplitter(...) |
TokenTextSplitter(...))
transformed = list(runnable.invoke([doc1, doc2]))
```
Currently, only the unit tests provide examples of transformations.
If this proposal is accepted, the plan is to refactor all *Transformer* implementations to make them compatible with a lazy, asynchronous, and *LCEL-compatible* approach. This will be undertaken post-integration into the **master** branch. Refer to the tests `test_lcel_transform_documents()` and `test_alcel_transform_documents()`.
**Why is the lazy approach important?**
Consider an API retrieving a URL from a client, responsible for fetching all documents and importing them into a vector store. Applying three transformations to each fragment (via `ParentDocumentRetriever`), the current code will consume excessive memory. In contrast, a lazy approach significantly reduces memory requirements, making it feasible to respond to multiple users simultaneously without a memory-intensive instance.
To improve the proximity of each piece, the
code applies three transformations to each fragment (via `ParentDocumentRetriever`):
- a summary,
- the generation of 3 questions,
- and translation into French.
With the current langchain API, the code will :
- retrieve 10 PDF files of 200 pages,
- split them into 10-page fragments (i.e. 200+20*10 pages in memory)
- Produce 5 versions of each fragment (i.e. 200+(20*10)*4= 1000 pages in memory)
- then save the fragments in the vector store 1000 pages + 1000 texts to import
The same scenario with a lazy approach translates as follows:
- Retrieve a lazy file one file at a time (Loader.lazy_load(); 200 pages in memory)
- Split the file into lazy files ( 200 pages + 1 fragment)
- For each fragment, produce 5 versions (200 pages + 1 fragment + 1 variation)
- Then save the fragments in the vectorstore
The maximum memory footprint is : 1 document, 1 fragment, 1 variation.
**Transformers benefiting from the async lazy approach:**
- `DoctranQATransformer`
- `DoctranTextTranslator`
- `OpenAIMetadataTagger`
- `DoctranPropertyExtractor`
- `NucliaTextTransformer`
- `GoogleTranslateTransformer`
Transformers less suited at this stage are those primarily working in memory:
- `LongContextReorder`
- `EmbeddingsRedundantFilter`
- `EmbeddingsClusteringFilter`
- `Html2TextTransformer`
- All `TextSplitter`
**Preliminary Step for Another Pull-Request:**
This proposal serves as a preliminary step for another pull-request, offering a better implementation of `ParentDocumentRetriever`. Refer to [langchain-rag](https://github.com/pprados/langchain-rag).
**Issue:**
- `BaseDocumentTransformer` is incompatible with a stream.
- `BaseDocumentTransformer` is not LCEL-compatible.
- The current API consumes excessive memory in many online scenarios.
**Dependencies:**
No dependencies.
**Tag maintainer:**
@baskaryan
**Twitter handle:**
Twitter ID: pprados
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13819/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13819/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13819",
"html_url": "https://github.com/langchain-ai/langchain/pull/13819",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13819.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13819.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13818 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13818/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13818/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13818/events | https://github.com/langchain-ai/langchain/pull/13818 | 2,009,861,046 | PR_kwDOIPDwls5gUN2d | 13,818 | fix chat prompt loading from config | {
"login": "umair313",
"id": 12728453,
"node_id": "MDQ6VXNlcjEyNzI4NDUz",
"avatar_url": "https://avatars.githubusercontent.com/u/12728453?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/umair313",
"html_url": "https://github.com/umair313",
"followers_url": "https://api.github.com/users/umair313/followers",
"following_url": "https://api.github.com/users/umair313/following{/other_user}",
"gists_url": "https://api.github.com/users/umair313/gists{/gist_id}",
"starred_url": "https://api.github.com/users/umair313/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/umair313/subscriptions",
"organizations_url": "https://api.github.com/users/umair313/orgs",
"repos_url": "https://api.github.com/users/umair313/repos",
"events_url": "https://api.github.com/users/umair313/events{/privacy}",
"received_events_url": "https://api.github.com/users/umair313/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": 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 | 3 | 2023-11-24T15:00:30 | 2023-12-06T06:45:54 | 2023-11-27T16:39:50 | CONTRIBUTOR | null | Add loader for loading chat prompt from config file.
fixed: #13667
@efriis
@baskaryan | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13818/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13818/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13818",
"html_url": "https://github.com/langchain-ai/langchain/pull/13818",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13818.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13818.patch",
"merged_at": "2023-11-27T16:39:50"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13817 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13817/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13817/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13817/events | https://github.com/langchain-ai/langchain/pull/13817 | 2,009,822,683 | PR_kwDOIPDwls5gUFc9 | 13,817 | chore: typo | {
"login": "jiangying000",
"id": 23182033,
"node_id": "MDQ6VXNlcjIzMTgyMDMz",
"avatar_url": "https://avatars.githubusercontent.com/u/23182033?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jiangying000",
"html_url": "https://github.com/jiangying000",
"followers_url": "https://api.github.com/users/jiangying000/followers",
"following_url": "https://api.github.com/users/jiangying000/following{/other_user}",
"gists_url": "https://api.github.com/users/jiangying000/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jiangying000/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jiangying000/subscriptions",
"organizations_url": "https://api.github.com/users/jiangying000/orgs",
"repos_url": "https://api.github.com/users/jiangying000/repos",
"events_url": "https://api.github.com/users/jiangying000/events{/privacy}",
"received_events_url": "https://api.github.com/users/jiangying000/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": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"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-24T14:33:16 | 2023-11-28T00:06:39 | 2023-11-27T20:59:12 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13817/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13817/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13817",
"html_url": "https://github.com/langchain-ai/langchain/pull/13817",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13817.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13817.patch",
"merged_at": "2023-11-27T20:59:12"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13816 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13816/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13816/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13816/events | https://github.com/langchain-ai/langchain/issues/13816 | 2,009,801,860 | I_kwDOIPDwls53yySE | 13,816 | URL Lib error doesn't get resolved. | {
"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": 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-24T14:18:22 | 2023-11-24T14:24:40 | null | NONE | null | ### Issue you'd like to raise.
I have the following piece of code:
openai_llm = ChatOpenAI(model_name='gpt-3.5-turbo-1106', streaming=True, callbacks=[StreamingStdOutCallbackHandler()],
temperature=0.5, max_retries=0)
I still keep getting this error:
urllib3.util.retry:Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
I tried everything. nothing is working at this point. I dont want the Retries to happen. I have fallback models but they aren't being utilized.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13816/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13816/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13815 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13815/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13815/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13815/events | https://github.com/langchain-ai/langchain/pull/13815 | 2,009,786,232 | PR_kwDOIPDwls5gT9de | 13,815 | Update openai/create_llm_result function to consider kwargs | {
"login": "darktheorys",
"id": 44052817,
"node_id": "MDQ6VXNlcjQ0MDUyODE3",
"avatar_url": "https://avatars.githubusercontent.com/u/44052817?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/darktheorys",
"html_url": "https://github.com/darktheorys",
"followers_url": "https://api.github.com/users/darktheorys/followers",
"following_url": "https://api.github.com/users/darktheorys/following{/other_user}",
"gists_url": "https://api.github.com/users/darktheorys/gists{/gist_id}",
"starred_url": "https://api.github.com/users/darktheorys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/darktheorys/subscriptions",
"organizations_url": "https://api.github.com/users/darktheorys/orgs",
"repos_url": "https://api.github.com/users/darktheorys/repos",
"events_url": "https://api.github.com/users/darktheorys/events{/privacy}",
"received_events_url": "https://api.github.com/users/darktheorys/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"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-24T14:07:11 | 2023-11-29T03:02:38 | 2023-11-29T03:02:38 | CONTRIBUTOR | null | Replace this entire comment with:
- **Description:** updates `create_llm_result` function within `openai.py` to consider latest `params`,
- **Issue:** #8928
- **Dependencies:** -,
- **Tag maintainer:** -
- **Twitter handle:** [burkomr](https://twitter.com/burkomr)
<!-- 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/13815/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13815/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13815",
"html_url": "https://github.com/langchain-ai/langchain/pull/13815",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13815.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13815.patch",
"merged_at": "2023-11-29T03:02:38"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13814 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13814/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13814/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13814/events | https://github.com/langchain-ai/langchain/issues/13814 | 2,009,773,400 | I_kwDOIPDwls53yrVY | 13,814 | How to mount the custom Retry class with 0 retries to improve Fallbacks? | {
"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": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] | closed | false | null | [] | null | 1 | 2023-11-24T13:58:05 | 2023-11-24T15:15:47 | 2023-11-24T15:15:47 | NONE | null | ### Issue you'd like to raise.
I've written this code to make sure that the max_retries count is 0. Even though I set that value in my LLM instance, It doesn't work. So I've decided to create a Custom WebBaseLoader. But I'm stuck on how to mount it and make sure that it works.
would appreciate any help!
`class CustomWebBaseLoader(WebBaseLoader):
def __init__(
self,
# ...
) -> None:
# ...
if session:
self.session = session
else:
session = requests.Session()
# ...
# Set the retry configuration for the session
retries = Retry(total=0, backoff_factor=1, status_forcelist=[500, 502, 503, 504])
session.mount('http://', HTTPAdapter(max_retries=retries))
session.mount('https://', HTTPAdapter(max_retries=retries))
# ...
self.session = session
# ...
`
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13814/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13814/timeline | null | not_planned | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13812 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13812/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13812/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13812/events | https://github.com/langchain-ai/langchain/pull/13812 | 2,009,595,307 | PR_kwDOIPDwls5gTTpW | 13,812 | Adds progress bar to GooglePalmEmbeddings | {
"login": "ugm2",
"id": 25923343,
"node_id": "MDQ6VXNlcjI1OTIzMzQz",
"avatar_url": "https://avatars.githubusercontent.com/u/25923343?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ugm2",
"html_url": "https://github.com/ugm2",
"followers_url": "https://api.github.com/users/ugm2/followers",
"following_url": "https://api.github.com/users/ugm2/following{/other_user}",
"gists_url": "https://api.github.com/users/ugm2/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ugm2/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ugm2/subscriptions",
"organizations_url": "https://api.github.com/users/ugm2/orgs",
"repos_url": "https://api.github.com/users/ugm2/repos",
"events_url": "https://api.github.com/users/ugm2/events{/privacy}",
"received_events_url": "https://api.github.com/users/ugm2/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": 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 | 4 | 2023-11-24T11:48:20 | 2023-11-29T09:58:54 | 2023-11-29T09:58:54 | CONTRIBUTOR | null | - **Description:** Adds a tqdm progress bar to GooglePalmEmbeddings when embedding a list.
- **Issue:** #13637
- **Dependencies:** TQDM as a main dependency (instead of extra)
Signed-off-by: ugm2 <unaigaraymaestre@gmail.com> | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13812/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13812/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13812",
"html_url": "https://github.com/langchain-ai/langchain/pull/13812",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13812.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13812.patch",
"merged_at": "2023-11-29T09:58:53"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13811 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13811/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13811/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13811/events | https://github.com/langchain-ai/langchain/issues/13811 | 2,009,558,007 | I_kwDOIPDwls53x2v3 | 13,811 | Urllib3 retry error fix with fallbacks. | {
"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": 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-24T11:20:31 | 2023-11-24T13:57:24 | 2023-11-24T13:54:34 | NONE | null | ### Issue you'd like to raise.
Hi, I was recently trying to implement Fallbacks into my system but I've realized that even though there are other models that can be hit if there is a failure, I've noticed that this isn't happening. I tried to Debug it and this is the error I see. I keep getting this error even though the max retries value is 0
openai_llm = ChatOpenAI(model_name='gpt-3.5-turbo-1106', streaming=True, callbacks=[StreamingStdOutCallbackHandler()],
temperature=0.5, max_retries=0)
Error:
DEBUG:urllib3.util.retry:Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
The model takes forever to respond. is there a fix for this?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13811/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13811/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13810 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13810/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13810/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13810/events | https://github.com/langchain-ai/langchain/pull/13810 | 2,009,489,230 | PR_kwDOIPDwls5gS8fS | 13,810 | Seperator should be added at the end of each split | {
"login": "pushpendradahiya",
"id": 30529121,
"node_id": "MDQ6VXNlcjMwNTI5MTIx",
"avatar_url": "https://avatars.githubusercontent.com/u/30529121?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pushpendradahiya",
"html_url": "https://github.com/pushpendradahiya",
"followers_url": "https://api.github.com/users/pushpendradahiya/followers",
"following_url": "https://api.github.com/users/pushpendradahiya/following{/other_user}",
"gists_url": "https://api.github.com/users/pushpendradahiya/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pushpendradahiya/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pushpendradahiya/subscriptions",
"organizations_url": "https://api.github.com/users/pushpendradahiya/orgs",
"repos_url": "https://api.github.com/users/pushpendradahiya/repos",
"events_url": "https://api.github.com/users/pushpendradahiya/events{/privacy}",
"received_events_url": "https://api.github.com/users/pushpendradahiya/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": 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."
}
] | open | false | null | [] | null | 2 | 2023-11-24T10:32:48 | 2023-11-27T19:56:31 | null | NONE | null | - **Description:** Seperator should be added at the end of each split,
- **Issue:** None,
- **Dependencies:** None,
- **Twitter handle:** pushpndr | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13810/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13810/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13810",
"html_url": "https://github.com/langchain-ai/langchain/pull/13810",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13810.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13810.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13809 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13809/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13809/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13809/events | https://github.com/langchain-ai/langchain/issues/13809 | 2,009,473,024 | I_kwDOIPDwls53xiAA | 13,809 | Urllib Retry error help. | {
"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": 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-24T10:21:56 | 2023-11-24T11:19:25 | 2023-11-24T11:19:25 | NONE | null | ### Issue you'd like to raise.
Hi, I was recently trying to implement Fallbacks into my system but I've realized that even though there are other models that can be hit if there is a failure, I've noticed that this isn't happening. I tried to Debug it and this is the error I see. I keep getting this error even though the max retries value is 0
openai_llm = ChatOpenAI(model_name='gpt-3.5-turbo-1106', streaming=True, callbacks=[StreamingStdOutCallbackHandler()],
temperature=0.5, max_retries=0)
Error:
DEBUG:urllib3.util.retry:Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
The model takes forever to respond. is there a fix for this?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13809/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13809/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13808 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13808/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13808/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13808/events | https://github.com/langchain-ai/langchain/issues/13808 | 2,009,434,445 | I_kwDOIPDwls53xYlN | 13,808 | Issue: how to compute perplexity score during inference? | {
"login": "michel-m",
"id": 2655039,
"node_id": "MDQ6VXNlcjI2NTUwMzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/2655039?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/michel-m",
"html_url": "https://github.com/michel-m",
"followers_url": "https://api.github.com/users/michel-m/followers",
"following_url": "https://api.github.com/users/michel-m/following{/other_user}",
"gists_url": "https://api.github.com/users/michel-m/gists{/gist_id}",
"starred_url": "https://api.github.com/users/michel-m/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michel-m/subscriptions",
"organizations_url": "https://api.github.com/users/michel-m/orgs",
"repos_url": "https://api.github.com/users/michel-m/repos",
"events_url": "https://api.github.com/users/michel-m/events{/privacy}",
"received_events_url": "https://api.github.com/users/michel-m/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 | 3 | 2023-11-24T09:56:16 | 2023-12-01T16:25:13 | null | NONE | null | ### Issue you'd like to raise.
Hi, sorry if I missed it, but I couldn't find in the documentation, here in issues nor through google an answer to this question: how can one compute perplexity score (for each generated token and/or a mean perplexity score for the whole output) during inference?
In our use case, we use LLMs only for inference, but we have to be able to give some kind of confidence score along with the models' answers. We use various integration backends in our stack, HF transformers, vLLM, llama.cpp to name a few.
Any help would be greatly appreciated. Thanks!
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13808/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13808/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13807 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13807/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13807/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13807/events | https://github.com/langchain-ai/langchain/issues/13807 | 2,009,376,766 | I_kwDOIPDwls53xKf- | 13,807 | It’s so damn hard to use. | {
"login": "longshuicui",
"id": 44388201,
"node_id": "MDQ6VXNlcjQ0Mzg4MjAx",
"avatar_url": "https://avatars.githubusercontent.com/u/44388201?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/longshuicui",
"html_url": "https://github.com/longshuicui",
"followers_url": "https://api.github.com/users/longshuicui/followers",
"following_url": "https://api.github.com/users/longshuicui/following{/other_user}",
"gists_url": "https://api.github.com/users/longshuicui/gists{/gist_id}",
"starred_url": "https://api.github.com/users/longshuicui/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/longshuicui/subscriptions",
"organizations_url": "https://api.github.com/users/longshuicui/orgs",
"repos_url": "https://api.github.com/users/longshuicui/repos",
"events_url": "https://api.github.com/users/longshuicui/events{/privacy}",
"received_events_url": "https://api.github.com/users/longshuicui/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-11-24T09:19:01 | 2023-11-27T09:21:32 | null | NONE | null | ### Issue you'd like to raise.
_No response_
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13807/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13807/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13806 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13806/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13806/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13806/events | https://github.com/langchain-ai/langchain/pull/13806 | 2,009,346,551 | PR_kwDOIPDwls5gSdih | 13,806 | fix(docs): link to question answering | {
"login": "riezebosch",
"id": 1427334,
"node_id": "MDQ6VXNlcjE0MjczMzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/1427334?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/riezebosch",
"html_url": "https://github.com/riezebosch",
"followers_url": "https://api.github.com/users/riezebosch/followers",
"following_url": "https://api.github.com/users/riezebosch/following{/other_user}",
"gists_url": "https://api.github.com/users/riezebosch/gists{/gist_id}",
"starred_url": "https://api.github.com/users/riezebosch/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/riezebosch/subscriptions",
"organizations_url": "https://api.github.com/users/riezebosch/orgs",
"repos_url": "https://api.github.com/users/riezebosch/repos",
"events_url": "https://api.github.com/users/riezebosch/events{/privacy}",
"received_events_url": "https://api.github.com/users/riezebosch/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 | 2 | 2023-11-24T08:57:05 | 2023-12-11T08:03:51 | 2023-11-27T20:56:15 | CONTRIBUTOR | null | first link in [overview](https://python.langchain.com/docs/use_cases/question_answering/code_understanding#overview)
<!-- 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/13806/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13806/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13806",
"html_url": "https://github.com/langchain-ai/langchain/pull/13806",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13806.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13806.patch",
"merged_at": "2023-11-27T20:56:15"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13805 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13805/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13805/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13805/events | https://github.com/langchain-ai/langchain/issues/13805 | 2,009,341,776 | I_kwDOIPDwls53xB9Q | 13,805 | how to handle a PDF(including tables..) | {
"login": "girlsending0",
"id": 83329561,
"node_id": "MDQ6VXNlcjgzMzI5NTYx",
"avatar_url": "https://avatars.githubusercontent.com/u/83329561?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/girlsending0",
"html_url": "https://github.com/girlsending0",
"followers_url": "https://api.github.com/users/girlsending0/followers",
"following_url": "https://api.github.com/users/girlsending0/following{/other_user}",
"gists_url": "https://api.github.com/users/girlsending0/gists{/gist_id}",
"starred_url": "https://api.github.com/users/girlsending0/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/girlsending0/subscriptions",
"organizations_url": "https://api.github.com/users/girlsending0/orgs",
"repos_url": "https://api.github.com/users/girlsending0/repos",
"events_url": "https://api.github.com/users/girlsending0/events{/privacy}",
"received_events_url": "https://api.github.com/users/girlsending0/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] | open | false | null | [] | null | 7 | 2023-11-24T08:54:28 | 2024-01-11T13:06:09 | null | NONE | null | ### Issue you'd like to raise.
Hello
I have to configure the langchain with PDF data, and the PDF contains a lot of unstructured table.
We have a string and a table, so how do you recommend handling it?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13805/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13805/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13803 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13803/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13803/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13803/events | https://github.com/langchain-ai/langchain/issues/13803 | 2,009,321,641 | I_kwDOIPDwls53w9Cp | 13,803 | CypherQueryCorrector cannot validate a correct cypher, some query types are not handled | {
"login": "mesutgurlek",
"id": 9192832,
"node_id": "MDQ6VXNlcjkxOTI4MzI=",
"avatar_url": "https://avatars.githubusercontent.com/u/9192832?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mesutgurlek",
"html_url": "https://github.com/mesutgurlek",
"followers_url": "https://api.github.com/users/mesutgurlek/followers",
"following_url": "https://api.github.com/users/mesutgurlek/following{/other_user}",
"gists_url": "https://api.github.com/users/mesutgurlek/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mesutgurlek/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mesutgurlek/subscriptions",
"organizations_url": "https://api.github.com/users/mesutgurlek/orgs",
"repos_url": "https://api.github.com/users/mesutgurlek/repos",
"events_url": "https://api.github.com/users/mesutgurlek/events{/privacy}",
"received_events_url": "https://api.github.com/users/mesutgurlek/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"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-24T08:39:00 | 2023-11-27T03:30:12 | 2023-11-27T03:30:12 | NONE | null | CypherQueryCorrector does not handle with some query types:
If there is such a query (There is a comma in the match between clauses):
```
MATCH (a:APPLE {apple_id: 123})-[:IN]->(b:BUCKET), (ba:BANANA {name: banana1})
```
Corresponding code section:
- It extract a relation between BUCKET and BANANA, however there is none.
- ELSE case should be divided into cases. (INCOMING relation, OUTGOING relation, BIDIRECTIONAL relation, NO relation etc.)
- IF there is no relation and only a comma between clauses, then it should not try validation.
https://github.com/langchain-ai/langchain/blob/751226e067bc54a70910763c0eebb34544aaf47c/libs/langchain/langchain/chains/graph_qa/cypher_utils.py#L228 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13803/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13803/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13802 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13802/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13802/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13802/events | https://github.com/langchain-ai/langchain/issues/13802 | 2,009,296,023 | I_kwDOIPDwls53w2yX | 13,802 | How to modify the code, If the SQLResult is empty, the Answer should be "No results found". DO NOT hallucinate an answer if there is no result. | {
"login": "jyoti194",
"id": 109470153,
"node_id": "U_kgDOBoZhyQ",
"avatar_url": "https://avatars.githubusercontent.com/u/109470153?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jyoti194",
"html_url": "https://github.com/jyoti194",
"followers_url": "https://api.github.com/users/jyoti194/followers",
"following_url": "https://api.github.com/users/jyoti194/following{/other_user}",
"gists_url": "https://api.github.com/users/jyoti194/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jyoti194/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jyoti194/subscriptions",
"organizations_url": "https://api.github.com/users/jyoti194/orgs",
"repos_url": "https://api.github.com/users/jyoti194/repos",
"events_url": "https://api.github.com/users/jyoti194/events{/privacy}",
"received_events_url": "https://api.github.com/users/jyoti194/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 | 9 | 2023-11-24T08:18:06 | 2024-01-15T18:37:59 | null | NONE | null | ### Issue you'd like to raise.
Entering new SQLDatabaseChain chain...
what is Gesh D desigation
SQLQuery:SELECT [Designation]
FROM [EGV_emp_departments_ChatGPT]
WHERE [EmployeeName] = 'Gesh D'
SQLResult:
Answer:Final answer here
> Finished chain.
Final answer here
below is my code
# import os
# import re
# from langchain.llms import OpenAI
# from langchain_experimental.sql import SQLDatabaseChain
# from langchain.sql_database import SQLDatabase
# # from secret_key import openapi_key
# openapi_key = "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"
# os.environ['OPENAI_API_KEY'] = openapi_key
# def chat(question):
# # llm = OpenAI(temperature=0)
# # tools = load_tools(["llm-math"], llm=llm)
# # agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION)
# driver = 'ODBC Driver 17 for SQL Server'
# from urllib.parse import quote_plus
# driver = 'ODBC Driver 17 for SQL Server'
# host = '####'
# user = '###'
# database = '#####'
# password = '#####'
# encoded_password = quote_plus(password)
# db = SQLDatabase.from_uri(f"mssql+pyodbc://{user}:{encoded_password}@{host}/{database}?driver={quote_plus(driver)}", include_tables = ['HRMSGPTAutomation'], sample_rows_in_table_info=2)
# llm = OpenAI(temperature=0, verbose=True)
# token_limit = 16_000
# model_name="gpt-3.5-turbo-16k"
# db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True)
# # agent_executor = create_sql_agent(
# # llm=llm,
# # toolkit=toolkit,
# # verbose=True,
# # reduce_k_below_max_tokens=True,
# # )
# # mrkl = initialize_agent(
# # tools,
# # ChatOpenAI(temperature=0),
# # agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,
# # verbose=True,
# # handle_parsing_errors=True,
# # )
# return db_chain.run(question)
# # print(chat("what is Vijayalakshmi B department"))
import sqlalchemy as sal
import os, sys, openai
import constants
from langchain.sql_database import SQLDatabase
from langchain.llms.openai import OpenAI
from langchain_experimental.sql import SQLDatabaseChain
from sqlalchemy import create_engine
from langchain.chat_models import ChatOpenAI
from typing import List, Optional
from langchain.agents.agent_toolkits import SQLDatabaseToolkit
from langchain.callbacks.manager import CallbackManagerForToolRun
from langchain.chat_models import ChatOpenAI
from langchain_experimental.plan_and_execute import (
PlanAndExecute,
load_agent_executor,
load_chat_planner,
)
from langchain.sql_database import SQLDatabase
from langchain.text_splitter import TokenTextSplitter
from langchain.tools import BaseTool
from langchain.tools.sql_database.tool import QuerySQLDataBaseTool
from secret_key import openapi_key
os.environ['OPENAI_API_KEY'] = openapi_key
def chat(question):
from urllib.parse import quote_plus
server_name = constants.server_name
database_name = constants.database_name
username = constants.username
password = constants.password
encoded_password = quote_plus(password)
connection_uri = f"mssql+pyodbc://{username}:{encoded_password}@{server_name}/{database_name}?driver=ODBC+Driver+17+for+SQL+Server"
engine = create_engine(connection_uri)
model_name="gpt-3.5-turbo-16k"
db = SQLDatabase(engine, view_support=True, include_tables=['EGV_emp_departments_ChatGPT'])
llm = ChatOpenAI(temperature=0, verbose=False, model=model_name)
db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True)
PROMPT = """
Given an input question, first create a syntactically correct mssql query to run,
then look at the results of the query and return the answer.
The question: {db_chain.run}
"""
return db_chain.run(question)
answer=chat("what is Gesh D desigation")
print(answer)
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13802/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13802/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13801 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13801/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13801/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13801/events | https://github.com/langchain-ai/langchain/pull/13801 | 2,009,280,844 | PR_kwDOIPDwls5gSPdk | 13,801 | add mongodb_store | {
"login": "xieqihui",
"id": 21073184,
"node_id": "MDQ6VXNlcjIxMDczMTg0",
"avatar_url": "https://avatars.githubusercontent.com/u/21073184?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xieqihui",
"html_url": "https://github.com/xieqihui",
"followers_url": "https://api.github.com/users/xieqihui/followers",
"following_url": "https://api.github.com/users/xieqihui/following{/other_user}",
"gists_url": "https://api.github.com/users/xieqihui/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xieqihui/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xieqihui/subscriptions",
"organizations_url": "https://api.github.com/users/xieqihui/orgs",
"repos_url": "https://api.github.com/users/xieqihui/repos",
"events_url": "https://api.github.com/users/xieqihui/events{/privacy}",
"received_events_url": "https://api.github.com/users/xieqihui/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 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."
}
] | open | false | {
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-11-24T08:05:22 | 2023-11-27T19:58:24 | null | CONTRIBUTOR | null | # Add MongoDB storage
- **Description:**
Add MongoDB Storage as an option for large doc store.
Example usage:
```Python
# Instantiate the MongodbStore with a MongoDB connection
from langchain.storage import MongodbStore
mongo_conn_str = "mongodb://localhost:27017/"
mongodb_store = MongodbStore(mongo_conn_str, db_name="test-db",
collection_name="test-collection")
# Set values for keys
doc1 = Document(page_content='test1')
doc2 = Document(page_content='test2')
mongodb_store.mset([("key1", doc1), ("key2", doc2)])
# Get values for keys
values = mongodb_store.mget(["key1", "key2"])
# [doc1, doc2]
# Iterate over keys
for key in mongodb_store.yield_keys():
print(key)
# Delete keys
mongodb_store.mdelete(["key1", "key2"])
```
- **Dependencies:**
Use `mongomock` for integration test.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13801/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/13801/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13801",
"html_url": "https://github.com/langchain-ai/langchain/pull/13801",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13801.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13801.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13800 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13800/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13800/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13800/events | https://github.com/langchain-ai/langchain/pull/13800 | 2,009,219,268 | PR_kwDOIPDwls5gSCH_ | 13,800 | community: fix qianfan chat stream calling caused exception | {
"login": "danielhjz",
"id": 5894042,
"node_id": "MDQ6VXNlcjU4OTQwNDI=",
"avatar_url": "https://avatars.githubusercontent.com/u/5894042?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danielhjz",
"html_url": "https://github.com/danielhjz",
"followers_url": "https://api.github.com/users/danielhjz/followers",
"following_url": "https://api.github.com/users/danielhjz/following{/other_user}",
"gists_url": "https://api.github.com/users/danielhjz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/danielhjz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danielhjz/subscriptions",
"organizations_url": "https://api.github.com/users/danielhjz/orgs",
"repos_url": "https://api.github.com/users/danielhjz/repos",
"events_url": "https://api.github.com/users/danielhjz/events{/privacy}",
"received_events_url": "https://api.github.com/users/danielhjz/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 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": 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": "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 | 15 | 2023-11-24T07:10:21 | 2024-01-09T23:29:25 | 2024-01-09T23:29:25 | CONTRIBUTOR | null | - **Description:**
`QianfanChatEndpoint` extends `BaseChatModel` as a super class, which has a default stream implement might concat the MessageChunk with `__add__`. When call stream(), a ValueError for duplicated key will be raise.
- **Issues:**
* #13546
* #13548
* merge two single test file related to qianfan.
- **Dependencies:** no
- **Tag maintainer:**
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13800/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13800/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13800",
"html_url": "https://github.com/langchain-ai/langchain/pull/13800",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13800.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13800.patch",
"merged_at": "2024-01-09T23:29:25"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13799 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13799/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13799/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13799/events | https://github.com/langchain-ai/langchain/issues/13799 | 2,009,189,632 | I_kwDOIPDwls53wc0A | 13,799 | Issue:Handle IndexError for Empty Document Lists - Display Default Value or Message | {
"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": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] | open | false | null | [] | null | 3 | 2023-11-24T06:41:19 | 2023-11-24T07:02:41 | null | NONE | null | ### Issue you'd like to raise.
Encountered IndexError in the code due to an attempt to access a list index that is out of range. This issue occurs when there are no documents available, resulting in the deletion of all embeddings. To handle this case gracefully, consider implementing a mechanism to display a default value or a meaningful message when there are no documents present. The specific line causing the error is:
```python
source = relevant_document[0].metadata['source']
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13799/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13799/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13798 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13798/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13798/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13798/events | https://github.com/langchain-ai/langchain/pull/13798 | 2,009,185,114 | PR_kwDOIPDwls5gR6ym | 13,798 | Update the stable docs link | {
"login": "adroitvarun",
"id": 142821198,
"node_id": "U_kgDOCINHTg",
"avatar_url": "https://avatars.githubusercontent.com/u/142821198?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/adroitvarun",
"html_url": "https://github.com/adroitvarun",
"followers_url": "https://api.github.com/users/adroitvarun/followers",
"following_url": "https://api.github.com/users/adroitvarun/following{/other_user}",
"gists_url": "https://api.github.com/users/adroitvarun/gists{/gist_id}",
"starred_url": "https://api.github.com/users/adroitvarun/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adroitvarun/subscriptions",
"organizations_url": "https://api.github.com/users/adroitvarun/orgs",
"repos_url": "https://api.github.com/users/adroitvarun/repos",
"events_url": "https://api.github.com/users/adroitvarun/events{/privacy}",
"received_events_url": "https://api.github.com/users/adroitvarun/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-24T06:36:37 | 2023-12-11T09:45:47 | 2023-11-28T21:11:17 | CONTRIBUTOR | null |
- **Description:** Point to the stable version of documentation,
- **Twitter handle:** varunzxzx
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13798/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13798/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13798",
"html_url": "https://github.com/langchain-ai/langchain/pull/13798",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13798.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13798.patch",
"merged_at": "2023-11-28T21:11:17"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13797 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13797/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13797/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13797/events | https://github.com/langchain-ai/langchain/pull/13797 | 2,009,133,503 | PR_kwDOIPDwls5gRv_d | 13,797 | Add `nested` option to MLFlow callback handler | {
"login": "benzhu56",
"id": 6070516,
"node_id": "MDQ6VXNlcjYwNzA1MTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6070516?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/benzhu56",
"html_url": "https://github.com/benzhu56",
"followers_url": "https://api.github.com/users/benzhu56/followers",
"following_url": "https://api.github.com/users/benzhu56/following{/other_user}",
"gists_url": "https://api.github.com/users/benzhu56/gists{/gist_id}",
"starred_url": "https://api.github.com/users/benzhu56/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benzhu56/subscriptions",
"organizations_url": "https://api.github.com/users/benzhu56/orgs",
"repos_url": "https://api.github.com/users/benzhu56/repos",
"events_url": "https://api.github.com/users/benzhu56/events{/privacy}",
"received_events_url": "https://api.github.com/users/benzhu56/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."
}
] | open | false | null | [] | null | 2 | 2023-11-24T05:40:14 | 2023-12-04T23:43:54 | null | NONE | null |
- **Description:** Improve the MLFlowCallbackHandler by allowing passing in the `nested` param so it can be created as a child run,
- **Issue:** https://github.com/langchain-ai/langchain/issues/13795,
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13797/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 1,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13797/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13797",
"html_url": "https://github.com/langchain-ai/langchain/pull/13797",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13797.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13797.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13796 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13796/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13796/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13796/events | https://github.com/langchain-ai/langchain/pull/13796 | 2,009,110,395 | PR_kwDOIPDwls5gRro_ | 13,796 | Remove save function for ChatPromptTemplate | {
"login": "serena-ruan",
"id": 82044803,
"node_id": "MDQ6VXNlcjgyMDQ0ODAz",
"avatar_url": "https://avatars.githubusercontent.com/u/82044803?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/serena-ruan",
"html_url": "https://github.com/serena-ruan",
"followers_url": "https://api.github.com/users/serena-ruan/followers",
"following_url": "https://api.github.com/users/serena-ruan/following{/other_user}",
"gists_url": "https://api.github.com/users/serena-ruan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/serena-ruan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/serena-ruan/subscriptions",
"organizations_url": "https://api.github.com/users/serena-ruan/orgs",
"repos_url": "https://api.github.com/users/serena-ruan/repos",
"events_url": "https://api.github.com/users/serena-ruan/events{/privacy}",
"received_events_url": "https://api.github.com/users/serena-ruan/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."
}
] | closed | false | null | [] | null | 3 | 2023-11-24T05:12:11 | 2023-12-01T04:21:34 | 2023-11-28T21:11:51 | NONE | null | <!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/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.
-->
Fixes https://github.com/langchain-ai/langchain/issues/13794 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13796/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13796/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13796",
"html_url": "https://github.com/langchain-ai/langchain/pull/13796",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13796.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13796.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/13795 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13795/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13795/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13795/events | https://github.com/langchain-ai/langchain/issues/13795 | 2,009,104,256 | I_kwDOIPDwls53wH-A | 13,795 | Feat: MLFlow callback allow passing `nested` param | {
"login": "benzhu56",
"id": 6070516,
"node_id": "MDQ6VXNlcjYwNzA1MTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6070516?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/benzhu56",
"html_url": "https://github.com/benzhu56",
"followers_url": "https://api.github.com/users/benzhu56/followers",
"following_url": "https://api.github.com/users/benzhu56/following{/other_user}",
"gists_url": "https://api.github.com/users/benzhu56/gists{/gist_id}",
"starred_url": "https://api.github.com/users/benzhu56/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benzhu56/subscriptions",
"organizations_url": "https://api.github.com/users/benzhu56/orgs",
"repos_url": "https://api.github.com/users/benzhu56/repos",
"events_url": "https://api.github.com/users/benzhu56/events{/privacy}",
"received_events_url": "https://api.github.com/users/benzhu56/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-24T05:05:03 | 2023-11-24T05:08:00 | null | NONE | null | ### Feature request
Currently when initilizing the `MlflowCallbackHandler`, we can pass in name, experiment, tracking_uri. But couldn't pass in the `nested` param.
### Motivation
It would be nice if we can do that, so that when there are multiple chains running, we can nest those runs under one parent run, making it easier to group them for later on monitor/debug.
### Your contribution
I tried to edit the mlflow_callback.py and add the nested option, but it doesn't seem to honor the value.
Please let me know if you know how to make this work and I'm happy to put up a PR. Thanks! | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13795/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13795/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13794 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/13794/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/13794/comments | https://api.github.com/repos/langchain-ai/langchain/issues/13794/events | https://github.com/langchain-ai/langchain/issues/13794 | 2,009,093,017 | I_kwDOIPDwls53wFOZ | 13,794 | ChatPromptTemplate save method not implemented | {
"login": "serena-ruan",
"id": 82044803,
"node_id": "MDQ6VXNlcjgyMDQ0ODAz",
"avatar_url": "https://avatars.githubusercontent.com/u/82044803?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/serena-ruan",
"html_url": "https://github.com/serena-ruan",
"followers_url": "https://api.github.com/users/serena-ruan/followers",
"following_url": "https://api.github.com/users/serena-ruan/following{/other_user}",
"gists_url": "https://api.github.com/users/serena-ruan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/serena-ruan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/serena-ruan/subscriptions",
"organizations_url": "https://api.github.com/users/serena-ruan/orgs",
"repos_url": "https://api.github.com/users/serena-ruan/repos",
"events_url": "https://api.github.com/users/serena-ruan/events{/privacy}",
"received_events_url": "https://api.github.com/users/serena-ruan/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-24T04:52:26 | 2023-11-24T04:52:47 | null | NONE | null | ### System Info
master branch
### Who can help?
@hwchase17
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
https://github.com/langchain-ai/langchain/blob/751226e067bc54a70910763c0eebb34544aaf47c/libs/core/langchain_core/prompts/chat.py#L653-L659
ChatPromptTemplate override save method as NotImplementedError, while the base class `BasePromptTemplate` has a default implementation of `save` method https://github.com/langchain-ai/langchain/blob/751226e067bc54a70910763c0eebb34544aaf47c/libs/core/langchain_core/prompts/base.py#L157-L192. It should just depend on the implementation of `_prompt_type` property, where ChatPromptTemplate already implemented here https://github.com/langchain-ai/langchain/blob/751226e067bc54a70910763c0eebb34544aaf47c/libs/core/langchain_core/prompts/chat.py#L648-L651.
If removing the override save function, ChatPromptTemplate could be saved correctly.
### Expected behavior
We should be able to save ChatPromptTemplate object into a file. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13794/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/13794/timeline | null | null | null | null |