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/13128
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13128/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13128/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13128/events
|
https://github.com/langchain-ai/langchain/issues/13128
| 1,985,658,707 |
I_kwDOIPDwls52Wr9T
| 13,128 |
How do I use multiple GPU when using a model with hugging face?
|
{
"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": 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 | 7 | 2023-11-09T13:45:39 | 2023-12-22T09:51:55 | null |
NONE
| null |
### Issue you'd like to raise.
Hi.
I am currently using the model of the hugging face.
The code I use is below.
`llm = HuggingFacePipeline.from_model_id(model_id="beomi/llama-2-ko-7b", task="text-generation", model_kwargs={"max_length": 2000}, device=0)`
Currently I am only using device=0, but I would like to load the model using multiple devices (device=0,1,2,3).
But I couldn't find a way to handle multiple devices for HuggingFacePipeline.from_model_id.
If you know anything about this, I hope you can help.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13128/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13128/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13126
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13126/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13126/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13126/events
|
https://github.com/langchain-ai/langchain/issues/13126
| 1,985,634,692 |
I_kwDOIPDwls52WmGE
| 13,126 |
Streaming not working when using RunnableLambda
|
{
"login": "Vinno97",
"id": 9059378,
"node_id": "MDQ6VXNlcjkwNTkzNzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/9059378?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vinno97",
"html_url": "https://github.com/Vinno97",
"followers_url": "https://api.github.com/users/Vinno97/followers",
"following_url": "https://api.github.com/users/Vinno97/following{/other_user}",
"gists_url": "https://api.github.com/users/Vinno97/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vinno97/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vinno97/subscriptions",
"organizations_url": "https://api.github.com/users/Vinno97/orgs",
"repos_url": "https://api.github.com/users/Vinno97/repos",
"events_url": "https://api.github.com/users/Vinno97/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vinno97/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-09T13:32:54 | 2023-11-09T14:54:59 | 2023-11-09T14:54:58 |
CONTRIBUTOR
| null |
### System Info
langchain 0.0.332
### Who can help?
@hwchase17
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
The default `Runnable#stream` doesn't stream, but rather defers to `invoke`. As `RunnableLambda` doesn't override the `stream` function, this causes the entire chain to run with `invoke` instead of `stream` when it is used in any part of the chain.
```python
chain = RunnableLambda(lambda x: x) | ChatOpenAI()
for part in chain.stream("hello"):
print(part)
```
### Expected behavior
What I'd expect is that I could use a `LambdaRunnable` to transform my inputs on-the-fly, then send it through to the rest of my chain and still use the stream/batch/etc functionalities that LCEL should bring.
If the early runnables don't support streaming, that doesn't mean that the final output can't be streamed. Currently when any of the runnables in a chain don't support streaming, the entire chain doesn't support streaming.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13126/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13126/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13125
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13125/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13125/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13125/events
|
https://github.com/langchain-ai/langchain/issues/13125
| 1,985,582,820 |
I_kwDOIPDwls52WZbk
| 13,125 |
Custom implementation for query checker tool
|
{
"login": "sud962468",
"id": 5613310,
"node_id": "MDQ6VXNlcjU2MTMzMTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/5613310?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sud962468",
"html_url": "https://github.com/sud962468",
"followers_url": "https://api.github.com/users/sud962468/followers",
"following_url": "https://api.github.com/users/sud962468/following{/other_user}",
"gists_url": "https://api.github.com/users/sud962468/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sud962468/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sud962468/subscriptions",
"organizations_url": "https://api.github.com/users/sud962468/orgs",
"repos_url": "https://api.github.com/users/sud962468/repos",
"events_url": "https://api.github.com/users/sud962468/events{/privacy}",
"received_events_url": "https://api.github.com/users/sud962468/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
open
| false | null |
[] | null | 10 | 2023-11-09T13:05:16 | 2023-11-10T14:56:11 | null |
NONE
| null |
### Feature request
We are using langchain create_sql_agent to build a chat engine with database.
I want to write custom implementation for tool : query_sql_checker_tool
In this custom logic, we want to modify the sql query before execution.
Example:
original query : select * from transaction where type = IPC
modified query : select * from (select * from transaction where account_id = 123) where type = IPC
Can you please provide me way forward to achieve this ?
### Motivation
To protect some data from client, need this functionality
### Your contribution
I'm not familiar with the internal code, but I can help if guided.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13125/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13125/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13124
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13124/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13124/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13124/events
|
https://github.com/langchain-ai/langchain/issues/13124
| 1,985,552,554 |
I_kwDOIPDwls52WSCq
| 13,124 |
Adding timeout to ChatOpenAI raises ConfigError
|
{
"login": "andreas-thomik",
"id": 10515764,
"node_id": "MDQ6VXNlcjEwNTE1NzY0",
"avatar_url": "https://avatars.githubusercontent.com/u/10515764?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andreas-thomik",
"html_url": "https://github.com/andreas-thomik",
"followers_url": "https://api.github.com/users/andreas-thomik/followers",
"following_url": "https://api.github.com/users/andreas-thomik/following{/other_user}",
"gists_url": "https://api.github.com/users/andreas-thomik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andreas-thomik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andreas-thomik/subscriptions",
"organizations_url": "https://api.github.com/users/andreas-thomik/orgs",
"repos_url": "https://api.github.com/users/andreas-thomik/repos",
"events_url": "https://api.github.com/users/andreas-thomik/events{/privacy}",
"received_events_url": "https://api.github.com/users/andreas-thomik/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 4 | 2023-11-09T12:47:32 | 2023-11-13T09:49:28 | 2023-11-13T09:49:28 |
NONE
| null |
### System Info
Running langchain==0.0.332 with python 3.11 and openai==1.2.0 on Windows.
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python
from langchain.chat_models import ChatOpenAI
ChatOpenAI(
model="gpt-3.5-turbo",
request_timeout=5,
)
```
### Expected behavior
Should run without errors.
Likely due to newly introduced `httpx.Timeout` type in `request_timeout` (https://github.com/langchain-ai/langchain/pull/12948). Always importing httpx and tiktoken (i.e. not conditionally on `TYPE_CHECKING`) fixes the issue.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13124/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13124/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13123
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13123/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13123/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13123/events
|
https://github.com/langchain-ai/langchain/pull/13123
| 1,985,485,208 |
PR_kwDOIPDwls5fBvUJ
| 13,123 |
Expose chat loaders objects in top-level package
|
{
"login": "cbornet",
"id": 11633333,
"node_id": "MDQ6VXNlcjExNjMzMzMz",
"avatar_url": "https://avatars.githubusercontent.com/u/11633333?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cbornet",
"html_url": "https://github.com/cbornet",
"followers_url": "https://api.github.com/users/cbornet/followers",
"following_url": "https://api.github.com/users/cbornet/following{/other_user}",
"gists_url": "https://api.github.com/users/cbornet/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cbornet/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cbornet/subscriptions",
"organizations_url": "https://api.github.com/users/cbornet/orgs",
"repos_url": "https://api.github.com/users/cbornet/repos",
"events_url": "https://api.github.com/users/cbornet/events{/privacy}",
"received_events_url": "https://api.github.com/users/cbornet/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-09T12:06:35 | 2023-12-16T09:54:53 | 2023-12-16T09:54:46 |
CONTRIBUTOR
| null |
- **Description:** the change imports chat loader classes and utilities to the `__init__` of the chat_loaders module similarly to what is done for the other modules.
- **Twitter handle:** cbornet_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13123/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13123/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13123",
"html_url": "https://github.com/langchain-ai/langchain/pull/13123",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13123.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13123.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13122
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13122/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13122/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13122/events
|
https://github.com/langchain-ai/langchain/issues/13122
| 1,985,482,594 |
I_kwDOIPDwls52WA9i
| 13,122 |
httpx openai support
|
{
"login": "bennybhr",
"id": 34985661,
"node_id": "MDQ6VXNlcjM0OTg1NjYx",
"avatar_url": "https://avatars.githubusercontent.com/u/34985661?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bennybhr",
"html_url": "https://github.com/bennybhr",
"followers_url": "https://api.github.com/users/bennybhr/followers",
"following_url": "https://api.github.com/users/bennybhr/following{/other_user}",
"gists_url": "https://api.github.com/users/bennybhr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bennybhr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bennybhr/subscriptions",
"organizations_url": "https://api.github.com/users/bennybhr/orgs",
"repos_url": "https://api.github.com/users/bennybhr/repos",
"events_url": "https://api.github.com/users/bennybhr/events{/privacy}",
"received_events_url": "https://api.github.com/users/bennybhr/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 3 | 2023-11-09T12:04:56 | 2023-11-19T10:40:16 | null |
NONE
| null |
### Feature request
please support httpx_client in openai version 1.1.1
just one more parameter
if there is another solution i would like to get it
thanks
### Motivation
cant work without ssl cert
### Your contribution
in AzureChatOpenAI and AzureOpenAI class
add parameter openai_http_client
in method validate_environment
please add at line 134 the next code
values["http_client"] = get_from_dict_or_env(
values, "openai_http_client", "OPENAI_HTTP_CLIENT", default=""
)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13122/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13122/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13120
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13120/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13120/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13120/events
|
https://github.com/langchain-ai/langchain/issues/13120
| 1,985,321,425 |
I_kwDOIPDwls52VZnR
| 13,120 |
ModuleNotFoundError: No module named 'langchain.server'
|
{
"login": "Edisonwei54",
"id": 85055490,
"node_id": "MDQ6VXNlcjg1MDU1NDkw",
"avatar_url": "https://avatars.githubusercontent.com/u/85055490?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Edisonwei54",
"html_url": "https://github.com/Edisonwei54",
"followers_url": "https://api.github.com/users/Edisonwei54/followers",
"following_url": "https://api.github.com/users/Edisonwei54/following{/other_user}",
"gists_url": "https://api.github.com/users/Edisonwei54/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Edisonwei54/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Edisonwei54/subscriptions",
"organizations_url": "https://api.github.com/users/Edisonwei54/orgs",
"repos_url": "https://api.github.com/users/Edisonwei54/repos",
"events_url": "https://api.github.com/users/Edisonwei54/events{/privacy}",
"received_events_url": "https://api.github.com/users/Edisonwei54/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 3 | 2023-11-09T10:28:35 | 2023-11-09T10:43:53 | null |
NONE
| null |
### System Info
Ubuntu 22.04
langchain 0.0.332
python 3.10
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
pip install langchain --upgrade
langchain-server
### Expected behavior
Traceback (most recent call last):
File "/home/ps/anaconda3/envs/langchain/bin/langchain-server", line 6, in <module>
from langchain.server import main
ModuleNotFoundError: No module named 'langchain.server'
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13120/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13120/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13119
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13119/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13119/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13119/events
|
https://github.com/langchain-ai/langchain/issues/13119
| 1,985,293,295 |
I_kwDOIPDwls52VSvv
| 13,119 |
LCEL stream function doesn't use LLM cache
|
{
"login": "molntamas",
"id": 4353892,
"node_id": "MDQ6VXNlcjQzNTM4OTI=",
"avatar_url": "https://avatars.githubusercontent.com/u/4353892?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/molntamas",
"html_url": "https://github.com/molntamas",
"followers_url": "https://api.github.com/users/molntamas/followers",
"following_url": "https://api.github.com/users/molntamas/following{/other_user}",
"gists_url": "https://api.github.com/users/molntamas/gists{/gist_id}",
"starred_url": "https://api.github.com/users/molntamas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/molntamas/subscriptions",
"organizations_url": "https://api.github.com/users/molntamas/orgs",
"repos_url": "https://api.github.com/users/molntamas/repos",
"events_url": "https://api.github.com/users/molntamas/events{/privacy}",
"received_events_url": "https://api.github.com/users/molntamas/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-09T10:12:40 | 2023-12-01T10:07:12 | null |
CONTRIBUTOR
| null |
### System Info
LangChain version : 0.0.327
Python version : 3.10.11
Platform : Windows 11
### Who can help?
@agola11 @hwchase17
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
I was using streaming callbacks with LLMChains.
I switched now to use LangChain Expression Language (LCEL), and using the stream/astream functions.
They don't seem to save the results to the configured LLM cache and don't load the results from there.
I'm not sure if this is intentional, or a bug.
If it is intentional I'm wondering how I should use the cache.
Code to reproduce the issue:
```python
from langchain.prompts import ChatPromptTemplate
from langchain.chat_models import ChatOpenAI
from langchain.globals import set_llm_cache
from langchain.cache import InMemoryCache
set_llm_cache(InMemoryCache())
model = ChatOpenAI(cache=True)
prompt = ChatPromptTemplate.from_template(
"tell me a joke in about 5 sentences about {topic}"
)
chain = prompt | model
for s in chain.stream({"topic": "bears"}):
print(s.content, end="", flush=True)
print("\n\nFINISHED FIRST COMPLETION\n")
for s in chain.stream({"topic": "bears"}):
print(s.content, end="", flush=True)
```
### Expected behavior
The second result should be the same and should be retrieved quickly from the LLM cache.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13119/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/13119/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13118
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13118/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13118/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13118/events
|
https://github.com/langchain-ai/langchain/pull/13118
| 1,985,272,196 |
PR_kwDOIPDwls5fBA5W
| 13,118 |
(Astra DB/Cassandra) Minor clarification about dependencies in the demo notebook
|
{
"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": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-09T10:01:23 | 2023-11-09T14:26:42 | 2023-11-09T14:19:16 |
CONTRIBUTOR
| null |
This PR helps developers trying the Astra DB / Cassandra vector store quickstart notebook by making it clear what other dependencies are required.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13118/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13118/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13118",
"html_url": "https://github.com/langchain-ai/langchain/pull/13118",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13118.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13118.patch",
"merged_at": "2023-11-09T14:19:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13117
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13117/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13117/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13117/events
|
https://github.com/langchain-ai/langchain/issues/13117
| 1,985,253,003 |
I_kwDOIPDwls52VI6L
| 13,117 |
Fusion_RAG + Semi_Structured_RAG?
|
{
"login": "Lauorie",
"id": 95747416,
"node_id": "U_kgDOBbT9WA",
"avatar_url": "https://avatars.githubusercontent.com/u/95747416?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Lauorie",
"html_url": "https://github.com/Lauorie",
"followers_url": "https://api.github.com/users/Lauorie/followers",
"following_url": "https://api.github.com/users/Lauorie/following{/other_user}",
"gists_url": "https://api.github.com/users/Lauorie/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Lauorie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Lauorie/subscriptions",
"organizations_url": "https://api.github.com/users/Lauorie/orgs",
"repos_url": "https://api.github.com/users/Lauorie/repos",
"events_url": "https://api.github.com/users/Lauorie/events{/privacy}",
"received_events_url": "https://api.github.com/users/Lauorie/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-09T09:53:44 | 2023-11-09T09:54:14 | null |
NONE
| null |
### Feature request
Langchain is a great work!
Is there any possible that you guys can combine [Fusion](https://github.com/run-llama/llama_index/blob/main/docs/examples/low_level/fusion_retriever.ipynb) and [Semi_Structured_RAG](https://github.com/langchain-ai/langchain/blob/master/cookbook/Semi_Structured_RAG.ipynb)?
### Motivation
There are a lot of tables and text in my data. First of all, I have tried Fusion_RAG, which is much better than the baseline, but it is limited to the text, and the table can not be processed, so I wondered if there a way could combine Semi_Structured_RAG and Fusion_RAG so that I could deal with both text and table at the same time. ^-^
### Your contribution
Please make the fusion: BM25+Vec+Table
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13117/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13117/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13116
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13116/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13116/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13116/events
|
https://github.com/langchain-ai/langchain/issues/13116
| 1,985,231,279 |
I_kwDOIPDwls52VDmv
| 13,116 |
Qianfan llm error calling "ERNIE-Bot-4"
|
{
"login": "mimadiule",
"id": 6389214,
"node_id": "MDQ6VXNlcjYzODkyMTQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/6389214?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mimadiule",
"html_url": "https://github.com/mimadiule",
"followers_url": "https://api.github.com/users/mimadiule/followers",
"following_url": "https://api.github.com/users/mimadiule/following{/other_user}",
"gists_url": "https://api.github.com/users/mimadiule/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mimadiule/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mimadiule/subscriptions",
"organizations_url": "https://api.github.com/users/mimadiule/orgs",
"repos_url": "https://api.github.com/users/mimadiule/repos",
"events_url": "https://api.github.com/users/mimadiule/events{/privacy}",
"received_events_url": "https://api.github.com/users/mimadiule/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-09T09:42:52 | 2023-11-10T03:54:08 | null |
NONE
| null |
### System Info
langchain version 0.0.332, affect all platforms
There is a mistake in the file:
qianfan\resources\llm\completion.py
this `endpoint="/chat/completions-pro`, is not correct ,it should be `endpoint="/chat/completions_pro`,"
like below:
``
"ERNIE-Bot-4": QfLLMInfo(
endpoint="/chat/completions_pro",
required_keys={"messages"},
optional_keys={
"stream",
"temperature",
"top_p",
"penalty_score",
"user_id",
"system",
},
),
``
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
llm = QianfanLLMEndpoint(streaming = True,temperature = 0.5)
# llm.model = "ERNIE-Bot-turbo"
llm.model = "ERNIE-Bot-4"
# llm.model = "ChatGLM2-6B-32K"
res = llm("hi")
this will report error
### Expected behavior
should work without error
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13116/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13116/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13115
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13115/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13115/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13115/events
|
https://github.com/langchain-ai/langchain/issues/13115
| 1,985,225,113 |
I_kwDOIPDwls52VCGZ
| 13,115 |
langchain.graph RDFGraph does not read .owl extension files
|
{
"login": "will23332",
"id": 37927969,
"node_id": "MDQ6VXNlcjM3OTI3OTY5",
"avatar_url": "https://avatars.githubusercontent.com/u/37927969?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/will23332",
"html_url": "https://github.com/will23332",
"followers_url": "https://api.github.com/users/will23332/followers",
"following_url": "https://api.github.com/users/will23332/following{/other_user}",
"gists_url": "https://api.github.com/users/will23332/gists{/gist_id}",
"starred_url": "https://api.github.com/users/will23332/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/will23332/subscriptions",
"organizations_url": "https://api.github.com/users/will23332/orgs",
"repos_url": "https://api.github.com/users/will23332/repos",
"events_url": "https://api.github.com/users/will23332/events{/privacy}",
"received_events_url": "https://api.github.com/users/will23332/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-09T09:39:19 | 2023-11-09T09:56:03 | 2023-11-09T09:56:03 |
NONE
| null |
### System Info
Langchain version: 0.0.332
Python version: 3.11.5
### Who can help?
@hwchase17
When loading a local .owl file (the standard example pizza.owl) the operation breaks and gives the following error for all the URI:
does not look like a valid URI, trying to serialize this will break.
Here's the traceback
```
Traceback (most recent call last):
File ~\AppData\Roaming\Python\Python311\site-packages\IPython\core\interactiveshell.py:3526 in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
Cell In[13], line 4
graph = RdfGraph(
File C:\Python311\Lib\site-packages\langchain\graphs\rdf_graph.py:159 in __init__
self.graph.parse(source_file, format=self.serialization)
File C:\Python311\Lib\site-packages\rdflib\graph.py:1501 in parse
raise se
File C:\Python311\Lib\site-packages\rdflib\graph.py:1492 in parse
parser.parse(source, self, **args)
File C:\Python311\Lib\site-packages\rdflib\plugins\parsers\notation3.py:2021 in parse
p.loadStream(stream)
File C:\Python311\Lib\site-packages\rdflib\plugins\parsers\notation3.py:479 in loadStream
return self.loadBuf(stream.read()) # Not ideal
File C:\Python311\Lib\site-packages\rdflib\plugins\parsers\notation3.py:485 in loadBuf
self.feed(buf)
File C:\Python311\Lib\site-packages\rdflib\plugins\parsers\notation3.py:511 in feed
i = self.directiveOrStatement(s, j)
File C:\Python311\Lib\site-packages\rdflib\plugins\parsers\notation3.py:532 in directiveOrStatement
return self.checkDot(argstr, j)
File C:\Python311\Lib\site-packages\rdflib\plugins\parsers\notation3.py:1214 in checkDot
self.BadSyntax(argstr, j, "expected '.' or '}' or ']' at end of statement")
File C:\Python311\Lib\site-packages\rdflib\plugins\parsers\notation3.py:1730 in BadSyntax
raise BadSyntax(self._thisDoc, self.lines, argstr, i, msg)
File <string>
BadSyntax
```
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Steps to reproduce the behaviour:
1. Get the source file from : https://protege.stanford.edu/ontologies/pizza/pizza.owl and place it where the code runs
2. Use the following code:
```
from langchain.chains import GraphSparqlQAChain
from langchain.graphs import RdfGraph
graph = RdfGraph(
source_file="pizza.owl",
standard="owl"
)
graph.load_schema()
print(graph.get_schema)
```
### Expected behavior
For the graph to load and for graph.get_schema to show the classes and object properties.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13115/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13115/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13114
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13114/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13114/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13114/events
|
https://github.com/langchain-ai/langchain/issues/13114
| 1,985,218,334 |
I_kwDOIPDwls52VAce
| 13,114 |
Issue: <ValidationError: 1 validation error for ChatOpenAI __root__ `openai` has no `ChatCompletion` attribute, this is likely due to an old version of the openai package. Try upgrading it with `pip install --upgrade openai`. (type=value_error)>
|
{
"login": "KaifAhmad1",
"id": 98801504,
"node_id": "U_kgDOBeOXYA",
"avatar_url": "https://avatars.githubusercontent.com/u/98801504?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KaifAhmad1",
"html_url": "https://github.com/KaifAhmad1",
"followers_url": "https://api.github.com/users/KaifAhmad1/followers",
"following_url": "https://api.github.com/users/KaifAhmad1/following{/other_user}",
"gists_url": "https://api.github.com/users/KaifAhmad1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KaifAhmad1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KaifAhmad1/subscriptions",
"organizations_url": "https://api.github.com/users/KaifAhmad1/orgs",
"repos_url": "https://api.github.com/users/KaifAhmad1/repos",
"events_url": "https://api.github.com/users/KaifAhmad1/events{/privacy}",
"received_events_url": "https://api.github.com/users/KaifAhmad1/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 | 6 | 2023-11-09T09:35:22 | 2023-11-09T23:09:05 | null |
NONE
| null |
# Issue you'd like to raise.
## Issue: <ValidationError: 1 validation error for ChatOpenAI __root__ openai has no ChatCompletion attribute, this is likely due to an old version of the openai package. Try upgrading it with pip install --upgrade openai. (type=value_error)>
### Import necessary packages for Streamlit app, PDF processing, and OpenAI integration.
```
`import` streamlit as st
import pdfplumber
import os
from langchain.vectorstores import faiss
from langchain.chat_models import ChatOpenAI
from langchain.chains import ConversationalRetrievalChain
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.chains.conversation.memory import ConversationBufferWindowMemory
from langchain.text_splitter import CharacterTextSplitter
from langchain.chains.summarize import load_summarize_chain
from langchain.docstore.document import Document
from dotenv import load_dotenv
```
### Load and verify environment variables, specifically the OpenAI API key.
### Load .env file that is in the same directory as your script.
```
load_dotenv()
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
if OPENAI_API_KEY is None:
raise ValueError("OpenAI API key not found. Make sure you have an .env file with the key defined.")
```
### Initialize the OpenAI language model with a given API key and temperature setting.
```
chain = ConversationalRetrievalChain.from_llm(
llm = ChatOpenAI(temperature=0.1,model_name='gpt-4'),
retriever=vectorstore.as_retriever())
```
### Initializing the Embedding Model and OpenAI Model
```
embeddings = OpenAIEmbeddings()
vectorstore = faiss.from_documents(data, embeddings)
```
### Process an uploaded PDF document and extract its text content.
```
def process_document(uploaded_file):
with pdfplumber.open(uploaded_file) as pdf:
document_text = "\n".join(page.extract_text() for page in pdf.pages if page.extract_text())
return document_text
```
### Summarize the extracted text from the document using the OpenAI language model.
```
def summarize_document(llm, document_text):
text_splitter = CharacterTextSplitter(max_length=1000)
texts = text_splitter.split_text(document_text)
docs = [Document(content=t) for t in texts]
summarize_chain = load_summarize_chain(llm, chain_type='map_reduce')
return summarize_chain.run(docs)
```
### Initialize a conversation chain with memory capabilities for the chatbot.
```
def` initialize_conversation_chain(llm):
return ConversationalRetrievalChain(
llm=llm,
memory=ConversationBufferWindowMemory(k=5) # Stores the last 5 interactions.
)
```
### Define the main function to run the Streamlit application.
```
def run_app():
llm = initialize_llm(OPENAI_API_KEY)
st.title("Earnings Call Analysis App")
### UI for document upload and processing.
uploaded_file = st.file_uploader("Upload your earnings call transcript", type=["pdf"])
process_button = st.button("Process Document")
```
### Process document and generate summaries
```
if process_button and uploaded_file:
with st.spinner('Processing Document...'):
document_text = process_document(uploaded_file)
summaries = summarize_document(llm, document_text)
display_summaries(summaries)
st.success("Document processed!")
```
### UI for interactive chatbot with memory feature.
```
conversation_chain = initialize_conversation_chain(llm)
user_input = st.text_input("Ask a question about the earnings call:")
if st.button('Get Response'):
with st.spinner('Generating response...'):
response = generate_chat_response(conversation_chain, user_input, document_text)
st.write(response)
```
### Display summaries on the app interface and provide download option for each.
```
def display_summaries(summaries):
if summaries:
for i, summary in enumerate(summaries):
st.subheader(f"Topic {i+1}")
st.write("One-line topic descriptor: ", summary.get("one_line_summary", ""))
st.write("Detailed bulleted topic summaries: ", summary.get("bulleted_summary", ""))
download_summary(summary.get("bulleted_summary", ""), i+1)
```
### Create a downloadable summary file.
```
def download_summary(summary, topic_number):
summary_filename = f"topic_{topic_number}_summary.txt"
st.download_button(
label=f"Download Topic {topic_number} Summary",
data=summary,
file_name=summary_filename,
mime="text/plain"
)
```
### Generate a response from the chatbot based on the user's input and document's context.
```
def generate_chat_response(conversation_chain, user_input, document_text):
response = conversation_chain.generate_response(
prompt=user_input,
context=document_text
)
return response.get('text', "Sorry, I couldn't generate a response.")
if __name__ == "__main__":
run_app()
```
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13114/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13114/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13112
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13112/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13112/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13112/events
|
https://github.com/langchain-ai/langchain/issues/13112
| 1,984,928,992 |
I_kwDOIPDwls52T5zg
| 13,112 |
How can we selectively pass memory to specific tools without passing it to all tools?
|
{
"login": "Chetan8000",
"id": 53088237,
"node_id": "MDQ6VXNlcjUzMDg4MjM3",
"avatar_url": "https://avatars.githubusercontent.com/u/53088237?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Chetan8000",
"html_url": "https://github.com/Chetan8000",
"followers_url": "https://api.github.com/users/Chetan8000/followers",
"following_url": "https://api.github.com/users/Chetan8000/following{/other_user}",
"gists_url": "https://api.github.com/users/Chetan8000/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Chetan8000/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Chetan8000/subscriptions",
"organizations_url": "https://api.github.com/users/Chetan8000/orgs",
"repos_url": "https://api.github.com/users/Chetan8000/repos",
"events_url": "https://api.github.com/users/Chetan8000/events{/privacy}",
"received_events_url": "https://api.github.com/users/Chetan8000/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
open
| false | null |
[] | null | 3 | 2023-11-09T06:33:12 | 2023-11-17T06:20:39 | null |
NONE
| null |
### Issue you'd like to raise.
for example in my below case
```python
english_tools = [
Tool(name="SomeNAME_1",
func=lambda q: app.finance_chain.run(q),
description=" Some app related description ",
return_direct=True,
coroutine=lambda q: app.finance_chain.arun(q),
),
Tool(name="SomeNAME_2",
func=lambda q: app.rqa(q),
description=" Some app related description ",
coroutine=lambda q: app.rqa_english.arun(q),
return_direct=True
),
Tool.from_function(
name="SomeNAME_3",
func=lambda q: app.pd_agent(q),
description=" Some app related description",
coroutine=lambda q: app.pd_agent.arun(q),
)
]```
so when SomeNAME_3 invoke i don't wann pass memory to this tool
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13112/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/13112/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13111
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13111/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13111/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13111/events
|
https://github.com/langchain-ai/langchain/pull/13111
| 1,984,927,783 |
PR_kwDOIPDwls5e_1xQ
| 13,111 |
chore: bump momento dependency version and refactor search hit usage
|
{
"login": "malandis",
"id": 3690240,
"node_id": "MDQ6VXNlcjM2OTAyNDA=",
"avatar_url": "https://avatars.githubusercontent.com/u/3690240?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/malandis",
"html_url": "https://github.com/malandis",
"followers_url": "https://api.github.com/users/malandis/followers",
"following_url": "https://api.github.com/users/malandis/following{/other_user}",
"gists_url": "https://api.github.com/users/malandis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/malandis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/malandis/subscriptions",
"organizations_url": "https://api.github.com/users/malandis/orgs",
"repos_url": "https://api.github.com/users/malandis/repos",
"events_url": "https://api.github.com/users/malandis/events{/privacy}",
"received_events_url": "https://api.github.com/users/malandis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-09T06:32:12 | 2023-11-13T17:13:40 | 2023-11-13T17:12:21 |
CONTRIBUTOR
| null |
**Description**
Bumps the Momento dependency to the latest version and refactors the usage of `SearchHit` in the Momento Vector Index (MVI) vector store integration. This change is a one liner where we use the preferred attribute `score` to read the query-document similarity instead of `distance`. The latest versions of Momento clients will use this attribute going forward.
**Dependencies**
Updated the Momento dependency to latest version.
**Tests**
💚 I re-ran the existing MVI integration tests (`tests/integration_tests/vectorstores/test_momento_vector_index.py`) and they pass.
**Review**
cc @baskaryan @eyurtsev
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13111/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13111/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13111",
"html_url": "https://github.com/langchain-ai/langchain/pull/13111",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13111.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13111.patch",
"merged_at": "2023-11-13T17:12:21"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13110
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13110/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13110/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13110/events
|
https://github.com/langchain-ai/langchain/pull/13110
| 1,984,876,621 |
PR_kwDOIPDwls5e_qxg
| 13,110 |
Bagatur/oai tool
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-09T05:42:12 | 2023-11-09T15:29:30 | 2023-11-09T15:29:29 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13110/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13110/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13110",
"html_url": "https://github.com/langchain-ai/langchain/pull/13110",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13110.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13110.patch",
"merged_at": "2023-11-09T15:29:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13109
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13109/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13109/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13109/events
|
https://github.com/langchain-ai/langchain/pull/13109
| 1,984,825,214 |
PR_kwDOIPDwls5e_fUb
| 13,109 |
feat: FastEmbed embedding provider
|
{
"login": "Anush008",
"id": 46051506,
"node_id": "MDQ6VXNlcjQ2MDUxNTA2",
"avatar_url": "https://avatars.githubusercontent.com/u/46051506?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Anush008",
"html_url": "https://github.com/Anush008",
"followers_url": "https://api.github.com/users/Anush008/followers",
"following_url": "https://api.github.com/users/Anush008/following{/other_user}",
"gists_url": "https://api.github.com/users/Anush008/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Anush008/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Anush008/subscriptions",
"organizations_url": "https://api.github.com/users/Anush008/orgs",
"repos_url": "https://api.github.com/users/Anush008/repos",
"events_url": "https://api.github.com/users/Anush008/events{/privacy}",
"received_events_url": "https://api.github.com/users/Anush008/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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false |
{
"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-09T05:00:43 | 2023-11-10T18:51:52 | 2023-11-10T18:51:52 |
CONTRIBUTOR
| null |
## Description:
This PR intends to add [Qdrant/FastEmbed](https://qdrant.github.io/fastembed/) as a local embeddings provider, associated tests and documentation.
**Documentation preview:** https://langchain-git-fork-anush008-master-langchain.vercel.app/docs/integrations/text_embedding/fastembed
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13109/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13109/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13109",
"html_url": "https://github.com/langchain-ai/langchain/pull/13109",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13109.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13109.patch",
"merged_at": "2023-11-10T18:51:52"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13108
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13108/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13108/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13108/events
|
https://github.com/langchain-ai/langchain/issues/13108
| 1,984,802,487 |
I_kwDOIPDwls52Ta63
| 13,108 |
Summarization chain batching is not working with Replicate
|
{
"login": "shyamsantoki",
"id": 56479219,
"node_id": "MDQ6VXNlcjU2NDc5MjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/56479219?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shyamsantoki",
"html_url": "https://github.com/shyamsantoki",
"followers_url": "https://api.github.com/users/shyamsantoki/followers",
"following_url": "https://api.github.com/users/shyamsantoki/following{/other_user}",
"gists_url": "https://api.github.com/users/shyamsantoki/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shyamsantoki/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shyamsantoki/subscriptions",
"organizations_url": "https://api.github.com/users/shyamsantoki/orgs",
"repos_url": "https://api.github.com/users/shyamsantoki/repos",
"events_url": "https://api.github.com/users/shyamsantoki/events{/privacy}",
"received_events_url": "https://api.github.com/users/shyamsantoki/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-09T04:33:37 | 2023-11-16T00:07:35 | null |
NONE
| null |
### System Info
LangChain version: 0.0.300
Python version: 3.10.12
### 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
Steps to reproduce:
```py
# Prompt
prompt_text = """You are an assistant tasked with summarizing tables and text. \
Give a concise summary of the table or text. Table or text chunk: {element} """
prompt = PromptTemplate.from_template(prompt_text)
# Summary chain
model = Replicate(
model="meta/llama-2-7b-chat:13c3cdee13ee059ab779f0291d29054dab00a47dad8261375654de5540165fb0",
model_kwargs={"temperature": 0.75, "max_length": 3000, "top_p":0.25}
)
summarize_chain = {"element": lambda x: x} | prompt | model | StrOutputParser()
# Apply to text
texts = [i.text for i in text_elements]
text_summaries = summarize_chain.batch(texts, {"max_concurrency": 5})
```
Error:
```txt
ValueError: config must be a list of the same length as inputs, but got 27 configs for 5 inputs
```
With OpenAI, it is working as expected.
### Expected behavior
The summarization chain (powered by Replicate) should process each chunks batch-wise.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13108/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13108/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13107
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13107/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13107/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13107/events
|
https://github.com/langchain-ai/langchain/issues/13107
| 1,984,758,551 |
I_kwDOIPDwls52TQMX
| 13,107 |
Performing a Graph SPARQL Query with a Local LLM
|
{
"login": "SHAWNZHANGSH",
"id": 73410751,
"node_id": "MDQ6VXNlcjczNDEwNzUx",
"avatar_url": "https://avatars.githubusercontent.com/u/73410751?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SHAWNZHANGSH",
"html_url": "https://github.com/SHAWNZHANGSH",
"followers_url": "https://api.github.com/users/SHAWNZHANGSH/followers",
"following_url": "https://api.github.com/users/SHAWNZHANGSH/following{/other_user}",
"gists_url": "https://api.github.com/users/SHAWNZHANGSH/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SHAWNZHANGSH/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SHAWNZHANGSH/subscriptions",
"organizations_url": "https://api.github.com/users/SHAWNZHANGSH/orgs",
"repos_url": "https://api.github.com/users/SHAWNZHANGSH/repos",
"events_url": "https://api.github.com/users/SHAWNZHANGSH/events{/privacy}",
"received_events_url": "https://api.github.com/users/SHAWNZHANGSH/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 | 5 | 2023-11-09T03:37:33 | 2023-11-20T13:21:36 | null |
NONE
| null |

Hello all, I'm attempting to perform a SPARQL graph query using my local LLM, but it appears that something is amiss. Please feel free to share any helpful tips or guidance.
`graph = RdfGraph(
source_file="http://www.w3.org/People/Berners-Lee/card",
standard="rdf",
local_copy="test1109.ttl",
)
tokenizer = AutoTokenizer.from_pretrained('C:\\data\\llm\\chatglm-6b-int4', trust_remote_code=True)
model = AutoModel.from_pretrained('C:\\data\\llm\\chatglm-6b-int4', trust_remote_code=True).half().cuda().eval()
chain = GraphSparqlQAChain.from_llm(model, graph=graph, verbose=True)
question = "What is Tim Berners-Lee's work homepage?"
result = chain.run(question)`
` File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 2 validation errors for LLMChain
llm
instance of Runnable expected (type=type_error.arbitrary_type; expected_arbitrary_type=Runnable)
llm
instance of Runnable expected (type=type_error.arbitrary_type; expected_arbitrary_type=Runnable)`
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13107/reactions",
"total_count": 2,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 2
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13107/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13106
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13106/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13106/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13106/events
|
https://github.com/langchain-ai/langchain/pull/13106
| 1,984,741,346 |
PR_kwDOIPDwls5e_Nd0
| 13,106 |
Vectara rag mq
|
{
"login": "ofermend",
"id": 1823547,
"node_id": "MDQ6VXNlcjE4MjM1NDc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1823547?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ofermend",
"html_url": "https://github.com/ofermend",
"followers_url": "https://api.github.com/users/ofermend/followers",
"following_url": "https://api.github.com/users/ofermend/following{/other_user}",
"gists_url": "https://api.github.com/users/ofermend/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ofermend/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ofermend/subscriptions",
"organizations_url": "https://api.github.com/users/ofermend/orgs",
"repos_url": "https://api.github.com/users/ofermend/repos",
"events_url": "https://api.github.com/users/ofermend/events{/privacy}",
"received_events_url": "https://api.github.com/users/ofermend/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": 6154420538,
"node_id": "LA_kwDOIPDwls8AAAABbtUBOg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/template",
"name": "template",
"color": "145FB1",
"default": false,
"description": ""
}
] |
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 | 4 | 2023-11-09T03:14:12 | 2023-11-10T18:04:59 | 2023-11-10T18:04:59 |
CONTRIBUTOR
| null |
- **Description:** another Vectara template for MultiQuery RAG flow
- **Twitter handle:** @ofermend
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13106/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13106/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13106",
"html_url": "https://github.com/langchain-ai/langchain/pull/13106",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13106.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13106.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13105
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13105/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13105/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13105/events
|
https://github.com/langchain-ai/langchain/issues/13105
| 1,984,740,642 |
I_kwDOIPDwls52TL0i
| 13,105 |
How to use a different prompt template upon runnable retry?
|
{
"login": "Avinash-Raj",
"id": 3929632,
"node_id": "MDQ6VXNlcjM5Mjk2MzI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3929632?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Avinash-Raj",
"html_url": "https://github.com/Avinash-Raj",
"followers_url": "https://api.github.com/users/Avinash-Raj/followers",
"following_url": "https://api.github.com/users/Avinash-Raj/following{/other_user}",
"gists_url": "https://api.github.com/users/Avinash-Raj/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Avinash-Raj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Avinash-Raj/subscriptions",
"organizations_url": "https://api.github.com/users/Avinash-Raj/orgs",
"repos_url": "https://api.github.com/users/Avinash-Raj/repos",
"events_url": "https://api.github.com/users/Avinash-Raj/events{/privacy}",
"received_events_url": "https://api.github.com/users/Avinash-Raj/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-09T03:13:18 | 2023-11-09T03:26:15 | null |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
Here's an example implementation of `RunnableRetry`,
```
from langchain.chat_models import ChatOpenAI
from langchain.prompts import PromptTemplate
from langchain.schame.runnable.retry import RunnableRetry
template = PromptTemplate.from_template("tell me a joke about {topic}.")
error_template = PromptTemplate.from_template("tell me a joke about {topic} with {context}.")
model = ChatOpenAI(temperature=0.5)
chain = template | model
retryable_chain = RunnableRetry(bound=chain, max_attempt_number=3, callback={'prompt': error_template})
```
As for now `RunnableRetry` won't support callback and I'm not sure about altering the first step of the RunnableSequence with modified inputs (inputs along with the error message.)
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13105/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13105/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13104
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13104/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13104/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13104/events
|
https://github.com/langchain-ai/langchain/pull/13104
| 1,984,696,084 |
PR_kwDOIPDwls5e_D_M
| 13,104 |
Tool Retrieval Template
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-09T02:17:25 | 2023-11-09T02:33:32 | 2023-11-09T02:33:31 |
COLLABORATOR
| null |
Adds a template like https://python.langchain.com/docs/modules/agents/how_to/custom_agent_with_tool_retrieval
Uses OpenAI functions, LCEL, and FAISS
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13104/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13104/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13104",
"html_url": "https://github.com/langchain-ai/langchain/pull/13104",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13104.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13104.patch",
"merged_at": "2023-11-09T02:33:31"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13102
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13102/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13102/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13102/events
|
https://github.com/langchain-ai/langchain/pull/13102
| 1,984,657,258 |
PR_kwDOIPDwls5e-74d
| 13,102 |
rfc: support hybrid in pinecone
|
{
"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": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-09T01:27:18 | 2024-01-13T01:46:51 | 2024-01-13T01:46:51 |
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/13102/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13102/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13102",
"html_url": "https://github.com/langchain-ai/langchain/pull/13102",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13102.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13102.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13101
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13101/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13101/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13101/events
|
https://github.com/langchain-ai/langchain/issues/13101
| 1,984,653,868 |
I_kwDOIPDwls52S2os
| 13,101 |
Structured Output Parser Always Gives Error
|
{
"login": "vikasr111",
"id": 5301813,
"node_id": "MDQ6VXNlcjUzMDE4MTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/5301813?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vikasr111",
"html_url": "https://github.com/vikasr111",
"followers_url": "https://api.github.com/users/vikasr111/followers",
"following_url": "https://api.github.com/users/vikasr111/following{/other_user}",
"gists_url": "https://api.github.com/users/vikasr111/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vikasr111/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vikasr111/subscriptions",
"organizations_url": "https://api.github.com/users/vikasr111/orgs",
"repos_url": "https://api.github.com/users/vikasr111/repos",
"events_url": "https://api.github.com/users/vikasr111/events{/privacy}",
"received_events_url": "https://api.github.com/users/vikasr111/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 | 6 | 2023-11-09T01:22:50 | 2023-11-09T18:57:26 | null |
NONE
| null |
### System Info
langchain==0.0.330
openai==0.28.1
python==3.9.17
### Who can help?
@hwchase17
@agola11
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I have written a simple structured output parser. I am using to extract useful data from a document text. Here's my code:
```
import os
import logging
from dotenv import load_dotenv
from langchain.output_parsers import StructuredOutputParser, ResponseSchema
from langchain.prompts import (
ChatPromptTemplate,
HumanMessagePromptTemplate,
)
from langchain.llms import OpenAI
from langchain.chat_models import ChatOpenAI
load_dotenv()
response_schemas = [
ResponseSchema(
name="document_type", description="Type of document, typically found on top"
),
ResponseSchema(name="shipper", description="Shipper name found in the data"),
ResponseSchema(name="consignee", description="Consignee name found in the data"),
ResponseSchema(name="point_of_origin", description="Point of origin in the data"),
ResponseSchema(
name="customer_order_number", description="Customer order number in the data"
),
ResponseSchema(
name="order_number", description="Order number mentioned in the data"
),
ResponseSchema(
name="bill_of_lading",
description="Bill of lading number(B/L number) found in the data",
),
ResponseSchema(
name="carrier_name", description="Carrier name mentioned in the data"
),
ResponseSchema(
name="required_ship_date", description="Required ship date in date format"
),
ResponseSchema(
name="shipped_date", description="Shipped date, typically separated by /"
),
ResponseSchema(
name="transportation_mode", description="Transportation mode such as truck etc."
),
ResponseSchema(
name="vehicle_number", description="Vehicle number found in the data"
),
ResponseSchema(name="routing_info", description="Routing info found in the data"),
ResponseSchema(
name="invoice_to_buyer", description="Invoice to buyer data found in the data"
),
ResponseSchema(
name="consignee_number", description="Consignee number mentioned in the data"
),
ResponseSchema(
name="net_weight",
description="Net weight found in the data, typically found on the second page. It's a number succeeded by weight symbol such as kg/lb/1b/15/16 and ends with NT (Net weight).",
),
ResponseSchema(name="ticket_number", description="Ticket number found in the data"),
ResponseSchema(name="outbound_date", description="Outbound date found in the data"),
]
system_prompt = """
Following is the data extracted from a document through OCR wrapped inside <ocr_data> delimeter. It may be unstructured and unorganized, and you'll help me extract key information from this data. The data can be nuanced, and field and it's respective values may be at different positions. The presented data can be of multiple pages, separated by (------). Analyze the OCR data below and give me the value of given fields. If you can't find the values in the OCR data, simply return 'N/A'.
"""
class BolAgent:
def __init__(self):
self.openai_api_key = os.getenv("OPENAI_API_KEY")
self.llm = OpenAI(
openai_api_key=self.openai_api_key, temperature=0.1, max_tokens=1000
)
self.chat_model = ChatOpenAI(
model="gpt-3.5-turbo-16k",
openai_api_key=self.openai_api_key,
temperature=0,
)
self.response_schemas = response_schemas
self.system_prompt = system_prompt
def extract_paramerts(
self,
ocr_data,
):
output_parser = StructuredOutputParser.from_response_schemas(
self.response_schemas
)
input_data = f"<ocr_data>/n{ocr_data}/n</ocr_data>"
format_instructions = output_parser.get_format_instructions()
prompt = ChatPromptTemplate(
messages=[
HumanMessagePromptTemplate.from_template(
"{system_prompt}\n\n{format_instructions}\n\n{input_data}"
)
],
input_variables=["system_prompt", "input_data"],
partial_variables={"format_instructions": format_instructions},
)
llm_input = prompt.format_prompt(
system_prompt=system_prompt, input_data=input_data
)
logging.info(f"LLM Input: {llm_input}")
output = self.chat_model(llm_input.to_messages())
logging.info(f"LLM Output: {output}")
result = output_parser.parse(output.content)
return result
```
When I use this code on any input data, the output parser gives error most of the time. Here's a sample input data:
`\n------------------\nSTRAIGHT BILL OF LADING - SHORT FORM\nTEST\nCHEMTRADE\nFICHE D\'EXPEDITION - FORMULE REGULIERE\nS4D\nSHIPPER/EXPEDITEUR\nChemtrade West Limited Partnership\nTIME IN/ARRIVEE\nGROSS/BRUT\nCONSIGNEE/DESTINATAIRE\nSASK POWER\n TARE\nSHIP TO/EXPEDIEZ A\nCORY \nCOGENERATION STATION\nTIME OUT/DEPART\n8 KM W OF SASKATOON HWY 7\nNET\nVANSCOY SOK 1VO SK CA\nPOINT OF ORIGIN/POINT D\'EXPEDITION\nCUSTOMER ORDER NO./N DE COMMANDE DU CLIENT\nORDER NO./N DE COMM.\n3/L NO./NDE CONN.\nCHEMTRADE (SASKATOON)\nS\n1856\n80001877\n CARRIER NAME/NOM DU TRANSPORTEUR\nREQUIRED SHIP DATE/DATE EXP.DEM.\nDATE SHIPPED/EXPEDIE LE\nCARON TRANSPORT LTD\nNov 06,2023\nTRANSPORTATION MODE/MODE DE TRANSPORT\nVEHICLE T/C NO. - MARQUE DU WAGON\nTruck\n UNIVAR CANADA LTD.\n ROUTING/ITINERAIRE\nCONSIGNEE#/CONSIGNATAIRE\nPAGE\n600929\n1 of\n3\nNO.AND DESCRIPTION OF PACKS\nD.G.\nDESCRIPTION OF ARTICLES AND SPECIAL MARKS\nNET WEIGHT KG\nNBRE ET DESCRIPTION DE COLIS\nDESCRIPTION DES ARTICLES ET INDICATIONS SPECIALS\nPOIDS NET\n1 TT\nX\nUN1830, SULFURIC ACID, 8, PG II\n21.000 Tonne\nSULFURIC ACID 93%\nER GUIDE #137\n4 PLACARDS REQUIRED; CLASS 8, CORROSIVE\nSTCC 4930040\nSulfuric Acid 93%\nCOA W/ SHIPMENT\nDELIVERY HOURS: 8:OOAM-1: OOPM MON-THURS\nATTENDANCE DURING OFFLOAD REQUIRED\nSAFETY GOGGLES, FACE SHIELD, GLOVES, BOOTS, HARD\nHAT, STEEL TOED SHOES, PROTECTIVE SUIT\n3" QUICK CONNECT CAMLOCK; 1 HOSE REQUIRED\nPersonal Protective Equipment: Gloves. Protective clothing. Protective goggles. Face shield.\nnsufficient ventilation: wear respiratory protection.\nERP 2-1564 and Chemtrade Logistics 24-Hour Number >>\n1-866-416-4404\nPIU 2-1564 et Chemtrade Logistics Numero de 24 heures >>\n1-866-416-4404\nConsignor / Expediteur:\nLocation / Endroit:\nCHEMTRADE WEST LIMITED PARTNERSHIP\n11TH STREET WEST\nI hereby declare that the contents of this consignment are fully and accurately described above by the proper shipping\nSASKATOON SK CA\nare in all respects in proper condition for transport according to the Transportation of Dangerous Goods Regulations.\nS7K 4C8\nPer/Par:Michael Rumble, EHS Director, Risk Management\nIF CHARGES ARE TO BE PREPAID, WRITE OR STAMP\nJe declare que le contenu de ce chargement est decrit ci-dessus de faconcomplete et exacte par Iappellation reglementaire\nINDIQUER ICI SI L\'ENVOI SE FAIT EN "PORT-PAYE"\negards bien conditionne pouretre transporte conformement au Reglement sur le transport des marchandises dangereuses.\nPrepaid\nFORWARD INVOICE FOR PREPAID FREIGHT\nChemtrade West Limited Partnership\nQUOTING OUR B/L NO.TO:\n155 Gordon\nBaker Rd #300\nWeight Agreement\nFAIRE SUIVRE FACTURE POUR EXPEDITION PORT\nToronto,\nOnt.\nM2H 3N5\nPAYE EN REFERANT A NOTRE NUMERO DE CONN.A:\nSHIPPER\nChemtrade West Limited\nAGENT\nCONSIGNEE.\nEXPEDITEUR\nPartnership\nDESTINATAIRE\nPER\nPERMANENT POST OFFICE ADDRESS OF SHIPPER\nPER\nPER\nPAR\n(ADRESSE POSTALE PERMANENTE DE L\'EXPEDITEUR)\nTHESE PRODUCTS ARE SOLD AND SHIPPED IN ACCORDANCE WITH\nTHE TERMS OF SALES ON THE REVERSE SIDE OF THIS,DOCUMENT.\nResponsible Care\nCES PRODUITS SONT VENDUS ET EXPEDIES CONFORMEMENTAUX\nCONDITIONS DE VENTE APPARAISSANT AU VERSO DE LA PRESENTE\nOur commitment to sustainability.\nS4D PRASRNov 06,2023 1618`
Upon further debugging I found that for some reason the output has two triple-backticks at the end and because of this the Structured Output Parser ends up giving the error. Here the output for better clarity (Notice the end of output):
`content='```json\n{\n\t"document_type": "STRAIGHT BILL OF LADING - SHORT FORM",\n\t"shipper": "Chemtrade West Limited Partnership",\n\t"consignee": "SASK POWER",\n\t"point_of_origin": "VANSCOY SOK 1VO SK CA",\n\t"customer_order_number": "80001877",\n\t"order_number": "1856",\n\t"bill_of_lading": "600929",\n\t"carrier_name": "CARON TRANSPORT LTD",\n\t"required_ship_date": "Nov 06,2023",\n\t"shipped_date": "Nov 06,2023",\n\t"transportation_mode": "Truck",\n\t"vehicle_number": "T/C NO.",\n\t"routing_info": "UNIVAR CANADA LTD.",\n\t"invoice_to_buyer": "Chemtrade West Limited Partnership",\n\t"consignee_number": "600929",\n\t"net_weight": "21.000 Tonne",\n\t"ticket_number": "N/A",\n\t"outbound_date": "N/A"\n}\n```\n```'`
I have started to notice this error at high-frequency after OpenAI dev day. Any idea what I might be doing wrong?
### Expected behavior
The output should only have one triple-backticks at the end and the output parser should parse the output properly.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13101/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13101/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13100
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13100/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13100/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13100/events
|
https://github.com/langchain-ai/langchain/pull/13100
| 1,984,613,480 |
PR_kwDOIPDwls5e-yoX
| 13,100 |
Get project from langchain sdk
|
{
"login": "jakerachleff",
"id": 9028897,
"node_id": "MDQ6VXNlcjkwMjg4OTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/9028897?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jakerachleff",
"html_url": "https://github.com/jakerachleff",
"followers_url": "https://api.github.com/users/jakerachleff/followers",
"following_url": "https://api.github.com/users/jakerachleff/following{/other_user}",
"gists_url": "https://api.github.com/users/jakerachleff/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jakerachleff/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jakerachleff/subscriptions",
"organizations_url": "https://api.github.com/users/jakerachleff/orgs",
"repos_url": "https://api.github.com/users/jakerachleff/repos",
"events_url": "https://api.github.com/users/jakerachleff/events{/privacy}",
"received_events_url": "https://api.github.com/users/jakerachleff/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-09T00:31:18 | 2023-11-09T01:10:13 | 2023-11-09T01:10:12 |
COLLABORATOR
| null |
## Description
We need to centralize the API we use to get the project name for our tracers. This PR makes it so we always get this from a shared function in the langsmith sdk.
## Dependencies
Upgraded langsmith from 0.52 to 0.62 to include the new API `get_tracer_project`
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13100/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13100/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13100",
"html_url": "https://github.com/langchain-ai/langchain/pull/13100",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13100.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13100.patch",
"merged_at": "2023-11-09T01:10:12"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13099
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13099/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13099/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13099/events
|
https://github.com/langchain-ai/langchain/pull/13099
| 1,984,605,352 |
PR_kwDOIPDwls5e-w50
| 13,099 |
Fix langchain.llms OpenAI completion doesn't work due to v1 client update
|
{
"login": "dosuken123",
"id": 4432788,
"node_id": "MDQ6VXNlcjQ0MzI3ODg=",
"avatar_url": "https://avatars.githubusercontent.com/u/4432788?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dosuken123",
"html_url": "https://github.com/dosuken123",
"followers_url": "https://api.github.com/users/dosuken123/followers",
"following_url": "https://api.github.com/users/dosuken123/following{/other_user}",
"gists_url": "https://api.github.com/users/dosuken123/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dosuken123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dosuken123/subscriptions",
"organizations_url": "https://api.github.com/users/dosuken123/orgs",
"repos_url": "https://api.github.com/users/dosuken123/repos",
"events_url": "https://api.github.com/users/dosuken123/events{/privacy}",
"received_events_url": "https://api.github.com/users/dosuken123/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 10 | 2023-11-09T00:21:19 | 2023-11-10T19:14:25 | 2023-11-09T23:12:19 |
CONTRIBUTOR
| null |
This commit fixes the issue that langchain.llms OpenAI completion stopped working since the V1 openai client update.
Replace this entire comment with:
- **Description:** This PR fixes the issue [AttributeError: module 'openai' has no attribute 'Completion'](https://github.com/langchain-ai/langchain/issues/12967) similar to https://github.com/langchain-ai/langchain/commit/8e0cb2eb84539b249198f98f7647a1f24b2392c2 and https://github.com/langchain-ai/langchain/pull/12969,
- **Issue:** https://github.com/langchain-ai/langchain/issues/12967,
- **Dependencies:** `openai` v1.x.x client,
- **Tag maintainer:** @baskaryan,
- **Twitter handle:** @dosuken123
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/13099/reactions",
"total_count": 4,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 2
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13099/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13099",
"html_url": "https://github.com/langchain-ai/langchain/pull/13099",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13099.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13099.patch",
"merged_at": "2023-11-09T23:12:19"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13098
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13098/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13098/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13098/events
|
https://github.com/langchain-ai/langchain/issues/13098
| 1,984,577,336 |
I_kwDOIPDwls52Sj84
| 13,098 |
Serialize failing - Can't use with_fallbacks with MapReduceChain/Summarization: Can't instantiate abstract class BaseLanguageModel with abstract methods agenerate_prompt...
|
{
"login": "ShantanuNair",
"id": 8559347,
"node_id": "MDQ6VXNlcjg1NTkzNDc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8559347?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShantanuNair",
"html_url": "https://github.com/ShantanuNair",
"followers_url": "https://api.github.com/users/ShantanuNair/followers",
"following_url": "https://api.github.com/users/ShantanuNair/following{/other_user}",
"gists_url": "https://api.github.com/users/ShantanuNair/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShantanuNair/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShantanuNair/subscriptions",
"organizations_url": "https://api.github.com/users/ShantanuNair/orgs",
"repos_url": "https://api.github.com/users/ShantanuNair/repos",
"events_url": "https://api.github.com/users/ShantanuNair/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShantanuNair/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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-08T23:48:38 | 2023-11-09T00:02:59 | null |
CONTRIBUTOR
| null |
I see the following when using AzureChatOpenAI with with_fallbacks. Removing with_fallbacks doesn't cause this issue.
`Can't instantiate abstract class BaseLanguageModel with abstract methods agenerate_prompt, apredict, apredict_messages, generate_prompt, invoke, predict, predict_messages (type=type_error)`
### System Info
Pydantic v1, same with v2
**Lanchain 0.0.295**
### Who can help?
@hwchase17
@agola11
@ey
### 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
This doesn't work:
``` fallback_chat_model = ChatOpenAI(model_name="model_name")
primary_chat_model = AzureChatOpenAI()
chat_model = primary_chat_model.with_fallbacks([fallback_chat_model])
text_splitter = RecursiveCharacterTextSplitter(
chunk_size=chunk_size,
chunk_overlap=chunk_overlap,
length_function=primary_chat_model.get_num_tokens,
)
```
### Expected behavior
Should work as this, but with fallback support
``` fallback_chat_model = ChatOpenAI(model_name="model_name")
primary_chat_model = AzureChatOpenAI()
chat_model = primary_chat_model #.with_fallbacks([fallback_chat_model])
text_splitter = RecursiveCharacterTextSplitter(
chunk_size=chunk_size,
chunk_overlap=chunk_overlap,
length_function=primary_chat_model.get_num_tokens,
)
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13098/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13098/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13097
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13097/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13097/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13097/events
|
https://github.com/langchain-ai/langchain/pull/13097
| 1,984,558,052 |
PR_kwDOIPDwls5e-mxx
| 13,097 |
Make jinachat_api_key a SecretStr
|
{
"login": "hiroshitashir",
"id": 1159921,
"node_id": "MDQ6VXNlcjExNTk5MjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1159921?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hiroshitashir",
"html_url": "https://github.com/hiroshitashir",
"followers_url": "https://api.github.com/users/hiroshitashir/followers",
"following_url": "https://api.github.com/users/hiroshitashir/following{/other_user}",
"gists_url": "https://api.github.com/users/hiroshitashir/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hiroshitashir/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hiroshitashir/subscriptions",
"organizations_url": "https://api.github.com/users/hiroshitashir/orgs",
"repos_url": "https://api.github.com/users/hiroshitashir/repos",
"events_url": "https://api.github.com/users/hiroshitashir/events{/privacy}",
"received_events_url": "https://api.github.com/users/hiroshitashir/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-08T23:24:22 | 2023-12-05T04:50:11 | 2023-12-05T04:50:10 |
CONTRIBUTOR
| null |
Description: This pull request removes secrets present in raw format
Issue: Jinachat api key was exposed when printing out the langchain object https://github.com/langchain-ai/langchain/issues/12165
Maintainer: @eyurtsev
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13097/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13097/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13097",
"html_url": "https://github.com/langchain-ai/langchain/pull/13097",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13097.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13097.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13096
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13096/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13096/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13096/events
|
https://github.com/langchain-ai/langchain/issues/13096
| 1,984,517,806 |
I_kwDOIPDwls52SVau
| 13,096 |
make text fails
|
{
"login": "jpurusho65",
"id": 127883907,
"node_id": "U_kgDOB59agw",
"avatar_url": "https://avatars.githubusercontent.com/u/127883907?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jpurusho65",
"html_url": "https://github.com/jpurusho65",
"followers_url": "https://api.github.com/users/jpurusho65/followers",
"following_url": "https://api.github.com/users/jpurusho65/following{/other_user}",
"gists_url": "https://api.github.com/users/jpurusho65/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jpurusho65/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jpurusho65/subscriptions",
"organizations_url": "https://api.github.com/users/jpurusho65/orgs",
"repos_url": "https://api.github.com/users/jpurusho65/repos",
"events_url": "https://api.github.com/users/jpurusho65/events{/privacy}",
"received_events_url": "https://api.github.com/users/jpurusho65/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
open
| false | null |
[] | null | 3 | 2023-11-08T22:39:37 | 2023-11-09T00:50:57 | null |
NONE
| null |
### System Info
make text
Running Sphinx v4.5.0
loading pickled environment... done
[autosummary] generating autosummary for: index.rst
building [mo]: targets for 0 po files that are out of date
building [text]: targets for 0 source files that are out of date
updating environment: 0 added, 1 changed, 0 removed
reading sources... [100%] index
....
Exception occurred:
File "/lib/python3.10/site-packages/sphinx/registry.py", line 354, in create_translator
setattr(translator, 'visit_' + name, MethodType(visit, translator))
TypeError: first argument must be callable
Full path of file registry.py is truncated.
### 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
Run make text in docs/api_reference folder
### Expected behavior
Documentation output in .rst format
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13096/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13096/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13095
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13095/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13095/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13095/events
|
https://github.com/langchain-ai/langchain/issues/13095
| 1,984,500,319 |
I_kwDOIPDwls52SRJf
| 13,095 |
'RunnableWithFallbacks' object has no attribute 'get_num_tokens'
|
{
"login": "ShantanuNair",
"id": 8559347,
"node_id": "MDQ6VXNlcjg1NTkzNDc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8559347?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShantanuNair",
"html_url": "https://github.com/ShantanuNair",
"followers_url": "https://api.github.com/users/ShantanuNair/followers",
"following_url": "https://api.github.com/users/ShantanuNair/following{/other_user}",
"gists_url": "https://api.github.com/users/ShantanuNair/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShantanuNair/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShantanuNair/subscriptions",
"organizations_url": "https://api.github.com/users/ShantanuNair/orgs",
"repos_url": "https://api.github.com/users/ShantanuNair/repos",
"events_url": "https://api.github.com/users/ShantanuNair/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShantanuNair/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 7 | 2023-11-08T22:28:33 | 2023-11-08T23:45:31 | null |
CONTRIBUTOR
| null |
### System Info
llm/chat_models created using with_fallback() throw attribute error when trying to access their get_num_tokens() function. This could potentially break several use cases where one does chat_model.get_num_tokens(). I believe even the docs access it as such (For example in the [MapReduce using LCEL](https://python.langchain.com/docs/modules/chains/document/map_reduce#recreating-with-lcel) docs)
My use case was as such:
```
fallback_chat_model = ChatOpenAI(model_name="model_name", temperature=0)
primary_chat_model = AzureChatOpenAI(temperature=0)
chat_model = primary_chat_model.with_fallbacks([fallback_chat_model])
## Split text using length_function and RecursiveCharacterTextSplitter
text_splitter = RecursiveCharacterTextSplitter(
chunk_size=chunk_size,
chunk_overlap=chunk_overlap,
length_function=chat_model.get_num_tokens,
)
texts = text_splitter.create_documents([text_sentence_numbered])
```
Of course, I can just use primary_chat_model's get_num_tokens if it's equivalent to the fallback's but in the case it's not, this would be a bigger issue. Worse still, this may be used within chains like MapReduceChain etc and many haven't even begun the switch to LCEL.
**Langchain Version 0.0.295**
### Who can help?
@eyurtsev @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
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
fallback_chat_model = ChatOpenAI(model_name="model_name", temperature=0)
primary_chat_model = AzureChatOpenAI(temperature=0)
chat_model = primary_chat_model.with_fallbacks([fallback_chat_model])
## Split text using length_function and RecursiveCharacterTextSplitter
text_splitter = RecursiveCharacterTextSplitter(
chunk_size=chunk_size,
chunk_overlap=chunk_overlap,
length_function=chat_model.get_num_tokens,
)
texts = text_splitter.create_documents([text_sentence_numbered])
```
### Expected behavior
get_num_tokens() is accessible and based on the fallback/original chat_model or llm being used.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13095/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13095/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13094
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13094/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13094/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13094/events
|
https://github.com/langchain-ai/langchain/pull/13094
| 1,984,464,047 |
PR_kwDOIPDwls5e-SNO
| 13,094 |
Add RunnableSequence documentation
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false |
{
"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 | 1 | 2023-11-08T21:59:48 | 2023-11-10T18:44:44 | 2023-11-10T18:44:44 |
COLLABORATOR
| null |
Add RunnableSequence documentation
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13094/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13094/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13094",
"html_url": "https://github.com/langchain-ai/langchain/pull/13094",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13094.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13094.patch",
"merged_at": "2023-11-10T18:44:44"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13093
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13093/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13093/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13093/events
|
https://github.com/langchain-ai/langchain/pull/13093
| 1,984,463,718 |
PR_kwDOIPDwls5e-SIk
| 13,093 |
update more azure docs
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"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-08T21:59:30 | 2023-11-08T22:11:26 | 2023-11-08T22:11:16 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13093/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13093/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13093",
"html_url": "https://github.com/langchain-ai/langchain/pull/13093",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13093.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13093.patch",
"merged_at": "2023-11-08T22:11:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13092
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13092/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13092/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13092/events
|
https://github.com/langchain-ai/langchain/pull/13092
| 1,984,460,369 |
PR_kwDOIPDwls5e-Ra_
| 13,092 |
Make javelin_ai_gateway_api_key a SecretStr
|
{
"login": "hiroshitashir",
"id": 1159921,
"node_id": "MDQ6VXNlcjExNTk5MjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1159921?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hiroshitashir",
"html_url": "https://github.com/hiroshitashir",
"followers_url": "https://api.github.com/users/hiroshitashir/followers",
"following_url": "https://api.github.com/users/hiroshitashir/following{/other_user}",
"gists_url": "https://api.github.com/users/hiroshitashir/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hiroshitashir/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hiroshitashir/subscriptions",
"organizations_url": "https://api.github.com/users/hiroshitashir/orgs",
"repos_url": "https://api.github.com/users/hiroshitashir/repos",
"events_url": "https://api.github.com/users/hiroshitashir/events{/privacy}",
"received_events_url": "https://api.github.com/users/hiroshitashir/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false |
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 4 | 2023-11-08T21:56:37 | 2023-11-15T21:10:05 | 2023-11-15T21:10:04 |
CONTRIBUTOR
| null |
**Description:** Add masking of API Key for javelin_ai_gateway,
**Issue:** https://github.com/langchain-ai/langchain/issues/12165,
**Dependencies:** None,
**Tag maintainer:** @eyurtsev,
**Twitter handle:** @hiroshitashir
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13092/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13092/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13092",
"html_url": "https://github.com/langchain-ai/langchain/pull/13092",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13092.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13092.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13091
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13091/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13091/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13091/events
|
https://github.com/langchain-ai/langchain/pull/13091
| 1,984,435,518 |
PR_kwDOIPDwls5e-MFD
| 13,091 |
update azure embedding docs
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T21:35:42 | 2023-11-08T21:39:33 | 2023-11-08T21:39:32 |
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/13091/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13091/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13091",
"html_url": "https://github.com/langchain-ai/langchain/pull/13091",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13091.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13091.patch",
"merged_at": "2023-11-08T21:39:32"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13090
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13090/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13090/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13090/events
|
https://github.com/langchain-ai/langchain/issues/13090
| 1,984,421,073 |
I_kwDOIPDwls52R9zR
| 13,090 |
Send back annotations sent by OpenAI for content filtered requests (and responses)
|
{
"login": "santhoshraj2960",
"id": 18456039,
"node_id": "MDQ6VXNlcjE4NDU2MDM5",
"avatar_url": "https://avatars.githubusercontent.com/u/18456039?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/santhoshraj2960",
"html_url": "https://github.com/santhoshraj2960",
"followers_url": "https://api.github.com/users/santhoshraj2960/followers",
"following_url": "https://api.github.com/users/santhoshraj2960/following{/other_user}",
"gists_url": "https://api.github.com/users/santhoshraj2960/gists{/gist_id}",
"starred_url": "https://api.github.com/users/santhoshraj2960/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/santhoshraj2960/subscriptions",
"organizations_url": "https://api.github.com/users/santhoshraj2960/orgs",
"repos_url": "https://api.github.com/users/santhoshraj2960/repos",
"events_url": "https://api.github.com/users/santhoshraj2960/events{/privacy}",
"received_events_url": "https://api.github.com/users/santhoshraj2960/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-08T21:23:40 | 2023-11-08T21:31:11 | null |
NONE
| null |
### Feature request
Is it possible to send back the annotations in the response when a request / response is content filtered by AzureOpenAI? Some prompts are content filtered by Azure and sometimes the response to certain prompts are content filtered as well.
Azure OpenAI sends back the annotations https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/content-filter?tabs=python#annotations-preview
Langchain needs to capture these annotations and send it along with the response
### Motivation
This feature will help us to respond to our uses why a particular prompt was content filtered. Today we can only tell our users whether or not a prompt was content filtered by Azure but when the users ask why the filtration was applied, we have no definite answer. With these annotations we can tell our users why the content filtration was applied
### Your contribution
No, not at the moment
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13090/reactions",
"total_count": 2,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 2
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13090/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13089
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13089/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13089/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13089/events
|
https://github.com/langchain-ai/langchain/pull/13089
| 1,984,415,438 |
PR_kwDOIPDwls5e-Hu0
| 13,089 |
bump 332
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T21:19:07 | 2023-11-08T21:32:42 | 2023-11-08T21:23:17 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13089/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13089/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13089",
"html_url": "https://github.com/langchain-ai/langchain/pull/13089",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13089.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13089.patch",
"merged_at": "2023-11-08T21:23:17"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13088
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13088/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13088/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13088/events
|
https://github.com/langchain-ai/langchain/pull/13088
| 1,984,397,476 |
PR_kwDOIPDwls5e-D07
| 13,088 |
Document RunnableWithFallbacks
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false |
{
"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 | 1 | 2023-11-08T21:05:35 | 2023-11-10T18:16:22 | 2023-11-10T18:16:21 |
COLLABORATOR
| null |
Add documentation to RunnableWithFallbacks
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13088/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13088/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13088",
"html_url": "https://github.com/langchain-ai/langchain/pull/13088",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13088.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13088.patch",
"merged_at": "2023-11-10T18:16:21"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13087
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13087/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13087/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13087/events
|
https://github.com/langchain-ai/langchain/issues/13087
| 1,984,384,651 |
I_kwDOIPDwls52R06L
| 13,087 |
Issue: Chroma tests are buggy
|
{
"login": "atroyn",
"id": 1302641,
"node_id": "MDQ6VXNlcjEzMDI2NDE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1302641?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/atroyn",
"html_url": "https://github.com/atroyn",
"followers_url": "https://api.github.com/users/atroyn/followers",
"following_url": "https://api.github.com/users/atroyn/following{/other_user}",
"gists_url": "https://api.github.com/users/atroyn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/atroyn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/atroyn/subscriptions",
"organizations_url": "https://api.github.com/users/atroyn/orgs",
"repos_url": "https://api.github.com/users/atroyn/repos",
"events_url": "https://api.github.com/users/atroyn/events{/privacy}",
"received_events_url": "https://api.github.com/users/atroyn/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": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-08T20:56:30 | 2023-11-08T20:56:58 | null |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
The tests for Langchain's `Chroma` are currently broken. The reason is:
- By default, chroma persists locally, for ease of use
- All the tests use the same collection name
- Thus, when a new `Chroma` is created, it sees the collections persisted from previous tests.
This causes inconsistent behavior, since the contents of the collection depend on the order of the tests, not just what the test itself added.
### Suggestion:
The solution is to create fixtures which appropriately teardown the `Chroma` after every test.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13087/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13087/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13086
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13086/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13086/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13086/events
|
https://github.com/langchain-ai/langchain/pull/13086
| 1,984,379,828 |
PR_kwDOIPDwls5e9_88
| 13,086 |
bump 331rc3 exp 39
|
{
"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": 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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T20:52:45 | 2023-11-08T21:00:14 | 2023-11-08T21:00:13 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13086/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13086/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13086",
"html_url": "https://github.com/langchain-ai/langchain/pull/13086",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13086.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13086.patch",
"merged_at": "2023-11-08T21:00:13"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13085
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13085/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13085/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13085/events
|
https://github.com/langchain-ai/langchain/pull/13085
| 1,984,376,122 |
PR_kwDOIPDwls5e9_Jr
| 13,085 |
Don't pass EF to chroma
|
{
"login": "atroyn",
"id": 1302641,
"node_id": "MDQ6VXNlcjEzMDI2NDE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1302641?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/atroyn",
"html_url": "https://github.com/atroyn",
"followers_url": "https://api.github.com/users/atroyn/followers",
"following_url": "https://api.github.com/users/atroyn/following{/other_user}",
"gists_url": "https://api.github.com/users/atroyn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/atroyn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/atroyn/subscriptions",
"organizations_url": "https://api.github.com/users/atroyn/orgs",
"repos_url": "https://api.github.com/users/atroyn/repos",
"events_url": "https://api.github.com/users/atroyn/events{/privacy}",
"received_events_url": "https://api.github.com/users/atroyn/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
closed
| false | null |
[] | null | 5 | 2023-11-08T20:49:53 | 2023-11-21T05:33:13 | 2023-11-08T20:55:35 |
CONTRIBUTOR
| null |
- **Description:**
Recently Chroma rolled out a breaking change on the way we handle embedding functions, in order to support multi-modal collections.
This broke the way LangChain's `Chroma` objects get created, because we were passing the EF down into the Chroma collection: https://docs.trychroma.com/migration#migration-to-0416---november-7-2023
However, internally, we are never actually using embeddings on the chroma collection - LangChain's `Chroma` object calls it instead. Thus we just don't pass an `embedding_function` to Chroma itself, which fixes the issue.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13085/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13085/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13085",
"html_url": "https://github.com/langchain-ai/langchain/pull/13085",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13085.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13085.patch",
"merged_at": "2023-11-08T20:55:35"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13084
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13084/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13084/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13084/events
|
https://github.com/langchain-ai/langchain/pull/13084
| 1,984,371,734 |
PR_kwDOIPDwls5e9-NR
| 13,084 |
Add Wrapping Library Metadata to MongoDB vector store
|
{
"login": "NoahStapp",
"id": 30483654,
"node_id": "MDQ6VXNlcjMwNDgzNjU0",
"avatar_url": "https://avatars.githubusercontent.com/u/30483654?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NoahStapp",
"html_url": "https://github.com/NoahStapp",
"followers_url": "https://api.github.com/users/NoahStapp/followers",
"following_url": "https://api.github.com/users/NoahStapp/following{/other_user}",
"gists_url": "https://api.github.com/users/NoahStapp/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NoahStapp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NoahStapp/subscriptions",
"organizations_url": "https://api.github.com/users/NoahStapp/orgs",
"repos_url": "https://api.github.com/users/NoahStapp/repos",
"events_url": "https://api.github.com/users/NoahStapp/events{/privacy}",
"received_events_url": "https://api.github.com/users/NoahStapp/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"
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-08T20:46:33 | 2023-11-17T06:20:05 | 2023-11-17T06:20:04 |
CONTRIBUTOR
| null |
**Description**
MongoDB drivers are used in various flavors and languages. Making sure we exercise our due diligence in identifying the "origin" of the library calls makes it best to understand how our Atlas servers get accessed.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13084/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13084/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13084",
"html_url": "https://github.com/langchain-ai/langchain/pull/13084",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13084.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13084.patch",
"merged_at": "2023-11-17T06:20:04"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13083
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13083/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13083/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13083/events
|
https://github.com/langchain-ai/langchain/pull/13083
| 1,984,305,902 |
PR_kwDOIPDwls5e9v0E
| 13,083 |
Add more runnable documentation
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false |
{
"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 | 1 | 2023-11-08T19:59:40 | 2023-11-10T18:14:58 | 2023-11-10T18:14:58 |
COLLABORATOR
| null |
- Adding documentation to the runnable.
- Documentation is not organized in the best way for the runnable; i.e., in
terms of LCEL vs. other standard methods, will follow up with more edits.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13083/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13083/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13083",
"html_url": "https://github.com/langchain-ai/langchain/pull/13083",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13083.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13083.patch",
"merged_at": "2023-11-10T18:14:58"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13082
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13082/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13082/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13082/events
|
https://github.com/langchain-ai/langchain/issues/13082
| 1,984,273,473 |
I_kwDOIPDwls52RZxB
| 13,082 |
OpenAIEmbeddings
|
{
"login": "paritoshk",
"id": 9400939,
"node_id": "MDQ6VXNlcjk0MDA5Mzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9400939?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/paritoshk",
"html_url": "https://github.com/paritoshk",
"followers_url": "https://api.github.com/users/paritoshk/followers",
"following_url": "https://api.github.com/users/paritoshk/following{/other_user}",
"gists_url": "https://api.github.com/users/paritoshk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/paritoshk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/paritoshk/subscriptions",
"organizations_url": "https://api.github.com/users/paritoshk/orgs",
"repos_url": "https://api.github.com/users/paritoshk/repos",
"events_url": "https://api.github.com/users/paritoshk/events{/privacy}",
"received_events_url": "https://api.github.com/users/paritoshk/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 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-08T19:37:37 | 2023-11-09T22:22:17 | null |
NONE
| null |
### System Info
Traceback:
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
exec(code, module.__dict__)
File "/app/demo-chatbot/updatedapp.py", line 351, in <module>
asyncio.run(main())
File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/app/demo-chatbot/updatedapp.py", line 214, in main
vectors = file.get_vector()
File "/app/demo-chatbot/file.py", line 39, in get_vector
self.save_vector()
File "/app/demo-chatbot/file.py", line 30, in save_vector
embeddings = OpenAIEmbeddings(openai_api_key=st.secrets["OPEN_AI_KEY"])
File "pydantic/main.py", line 339, in pydantic.main.BaseModel.__init__
File "pydantic/main.py", line 1102, in pydantic.main.validate_model
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/embeddings/openai.py", line 166, in validate_environment
values["client"] = openai.Embedding
### Who can help?
@agola11 OpenAI changed the code https://platform.openai.com/docs/guides/embeddings/what-are-embeddings
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Just follow a funciton similar to
def save_vector(self):
self.create_images()
self.extract_text()
loader = TextLoader(f"{self.dir}/info.txt")
documents = loader.load()
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
documents = text_splitter.split_documents(documents)
embeddings = OpenAIEmbeddings()
vectors = FAISS.from_documents(documents, embeddings)
### Expected behavior
No traceback adding .create
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13082/reactions",
"total_count": 2,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 2
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13082/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13081
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13081/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13081/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13081/events
|
https://github.com/langchain-ai/langchain/issues/13081
| 1,984,239,004 |
I_kwDOIPDwls52RRWc
| 13,081 |
Tests are failing in local development
|
{
"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": 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-08T19:12:43 | 2023-11-08T19:36:34 | null |
CONTRIBUTOR
| null |
### System Info
langchain cloned
peortry with python v3.11.4
openai v1.1.1
### 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
cloned the repositpry
cd to `libs/langchain`
```
poetry install --with test
```
```
make test
```
output
```
....
FAILED tests/unit_tests/llms/test_anyscale.py::test_api_key_is_secret_string - AttributeError: module 'openai' has no attribute 'ChatCompletion'
FAILED tests/unit_tests/llms/test_anyscale.py::test_api_key_masked_when_passed_from_env - AttributeError: module 'openai' has no attribute 'ChatCompletion'
FAILED tests/unit_tests/llms/test_anyscale.py::test_api_key_masked_when_passed_via_constructor - AttributeError: module 'openai' has no attribute 'ChatCompletion'
FAILED tests/unit_tests/llms/test_gooseai.py::test_api_key_is_secret_string - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/llms/test_gooseai.py::test_api_key_masked_when_passed_via_constructor - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/llms/test_gooseai.py::test_api_key_masked_when_passed_from_env - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/llms/test_openai.py::test_openai_model_param - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/llms/test_openai.py::test_openai_model_kwargs - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/llms/test_openai.py::test_openai_incorrect_field - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/llms/test_openai.py::test_openai_retries - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/llms/test_openai.py::test_openai_async_retries - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_dump.py::test_serialize_openai_llm - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_dump.py::test_serialize_llmchain - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_dump.py::test_serialize_llmchain_env - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_dump.py::test_serialize_llmchain_with_non_serializable_arg - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_load.py::test_loads_openai_llm - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_load.py::test_loads_llmchain - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_load.py::test_loads_llmchain_env - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_load.py::test_loads_llmchain_with_non_serializable_arg - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_load.py::test_load_openai_llm - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_load.py::test_load_llmchain - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_load.py::test_load_llmchain_env - AttributeError: module 'openai' has no attribute 'Completion'
FAILED tests/unit_tests/load/test_load.py::test_load_llmchain_with_non_serializable_arg - AttributeError: module 'openai' has no attribute 'Completion'
==================================================================================== 23 failed, 1348 passed, 270 skipped, 24 warnings in 16.11s =========================================================
```
### Expected behavior
All tests should pass or skipped without failing.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13081/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13081/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13080
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13080/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13080/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13080/events
|
https://github.com/langchain-ai/langchain/pull/13080
| 1,984,202,442 |
PR_kwDOIPDwls5e9ZV4
| 13,080 |
Document RunnableBinding
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false |
{
"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 | 2 | 2023-11-08T18:46:46 | 2023-12-02T02:36:25 | 2023-12-02T02:36:25 |
COLLABORATOR
| null |
Document RunnableBinding
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13080/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13080/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13080",
"html_url": "https://github.com/langchain-ai/langchain/pull/13080",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13080.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13080.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13079
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13079/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13079/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13079/events
|
https://github.com/langchain-ai/langchain/pull/13079
| 1,984,198,134 |
PR_kwDOIPDwls5e9YYo
| 13,079 |
Improve CSV reader which can't call .strip() on NoneType
|
{
"login": "dennisdegreef",
"id": 361905,
"node_id": "MDQ6VXNlcjM2MTkwNQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/361905?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dennisdegreef",
"html_url": "https://github.com/dennisdegreef",
"followers_url": "https://api.github.com/users/dennisdegreef/followers",
"following_url": "https://api.github.com/users/dennisdegreef/following{/other_user}",
"gists_url": "https://api.github.com/users/dennisdegreef/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dennisdegreef/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dennisdegreef/subscriptions",
"organizations_url": "https://api.github.com/users/dennisdegreef/orgs",
"repos_url": "https://api.github.com/users/dennisdegreef/repos",
"events_url": "https://api.github.com/users/dennisdegreef/events{/privacy}",
"received_events_url": "https://api.github.com/users/dennisdegreef/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T18:43:42 | 2023-11-13T07:51:40 | 2023-11-13T07:51:40 |
CONTRIBUTOR
| null |
Improve CSV reader which can't call .strip() on NoneType if there are less cells in the row compared to the header
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:**
I have a CSV file as followed
```
headerA,headerB,headerC
v1A,v1B,v1C,
v2A,v2B
v3A,v3B,v3C
```
In this case, row 2 is missing a value, which results in reading a None type. The strip() method can not be called on None, hence raising. In this PR I am making the change to only call strip if the value if not None.
- **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/13079/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13079/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13079",
"html_url": "https://github.com/langchain-ai/langchain/pull/13079",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13079.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13079.patch",
"merged_at": "2023-11-13T07:51:40"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13078
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13078/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13078/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13078/events
|
https://github.com/langchain-ai/langchain/pull/13078
| 1,984,189,642 |
PR_kwDOIPDwls5e9WjE
| 13,078 |
added `Cookbooks` link
|
{
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-08T18:37:41 | 2023-11-14T19:01:05 | 2023-11-14T18:52:48 |
COLLABORATOR
| null |
It is a temporary solution before major documents refactoring.
Related to #13070 (not solving it)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13078/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13078/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13078",
"html_url": "https://github.com/langchain-ai/langchain/pull/13078",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13078.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13078.patch",
"merged_at": "2023-11-14T18:52:47"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13077
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13077/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13077/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13077/events
|
https://github.com/langchain-ai/langchain/pull/13077
| 1,984,181,070 |
PR_kwDOIPDwls5e9Ura
| 13,077 |
update root listeners
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T18:31:33 | 2023-11-14T17:04:17 | 2023-11-14T17:04:17 |
COLLABORATOR
| null |
a nfcampos special
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13077/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13077/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13077",
"html_url": "https://github.com/langchain-ai/langchain/pull/13077",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13077.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13077.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13076
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13076/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13076/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13076/events
|
https://github.com/langchain-ai/langchain/issues/13076
| 1,984,144,941 |
I_kwDOIPDwls52Q6Yt
| 13,076 |
how to use reranker model with langchain in retrievalQA case?
|
{
"login": "valkryhx",
"id": 3361700,
"node_id": "MDQ6VXNlcjMzNjE3MDA=",
"avatar_url": "https://avatars.githubusercontent.com/u/3361700?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/valkryhx",
"html_url": "https://github.com/valkryhx",
"followers_url": "https://api.github.com/users/valkryhx/followers",
"following_url": "https://api.github.com/users/valkryhx/following{/other_user}",
"gists_url": "https://api.github.com/users/valkryhx/gists{/gist_id}",
"starred_url": "https://api.github.com/users/valkryhx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/valkryhx/subscriptions",
"organizations_url": "https://api.github.com/users/valkryhx/orgs",
"repos_url": "https://api.github.com/users/valkryhx/repos",
"events_url": "https://api.github.com/users/valkryhx/events{/privacy}",
"received_events_url": "https://api.github.com/users/valkryhx/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": 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 | 10 | 2023-11-08T18:06:30 | 2023-12-18T04:32:20 | null |
NONE
| null |
### System Info
version 0.0.331
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
omit
### Expected behavior
I would like to use BAAI/bge-reranker-large model as the reranker to rerank the intial retrieval results,
how to use this model with langchain ?
I have seen the demo with Cohere ranker,
but how to use ohter reranker models?
Does langchain support other reranker models except for CohereReranker?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13076/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/13076/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13075
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13075/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13075/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13075/events
|
https://github.com/langchain-ai/langchain/issues/13075
| 1,984,143,084 |
I_kwDOIPDwls52Q57s
| 13,075 |
Issue: AgentExecutor typings should accept Runnable for the agent property (to support LCEL agent)
|
{
"login": "lucas-labs",
"id": 12949236,
"node_id": "MDQ6VXNlcjEyOTQ5MjM2",
"avatar_url": "https://avatars.githubusercontent.com/u/12949236?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucas-labs",
"html_url": "https://github.com/lucas-labs",
"followers_url": "https://api.github.com/users/lucas-labs/followers",
"following_url": "https://api.github.com/users/lucas-labs/following{/other_user}",
"gists_url": "https://api.github.com/users/lucas-labs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucas-labs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucas-labs/subscriptions",
"organizations_url": "https://api.github.com/users/lucas-labs/orgs",
"repos_url": "https://api.github.com/users/lucas-labs/repos",
"events_url": "https://api.github.com/users/lucas-labs/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucas-labs/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-08T18:05:14 | 2023-11-08T18:08:03 | null |
NONE
| null |
### Issue you'd like to raise.
Using LCEL as suggested on the [docs](https://python.langchain.com/docs/modules/agents/), combined with `AgentExecutor`, generates a typing error when passing the runnable agent to the `AgentExecutor` constructor. This is because `AgentExecutor` defines its `agent` property as of type `BaseSingleActionAgent | BaseMultiActionAgent`:
https://github.com/langchain-ai/langchain/blob/55aeff6777431dc24e48f018e39aa418f95a6489/libs/langchain/langchain/agents/agent.py#L728-L731
So:
```python
agent = {
...
} | prompt | llm | OpenAIFunctionsAgentOutputParser()
# agent would be of type Runnable[Unknown, Unknown]
# but the typing on AgentExecutor only takes a BaseSingleActionAgent
# or a BaseMultiActionAgent as a valid agent
agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)
# ↳ "Runnable[Unknown, Unknown]" is incompatible with "BaseSingleActionAgent"
# ↳ "Runnable[Unknown, Unknown]" is incompatible with "BaseMultiActionAgent"
```
### Suggestion:
`AgentExecutor` should accept a `Runnable` for its agent property
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13075/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/13075/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13074
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13074/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13074/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13074/events
|
https://github.com/langchain-ai/langchain/pull/13074
| 1,984,108,536 |
PR_kwDOIPDwls5e9EzY
| 13,074 |
Add RunnableRetry Documentation
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T17:41:31 | 2023-11-08T18:20:20 | 2023-11-08T18:20:19 |
COLLABORATOR
| null |
Add retry documentation
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13074/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13074/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13074",
"html_url": "https://github.com/langchain-ai/langchain/pull/13074",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13074.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13074.patch",
"merged_at": "2023-11-08T18:20:19"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13073
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13073/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13073/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13073/events
|
https://github.com/langchain-ai/langchain/issues/13073
| 1,984,087,808 |
I_kwDOIPDwls52QscA
| 13,073 |
[Feature Request] AnthropicFunctionsAgent
|
{
"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": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-08T17:29:21 | 2023-11-08T17:29:59 | null |
NONE
| null |
### Feature request
Hi, I'd like to request a feature for a `AnthropicFunctionsAgent` built on top of `AnthropicFunctions` and ideally compatible with `create_conversational_retrieval_agent`.
### Motivation
Everyone working with Anthropic models could use an Agents class!
### Your contribution
Can't currently.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13073/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/13073/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13072
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13072/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13072/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13072/events
|
https://github.com/langchain-ai/langchain/issues/13072
| 1,984,077,044 |
I_kwDOIPDwls52Qpz0
| 13,072 |
Running Ollama asynchronously generates a warning: RuntimeWarning: coroutine 'AsyncCallbackManagerForLLMRun.on_llm_new_token' was never awaited (langchain/llms/ollama.py:164)
|
{
"login": "GullyBurns",
"id": 45613102,
"node_id": "MDQ6VXNlcjQ1NjEzMTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/45613102?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/GullyBurns",
"html_url": "https://github.com/GullyBurns",
"followers_url": "https://api.github.com/users/GullyBurns/followers",
"following_url": "https://api.github.com/users/GullyBurns/following{/other_user}",
"gists_url": "https://api.github.com/users/GullyBurns/gists{/gist_id}",
"starred_url": "https://api.github.com/users/GullyBurns/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GullyBurns/subscriptions",
"organizations_url": "https://api.github.com/users/GullyBurns/orgs",
"repos_url": "https://api.github.com/users/GullyBurns/repos",
"events_url": "https://api.github.com/users/GullyBurns/events{/privacy}",
"received_events_url": "https://api.github.com/users/GullyBurns/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 | 5 | 2023-11-08T17:23:48 | 2023-12-26T09:28:48 | null |
NONE
| null |
### System Info
python==3.11
langchain==0.0.326
ollama==v0.1.8
### Who can help?
@agola11
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [X] Callbacks/Tracing
- [X] Async
### Reproduction
Steps to reproduce the behavior:
```
llm = Ollama(model='llama2')
r = await llm.agenerate(['write a limerick about babies'])
print('\n'.join([t[0].text for t in r.generations]))
```
Generates the following output:
```
[/path/to/python3.11/site-packages/langchain/llms/ollama.py:164](https://file+.vscode-resource.vscode-cdn.net/Users/gburns/miniconda3/envs/alhazen/lib/python3.11/site-packages/langchain/llms/ollama.py:164): RuntimeWarning: coroutine 'AsyncCallbackManagerForLLMRun.on_llm_new_token' was never awaited
run_manager.on_llm_new_token(
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Sure! Here is a limerick about babies:
everybody loves babies, they're so sweet;
their coos and snuggles can't be beat.
They suck their thumbs and play with toes,
and bring joy to all who sees.
```
### Expected behavior
The generation should occur without the warning.
The error is due to the `_OllamaCommon._stream_with_aggregation(` function not being able to distinguish between being called in a blocking or an async context.
The reason this is important is that sometimes Ollama gets stuck in a generation (taking a long time to complete) and I would like to be able to call a timeout on the underlying process. The following code can do this, but we get the warning as previously described (note, this requires that ollama be running in the background).
```
def _callback(fut: asyncio.Future):
if fut.cancelled() or not fut.done():
print("Timed out! - Terminating server")
fut.cancel()
async def run_llm(llm, prompt, timeout=300):
# create task
task = asyncio.create_task(llm.agenerate([prompt]))
task.add_done_callback(_callback)
# try to await the task
try:
r = await asyncio.wait_for(task, timeout=timeout)
except asyncio.TimeoutError as ex:
print(ex)
if r is not None:
return '\n'.join([t[0].text for t in r.generations])
else:
return ''
text = await llm.agenerate(['write a limerick about babies'])
print(text)
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13072/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13072/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13070
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13070/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13070/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13070/events
|
https://github.com/langchain-ai/langchain/issues/13070
| 1,984,016,062 |
I_kwDOIPDwls52Qa6-
| 13,070 |
DOC: no `cookbooks` search
|
{
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-08T16:48:44 | 2023-11-08T18:06:13 | null |
COLLABORATOR
| null |
### Issue with current documentation:
Related to the #13036.
I've searched in the LangChain documentation by "Search" button and didn't find existing example which was in `cookbooks`.
### Idea or request for content:
Is it possible to add `cookbooks` into the Documentation search? Or maybe right into the Main menu?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13070/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13070/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13069
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13069/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13069/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13069/events
|
https://github.com/langchain-ai/langchain/issues/13069
| 1,983,971,005 |
I_kwDOIPDwls52QP69
| 13,069 |
PyPI versions issue e.g. langchain==0.0.331 is not newer than langchain==0.0.79
|
{
"login": "aiwalter",
"id": 29627036,
"node_id": "MDQ6VXNlcjI5NjI3MDM2",
"avatar_url": "https://avatars.githubusercontent.com/u/29627036?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/aiwalter",
"html_url": "https://github.com/aiwalter",
"followers_url": "https://api.github.com/users/aiwalter/followers",
"following_url": "https://api.github.com/users/aiwalter/following{/other_user}",
"gists_url": "https://api.github.com/users/aiwalter/gists{/gist_id}",
"starred_url": "https://api.github.com/users/aiwalter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aiwalter/subscriptions",
"organizations_url": "https://api.github.com/users/aiwalter/orgs",
"repos_url": "https://api.github.com/users/aiwalter/repos",
"events_url": "https://api.github.com/users/aiwalter/events{/privacy}",
"received_events_url": "https://api.github.com/users/aiwalter/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-08T16:23:02 | 2023-11-16T12:28:10 | 2023-11-16T12:28:10 |
NONE
| null |
### System Info
Unix and Windows
### 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
```
pip install langchain==0.0.79
pip install langchain>=0.0.331
```
### Expected behavior
I would expect to install the latest version 0.0.331 but its not. Seems pip undestands that 0.0.79 is a higher version than 0.0.331?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13069/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13069/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13068
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13068/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13068/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13068/events
|
https://github.com/langchain-ai/langchain/pull/13068
| 1,983,943,414 |
PR_kwDOIPDwls5e8gnN
| 13,068 |
oai assistant multiple actions
|
{
"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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T16:07:51 | 2023-11-08T16:25:38 | 2023-11-08T16:25:38 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13068/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13068/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13068",
"html_url": "https://github.com/langchain-ai/langchain/pull/13068",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13068.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13068.patch",
"merged_at": "2023-11-08T16:25:38"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13065
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13065/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13065/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13065/events
|
https://github.com/langchain-ai/langchain/issues/13065
| 1,983,852,453 |
I_kwDOIPDwls52Py-l
| 13,065 |
Issue: STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION sometimes not return the "Final Answer"
|
{
"login": "benjaminliugang",
"id": 1411188,
"node_id": "MDQ6VXNlcjE0MTExODg=",
"avatar_url": "https://avatars.githubusercontent.com/u/1411188?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/benjaminliugang",
"html_url": "https://github.com/benjaminliugang",
"followers_url": "https://api.github.com/users/benjaminliugang/followers",
"following_url": "https://api.github.com/users/benjaminliugang/following{/other_user}",
"gists_url": "https://api.github.com/users/benjaminliugang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/benjaminliugang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benjaminliugang/subscriptions",
"organizations_url": "https://api.github.com/users/benjaminliugang/orgs",
"repos_url": "https://api.github.com/users/benjaminliugang/repos",
"events_url": "https://api.github.com/users/benjaminliugang/events{/privacy}",
"received_events_url": "https://api.github.com/users/benjaminliugang/received_events",
"type": "User",
"site_admin": false
}
|
[] |
open
| false | null |
[] | null | 1 | 2023-11-08T15:22:08 | 2023-11-10T02:04:28 | null |
NONE
| null |
### Issue you'd like to raise.
The agent(STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION) sometimes does not respond the "Final Answer" instead of the AI's thought.
### Actual result:
The human is asking for the default xxxxxx. The tool has provided the information. I will now relay this information to the human.
### Expected result:
{
"action": "Final Answer",
"action_input": "The information comes from the tool."
}
### System info:
AzureChatOpenAI / gpt-4
This is a sometimes issue. I have tried with the smith playground, it can happen as well. Any thoughts about it?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13065/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13065/timeline
| null |
reopened
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13064
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13064/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13064/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13064/events
|
https://github.com/langchain-ai/langchain/issues/13064
| 1,983,852,320 |
I_kwDOIPDwls52Py8g
| 13,064 |
Seeing an error ModuleNotFoundError: No module named 'langchain.globals'
|
{
"login": "amrit2cisco",
"id": 140628810,
"node_id": "U_kgDOCGHTSg",
"avatar_url": "https://avatars.githubusercontent.com/u/140628810?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/amrit2cisco",
"html_url": "https://github.com/amrit2cisco",
"followers_url": "https://api.github.com/users/amrit2cisco/followers",
"following_url": "https://api.github.com/users/amrit2cisco/following{/other_user}",
"gists_url": "https://api.github.com/users/amrit2cisco/gists{/gist_id}",
"starred_url": "https://api.github.com/users/amrit2cisco/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amrit2cisco/subscriptions",
"organizations_url": "https://api.github.com/users/amrit2cisco/orgs",
"repos_url": "https://api.github.com/users/amrit2cisco/repos",
"events_url": "https://api.github.com/users/amrit2cisco/events{/privacy}",
"received_events_url": "https://api.github.com/users/amrit2cisco/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-08T15:22:05 | 2023-11-08T15:40:42 | null |
NONE
| null |
### System Info
LangChain version pinned to "^0.0.278" (using Poetry)
Python 3.11.5
Other modules from langchain (such as langchain.cache and langchain.chains) are imported within the same file in the application code and are able to be found. Only the `langchain.globals` module is not being recognized
### 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
Import langchain.globals
Error happens on application startup
### Expected behavior
Expected to be able to find the module, as langchain's other module's are able to be found by the same application code
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13064/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13064/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13063
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13063/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13063/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13063/events
|
https://github.com/langchain-ai/langchain/pull/13063
| 1,983,777,424 |
PR_kwDOIPDwls5e78ao
| 13,063 |
Add Tavily to tools init file
|
{
"login": "rotemweiss57",
"id": 91344214,
"node_id": "MDQ6VXNlcjkxMzQ0MjE0",
"avatar_url": "https://avatars.githubusercontent.com/u/91344214?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rotemweiss57",
"html_url": "https://github.com/rotemweiss57",
"followers_url": "https://api.github.com/users/rotemweiss57/followers",
"following_url": "https://api.github.com/users/rotemweiss57/following{/other_user}",
"gists_url": "https://api.github.com/users/rotemweiss57/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rotemweiss57/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rotemweiss57/subscriptions",
"organizations_url": "https://api.github.com/users/rotemweiss57/orgs",
"repos_url": "https://api.github.com/users/rotemweiss57/repos",
"events_url": "https://api.github.com/users/rotemweiss57/events{/privacy}",
"received_events_url": "https://api.github.com/users/rotemweiss57/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": 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-08T14:46:19 | 2023-11-25T06:13:08 | 2023-11-25T06:13:00 |
CONTRIBUTOR
| null |
Add Tavily to tools _init_ file
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13063/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13063/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13063",
"html_url": "https://github.com/langchain-ai/langchain/pull/13063",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13063.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13063.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13062
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13062/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13062/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13062/events
|
https://github.com/langchain-ai/langchain/pull/13062
| 1,983,720,833 |
PR_kwDOIPDwls5e7wM1
| 13,062 |
gpt researcher
|
{
"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": 6154420538,
"node_id": "LA_kwDOIPDwls8AAAABbtUBOg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/template",
"name": "template",
"color": "145FB1",
"default": false,
"description": ""
}
] |
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-08T14:18:59 | 2023-11-13T23:52:26 | 2023-11-13T23:52:25 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13062/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13062/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13062",
"html_url": "https://github.com/langchain-ai/langchain/pull/13062",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13062.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13062.patch",
"merged_at": "2023-11-13T23:52:25"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13061
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13061/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13061/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13061/events
|
https://github.com/langchain-ai/langchain/issues/13061
| 1,983,705,244 |
I_kwDOIPDwls52PPCc
| 13,061 |
ChromaDb EmbeddingFunction definition updated
|
{
"login": "jayant-yadav",
"id": 12908205,
"node_id": "MDQ6VXNlcjEyOTA4MjA1",
"avatar_url": "https://avatars.githubusercontent.com/u/12908205?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jayant-yadav",
"html_url": "https://github.com/jayant-yadav",
"followers_url": "https://api.github.com/users/jayant-yadav/followers",
"following_url": "https://api.github.com/users/jayant-yadav/following{/other_user}",
"gists_url": "https://api.github.com/users/jayant-yadav/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jayant-yadav/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jayant-yadav/subscriptions",
"organizations_url": "https://api.github.com/users/jayant-yadav/orgs",
"repos_url": "https://api.github.com/users/jayant-yadav/repos",
"events_url": "https://api.github.com/users/jayant-yadav/events{/privacy}",
"received_events_url": "https://api.github.com/users/jayant-yadav/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
closed
| false | null |
[] | null | 8 | 2023-11-08T14:11:41 | 2023-12-10T12:44:35 | 2023-11-08T21:39:34 |
NONE
| null |
### System Info
Using Google Colab Free version with T4 GPU.
chromadb==0.4.16
### Who can help?
@agola11 @hwchase17
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
As per the latest Chromadb migration logs ([link](https://docs.trychroma.com/migration#migration-to-0416---november-7-2023)) `EmbeddingFunction` defnition has been updated and it affects all the custom made embedding function.
What this means is the `langchain.embeddings.HuggingFaceBgeEmbeddings` is inconsistent with this new definition and throws the following error:
```py
ValueError: Expected EmbeddingFunction.__call__ to have the following signature: odict_keys(['self', 'input']), got odict_keys(['self', 'args', 'kwargs'])
Please see https://docs.trychroma.com/embeddings for details of the EmbeddingFunction interface.
Please note the recent change to the EmbeddingFunction interface: https://docs.trychroma.com/migration#migration-to-0416---november-7-2023
```
The above code can be reproduced by inserting documents into Chromadb embedded using `HuggingFaceBgeEmbeddings` like so:
```py
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.vectorstores import Chroma
from langchain.embeddings import HuggingFaceBgeEmbeddings
from transformers import AutoTokenizer
embedding_function = HuggingFaceBgeEmbeddings(
model_name="BAAI/bge-base-en-v1.5",
model_kwargs={'device': 'cuda'},
encode_kwargs={'normalize_embeddings': True},
query_instruction="Represent this sentence for searching relevant passages: "
)
tokenizer = AutoTokenizer.from_pretrained('BAAI/bge-base-en-v1.5')
text_splitter = RecursiveCharacterTextSplitter.from_huggingface_tokenizer(
tokenizer, chunk_size=100, chunk_overlap=0
)
text = 'Some text that needs to be embedded.'
print(len(embedding_function.embed_query(text))) # works so far
splits = text_splitter.create_documents([text])
db = Chroma.from_documents(splits, embedding_function, persist_directory="./chroma_db")
```
I am not sure, but the answer might lie in correcting the `HuggingFaceBgeEmbeddings` class : [link](https://github.com/langchain-ai/langchain/blob/1f27104626fc71a5199df965011810426dd2eede/libs/langchain/langchain/embeddings/huggingface.py#L188) ?
### Expected behavior
The expected behaviour would have made a valid `db` object upon running the code
```py
db = Chroma.from_documents(splits, embedding_function, persist_directory="./chroma_db")
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13061/reactions",
"total_count": 2,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 2
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13061/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13060
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13060/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13060/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13060/events
|
https://github.com/langchain-ai/langchain/issues/13060
| 1,983,638,100 |
I_kwDOIPDwls52O-pU
| 13,060 |
Issue: UnstructuredPDFLoader doesn't support Unstructured functionalities
|
{
"login": "nonaunger",
"id": 62115415,
"node_id": "MDQ6VXNlcjYyMTE1NDE1",
"avatar_url": "https://avatars.githubusercontent.com/u/62115415?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nonaunger",
"html_url": "https://github.com/nonaunger",
"followers_url": "https://api.github.com/users/nonaunger/followers",
"following_url": "https://api.github.com/users/nonaunger/following{/other_user}",
"gists_url": "https://api.github.com/users/nonaunger/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nonaunger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nonaunger/subscriptions",
"organizations_url": "https://api.github.com/users/nonaunger/orgs",
"repos_url": "https://api.github.com/users/nonaunger/repos",
"events_url": "https://api.github.com/users/nonaunger/events{/privacy}",
"received_events_url": "https://api.github.com/users/nonaunger/received_events",
"type": "User",
"site_admin": false
}
|
[] |
open
| false | null |
[] | null | 0 | 2023-11-08T13:38:53 | 2023-11-08T13:38:53 | null |
NONE
| null |
### Issue you'd like to raise.
When initializing the langchain UntructuredPDFLoader e.g. as follows
` loader = UnstructuredPDFLoader(downloaded_file, mode='elements')`
This method calls the following function (see langchain/document_loaders/pdf.py):
` class UnstructuredPDFLoader(UnstructuredFileLoader): `
`def _get_elements(self) -> List: `
from unstructured.partition.pdf import partition_pdf
return partition_pdf(filename=self.file_path, **self.unstructured_kwargs)
The function `partition_pdf()` from Unstructured allows one to decide between passing either a file_path to a file in storage, or alternatively a ByteStream pointing to a file in memory but it does not allow one to pass both. Langchain forces users to pass the parameter ` file_path `and thus one cannot use the option of using a stream to load a file (as Unstructured doesn't expect both a file_path and a stream).
### Suggestion:
Remove the part which forces one to pass a ` file_path ` to UnstructuredPDFLoader initializiation. With this change, users can decide to pass a Stream in the `unstructured_kwargs ` field and thus use the loader.
To test this I rewrote the _get_elements function as follows and like this it works to pass a stream:
`
def _get_elements(self) -> List: `
` from unstructured.partition.pdf import partition_pdf
return partition_pdf(**self.unstructured_kwargs) `
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13060/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13060/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13059
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13059/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13059/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13059/events
|
https://github.com/langchain-ai/langchain/issues/13059
| 1,983,572,989 |
I_kwDOIPDwls52Ouv9
| 13,059 |
Langchain agent which only returns tools response without observations.
|
{
"login": "jarvisx17",
"id": 91436985,
"node_id": "MDQ6VXNlcjkxNDM2OTg1",
"avatar_url": "https://avatars.githubusercontent.com/u/91436985?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jarvisx17",
"html_url": "https://github.com/jarvisx17",
"followers_url": "https://api.github.com/users/jarvisx17/followers",
"following_url": "https://api.github.com/users/jarvisx17/following{/other_user}",
"gists_url": "https://api.github.com/users/jarvisx17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jarvisx17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jarvisx17/subscriptions",
"organizations_url": "https://api.github.com/users/jarvisx17/orgs",
"repos_url": "https://api.github.com/users/jarvisx17/repos",
"events_url": "https://api.github.com/users/jarvisx17/events{/privacy}",
"received_events_url": "https://api.github.com/users/jarvisx17/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"
}
] |
open
| false | null |
[] | null | 3 | 2023-11-08T13:05:28 | 2023-11-08T13:28:50 | null |
NONE
| null |
I have 4 tools which return responses of apis inside function. Now I want to build a system that only returns the response of api without any observations. Also agents should have memories.
Is it possible with a langchain agent. If yes can you tell me how ???
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13059/reactions",
"total_count": 3,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 3
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13059/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13058
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13058/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13058/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13058/events
|
https://github.com/langchain-ai/langchain/issues/13058
| 1,983,512,624 |
I_kwDOIPDwls52OgAw
| 13,058 |
Issue with user_agent error when creating a CohereReRank object in LangChain
|
{
"login": "iammehdii",
"id": 35371909,
"node_id": "MDQ6VXNlcjM1MzcxOTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/35371909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/iammehdii",
"html_url": "https://github.com/iammehdii",
"followers_url": "https://api.github.com/users/iammehdii/followers",
"following_url": "https://api.github.com/users/iammehdii/following{/other_user}",
"gists_url": "https://api.github.com/users/iammehdii/gists{/gist_id}",
"starred_url": "https://api.github.com/users/iammehdii/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iammehdii/subscriptions",
"organizations_url": "https://api.github.com/users/iammehdii/orgs",
"repos_url": "https://api.github.com/users/iammehdii/repos",
"events_url": "https://api.github.com/users/iammehdii/events{/privacy}",
"received_events_url": "https://api.github.com/users/iammehdii/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-08T12:38:34 | 2023-11-25T08:19:46 | null |
NONE
| null |
### System Info
last version of langchain and cohere
### Who can help?
@@agola11
I am encountering an error related to the user_agent when attempting to create a CohererRank object in the LangChain p. I have verified that I am passing a valid cohere_api_key and can successfully use the rerank function from Cohere directly. However, when trying to utilize it through the LangChain project, I encounter this specific issue related to the user_agent.
[/usr/local/lib/python3.10/dist-packages/langchain/retrievers/document_compressors/cohere_rerank.py](https://localhost:8080/#) in validate_environment(cls, values)
53 values, "cohere_api_key", "COHERE_API_KEY"
54 )
---> 55 client_name = values["user_agent"]
56 values["client"] = cohere.Client(cohere_api_key, client_name=client_name)
57 return values
KeyError: 'user_agent'
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
import os
import getpass
os.environ["COHERE_API_KEY"] = getpass.getpass("Cohere API Key:")
from langchain.llms import OpenAI
from langchain.retrievers import ContextualCompressionRetriever
from langchain.retrievers.document_compressors import CohereRerank
compressor = CohereRerank()
### Expected behavior
i want to create an object of CohereReRank.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13058/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/13058/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13057
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13057/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13057/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13057/events
|
https://github.com/langchain-ai/langchain/pull/13057
| 1,983,455,592 |
PR_kwDOIPDwls5e61dH
| 13,057 |
Refine Weaviate docs and add RAG example
|
{
"login": "iamleonie",
"id": 68144184,
"node_id": "MDQ6VXNlcjY4MTQ0MTg0",
"avatar_url": "https://avatars.githubusercontent.com/u/68144184?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/iamleonie",
"html_url": "https://github.com/iamleonie",
"followers_url": "https://api.github.com/users/iamleonie/followers",
"following_url": "https://api.github.com/users/iamleonie/following{/other_user}",
"gists_url": "https://api.github.com/users/iamleonie/gists{/gist_id}",
"starred_url": "https://api.github.com/users/iamleonie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iamleonie/subscriptions",
"organizations_url": "https://api.github.com/users/iamleonie/orgs",
"repos_url": "https://api.github.com/users/iamleonie/repos",
"events_url": "https://api.github.com/users/iamleonie/events{/privacy}",
"received_events_url": "https://api.github.com/users/iamleonie/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T12:09:58 | 2023-11-14T07:57:04 | 2023-11-13T18:59:19 |
CONTRIBUTOR
| null |
- **Description:** Refine Weaviate tutorial and add an example for Retrieval-Augmented Generation (RAG)
- **Issue:** (not applicable),
- **Dependencies:** none
- **Tag maintainer:** @baskaryan <!--
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
- **Twitter handle:** @helloiamleonie
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13057/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13057/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13057",
"html_url": "https://github.com/langchain-ai/langchain/pull/13057",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13057.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13057.patch",
"merged_at": "2023-11-13T18:59:19"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13056
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13056/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13056/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13056/events
|
https://github.com/langchain-ai/langchain/issues/13056
| 1,983,440,119 |
I_kwDOIPDwls52OOT3
| 13,056 |
Updated to latest langchain version but still getting OpenAI embeddings error
|
{
"login": "pelguetat",
"id": 25088215,
"node_id": "MDQ6VXNlcjI1MDg4MjE1",
"avatar_url": "https://avatars.githubusercontent.com/u/25088215?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pelguetat",
"html_url": "https://github.com/pelguetat",
"followers_url": "https://api.github.com/users/pelguetat/followers",
"following_url": "https://api.github.com/users/pelguetat/following{/other_user}",
"gists_url": "https://api.github.com/users/pelguetat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pelguetat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pelguetat/subscriptions",
"organizations_url": "https://api.github.com/users/pelguetat/orgs",
"repos_url": "https://api.github.com/users/pelguetat/repos",
"events_url": "https://api.github.com/users/pelguetat/events{/privacy}",
"received_events_url": "https://api.github.com/users/pelguetat/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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 5 | 2023-11-08T12:01:41 | 2023-11-13T09:37:43 | null |
NONE
| null |
### System Info
LangChain version = 0.0.331
Openai version = 1.1.1
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```Error creating LLM: module 'openai' has no attribute 'Embedding'
aai_app | Error creating LLM: module 'openai' has no attribute 'Embedding'
aai_app | Traceback (most recent call last):
aai_app | File "/code/aai/apps/slack_bot/views.py", line 160, in call_open_ai
aai_app | reply = open_ai.execute_query(question)
aai_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
aai_app | File "/code/aai/apps/affiliateai/services/open_ai/open_ai.py", line 130, in execute_query
aai_app | named_entity_recognition = NamedEntityRecognition(
aai_app | ^^^^^^^^^^^^^^^^^^^^^^^
aai_app | File "/code/aai/apps/affiliateai/services/open_ai/named_entity_recognition.py", line 41, in __init__
aai_app | self.llm_embeddings = self.llm.create_llm(
aai_app | ^^^^^^^^^^^^^^^^^^^^
aai_app | File "/code/aai/apps/affiliateai/services/open_ai/llm_manager.py", line 63, in create_llm
aai_app | return OpenAIEmbeddings(
aai_app | ^^^^^^^^^^^^^^^^^
aai_app | File "/usr/local/lib/python3.11/site-packages/pydantic/v1/main.py", line 339, in __init__
aai_app | values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
aai_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
aai_app | File "/usr/local/lib/python3.11/site-packages/pydantic/v1/main.py", line 1050, in validate_model
aai_app | input_data = validator(cls_, input_data)
aai_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
aai_app | File "/usr/local/lib/python3.11/site-packages/langchain/embeddings/openai.py", line 284, in validate_environment
aai_app | values["client"] = openai.Embedding
aai_app | ^^^^^^^^^^^^^^^^
aai_app | AttributeError: module 'openai' has no attribute 'Embedding'
aai_app |
aai_app | module 'openai' has no attribute 'Embedding'
aai_app | Traceback (most recent call last):
aai_app | File "/code/aai/apps/slack_bot/views.py", line 160, in call_open_ai
aai_app | reply = open_ai.execute_query(question)
aai_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
aai_app | File "/code/aai/apps/affiliateai/services/open_ai/open_ai.py", line 130, in execute_query
aai_app | named_entity_recognition = NamedEntityRecognition(
aai_app | ^^^^^^^^^^^^^^^^^^^^^^^
aai_app | File "/code/aai/apps/affiliateai/services/open_ai/named_entity_recognition.py", line 41, in __init__
aai_app | self.llm_embeddings = self.llm.create_llm(
aai_app | ^^^^^^^^^^^^^^^^^^^^
aai_app | File "/code/aai/apps/affiliateai/services/open_ai/llm_manager.py", line 63, in create_llm
aai_app | return OpenAIEmbeddings(
aai_app | ^^^^^^^^^^^^^^^^^
aai_app | File "/usr/local/lib/python3.11/site-packages/pydantic/v1/main.py", line 339, in __init__
aai_app | values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
aai_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
aai_app | File "/usr/local/lib/python3.11/site-packages/pydantic/v1/main.py", line 1050, in validate_model
aai_app | input_data = validator(cls_, input_data)
aai_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
aai_app | File "/usr/local/lib/python3.11/site-packages/langchain/embeddings/openai.py", line 284, in validate_environment
aai_app | values["client"] = openai.Embedding
aai_app | ^^^^^^^^^^^^^^^^
aai_app | AttributeError: module 'openai' has no attribute 'Embedding'```
### Expected behavior
Not to see this error.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13056/reactions",
"total_count": 2,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 2
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13056/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13055
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13055/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13055/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13055/events
|
https://github.com/langchain-ai/langchain/issues/13055
| 1,983,439,114 |
I_kwDOIPDwls52OOEK
| 13,055 |
ValueError: Missing some input keys: - passed data requires input keys if containing { }
|
{
"login": "Kaotic3",
"id": 80522225,
"node_id": "MDQ6VXNlcjgwNTIyMjI1",
"avatar_url": "https://avatars.githubusercontent.com/u/80522225?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kaotic3",
"html_url": "https://github.com/Kaotic3",
"followers_url": "https://api.github.com/users/Kaotic3/followers",
"following_url": "https://api.github.com/users/Kaotic3/following{/other_user}",
"gists_url": "https://api.github.com/users/Kaotic3/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kaotic3/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kaotic3/subscriptions",
"organizations_url": "https://api.github.com/users/Kaotic3/orgs",
"repos_url": "https://api.github.com/users/Kaotic3/repos",
"events_url": "https://api.github.com/users/Kaotic3/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kaotic3/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-08T12:01:05 | 2023-11-08T18:52:53 | 2023-11-08T18:52:53 |
NONE
| null |
### System Info
Python 3.11.5
Langchain (pip show) 0.0.327
Windows OS
Visual Studio Code
### Who can help?
@eyurtsev
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I searched and was surprised this has not come up.
I am using LangChain for a RAG workflow - and when I send a document, if that document contains { } - it throws a missing key error - it is treating the content of the document, as it would a normal prompt where you might have "question {question}" and expect an input key of 'question' it then reports back that all of the { } are in fact different missing keys.
For example, my data contains this:
`"...1 2 ------------------------------------ {w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14}{DP}{AD}{S::}"`
It will say that we are missing numerous keys:
`ValueError: Missing some input keys: {'AD', 'w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14', ...}`
Now, I can clean the data prior to sending, but I was wondering whether it should behave like this given that this document is already within { } as content?
I use the "FewShotPromptTemplate" to create a prompt which includes a "Suffix" and my suffix is:
```
def get_suffix():
return """
Document: {content}
Question: {question}
"""
```
Here content is the content of the document that contains the { } set out above.
I build the prompt like this:
```
prompt_template = FewShotPromptTemplate(
examples = examples,
example_prompt = get_prompt_template(example_template, example_variables),
prefix = prefix,
suffix = suffix,
input_variables = input_variables
)
prompt = prompt_template.format(question=question, context=context)
return prompt
```
I also did a test using another piece of code:
```
document_context = text_response + "{AD}"
prompt = ChatPromptTemplate.from_template("my_specific_prompt": {document}.\n{format_instructions}")
formated_prompt = prompt.format(**{"document": document_context, "format_instructions":output_parser.get_format_instructions()})
```
Introducing a random {AD} into the text response. It did not fail. It messed up the results, but it didn't actually cause any missing input key errors.
So this may be limited to the FewShotPromptTemplate?
### Expected behavior
I would have thought that anything passed within a curly bracket set would be considered as plain text, not parsed for further keys that might be embedded in that curly bracket set and throw an error when it cannot find them?
Maybe I am wrong, but that is what I would have expected and is what appears to happen when using the ChatPromptTemplate.from_template?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13055/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13055/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13054
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13054/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13054/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13054/events
|
https://github.com/langchain-ai/langchain/issues/13054
| 1,983,196,438 |
I_kwDOIPDwls52NS0W
| 13,054 |
The prompt word format misleads the output content of the large model
|
{
"login": "ichenhua",
"id": 16658623,
"node_id": "MDQ6VXNlcjE2NjU4NjIz",
"avatar_url": "https://avatars.githubusercontent.com/u/16658623?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ichenhua",
"html_url": "https://github.com/ichenhua",
"followers_url": "https://api.github.com/users/ichenhua/followers",
"following_url": "https://api.github.com/users/ichenhua/following{/other_user}",
"gists_url": "https://api.github.com/users/ichenhua/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ichenhua/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ichenhua/subscriptions",
"organizations_url": "https://api.github.com/users/ichenhua/orgs",
"repos_url": "https://api.github.com/users/ichenhua/repos",
"events_url": "https://api.github.com/users/ichenhua/events{/privacy}",
"received_events_url": "https://api.github.com/users/ichenhua/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-08T09:54:19 | 2023-11-09T01:10:16 | null |
NONE
| null |
### System Info
langchain 0.0.331
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
response_schemas = [
ResponseSchema(type='list', name='disease', description='disease name')
]
**prompt**
The output should be a markdown code snippet formatted in the following schema, including the leading and trailing "```json" and "```":
```json
{
"disease": list // disease name
}
```
**output**
{
"disease": "感冒" // disease name
}
This output cannot be parsed by StructuredOutputParser,Because it contains notes。
### Expected behavior
Expect to generate prompt words:
**prompt**
The output should be a markdown code snippet formatted in the following schema, including the leading and trailing "```json" and "```",and the field "disease" meas "disease name".
```json
{
"disease": list
}
```
Expected output:
{
"disease": "感冒"
}
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13054/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13054/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13053
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13053/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13053/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13053/events
|
https://github.com/langchain-ai/langchain/issues/13053
| 1,983,141,722 |
I_kwDOIPDwls52NFda
| 13,053 |
OpenAI instance of Runnable expected
|
{
"login": "wonderkidshihab",
"id": 56557098,
"node_id": "MDQ6VXNlcjU2NTU3MDk4",
"avatar_url": "https://avatars.githubusercontent.com/u/56557098?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wonderkidshihab",
"html_url": "https://github.com/wonderkidshihab",
"followers_url": "https://api.github.com/users/wonderkidshihab/followers",
"following_url": "https://api.github.com/users/wonderkidshihab/following{/other_user}",
"gists_url": "https://api.github.com/users/wonderkidshihab/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wonderkidshihab/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wonderkidshihab/subscriptions",
"organizations_url": "https://api.github.com/users/wonderkidshihab/orgs",
"repos_url": "https://api.github.com/users/wonderkidshihab/repos",
"events_url": "https://api.github.com/users/wonderkidshihab/events{/privacy}",
"received_events_url": "https://api.github.com/users/wonderkidshihab/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 | 5 | 2023-11-08T09:27:14 | 2024-01-11T22:04:13 | 2023-11-22T06:55:19 |
NONE
| null |
### System Info
# Hi there,
I have started learning about Langchain today. I was creating my first langchain prompt template but something doesn't seem to work.
Here is my code in main.py:
```python
from openai import OpenAI
from dotenv import load_dotenv
from langchain.prompts import PromptTemplate
from langchain.chains import LLMChain
import os
# Load the .env file
load_dotenv()
# Create an instance of the OpenAI class
def generate_pet_name(animal_type="dog"):
prompt_template = PromptTemplate(
input_variables=['animal_type'],
template="I have a {animal_type} as my pet. Suggest me a name for it.",
)
name_chain = LLMChain(
llm=OpenAI(),
prompt=prompt_template,
)
response = name_chain({'animal_type': animal_type})
print(response)
if __name__ == "__main__":
generate_pet_name(animal_type="dog")
```
While I think the code is okay and I have followed the GitHub get started it doesn't seem to work and throwing me this error:
```console
Traceback (most recent call last):
File "/Users/ss/Workspace/Ai/AMP/main.py", line 28, in <module>
generate_pet_name(animal_type="dog")
File "/Users/ss/Workspace/Ai/AMP/main.py", line 18, in generate_pet_name
name_chain = LLMChain(
^^^^^^^^^
File "/Users/ss/Workspace/Ai/AMP/.venv/lib/python3.11/site-packages/langchain/load/serializable.py", line 97, in __init__
super().__init__(**kwargs)
File "/Users/ss/Workspace/Ai/AMP/.venv/lib/python3.11/site-packages/pydantic/v1/main.py", line 341, in __init__
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 2 validation errors for LLMChain
llm
instance of Runnable expected (type=type_error.arbitrary_type; expected_arbitrary_type=Runnable)
llm
instance of Runnable expected (type=type_error.arbitrary_type; expected_arbitrary_type=Runnable)
```
Please Help me as I am not that proficient in Python.
### Who can help?
@agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Just copy the code given there and run it. You will see the error.
### Expected behavior
Run the code and get a response without error
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13053/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13053/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13052
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13052/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13052/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13052/events
|
https://github.com/langchain-ai/langchain/pull/13052
| 1,983,011,615 |
PR_kwDOIPDwls5e5TPZ
| 13,052 |
Fixed a typo in smart_llm prompt
|
{
"login": "kavinask007",
"id": 68454569,
"node_id": "MDQ6VXNlcjY4NDU0NTY5",
"avatar_url": "https://avatars.githubusercontent.com/u/68454569?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kavinask007",
"html_url": "https://github.com/kavinask007",
"followers_url": "https://api.github.com/users/kavinask007/followers",
"following_url": "https://api.github.com/users/kavinask007/following{/other_user}",
"gists_url": "https://api.github.com/users/kavinask007/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kavinask007/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kavinask007/subscriptions",
"organizations_url": "https://api.github.com/users/kavinask007/orgs",
"repos_url": "https://api.github.com/users/kavinask007/repos",
"events_url": "https://api.github.com/users/kavinask007/events{/privacy}",
"received_events_url": "https://api.github.com/users/kavinask007/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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T08:22:56 | 2023-12-06T03:16:19 | 2023-12-06T03:16:18 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13052/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13052/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13052",
"html_url": "https://github.com/langchain-ai/langchain/pull/13052",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13052.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13052.patch",
"merged_at": "2023-12-06T03:16:18"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13051
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13051/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13051/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13051/events
|
https://github.com/langchain-ai/langchain/issues/13051
| 1,982,969,374 |
I_kwDOIPDwls52MbYe
| 13,051 |
Bug after the openai updated in Embedding
|
{
"login": "SGA-Yuze-Li",
"id": 127734100,
"node_id": "U_kgDOB50RVA",
"avatar_url": "https://avatars.githubusercontent.com/u/127734100?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SGA-Yuze-Li",
"html_url": "https://github.com/SGA-Yuze-Li",
"followers_url": "https://api.github.com/users/SGA-Yuze-Li/followers",
"following_url": "https://api.github.com/users/SGA-Yuze-Li/following{/other_user}",
"gists_url": "https://api.github.com/users/SGA-Yuze-Li/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SGA-Yuze-Li/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SGA-Yuze-Li/subscriptions",
"organizations_url": "https://api.github.com/users/SGA-Yuze-Li/orgs",
"repos_url": "https://api.github.com/users/SGA-Yuze-Li/repos",
"events_url": "https://api.github.com/users/SGA-Yuze-Li/events{/privacy}",
"received_events_url": "https://api.github.com/users/SGA-Yuze-Li/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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
closed
| false | null |
[] | null | 20 | 2023-11-08T07:56:36 | 2023-12-04T14:30:26 | 2023-11-08T21:39:20 |
NONE
| null |
### System Info
AWS Sagemaker DataScience3.0 Image.
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
here is my code, it worked before Nov 7th.
`Chroma.from_documents(documents=document, embedding=embeddings,)`
Then i get this error:
`ValueError: Expected EmbeddingFunction.__call__ to have the following signature: odict_keys(['self', 'input']), got odict_keys(['self', 'args', 'kwargs'])
Please see https://docs.trychroma.com/embeddings for details of the EmbeddingFunction interface.
Please note the recent change to the EmbeddingFunction interface: https://docs.trychroma.com/migration#migration-to-0416---november-7-2023 `
### Expected behavior
Is anyone know how to fix this?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13051/reactions",
"total_count": 5,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 3
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13051/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13050
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13050/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13050/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13050/events
|
https://github.com/langchain-ai/langchain/issues/13050
| 1,982,926,699 |
I_kwDOIPDwls52MQ9r
| 13,050 |
Multiple values for keyword argument 'embedding_function'
|
{
"login": "95",
"id": 117367301,
"node_id": "U_kgDOBv7iBQ",
"avatar_url": "https://avatars.githubusercontent.com/u/117367301?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/95",
"html_url": "https://github.com/95",
"followers_url": "https://api.github.com/users/95/followers",
"following_url": "https://api.github.com/users/95/following{/other_user}",
"gists_url": "https://api.github.com/users/95/gists{/gist_id}",
"starred_url": "https://api.github.com/users/95/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/95/subscriptions",
"organizations_url": "https://api.github.com/users/95/orgs",
"repos_url": "https://api.github.com/users/95/repos",
"events_url": "https://api.github.com/users/95/events{/privacy}",
"received_events_url": "https://api.github.com/users/95/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-08T07:26:31 | 2023-11-08T07:34:54 | null |
NONE
| null |
### System Info
Running on google colab.
Everything was working up until today, which makes me think it's openAi update-related.
Versions:
Requirement already satisfied: langchain in /usr/local/lib/python3.10/dist-packages (**0.0.331**)
Requirement already satisfied: chromadb in /usr/local/lib/python3.10/dist-packages (**0.4.16**)
Openai version pinned to 0.28.1 as @hwchase17 recommended prior -- which had fixed my embeddings issue.
### Who can help?
@hwchase17 @agola11
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python3
from langchain.vectorstores import Chroma
from langchain.embeddings import OpenAIEmbeddings
embeddings = OpenAIEmbeddings()
vectorstore = Chroma.from_documents(documents=splits, embedding_function=embeddings, persist_directory='/content/wtf')
vectorstore.persist()
retriever = vectorstore.as_retriever()
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-5-d086aa9b6782>](https://localhost:8080/#) in <cell line: 7>()
5
6 embeddings = OpenAIEmbeddings()
----> 7 vectorstore = Chroma.from_documents(documents=splits, embedding_function=embeddings, persist_directory='/content/wtf')
8 vectorstore.persist()
9 retriever = vectorstore.as_retriever()
1 frames
[/usr/local/lib/python3.10/dist-packages/langchain/vectorstores/chroma.py](https://localhost:8080/#) in from_texts(cls, texts, embedding, metadatas, ids, collection_name, persist_directory, client_settings, client, collection_metadata, **kwargs)
618 Chroma: Chroma vectorstore.
619 """
--> 620 chroma_collection = cls(
621 collection_name=collection_name,
622 embedding_function=embedding,
TypeError: langchain.vectorstores.chroma.Chroma() got multiple values for keyword argument 'embedding_function'
### Expected behavior
It should run without an error and correctly embed the document splits, outputting the data in the persist directory.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13050/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13050/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13049
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13049/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13049/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13049/events
|
https://github.com/langchain-ai/langchain/issues/13049
| 1,982,890,810 |
I_kwDOIPDwls52MIM6
| 13,049 |
No module named 'langserve.packages' when creating langchain-cli apps
|
{
"login": "mattquestions",
"id": 21221721,
"node_id": "MDQ6VXNlcjIxMjIxNzIx",
"avatar_url": "https://avatars.githubusercontent.com/u/21221721?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mattquestions",
"html_url": "https://github.com/mattquestions",
"followers_url": "https://api.github.com/users/mattquestions/followers",
"following_url": "https://api.github.com/users/mattquestions/following{/other_user}",
"gists_url": "https://api.github.com/users/mattquestions/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mattquestions/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mattquestions/subscriptions",
"organizations_url": "https://api.github.com/users/mattquestions/orgs",
"repos_url": "https://api.github.com/users/mattquestions/repos",
"events_url": "https://api.github.com/users/mattquestions/events{/privacy}",
"received_events_url": "https://api.github.com/users/mattquestions/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 12 | 2023-11-08T07:02:02 | 2023-11-14T18:24:49 | 2023-11-14T18:24:20 |
NONE
| null |
### System Info
Windows WSL 2 Ubuntu
Python 3.10.6
langchain-0.0.331 langchain-cli-0.0.15 langserve-0.0.24 langsmith-0.0.60
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
In a new virtual environment with Python 3.10.6, After running:
`pip install -U "langchain-cli[serve]"`
which installs "langchain-0.0.331 langchain-cli-0.0.15 langserve-0.0.24 langsmith-0.0.60" as shown below:
Successfully installed PyYAML-6.0.1 SQLAlchemy-2.0.23 aiohttp-3.8.6 aiosignal-1.3.1 annotated-types-0.6.0 anyio-3.7.1 async-timeout-4.0.3 attrs-23.1.0 certifi-2023.7.22 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 dataclasses-json-0.6.1 exceptiongroup-1.1.3 fastapi-0.104.1 frozenlist-1.4.0 gitdb-4.0.11 gitpython-3.1.40 greenlet-3.0.1 h11-0.14.0 httpcore-1.0.1 httpx-0.25.1 httpx-sse-0.3.1 idna-3.4 jsonpatch-1.33 jsonpointer-2.4 langchain-0.0.331 langchain-cli-0.0.15 langserve-0.0.24 langsmith-0.0.60 markdown-it-py-3.0.0 marshmallow-3.20.1 mdurl-0.1.2 multidict-6.0.4 mypy-extensions-1.0.0 numpy-1.26.1 packaging-23.2 pydantic-2.4.2 pydantic-core-2.10.1 pygments-2.16.1 requests-2.31.0 rich-13.6.0 shellingham-1.5.4 smmap-5.0.1 sniffio-1.3.0 sse-starlette-1.6.5 starlette-0.27.0 tenacity-8.2.3 tomli-2.0.1 typer-0.9.0 typing-extensions-4.8.0 typing-inspect-0.9.0 urllib3-2.0.7 uvicorn-0.23.2 yarl-1.9.2
I try to run `langchain app new my-app --package rag-conversation`, and get the following error
Traceback (most recent call last):
File "/home/mert/REPOSITORIES/GenAI/langserve-template/langserve-env/bin/langchain", line 5, in <module>
from langchain_cli.cli import app
File "/home/mert/REPOSITORIES/GenAI/langserve-template/langserve-env/lib/python3.10/site-packages/langchain_cli/cli.py", line 6, in <module>
from langchain_cli.namespaces import app as app_namespace
File "/home/mert/REPOSITORIES/GenAI/langserve-template/langserve-env/lib/python3.10/site-packages/langchain_cli/namespaces/app.py", line 12, in <module>
from langserve.packages import get_langserve_export
ModuleNotFoundError: No module named 'langserve.packages'
### Expected behavior
Pulling template into a local repository
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13049/reactions",
"total_count": 3,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13049/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13048
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13048/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13048/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13048/events
|
https://github.com/langchain-ai/langchain/pull/13048
| 1,982,884,229 |
PR_kwDOIPDwls5e43jY
| 13,048 |
refactor: Qdrant async improvements
|
{
"login": "Anush008",
"id": 46051506,
"node_id": "MDQ6VXNlcjQ2MDUxNTA2",
"avatar_url": "https://avatars.githubusercontent.com/u/46051506?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Anush008",
"html_url": "https://github.com/Anush008",
"followers_url": "https://api.github.com/users/Anush008/followers",
"following_url": "https://api.github.com/users/Anush008/following{/other_user}",
"gists_url": "https://api.github.com/users/Anush008/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Anush008/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Anush008/subscriptions",
"organizations_url": "https://api.github.com/users/Anush008/orgs",
"repos_url": "https://api.github.com/users/Anush008/repos",
"events_url": "https://api.github.com/users/Anush008/events{/privacy}",
"received_events_url": "https://api.github.com/users/Anush008/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": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 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 | 2 | 2023-11-08T06:56:49 | 2023-12-05T19:02:11 | 2023-12-05T19:02:11 |
CONTRIBUTOR
| null |
#### Description:
This PR intends to simplify the async implementation of Qdrant vectorstore using the `AsyncQdrantClient` interface introduced in [`[email protected]`](https://github.com/qdrant/qdrant-client/releases/tag/v1.6.1).
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13048/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13048/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13048",
"html_url": "https://github.com/langchain-ai/langchain/pull/13048",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13048.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13048.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13047
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13047/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13047/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13047/events
|
https://github.com/langchain-ai/langchain/issues/13047
| 1,982,871,020 |
I_kwDOIPDwls52MDXs
| 13,047 |
Issue: UnstructuredExcelLoader
|
{
"login": "Boopalanoptisol",
"id": 105263483,
"node_id": "U_kgDOBkYxew",
"avatar_url": "https://avatars.githubusercontent.com/u/105263483?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Boopalanoptisol",
"html_url": "https://github.com/Boopalanoptisol",
"followers_url": "https://api.github.com/users/Boopalanoptisol/followers",
"following_url": "https://api.github.com/users/Boopalanoptisol/following{/other_user}",
"gists_url": "https://api.github.com/users/Boopalanoptisol/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Boopalanoptisol/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Boopalanoptisol/subscriptions",
"organizations_url": "https://api.github.com/users/Boopalanoptisol/orgs",
"repos_url": "https://api.github.com/users/Boopalanoptisol/repos",
"events_url": "https://api.github.com/users/Boopalanoptisol/events{/privacy}",
"received_events_url": "https://api.github.com/users/Boopalanoptisol/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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 | 2 | 2023-11-08T06:49:27 | 2023-11-08T06:59:41 | null |
NONE
| null |
from langchain.document_loaders import UnstructuredExcelLoader
loader = UnstructuredExcelLoader("example_data/stanley-cups.xlsx", mode="elements")
docs = loader.load()
docs[0]
in the above it gives ouput as
Document(page_content='\n \n \n Team\n Location\n Stanley Cups\n \n \n Blues\n STL\n 1\n \n \n Flyers\n PHI\n 2\n \n \n Maple Leafs\n TOR\n 13\n \n \n', metadata={'source': 'example_data/stanley-cups.xlsx', 'filename': 'stanley-cups.xlsx', 'file_directory': 'example_data', 'filetype': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'page_number': 1, 'page_name': 'Stanley Cups', 'text_as_html': '<table border="1" class="dataframe">\n <tbody>\n <tr>\n <td>Team</td>\n <td>Location</td>\n <td>Stanley Cups</td>\n </tr>\n <tr>\n <td>Blues</td>\n <td>STL</td>\n <td>1</td>\n </tr>\n <tr>\n <td>Flyers</td>\n <td>PHI</td>\n <td>2</td>\n </tr>\n <tr>\n <td>Maple Leafs</td>\n <td>TOR</td>\n <td>13</td>\n </tr>\n </tbody>\n</table>', 'category': 'Table'})
when i pass the above to CharacterTextSplitter, it gives error because it expects in the different format.
text_splitter = CharacterTextSplitter(chunk_overlap=0, chunk_size=1000)
texts = text_splitter.split_documents(docs[0])
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13047/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13047/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13046
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13046/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13046/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13046/events
|
https://github.com/langchain-ai/langchain/issues/13046
| 1,982,867,010 |
I_kwDOIPDwls52MCZC
| 13,046 |
看了新的OpenAI开发者大会,langchain还有存在的必要吗
|
{
"login": "aiyuekuang",
"id": 15998321,
"node_id": "MDQ6VXNlcjE1OTk4MzIx",
"avatar_url": "https://avatars.githubusercontent.com/u/15998321?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/aiyuekuang",
"html_url": "https://github.com/aiyuekuang",
"followers_url": "https://api.github.com/users/aiyuekuang/followers",
"following_url": "https://api.github.com/users/aiyuekuang/following{/other_user}",
"gists_url": "https://api.github.com/users/aiyuekuang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/aiyuekuang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aiyuekuang/subscriptions",
"organizations_url": "https://api.github.com/users/aiyuekuang/orgs",
"repos_url": "https://api.github.com/users/aiyuekuang/repos",
"events_url": "https://api.github.com/users/aiyuekuang/events{/privacy}",
"received_events_url": "https://api.github.com/users/aiyuekuang/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 | 5 | 2023-11-08T06:46:32 | 2023-11-08T17:19:34 | null |
NONE
| null |
### Issue you'd like to raise.
新的chatgpt可以直接帮助人类分析,规划,似乎已经脱离了原本的软件开发模式,从人设计,到了ai设计了,langchain是不是已经过时了?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13046/reactions",
"total_count": 4,
"+1": 1,
"-1": 0,
"laugh": 1,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 2
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13046/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13045
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13045/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13045/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13045/events
|
https://github.com/langchain-ai/langchain/issues/13045
| 1,982,856,821 |
I_kwDOIPDwls52L_51
| 13,045 |
help: github util `comment_on_issue` unable to parse `action input` from agent
|
{
"login": "harsh020",
"id": 39561084,
"node_id": "MDQ6VXNlcjM5NTYxMDg0",
"avatar_url": "https://avatars.githubusercontent.com/u/39561084?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/harsh020",
"html_url": "https://github.com/harsh020",
"followers_url": "https://api.github.com/users/harsh020/followers",
"following_url": "https://api.github.com/users/harsh020/following{/other_user}",
"gists_url": "https://api.github.com/users/harsh020/gists{/gist_id}",
"starred_url": "https://api.github.com/users/harsh020/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harsh020/subscriptions",
"organizations_url": "https://api.github.com/users/harsh020/orgs",
"repos_url": "https://api.github.com/users/harsh020/repos",
"events_url": "https://api.github.com/users/harsh020/events{/privacy}",
"received_events_url": "https://api.github.com/users/harsh020/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 | 4 | 2023-11-08T06:38:13 | 2023-11-12T18:52:11 | 2023-11-12T18:46:59 |
NONE
| null |
### Issue you'd like to raise.
I am using github tools along with an agent following example given (https://python.langchain.com/docs/integrations/toolkits/github), but the comment_on_issue tool is not able to parse the Action Input given by agent (the format seems to be same as given in the prompts), there seems to be some issue with escap sequnces.
Action Input: 2\n\nStarting to review docstrings and add sphinx\n\n
Error: ValueError: invalid literal for int() with base 10: '2\n\nStarting to review docstrings and add sphinx\n\n'
I think there might be some issue decoding (extra \ added to newline character). can anyone pls help with this?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13045/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13045/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13044
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13044/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13044/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13044/events
|
https://github.com/langchain-ai/langchain/issues/13044
| 1,982,815,371 |
I_kwDOIPDwls52L1yL
| 13,044 |
My LLM keeps rephrasing the question and it doesnt return source documents
|
{
"login": "yazanrisheh",
"id": 99576727,
"node_id": "U_kgDOBe9rlw",
"avatar_url": "https://avatars.githubusercontent.com/u/99576727?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yazanrisheh",
"html_url": "https://github.com/yazanrisheh",
"followers_url": "https://api.github.com/users/yazanrisheh/followers",
"following_url": "https://api.github.com/users/yazanrisheh/following{/other_user}",
"gists_url": "https://api.github.com/users/yazanrisheh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yazanrisheh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yazanrisheh/subscriptions",
"organizations_url": "https://api.github.com/users/yazanrisheh/orgs",
"repos_url": "https://api.github.com/users/yazanrisheh/repos",
"events_url": "https://api.github.com/users/yazanrisheh/events{/privacy}",
"received_events_url": "https://api.github.com/users/yazanrisheh/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false | null |
[] | null | 4 | 2023-11-08T06:06:50 | 2023-11-08T07:42:59 | null |
NONE
| null |
@dosu-bot
Below is my code and everytime I ask it a question, it rephrases the question then answers it for me. Help me to remove the rephrasing part. I did set it to False yet it still does it.
Also, I would like to return the source of the documents but its showing me this error:
File "C:\Users\Asus\Documents\Vendolista\hacka.py", line 178, in
main()
File "C:\Users\Asus\Documents\Vendolista\hacka.py", line 172, in main
result = qa({"question": user_input})
File "C:\Users\Asus\Documents\Vendolista.venv\lib\site-packages\langchain\chains\base.py", line 294, in call
final_outputs: Dict[str, Any] = self.prep_outputs(
File "C:\Users\Asus\Documents\Vendolista.venv\lib\site-packages\langchain\chains\base.py", line 390, in prep_outputs
self.memory.save_context(inputs, outputs)
File "C:\Users\Asus\Documents\Vendolista.venv\lib\site-packages\langchain\memory\chat_memory.py", line 35, in save_context
input_str, output_str = self._get_input_output(inputs, outputs)
File "C:\Users\Asus\Documents\Vendolista.venv\lib\site-packages\langchain\memory\chat_memory.py", line 27, in _get_input_output
raise ValueError(f"One output key expected, got {outputs.keys()}")
ValueError: One output key expected, got dict_keys(['answer', 'source_documents'])
Below is my code
import os
import json
import pandas as pd
LLM
from langchain.chat_models import ChatOpenAI
from langchain.llms import OpenAI
from langchain.callbacks import get_openai_callback
Prompt
from langchain.prompts.prompt import PromptTemplate
from langchain.prompts.chat import (
ChatPromptTemplate,
MessagesPlaceholder,
SystemMessagePromptTemplate,
HumanMessagePromptTemplate,
)
Embeddings
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.vectorstores import Chroma
Chain
from langchain.chains import ConversationalRetrievalChain
from langchain.memory import ConversationBufferMemory
from langchain.chains import LLMChain
from langchain.chains.question_answering import load_qa_chain
from langchain.chains.qa_with_sources import load_qa_with_sources_chain
from langchain.document_loaders.csv_loader import CSVLoader, UnstructuredCSVLoader
from langchain.document_loaders import DirectoryLoader
from langchain.output_parsers import PydanticOutputParser
from pydantic import BaseModel, Field
from dotenv import load_dotenv
import time
import pandas as pd
from langchain.callbacks import StreamingStdOutCallbackHandler
from langchain.text_splitter import RecursiveCharacterTextSplitter
load_dotenv()
file_path = "C:\Users\Asus\Documents\Vendolista\home_depot_data.csv"
path = "C:\Users\Asus\Documents\Vendolista\home depot"
csv_loader = CSVLoader(file_path=path, encoding='utf-8')
csv_loader = DirectoryLoader(path,
glob="**/*.csv",
show_progress=True,
use_multithreading=True,
silent_errors=True,
loader_cls = CSVLoader)
llm = ChatOpenAI(temperature = 0, model_name='gpt-3.5-turbo', callbacks=[StreamingStdOutCallbackHandler()], streaming = True)
documents = csv_loader.load()
text_splitter = RecursiveCharacterTextSplitter(
chunk_size=200,
chunk_overlap=50,
)
chunks = text_splitter.split_documents(documents)
chunks = documents
embeddings = OpenAIEmbeddings()
persist_directory = "C:\Users\Asus\OneDrive\Documents\Vendolista"
knowledge_base = Chroma(embedding_function=embeddings, persist_directory=persist_directory)
# Split the chunks into smaller batches
batch_size = 5000
for i in range(0, len(chunks), batch_size):
batch = chunks[i:i+batch_size]
knowledge_base.add_documents(batch)
Save the vector store to disk
knowledge_base.persist()
Load the vector store from disk
knowledge_base = Chroma(chunks, persist_directory=persist_directory, embedding_function=embeddings)
class Product(BaseModel):
"""Product details schema."""
url:str = Field(description="Full URL link to the product webpage on Homedepot.")
title:str = Field(description="Title of the product.")
description:str = Field(description="Description of the prodcut.")
brand:str = Field(description="Manufacturing brand of the product.")
price:float = Field(description="Unit selling price of the product.")
parser = PydanticOutputParser(pydantic_object=Product)
question_template = """ Make sure you understand the question as its very important for the user.
You never know what situation they are in and you need to ensure that its understood very well but do not repeat
or rewrite the question
Input: {question}
"""
CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template(question_template)
Chain for question generation
question_generator = LLMChain(llm=llm, prompt=CONDENSE_QUESTION_PROMPT)
Chat Prompt
system_template = """
You are a friendly, conversational retail shopping assistant named RAAFYA.
You will always and always and always only follow these set of rules and nothing else no matter what:
You will provide the user answers based on the csv file that you can only read from which is called "home_depot_data.csv"
You will never mention the name of the dataset that you have. Just say "my data" instead
Focus 100% to understand exactly what the customer is looking for and only give him whats available based on the data.
Do not get anything or say anything that is not related to the data that you have and never provide wrong information.
Use the following context including product name descriptions, and keywords to show the shopper whats available,
help find what they want, and answer their questions related to your job
Never ever consider or think or even mention that you do not have access to the internet because it is not your job
and it is not your task. I will repeat it again and again, your information is only and only coming from the dataset
that you have which is called "home_depot_data.csv" but you must not mention that to anyone for security purposes
Everyime you answer a question, write on a new line "is there anything else you would like me to help you with?"
If a customer asked for a product and it is not available then say "Sorry it is currently unavailable but you can
reach out to our staff and ask them about it at [[email protected]](mailto:[email protected])"
If the person asked for more details then provide him the details based on the output parser that you have:
URL:
Title:
Description:
Brand:
Price:
Context:
{context}
"""
system_message_prompt = SystemMessagePromptTemplate.from_template(system_template)
Human Prompt
human_template="""{format_instructions}
Question: {question}"""
human_message_prompt = HumanMessagePromptTemplate.from_template(human_template)
Inject instructions into the prompt template.
human_message_prompt = HumanMessagePromptTemplate(
prompt=PromptTemplate(
template=human_template,
input_variables=["question"],
partial_variables={"format_instructions": parser.get_format_instructions()}
)
)
chat_prompt = ChatPromptTemplate.from_messages([system_message_prompt, human_message_prompt])
Chain for Q&A
answer_chain = load_qa_chain(llm,
chain_type="stuff",
prompt=chat_prompt)
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
Chain
qa = ConversationalRetrievalChain(
retriever = knowledge_base.as_retriever(),
question_generator = question_generator,
combine_docs_chain = answer_chain,
memory=memory,
rephrase_question=False,
return_source_documents=True
)
def main():
while True:
user_input = input("What would you like to shop for: ")
if user_input.lower() in ["exit"]:
break
if user_input != "":
with get_openai_callback() as cb:
result = qa({"question": user_input})
print()
# print(cb)
# print()
if name == "main":
main()
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13044/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13044/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13043
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13043/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13043/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13043/events
|
https://github.com/langchain-ai/langchain/issues/13043
| 1,982,743,038 |
I_kwDOIPDwls52LkH-
| 13,043 |
My llm keeps rephrasing question and it doesnt return source documents
|
{
"login": "yazanrisheh",
"id": 99576727,
"node_id": "U_kgDOBe9rlw",
"avatar_url": "https://avatars.githubusercontent.com/u/99576727?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yazanrisheh",
"html_url": "https://github.com/yazanrisheh",
"followers_url": "https://api.github.com/users/yazanrisheh/followers",
"following_url": "https://api.github.com/users/yazanrisheh/following{/other_user}",
"gists_url": "https://api.github.com/users/yazanrisheh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yazanrisheh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yazanrisheh/subscriptions",
"organizations_url": "https://api.github.com/users/yazanrisheh/orgs",
"repos_url": "https://api.github.com/users/yazanrisheh/repos",
"events_url": "https://api.github.com/users/yazanrisheh/events{/privacy}",
"received_events_url": "https://api.github.com/users/yazanrisheh/received_events",
"type": "User",
"site_admin": false
}
|
[] |
open
| false | null |
[] | null | 0 | 2023-11-08T04:59:18 | 2023-11-08T05:02:19 | null |
NONE
| null |
@dosu-bot
Below is my code and everytime I ask it a question, it rephrases the question then answers it for me. Help me to remove the rephrasing part. I did set it to False yet it still does it.
Also, I would like to return the source of the documents but its showing me this error:
File "C:\Users\Asus\Documents\Vendolista\hacka.py", line 178, in <module>
main()
File "C:\Users\Asus\Documents\Vendolista\hacka.py", line 172, in main
result = qa({"question": user_input})
File "C:\Users\Asus\Documents\Vendolista\.venv\lib\site-packages\langchain\chains\base.py", line 294, in __call__
final_outputs: Dict[str, Any] = self.prep_outputs(
File "C:\Users\Asus\Documents\Vendolista\.venv\lib\site-packages\langchain\chains\base.py", line 390, in prep_outputs
self.memory.save_context(inputs, outputs)
File "C:\Users\Asus\Documents\Vendolista\.venv\lib\site-packages\langchain\memory\chat_memory.py", line 35, in save_context
input_str, output_str = self._get_input_output(inputs, outputs)
File "C:\Users\Asus\Documents\Vendolista\.venv\lib\site-packages\langchain\memory\chat_memory.py", line 27, in _get_input_output
raise ValueError(f"One output key expected, got {outputs.keys()}")
ValueError: One output key expected, got dict_keys(['answer', 'source_documents'])
Below is my code
import os
import json
import pandas as pd
# LLM
from langchain.chat_models import ChatOpenAI
from langchain.llms import OpenAI
from langchain.callbacks import get_openai_callback
# Prompt
from langchain.prompts.prompt import PromptTemplate
from langchain.prompts.chat import (
ChatPromptTemplate,
MessagesPlaceholder,
SystemMessagePromptTemplate,
HumanMessagePromptTemplate,
)
# Embeddings
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.vectorstores import Chroma
# Chain
from langchain.chains import ConversationalRetrievalChain
from langchain.memory import ConversationBufferMemory
from langchain.chains import LLMChain
from langchain.chains.question_answering import load_qa_chain
from langchain.chains.qa_with_sources import load_qa_with_sources_chain
from langchain.document_loaders.csv_loader import CSVLoader, UnstructuredCSVLoader
from langchain.document_loaders import DirectoryLoader
from langchain.output_parsers import PydanticOutputParser
from pydantic import BaseModel, Field
from dotenv import load_dotenv
import time
import pandas as pd
from langchain.callbacks import StreamingStdOutCallbackHandler
from langchain.text_splitter import RecursiveCharacterTextSplitter
load_dotenv()
file_path = "C:\\Users\\Asus\\Documents\\Vendolista\\home_depot_data.csv"
path = "C:\\Users\\Asus\\Documents\\Vendolista\\home depot"
# csv_loader = CSVLoader(file_path=path, encoding='utf-8')
csv_loader = DirectoryLoader(path,
glob="**/*.csv",
show_progress=True,
use_multithreading=True,
silent_errors=True,
loader_cls = CSVLoader)
llm = ChatOpenAI(temperature = 0, model_name='gpt-3.5-turbo', callbacks=[StreamingStdOutCallbackHandler()], streaming = True)
documents = csv_loader.load()
# text_splitter = RecursiveCharacterTextSplitter(
# chunk_size=200,
# chunk_overlap=50,
# )
# chunks = text_splitter.split_documents(documents)
chunks = documents
embeddings = OpenAIEmbeddings()
persist_directory = "C:\\Users\\Asus\\OneDrive\\Documents\\Vendolista"
knowledge_base = Chroma(embedding_function=embeddings, persist_directory=persist_directory)
# # Split the chunks into smaller batches
# batch_size = 5000
# for i in range(0, len(chunks), batch_size):
# batch = chunks[i:i+batch_size]
# knowledge_base.add_documents(batch)
# Save the vector store to disk
knowledge_base.persist()
# Load the vector store from disk
knowledge_base = Chroma(chunks, persist_directory=persist_directory, embedding_function=embeddings)
class Product(BaseModel):
"""Product details schema."""
url:str = Field(description="Full URL link to the product webpage on Homedepot.")
title:str = Field(description="Title of the product.")
description:str = Field(description="Description of the prodcut.")
brand:str = Field(description="Manufacturing brand of the product.")
price:float = Field(description="Unit selling price of the product.")
parser = PydanticOutputParser(pydantic_object=Product)
question_template = """ Make sure you understand the question as its very important for the user.
You never know what situation they are in and you need to ensure that its understood very well but do not repeat
or rewrite the question
Input: {question}
"""
CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template(question_template)
# Chain for question generation
question_generator = LLMChain(llm=llm, prompt=CONDENSE_QUESTION_PROMPT)
# Chat Prompt
system_template = """
You are a friendly, conversational retail shopping assistant named RAAFYA.
You will always and always and always only follow these set of rules and nothing else no matter what:
1) You will provide the user answers based on the csv file that you can only read from which is called "home_depot_data.csv"
2) You will never mention the name of the dataset that you have. Just say "my data" instead
3) Focus 100% to understand exactly what the customer is looking for and only give him whats available based on the data.
4) Do not get anything or say anything that is not related to the data that you have and never provide wrong information.
5) Use the following context including product name descriptions, and keywords to show the shopper whats available,
help find what they want, and answer their questions related to your job
6) Never ever consider or think or even mention that you do not have access to the internet because it is not your job
and it is not your task. I will repeat it again and again, your information is only and only coming from the dataset
that you have which is called "home_depot_data.csv" but you must not mention that to anyone for security purposes
7) Everyime you answer a question, write on a new line "is there anything else you would like me to help you with?"
8) If a customer asked for a product and it is not available then say "Sorry it is currently unavailable but you can
reach out to our staff and ask them about it at [email protected]"
9) If the person asked for more details then provide him the details based on the output parser that you have:
URL:
Title:
Description:
Brand:
Price:
Context:
{context}
"""
system_message_prompt = SystemMessagePromptTemplate.from_template(system_template)
# Human Prompt
human_template="""{format_instructions}
Question: {question}"""
# human_message_prompt = HumanMessagePromptTemplate.from_template(human_template)
# Inject instructions into the prompt template.
human_message_prompt = HumanMessagePromptTemplate(
prompt=PromptTemplate(
template=human_template,
input_variables=["question"],
partial_variables={"format_instructions": parser.get_format_instructions()}
)
)
chat_prompt = ChatPromptTemplate.from_messages([system_message_prompt, human_message_prompt])
# Chain for Q&A
answer_chain = load_qa_chain(llm,
chain_type="stuff",
prompt=chat_prompt)
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
# Chain
qa = ConversationalRetrievalChain(
retriever = knowledge_base.as_retriever(),
question_generator = question_generator,
combine_docs_chain = answer_chain,
memory=memory,
rephrase_question=False,
return_source_documents=True
)
def main():
while True:
user_input = input("What would you like to shop for: ")
if user_input.lower() in ["exit"]:
break
if user_input != "":
with get_openai_callback() as cb:
result = qa({"question": user_input})
print()
# print(cb)
# print()
if __name__ == "__main__":
main()
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13043/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13043/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13042
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13042/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13042/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13042/events
|
https://github.com/langchain-ai/langchain/pull/13042
| 1,982,621,625 |
PR_kwDOIPDwls5e393Q
| 13,042 |
Add Proper Import Error
|
{
"login": "Haste171",
"id": 34923485,
"node_id": "MDQ6VXNlcjM0OTIzNDg1",
"avatar_url": "https://avatars.githubusercontent.com/u/34923485?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Haste171",
"html_url": "https://github.com/Haste171",
"followers_url": "https://api.github.com/users/Haste171/followers",
"following_url": "https://api.github.com/users/Haste171/following{/other_user}",
"gists_url": "https://api.github.com/users/Haste171/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Haste171/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Haste171/subscriptions",
"organizations_url": "https://api.github.com/users/Haste171/orgs",
"repos_url": "https://api.github.com/users/Haste171/repos",
"events_url": "https://api.github.com/users/Haste171/events{/privacy}",
"received_events_url": "https://api.github.com/users/Haste171/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": 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-08T02:49:23 | 2023-11-08T18:29:09 | 2023-11-08T18:29:09 |
CONTRIBUTOR
| null |
- **Description:** The issue was not listing the proper import error for amazon textract loader.
- **Issue:** Time wasted trying to figure out what to install... (langchain docs don't list the dependency either)
- **Dependencies:** N/A
- **Tag maintainer:** @sbusso
- **Twitter handle:** @h9ste
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13042/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/13042/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13042",
"html_url": "https://github.com/langchain-ai/langchain/pull/13042",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13042.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13042.patch",
"merged_at": "2023-11-08T18:29:09"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13041
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13041/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13041/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13041/events
|
https://github.com/langchain-ai/langchain/pull/13041
| 1,982,582,205 |
PR_kwDOIPDwls5e31bN
| 13,041 |
Add template for conversational rag with timescale vector
|
{
"login": "cevian",
"id": 112245,
"node_id": "MDQ6VXNlcjExMjI0NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/112245?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cevian",
"html_url": "https://github.com/cevian",
"followers_url": "https://api.github.com/users/cevian/followers",
"following_url": "https://api.github.com/users/cevian/following{/other_user}",
"gists_url": "https://api.github.com/users/cevian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cevian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cevian/subscriptions",
"organizations_url": "https://api.github.com/users/cevian/orgs",
"repos_url": "https://api.github.com/users/cevian/repos",
"events_url": "https://api.github.com/users/cevian/events{/privacy}",
"received_events_url": "https://api.github.com/users/cevian/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": 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": 6154420538,
"node_id": "LA_kwDOIPDwls8AAAABbtUBOg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/template",
"name": "template",
"color": "145FB1",
"default": false,
"description": ""
}
] |
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-08T02:09:12 | 2023-11-11T00:12:32 | 2023-11-11T00:12:32 |
CONTRIBUTOR
| null |
**Description:** This is like the rag-conversation template in many ways. What's different is:
- support for a timescale vector store.
- support for time-based filters.
- support for metadata filters.
<!-- 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/13041/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13041/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13041",
"html_url": "https://github.com/langchain-ai/langchain/pull/13041",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13041.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13041.patch",
"merged_at": "2023-11-11T00:12:32"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13040
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13040/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13040/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13040/events
|
https://github.com/langchain-ai/langchain/pull/13040
| 1,982,572,787 |
PR_kwDOIPDwls5e3zZL
| 13,040 |
redirect ls walkthrough
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T01:58:27 | 2023-11-08T02:24:14 | 2023-11-08T02:24:13 |
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/13040/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13040/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13040",
"html_url": "https://github.com/langchain-ai/langchain/pull/13040",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13040.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13040.patch",
"merged_at": "2023-11-08T02:24:13"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13039
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13039/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13039/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13039/events
|
https://github.com/langchain-ai/langchain/pull/13039
| 1,982,557,349 |
PR_kwDOIPDwls5e3wEU
| 13,039 |
Azure OpenAI Embeddings
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false |
{
"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 | 2 | 2023-11-08T01:42:24 | 2023-11-08T20:37:18 | 2023-11-08T20:37:17 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13039/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13039/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13039",
"html_url": "https://github.com/langchain-ai/langchain/pull/13039",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13039.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13039.patch",
"merged_at": "2023-11-08T20:37:17"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13038
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13038/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13038/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13038/events
|
https://github.com/langchain-ai/langchain/pull/13038
| 1,982,556,156 |
PR_kwDOIPDwls5e3v0e
| 13,038 |
Fleet context
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T01:40:59 | 2023-11-08T02:57:10 | 2023-11-08T02:57:09 |
COLLABORATOR
| null |
cc @adrwz
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13038/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13038/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13038",
"html_url": "https://github.com/langchain-ai/langchain/pull/13038",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13038.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13038.patch",
"merged_at": "2023-11-08T02:57:09"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13037
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13037/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13037/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13037/events
|
https://github.com/langchain-ai/langchain/issues/13037
| 1,982,528,151 |
I_kwDOIPDwls52KvqX
| 13,037 |
fastllm model
|
{
"login": "wenweichan",
"id": 128995187,
"node_id": "U_kgDOB7BPcw",
"avatar_url": "https://avatars.githubusercontent.com/u/128995187?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wenweichan",
"html_url": "https://github.com/wenweichan",
"followers_url": "https://api.github.com/users/wenweichan/followers",
"following_url": "https://api.github.com/users/wenweichan/following{/other_user}",
"gists_url": "https://api.github.com/users/wenweichan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wenweichan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wenweichan/subscriptions",
"organizations_url": "https://api.github.com/users/wenweichan/orgs",
"repos_url": "https://api.github.com/users/wenweichan/repos",
"events_url": "https://api.github.com/users/wenweichan/events{/privacy}",
"received_events_url": "https://api.github.com/users/wenweichan/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-08T01:06:34 | 2023-11-08T01:06:56 | null |
NONE
| null |
### Issue you'd like to raise.
Langchain.llm matches the vllm model, can it also match the fastllm model?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13037/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13037/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13036
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13036/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13036/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13036/events
|
https://github.com/langchain-ai/langchain/issues/13036
| 1,982,516,375 |
I_kwDOIPDwls52KsyX
| 13,036 |
Step-Back Prompting
|
{
"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": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 4 | 2023-11-08T00:58:46 | 2023-11-08T16:56:36 | 2023-11-08T16:46:08 |
COLLABORATOR
| null |
### Feature request
[This idea](https://arxiv.org/abs/2310.06117) is promising and it can be implemented with LangChain
### Motivation
To add a new chaining technique.
### Your contribution
I'm not sure I can implement it.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13036/reactions",
"total_count": 2,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13036/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13035
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13035/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13035/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13035/events
|
https://github.com/langchain-ai/langchain/issues/13035
| 1,982,507,472 |
I_kwDOIPDwls52KqnQ
| 13,035 |
Chain-of-Verification
|
{
"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": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
open
| false | null |
[] | null | 7 | 2023-11-08T00:48:40 | 2023-11-10T19:06:01 | null |
COLLABORATOR
| null |
### Feature request
[Chain-of-Verification](https://arxiv.org/pdf/2309.11495.pdf) looks like an interesting idea and LangChain can implement it.
### Motivation
to add one more effective method of the chaining.
### Your contribution
Not sure I can implement it. :(
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13035/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13035/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13034
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13034/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13034/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13034/events
|
https://github.com/langchain-ai/langchain/pull/13034
| 1,982,490,134 |
PR_kwDOIPDwls5e3hee
| 13,034 |
cli updates, 0.0.16
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-08T00:31:31 | 2023-11-08T15:47:31 | 2023-11-08T15:47:30 |
COLLABORATOR
| null |
- confirm flags, serve detection
- 0.0.16
- always gen code
- pip bool
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13034/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13034/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13034",
"html_url": "https://github.com/langchain-ai/langchain/pull/13034",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13034.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13034.patch",
"merged_at": "2023-11-08T15:47:30"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13033
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13033/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13033/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13033/events
|
https://github.com/langchain-ai/langchain/pull/13033
| 1,982,437,803 |
PR_kwDOIPDwls5e3WBg
| 13,033 |
Agent window management how to
|
{
"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": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-07T23:42:31 | 2023-11-15T17:38:04 | 2023-11-15T17:38:02 |
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/13033/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13033/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13033",
"html_url": "https://github.com/langchain-ai/langchain/pull/13033",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13033.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13033.patch",
"merged_at": "2023-11-15T17:38:02"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13032
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13032/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13032/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13032/events
|
https://github.com/langchain-ai/langchain/pull/13032
| 1,982,413,376 |
PR_kwDOIPDwls5e3QiW
| 13,032 |
Docusaurus 3
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-07T23:22:16 | 2023-11-29T18:21:49 | 2023-11-29T18:21:49 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13032/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13032/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13032",
"html_url": "https://github.com/langchain-ai/langchain/pull/13032",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13032.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13032.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13031
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13031/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13031/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13031/events
|
https://github.com/langchain-ai/langchain/pull/13031
| 1,982,411,411 |
PR_kwDOIPDwls5e3QG1
| 13,031 |
Upgrade docs postcss
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-07T23:19:59 | 2023-11-07T23:50:26 | 2023-11-07T23:50:25 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13031/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13031/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13031",
"html_url": "https://github.com/langchain-ai/langchain/pull/13031",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13031.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13031.patch",
"merged_at": "2023-11-07T23:50:25"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13030
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13030/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13030/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13030/events
|
https://github.com/langchain-ai/langchain/pull/13030
| 1,982,403,152 |
PR_kwDOIPDwls5e3OSL
| 13,030 |
template versions again
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 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": 5955630415,
"node_id": "LA_kwDOIPDwls8AAAABYvu1Tw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis",
"name": "integration: redis",
"color": "F9D0C4",
"default": false,
"description": "Any integration that uses Redis"
}
] |
closed
| false |
{
"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-07T23:12:05 | 2023-11-07T23:15:19 | 2023-11-07T23:15:18 |
COLLABORATOR
| null |
- scipy was locked due to py version
- same guardrails-output-parser
- rag-redis
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13030/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13030/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13030",
"html_url": "https://github.com/langchain-ai/langchain/pull/13030",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13030.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13030.patch",
"merged_at": "2023-11-07T23:15:18"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13029
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13029/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13029/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13029/events
|
https://github.com/langchain-ai/langchain/pull/13029
| 1,982,392,521 |
PR_kwDOIPDwls5e3L9r
| 13,029 |
Update Deps in Experimental
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-07T23:01:07 | 2023-11-07T23:15:10 | 2023-11-07T23:15:10 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13029/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13029/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13029",
"html_url": "https://github.com/langchain-ai/langchain/pull/13029",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13029.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13029.patch",
"merged_at": "2023-11-07T23:15:10"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13028
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13028/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13028/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13028/events
|
https://github.com/langchain-ai/langchain/pull/13028
| 1,982,388,832 |
PR_kwDOIPDwls5e3LJ9
| 13,028 |
Relock Templates
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-07T22:58:02 | 2023-11-07T23:01:50 | 2023-11-07T23:01:49 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13028/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13028/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13028",
"html_url": "https://github.com/langchain-ai/langchain/pull/13028",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13028.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13028.patch",
"merged_at": "2023-11-07T23:01:49"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13027
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13027/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13027/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13027/events
|
https://github.com/langchain-ai/langchain/issues/13027
| 1,982,332,029 |
I_kwDOIPDwls52J_x9
| 13,027 |
Compatibility Issue with OpenAI Python Package (Version 1.1.1)
|
{
"login": "Prikshit7766",
"id": 101416953,
"node_id": "U_kgDOBgt_-Q",
"avatar_url": "https://avatars.githubusercontent.com/u/101416953?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Prikshit7766",
"html_url": "https://github.com/Prikshit7766",
"followers_url": "https://api.github.com/users/Prikshit7766/followers",
"following_url": "https://api.github.com/users/Prikshit7766/following{/other_user}",
"gists_url": "https://api.github.com/users/Prikshit7766/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Prikshit7766/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Prikshit7766/subscriptions",
"organizations_url": "https://api.github.com/users/Prikshit7766/orgs",
"repos_url": "https://api.github.com/users/Prikshit7766/repos",
"events_url": "https://api.github.com/users/Prikshit7766/events{/privacy}",
"received_events_url": "https://api.github.com/users/Prikshit7766/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 | 14 | 2023-11-07T22:18:36 | 2023-12-14T11:47:23 | null |
NONE
| null |
### Description
Compatibility issue with the Langchain library due to the recent changes in the OpenAI Python package (version 1.1.1). The Langchain library relies on certain structures and imports from the OpenAI package, which have been modified in the new version. Specifically, the issue seems to be related to the following changes:
- In the Langchain code, the error handling imports in [langchain/llms/openai.py](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/llms/openai.py#L83 ) at line 90 were based on the older structure of the OpenAI package. In the newer version, these imports have been restructured and are available in openai._exceptions.
- In [langchain/llms/openai.py](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/llms/openai.py#L240 ) at line 266, values["client"] = openai.Completion is no longer valid in the new version of OpenAI (version 1.1.1).
```
!pip install langchain openai
from langchain import OpenAI
import os
os.environ["OPENAI_API_KEY"] = "key"
llm = OpenAI(
model_name="text-davinci-003",
temperature= 0.2,
max_tokens= 64,
openai_api_key=os.environ["OPENAI_API_KEY"],
)
```

Also

**Note:**
To avoid the above error, users should downgrade the OpenAI package to version 0.28.1.
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
!pip install langchain openai
from langchain import OpenAI
import os
os.environ["OPENAI_API_KEY"] = "key"
llm = OpenAI(
model_name="text-davinci-003",
temperature= 0.2,
max_tokens= 64,
openai_api_key=os.environ["OPENAI_API_KEY"],
)
### Expected behavior
Langchain should work without errors when using OpenAI version 1.1.1.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13027/reactions",
"total_count": 23,
"+1": 19,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 4
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13027/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13026
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13026/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13026/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13026/events
|
https://github.com/langchain-ai/langchain/issues/13026
| 1,982,276,784 |
I_kwDOIPDwls52JySw
| 13,026 |
Embedding on Multi-GPU
|
{
"login": "dionman",
"id": 17343914,
"node_id": "MDQ6VXNlcjE3MzQzOTE0",
"avatar_url": "https://avatars.githubusercontent.com/u/17343914?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dionman",
"html_url": "https://github.com/dionman",
"followers_url": "https://api.github.com/users/dionman/followers",
"following_url": "https://api.github.com/users/dionman/following{/other_user}",
"gists_url": "https://api.github.com/users/dionman/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dionman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dionman/subscriptions",
"organizations_url": "https://api.github.com/users/dionman/orgs",
"repos_url": "https://api.github.com/users/dionman/repos",
"events_url": "https://api.github.com/users/dionman/events{/privacy}",
"received_events_url": "https://api.github.com/users/dionman/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": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-07T21:39:50 | 2023-11-07T21:49:49 | null |
NONE
| null |
### Issue you'd like to raise.
How can I run embedding with "gte-large" on a multi-GPU machine?
Trying per issue #3486
```
model_name = "thenlper/gte-large"
encode_kwargs = {"normalize_embeddings": True}
model_kwargs = {"device": "cuda", "multi_process":True}
hf = HuggingFaceBgeEmbeddings(
model_name=model_name, model_kwargs=model_kwargs, encode_kwargs=encode_kwargs,
)
embedding = hf.embed_query("hi this is harrison")
len(embedding)
```
uses a single GPU
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13026/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13026/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13024
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13024/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13024/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13024/events
|
https://github.com/langchain-ai/langchain/issues/13024
| 1,982,234,376 |
I_kwDOIPDwls52Jn8I
| 13,024 |
[Loader template] Unstructured pdf partition to vectorstore
|
{
"login": "rlancemartin",
"id": 122662504,
"node_id": "U_kgDOB0-uaA",
"avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rlancemartin",
"html_url": "https://github.com/rlancemartin",
"followers_url": "https://api.github.com/users/rlancemartin/followers",
"following_url": "https://api.github.com/users/rlancemartin/following{/other_user}",
"gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions",
"organizations_url": "https://api.github.com/users/rlancemartin/orgs",
"repos_url": "https://api.github.com/users/rlancemartin/repos",
"events_url": "https://api.github.com/users/rlancemartin/events{/privacy}",
"received_events_url": "https://api.github.com/users/rlancemartin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-07T21:11:05 | 2023-11-07T21:11:28 | null |
COLLABORATOR
| null |
### Feature request
Load complex PDFs similar to:
https://github.com/langchain-ai/langchain/blob/master/cookbook/Semi_Structured_RAG.ipynb
### Motivation
RAG apps that need complex data loading
### Your contribution
Add template
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13024/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13024/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13022
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13022/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13022/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13022/events
|
https://github.com/langchain-ai/langchain/pull/13022
| 1,982,215,271 |
PR_kwDOIPDwls5e2kie
| 13,022 |
added system prompt and template fields to ollama
|
{
"login": "Govind-S-B",
"id": 62943847,
"node_id": "MDQ6VXNlcjYyOTQzODQ3",
"avatar_url": "https://avatars.githubusercontent.com/u/62943847?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Govind-S-B",
"html_url": "https://github.com/Govind-S-B",
"followers_url": "https://api.github.com/users/Govind-S-B/followers",
"following_url": "https://api.github.com/users/Govind-S-B/following{/other_user}",
"gists_url": "https://api.github.com/users/Govind-S-B/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Govind-S-B/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Govind-S-B/subscriptions",
"organizations_url": "https://api.github.com/users/Govind-S-B/orgs",
"repos_url": "https://api.github.com/users/Govind-S-B/repos",
"events_url": "https://api.github.com/users/Govind-S-B/events{/privacy}",
"received_events_url": "https://api.github.com/users/Govind-S-B/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"
}
] |
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 | 4 | 2023-11-07T20:57:35 | 2023-11-13T16:45:12 | 2023-11-13T16:45:11 |
CONTRIBUTOR
| null |
**Description**
the ollama api now supports passing system prompt and template directly instead of modifying the model file , but the ollama integration in langchain did not have this change updated . The update just adds these two parameters to it ( there are 2 more parameters that are pending to be updated, I was not sure about their utility wrt to langchain )
Refer : https://github.com/jmorganca/ollama/commit/8713ac23a86e1eaf8b94f93bb0d51d13b0225d87
**Issue** : None Applicable
**Dependencies** : None Changed
**Twitter handle** : https://twitter.com/violetto96
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13022/reactions",
"total_count": 3,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 1,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13022/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13022",
"html_url": "https://github.com/langchain-ai/langchain/pull/13022",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13022.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13022.patch",
"merged_at": "2023-11-13T16:45:11"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13021
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13021/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13021/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13021/events
|
https://github.com/langchain-ai/langchain/pull/13021
| 1,982,180,022 |
PR_kwDOIPDwls5e2cqJ
| 13,021 |
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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-07T20:35:48 | 2023-11-07T20:59:25 | 2023-11-07T20:59:24 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13021/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13021/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13021",
"html_url": "https://github.com/langchain-ai/langchain/pull/13021",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13021.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13021.patch",
"merged_at": "2023-11-07T20:59:24"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13020
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13020/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13020/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13020/events
|
https://github.com/langchain-ai/langchain/pull/13020
| 1,982,175,582 |
PR_kwDOIPDwls5e2btd
| 13,020 |
feat: Vertex AI Search - Add Snippet Retrieval for Non-Advanced Website Data Stores
|
{
"login": "holtskinner",
"id": 13262395,
"node_id": "MDQ6VXNlcjEzMjYyMzk1",
"avatar_url": "https://avatars.githubusercontent.com/u/13262395?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/holtskinner",
"html_url": "https://github.com/holtskinner",
"followers_url": "https://api.github.com/users/holtskinner/followers",
"following_url": "https://api.github.com/users/holtskinner/following{/other_user}",
"gists_url": "https://api.github.com/users/holtskinner/gists{/gist_id}",
"starred_url": "https://api.github.com/users/holtskinner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/holtskinner/subscriptions",
"organizations_url": "https://api.github.com/users/holtskinner/orgs",
"repos_url": "https://api.github.com/users/holtskinner/repos",
"events_url": "https://api.github.com/users/holtskinner/events{/privacy}",
"received_events_url": "https://api.github.com/users/holtskinner/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-07T20:32:49 | 2023-11-09T02:52:51 | 2023-11-09T02:52:51 |
CONTRIBUTOR
| null |
https://cloud.google.com/generative-ai-app-builder/docs/snippets#snippets
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13020/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13020/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13020",
"html_url": "https://github.com/langchain-ai/langchain/pull/13020",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13020.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13020.patch",
"merged_at": "2023-11-09T02:52:51"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.