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/14344 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14344/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14344/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14344/events | https://github.com/langchain-ai/langchain/issues/14344 | 2,028,370,080 | I_kwDOIPDwls545nig | 14,344 | Support SageMaker Inference Component of multi model endpoint | {
"login": "jc1518",
"id": 4754235,
"node_id": "MDQ6VXNlcjQ3NTQyMzU=",
"avatar_url": "https://avatars.githubusercontent.com/u/4754235?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jc1518",
"html_url": "https://github.com/jc1518",
"followers_url": "https://api.github.com/users/jc1518/followers",
"following_url": "https://api.github.com/users/jc1518/following{/other_user}",
"gists_url": "https://api.github.com/users/jc1518/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jc1518/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jc1518/subscriptions",
"organizations_url": "https://api.github.com/users/jc1518/orgs",
"repos_url": "https://api.github.com/users/jc1518/repos",
"events_url": "https://api.github.com/users/jc1518/events{/privacy}",
"received_events_url": "https://api.github.com/users/jc1518/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] | closed | false | null | [] | null | 3 | 2023-12-06T11:51:12 | 2024-01-12T02:36:39 | 2023-12-06T11:57:56 | NONE | null | ### Feature request
I have created a multi model inference endpoint in the new version of SageMaker studio (the original one now is called studio classic). I don't see there is a place that I can set the `inference component` in the `SagemakerEndpoint` class. So I ended up get an expected error from SageMaker.
`An error occurred (ValidationError) when calling the InvokeEndpointWithResponseStream operation: Inference Component Name header is required for endpoints to which you plan to deploy inference components. Please include Inference Component Name header or consider using SageMaker models.`
### Motivation
To support multi model endpoint in SageMaker which is cost efficient way to run models.
### Your contribution
I can test and verify. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14344/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14344/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14343 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14343/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14343/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14343/events | https://github.com/langchain-ai/langchain/issues/14343 | 2,028,344,953 | I_kwDOIPDwls545hZ5 | 14,343 | Specific prompt adds false input variables | {
"login": "A-Roucher",
"id": 69208727,
"node_id": "MDQ6VXNlcjY5MjA4NzI3",
"avatar_url": "https://avatars.githubusercontent.com/u/69208727?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/A-Roucher",
"html_url": "https://github.com/A-Roucher",
"followers_url": "https://api.github.com/users/A-Roucher/followers",
"following_url": "https://api.github.com/users/A-Roucher/following{/other_user}",
"gists_url": "https://api.github.com/users/A-Roucher/gists{/gist_id}",
"starred_url": "https://api.github.com/users/A-Roucher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/A-Roucher/subscriptions",
"organizations_url": "https://api.github.com/users/A-Roucher/orgs",
"repos_url": "https://api.github.com/users/A-Roucher/repos",
"events_url": "https://api.github.com/users/A-Roucher/events{/privacy}",
"received_events_url": "https://api.github.com/users/A-Roucher/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | closed | false | null | [] | null | 2 | 2023-12-06T11:35:34 | 2023-12-06T11:48:20 | 2023-12-06T11:48:20 | CONTRIBUTOR | null | ### System Info
python3.10.13
langchain==0.0.346
langchain-core==0.0.10
### Who can help?
@agola11, @hwchase17
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder
from langchain.agents.output_parsers import OpenAIFunctionsAgentOutputParser
from langchain.chat_models import ChatOpenAI
from langchain.agents.format_scratchpad import format_to_openai_function_messages
text_with_call = """You are a helpful assistant. Here is a function call that you should not imitate: <functioncall> {"name":"generate_anagram", "arguments": {"word": "listen"}}
"""
prompt = ChatPromptTemplate.from_messages(
[
(
"system",
text_with_call,
),
("user", "{input}"),
MessagesPlaceholder(variable_name="agent_scratchpad"),
]
)
llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0)
agent = (
{
"input": lambda x: x["input"],
"agent_scratchpad": lambda x: format_to_openai_function_messages(
x["intermediate_steps"]
),
}
| prompt
| llm
| OpenAIFunctionsAgentOutputParser()
)
output = agent.invoke(
{
"input": "Hello",
"intermediate_steps": [],
}
)
```
### Expected behavior
I would expect not to get an error.
I get error: `KeyError: 'Input to ChatPromptTemplate is missing variable \'"name"\'. Expected: [\'"name"\', \'agent_scratchpad\', \'input\'] Received: [\'input\', \'agent_scratchpad\']'`
> I think this error is cause by the f-string prompt template recognising the brackets inside the prompt as other variables needed an input.
I tried using Jinja2 template for my prompt instead, but I cannot setup this option in `ChatPromptTemplate`.
I understand this could be for security reasons as mentioned in [this issue](https://github.com/langchain-ai/langchain/issues/4394)
So the possible solutions I see :
- Use PromptTemplate like:
```
prompt = PromptTemplate.from_template(
text_with_call, template_format="jinja2"
)
```
But I would like to make use of the `agent_scratchpad`, so the ChatPromptTemplate is needed in my case.
- Change ChatPromptTemplate class to support jinja2 template, which I understand could not be done
- Re-implement my custom ChatPromptTemplate
- find another way to accept this prompt without falsely flagging prompt elements as input variables.
Do you have any ideas? Thanks for your help 😃 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14343/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14343/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14342 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14342/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14342/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14342/events | https://github.com/langchain-ai/langchain/issues/14342 | 2,028,301,021 | I_kwDOIPDwls545Wrd | 14,342 | Error: | {
"login": "dtthanh1971",
"id": 46180030,
"node_id": "MDQ6VXNlcjQ2MTgwMDMw",
"avatar_url": "https://avatars.githubusercontent.com/u/46180030?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dtthanh1971",
"html_url": "https://github.com/dtthanh1971",
"followers_url": "https://api.github.com/users/dtthanh1971/followers",
"following_url": "https://api.github.com/users/dtthanh1971/following{/other_user}",
"gists_url": "https://api.github.com/users/dtthanh1971/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dtthanh1971/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dtthanh1971/subscriptions",
"organizations_url": "https://api.github.com/users/dtthanh1971/orgs",
"repos_url": "https://api.github.com/users/dtthanh1971/repos",
"events_url": "https://api.github.com/users/dtthanh1971/events{/privacy}",
"received_events_url": "https://api.github.com/users/dtthanh1971/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] | closed | false | {
"login": "jacoblee93",
"id": 6952323,
"node_id": "MDQ6VXNlcjY5NTIzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jacoblee93",
"html_url": "https://github.com/jacoblee93",
"followers_url": "https://api.github.com/users/jacoblee93/followers",
"following_url": "https://api.github.com/users/jacoblee93/following{/other_user}",
"gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions",
"organizations_url": "https://api.github.com/users/jacoblee93/orgs",
"repos_url": "https://api.github.com/users/jacoblee93/repos",
"events_url": "https://api.github.com/users/jacoblee93/events{/privacy}",
"received_events_url": "https://api.github.com/users/jacoblee93/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "jacoblee93",
"id": 6952323,
"node_id": "MDQ6VXNlcjY5NTIzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jacoblee93",
"html_url": "https://github.com/jacoblee93",
"followers_url": "https://api.github.com/users/jacoblee93/followers",
"following_url": "https://api.github.com/users/jacoblee93/following{/other_user}",
"gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions",
"organizations_url": "https://api.github.com/users/jacoblee93/orgs",
"repos_url": "https://api.github.com/users/jacoblee93/repos",
"events_url": "https://api.github.com/users/jacoblee93/events{/privacy}",
"received_events_url": "https://api.github.com/users/jacoblee93/received_events",
"type": "User",
"site_admin": false
}
] | null | 5 | 2023-12-06T11:09:11 | 2023-12-06T19:12:51 | 2023-12-06T19:12:51 | NONE | null | ### System Info
I try this example code
```
from langchain.retrievers import ParentDocumentRetriever
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.storage import InMemoryStore
# This text splitter is used to create the parent documents
parent_splitter = RecursiveCharacterTextSplitter(chunk_size=2000)
# This text splitter is used to create the child documents
# It should create documents smaller than the parent
child_splitter = RecursiveCharacterTextSplitter(chunk_size=400)
# The vectorstore to use to index the child chunks
vectorstore = Chroma(embedding_function=OpenAIEmbeddings())
# The storage layer for the parent documents
store = InMemoryStore()
vectorstore = Chroma(collection_name="test", embedding_function=OpenAIEmbeddings())
```
# Initialize the retriever
parent_document_retriever = ParentDocumentRetriever(
vectorstore=vectorstore,
docstore=store,
child_splitter=child_splitter,
parent_splitter=parent_splitter,
)
but I encountered an error:
```
1 # Initialize the retriever
----> 2 parent_document_retriever = ParentDocumentRetriever(
3 vectorstore=vectorstore,
4 docstore=store,
5 child_splitter=child_splitter,
TypeError: MultiVectorRetriever.__init__() got an unexpected keyword argument 'child_splitter'
```
### 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
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from langchain.retrievers import ParentDocumentRetriever
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.storage import InMemoryStore
# This text splitter is used to create the parent documents
parent_splitter = RecursiveCharacterTextSplitter(chunk_size=2000)
# This text splitter is used to create the child documents
# It should create documents smaller than the parent
child_splitter = RecursiveCharacterTextSplitter(chunk_size=400)
# The vectorstore to use to index the child chunks
vectorstore = Chroma(embedding_function=OpenAIEmbeddings())
# The storage layer for the parent documents
store = InMemoryStore()
vectorstore = Chroma(collection_name="test", embedding_function=OpenAIEmbeddings())
# Initialize the retriever
parent_document_retriever = ParentDocumentRetriever(
vectorstore=vectorstore,
docstore=store,
child_splitter=child_splitter,
parent_splitter=parent_splitter,
)
```
### Expected behavior
I can run. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14342/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14342/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14341 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14341/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14341/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14341/events | https://github.com/langchain-ai/langchain/issues/14341 | 2,028,253,492 | I_kwDOIPDwls545LE0 | 14,341 | When I install the template "self-query-qdrant" I get this error: UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 132: character maps to <undefined> | {
"login": "ivan-schinella",
"id": 95024037,
"node_id": "U_kgDOBanzpQ",
"avatar_url": "https://avatars.githubusercontent.com/u/95024037?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ivan-schinella",
"html_url": "https://github.com/ivan-schinella",
"followers_url": "https://api.github.com/users/ivan-schinella/followers",
"following_url": "https://api.github.com/users/ivan-schinella/following{/other_user}",
"gists_url": "https://api.github.com/users/ivan-schinella/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ivan-schinella/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivan-schinella/subscriptions",
"organizations_url": "https://api.github.com/users/ivan-schinella/orgs",
"repos_url": "https://api.github.com/users/ivan-schinella/repos",
"events_url": "https://api.github.com/users/ivan-schinella/events{/privacy}",
"received_events_url": "https://api.github.com/users/ivan-schinella/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 | 5 | 2023-12-06T10:42:16 | 2023-12-06T15:00:33 | null | NONE | null | ### System Info
Windows 10 Pro - 22H2 - Build 9045.3693 - Windows Feature Experience Pack 1000.19053.1000.0
Python 3.11.5
langchain-cli 0.0.19
### 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
1. creating a virtual environments with python - m venv .venv and activate it;
2. installing langchain-cli with pip install -U "langchain-cli[serve]"
3. launch langchain app new qdrant-app --package self-query-qdrant
### Expected behavior
As for other templates that I have installed, I expected to find the .py files of the app in the packages directory, but it's empty.
[log.txt](https://github.com/langchain-ai/langchain/files/13580197/log.txt)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14341/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14341/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14340 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14340/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14340/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14340/events | https://github.com/langchain-ai/langchain/pull/14340 | 2,028,239,186 | PR_kwDOIPDwls5hSaPu | 14,340 | [LLMonitorCallbackHandler] | {
"login": "hughcrt",
"id": 24587702,
"node_id": "MDQ6VXNlcjI0NTg3NzAy",
"avatar_url": "https://avatars.githubusercontent.com/u/24587702?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hughcrt",
"html_url": "https://github.com/hughcrt",
"followers_url": "https://api.github.com/users/hughcrt/followers",
"following_url": "https://api.github.com/users/hughcrt/following{/other_user}",
"gists_url": "https://api.github.com/users/hughcrt/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hughcrt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hughcrt/subscriptions",
"organizations_url": "https://api.github.com/users/hughcrt/orgs",
"repos_url": "https://api.github.com/users/hughcrt/repos",
"events_url": "https://api.github.com/users/hughcrt/events{/privacy}",
"received_events_url": "https://api.github.com/users/hughcrt/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-06T10:33:55 | 2023-12-12T00:26:11 | 2023-12-12T00:19:02 | CONTRIBUTOR | null | Improve documentation for LLMonitorCallbackHandler (mainly formatting). | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14340/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14340/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14340",
"html_url": "https://github.com/langchain-ai/langchain/pull/14340",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14340.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14340.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14339 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14339/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14339/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14339/events | https://github.com/langchain-ai/langchain/issues/14339 | 2,028,230,943 | I_kwDOIPDwls545Fkf | 14,339 | Requests to the Creates a completion for the chat message Operation under Azure OpenAI API version 2023-03-15-preview have exceeded token rate limit of your current OpenAI S0 pricing tier. Please go here: https://aka.ms/oai/quotaincrease if you would like to further increase the default rate limit. | {
"login": "stormrageHF",
"id": 45843123,
"node_id": "MDQ6VXNlcjQ1ODQzMTIz",
"avatar_url": "https://avatars.githubusercontent.com/u/45843123?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/stormrageHF",
"html_url": "https://github.com/stormrageHF",
"followers_url": "https://api.github.com/users/stormrageHF/followers",
"following_url": "https://api.github.com/users/stormrageHF/following{/other_user}",
"gists_url": "https://api.github.com/users/stormrageHF/gists{/gist_id}",
"starred_url": "https://api.github.com/users/stormrageHF/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stormrageHF/subscriptions",
"organizations_url": "https://api.github.com/users/stormrageHF/orgs",
"repos_url": "https://api.github.com/users/stormrageHF/repos",
"events_url": "https://api.github.com/users/stormrageHF/events{/privacy}",
"received_events_url": "https://api.github.com/users/stormrageHF/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-12-06T10:29:14 | 2023-12-06T10:40:55 | null | NONE | null | ### System Info
langchain 0.0.299 python 3.8 gpt-4
when AzureChatOpenAI use gpt-4 ,I use agents to deal with problems,raised a error about RateLimitError; but gpt-3.5 do not appear this quesition
### 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
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
llm = AzureChatOpenAI(
openai_api_base=api_base,
openai_api_version=api_version,
deployment_name=deployment_name,
openai_api_key=api_token,
openai_api_type="azure",
max_tokens = max_tokens,
model_name = model_name,
)
memory = ConversationBufferMemory(memory_key="chat_history")
agent = create_pandas_dataframe_agent(
llm,
df,
agent=AgentType.CONVERSATIONAL_REACT_DESCRIPTION,
verbose=True,
memory=memory
)
question = "what are the top 2 most polluted counties"
res = agent.run(question)
### Expected behavior
Tell me what caused this error and how to avoid it
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14339/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14339/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14338 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14338/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14338/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14338/events | https://github.com/langchain-ai/langchain/issues/14338 | 2,028,088,277 | I_kwDOIPDwls544ivV | 14,338 | api_base parameter not properly propagated in client calls in ChatLiteLLM | {
"login": "DavidLMS",
"id": 17435126,
"node_id": "MDQ6VXNlcjE3NDM1MTI2",
"avatar_url": "https://avatars.githubusercontent.com/u/17435126?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DavidLMS",
"html_url": "https://github.com/DavidLMS",
"followers_url": "https://api.github.com/users/DavidLMS/followers",
"following_url": "https://api.github.com/users/DavidLMS/following{/other_user}",
"gists_url": "https://api.github.com/users/DavidLMS/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DavidLMS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DavidLMS/subscriptions",
"organizations_url": "https://api.github.com/users/DavidLMS/orgs",
"repos_url": "https://api.github.com/users/DavidLMS/repos",
"events_url": "https://api.github.com/users/DavidLMS/events{/privacy}",
"received_events_url": "https://api.github.com/users/DavidLMS/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 | 7 | 2023-12-06T09:13:46 | 2023-12-07T11:20:13 | 2023-12-07T11:20:13 | CONTRIBUTOR | null | ### System Info
- LangChain version: 0.0.346
- Platform: Mac mini M1 16GB - macOS Sonoma 14.0
- Python version: 3.11
- LiteLLM version: 1.10.6
### Who can help?
@hwchase17
@agola11
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from langchain.chat_models import ChatLiteLLM
# Code for initializing the ChatLiteLLM instance
chat_model = ChatLiteLLM(api_base="https://custom.endpoints.huggingface.cloud", model="huggingface/Intel/neural-chat-7b-v3-1")
# Make a call to LiteLLM
text = "What would be a good company name for a company that makes colorful socks?"
messages = [HumanMessage(content=text)]
print(chat_model(messages).content)
```
Error:
```
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/litellm/utils.py", line 4919, in handle_huggingface_chunk
raise ValueError(chunk)
ValueError: {"error":"The model Intel/neural-chat-7b-v3-1 is too large to be loaded automatically (14GB > 10GB). Please use Spaces (https://huggingface.co/spaces) or Inference Endpoints (https://huggingface.co/inference-endpoints)."}
```
Is the same error if:
`chat_model = ChatLiteLLM(model="huggingface/Intel/neural-chat-7b-v3-1")`
So api_base parameter not properly propagated in client calls in ChatLiteLLM.
### Expected behavior
I would expect the ChatLiteLLM instance to correctly utilize the api_base parameter when making requests to the LiteLLM client. This should enable using models larger than the default size limit without encountering the error message about model size limits.
Notably, if I explicitly add the api_base argument in chat_models/litellm.py on line 239 (e.g., `return self.client.completion(api_base=self.api_base, **kwargs)`), the problem is resolved. This suggests that the api_base argument is not being correctly passed through **kwargs. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14338/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14338/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14337 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14337/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14337/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14337/events | https://github.com/langchain-ai/langchain/issues/14337 | 2,028,038,022 | I_kwDOIPDwls544WeG | 14,337 | Dict validation error | {
"login": "Vignesh1489",
"id": 135110120,
"node_id": "U_kgDOCA2d6A",
"avatar_url": "https://avatars.githubusercontent.com/u/135110120?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vignesh1489",
"html_url": "https://github.com/Vignesh1489",
"followers_url": "https://api.github.com/users/Vignesh1489/followers",
"following_url": "https://api.github.com/users/Vignesh1489/following{/other_user}",
"gists_url": "https://api.github.com/users/Vignesh1489/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vignesh1489/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vignesh1489/subscriptions",
"organizations_url": "https://api.github.com/users/Vignesh1489/orgs",
"repos_url": "https://api.github.com/users/Vignesh1489/repos",
"events_url": "https://api.github.com/users/Vignesh1489/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vignesh1489/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": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] | open | false | null | [] | null | 26 | 2023-12-06T08:43:25 | 2024-01-09T05:47:11 | null | NONE | null | ### System Info
Trying to execute the chatbot script with sagemaker endpoint of LLAMA2 llm model getting dict validation error for RetrievalQA
Request:
def retreiveFromLL(userQuery: str) -> QueryResponse:
pre_prompt = """[INST] <<SYS>>
You are a helpful, respectful and honest assistant. Answer exactly in detail from the context
<</SYS>>
Answer the question below from context below :
"""
prompt = pre_prompt + "CONTEXT:\n\n{context}\n" +"Question : {question}" + "[\INST]"
llama_prompt = PromptTemplate(template=prompt, input_variables=["context", "question"])
chain_type_kwargs = {"prompt": llama_prompt}
embeddings = SentenceTransformerEmbeddings(model_name=EMBEDDING_MODEL)
# Initialize PGVector index
vector_db = PGVector(
embedding_function=embeddings,
collection_name='CSE_runbooks',
connection_string=CONNECTION_STRING,
)
print("**Invoking PGVector")
# Custom ContentHandler to handle input and output to the SageMaker Endpoint
class LlamaChatContentHandler(LLMContentHandler):
content_type = "application/json"
accepts = "application/json"
def transform_input(self, inputs: str, model_kwargs: Dict = {}) -> bytes:
payload = {
"inputs": pre_prompt,
"parameters": {"max_new_tokens":2000, "top_p":0.9, "temperature":0.1}}
input_str = ' '.join(inputs)
input_str = json.dumps(payload)
print(payload)
return input_str.encode("utf-8")
def transform_output(self, output: bytes) -> str:
response_json = json.loads(output.read().decode("utf-8"))
content = response_json[0]["generated_text"]
return content
# Initialize SagemakerEndpoint
print("Invoking LLM SageMaker Endpoint")
llm = SagemakerEndpoint(
endpoint_name=LLAMA2_ENDPOINT,
region_name=AWS_REGION,
content_handler=LlamaChatContentHandler(),
callbacks=[StreamingStdOutCallbackHandler()],
endpoint_kwargs={"CustomAttributes": "accept_eula=true"},
)
print(llm)
# Create a RetrievalQA instance with Pinecone as the retriever
query = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=vector_db, return_source_documents=True, chain_type_kwargs=chain_type_kwargs)
print("**Invoking query")
result = query({"query": userQuery})
response = result["result"]
Error:
Traceback (most recent call last):
File "/home/ec2-user/.local/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
exec(code, module.__dict__)
File "/home/ec2-user/milvus/qa_UI.py", line 26, in <module>
userResponse = getLLMResponse(user_input)
File "/home/ec2-user/milvus/getLLMResponse1.py", line 37, in getLLMResponse
userResponse = retreiveFromLL(userQuery)
File "/home/ec2-user/milvus/getLLMResponse1.py", line 97, in retreiveFromLL
query = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=vector_db, return_source_documents=True, chain_type_kwargs=chain_type_kwargs)
File "/home/ec2-user/.local/lib/python3.9/site-packages/langchain/chains/retrieval_qa/base.py", line 103, in from_chain_type
return cls(combine_documents_chain=combine_documents_chain, **kwargs)
File "/home/ec2-user/.local/lib/python3.9/site-packages/langchain/load/serializable.py", line 97, in __init__
super().__init__(**kwargs)
File "/home/ec2-user/.local/lib/python3.9/site-packages/pydantic/v1/main.py", line 341, in __init__
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for RetrievalQA
retriever
value is not a valid dict (type=type_error.dict)
### 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
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Execute the code
### Expected behavior
response from LLM | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14337/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14337/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14336 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14336/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14336/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14336/events | https://github.com/langchain-ai/langchain/pull/14336 | 2,028,026,524 | PR_kwDOIPDwls5hRr5Y | 14,336 | Fix typo in lcel example for rerank in doc | {
"login": "nbondoux",
"id": 3329961,
"node_id": "MDQ6VXNlcjMzMjk5NjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/3329961?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nbondoux",
"html_url": "https://github.com/nbondoux",
"followers_url": "https://api.github.com/users/nbondoux/followers",
"following_url": "https://api.github.com/users/nbondoux/following{/other_user}",
"gists_url": "https://api.github.com/users/nbondoux/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nbondoux/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nbondoux/subscriptions",
"organizations_url": "https://api.github.com/users/nbondoux/orgs",
"repos_url": "https://api.github.com/users/nbondoux/repos",
"events_url": "https://api.github.com/users/nbondoux/events{/privacy}",
"received_events_url": "https://api.github.com/users/nbondoux/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-06T08:37:08 | 2023-12-06T16:21:42 | 2023-12-06T16:21:42 | CONTRIBUTOR | null | fix typo in lcel example for rerank in doc | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14336/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/14336/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14336",
"html_url": "https://github.com/langchain-ai/langchain/pull/14336",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14336.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14336.patch",
"merged_at": "2023-12-06T16:21:42"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14335 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14335/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14335/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14335/events | https://github.com/langchain-ai/langchain/issues/14335 | 2,027,899,154 | I_kwDOIPDwls5430kS | 14,335 | Get JSON output from non-OpenAI models | {
"login": "lfoppiano",
"id": 15426,
"node_id": "MDQ6VXNlcjE1NDI2",
"avatar_url": "https://avatars.githubusercontent.com/u/15426?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lfoppiano",
"html_url": "https://github.com/lfoppiano",
"followers_url": "https://api.github.com/users/lfoppiano/followers",
"following_url": "https://api.github.com/users/lfoppiano/following{/other_user}",
"gists_url": "https://api.github.com/users/lfoppiano/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lfoppiano/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lfoppiano/subscriptions",
"organizations_url": "https://api.github.com/users/lfoppiano/orgs",
"repos_url": "https://api.github.com/users/lfoppiano/repos",
"events_url": "https://api.github.com/users/lfoppiano/events{/privacy}",
"received_events_url": "https://api.github.com/users/lfoppiano/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"
}
] | open | false | null | [] | null | 2 | 2023-12-06T07:50:44 | 2023-12-06T09:18:22 | null | CONTRIBUTOR | null | ### Issue with current documentation:
I'm exploring the use of open-source models via Ollama excellent application, I'm facing quite some challenges in adapting the instructions that were made for OpenAI-type models (they are perfectly interchangeable, I must say).
Is the format_instructions generated from the PydanticOutputParser supposed to work also for non-Openai models?
With Zephyr the model keeps returning the answer AND the JSON schema, even when I try to stop it from doing that...
### Idea or request for content:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14335/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14335/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14334 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14334/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14334/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14334/events | https://github.com/langchain-ai/langchain/pull/14334 | 2,027,894,978 | PR_kwDOIPDwls5hRQc8 | 14,334 | Exclude `max_tokens` from request if it's None | {
"login": "harupy",
"id": 17039389,
"node_id": "MDQ6VXNlcjE3MDM5Mzg5",
"avatar_url": "https://avatars.githubusercontent.com/u/17039389?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/harupy",
"html_url": "https://github.com/harupy",
"followers_url": "https://api.github.com/users/harupy/followers",
"following_url": "https://api.github.com/users/harupy/following{/other_user}",
"gists_url": "https://api.github.com/users/harupy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/harupy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harupy/subscriptions",
"organizations_url": "https://api.github.com/users/harupy/orgs",
"repos_url": "https://api.github.com/users/harupy/repos",
"events_url": "https://api.github.com/users/harupy/events{/privacy}",
"received_events_url": "https://api.github.com/users/harupy/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-12-06T07:48:56 | 2023-12-06T23:42:12 | 2023-12-06T16:23:17 | 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.
-->
We found a request with `max_tokens=None` results in the following error in Anthropic:
```
HTTPError: 400 Client Error: Bad Request for url: https://oregon.staging.cloud.databricks.com/serving-endpoints/corey-anthropic/invocations.
Response text: {"error_code":"INVALID_PARAMETER_VALUE","message":"INVALID_PARAMETER_VALUE: max_tokens was not of type Integer: null"}
```
This PR excludes `max_tokens` if it's None. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14334/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14334/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14334",
"html_url": "https://github.com/langchain-ai/langchain/pull/14334",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14334.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14334.patch",
"merged_at": "2023-12-06T16:23:17"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14333 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14333/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14333/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14333/events | https://github.com/langchain-ai/langchain/issues/14333 | 2,027,823,831 | I_kwDOIPDwls543iLX | 14,333 | GoogleVertexAISearchRetriever - AttributeError: 'ProtoType' object has no attribute 'DESCRIPTOR' | {
"login": "MarkEdmondson1234",
"id": 3155884,
"node_id": "MDQ6VXNlcjMxNTU4ODQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/3155884?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MarkEdmondson1234",
"html_url": "https://github.com/MarkEdmondson1234",
"followers_url": "https://api.github.com/users/MarkEdmondson1234/followers",
"following_url": "https://api.github.com/users/MarkEdmondson1234/following{/other_user}",
"gists_url": "https://api.github.com/users/MarkEdmondson1234/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MarkEdmondson1234/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarkEdmondson1234/subscriptions",
"organizations_url": "https://api.github.com/users/MarkEdmondson1234/orgs",
"repos_url": "https://api.github.com/users/MarkEdmondson1234/repos",
"events_url": "https://api.github.com/users/MarkEdmondson1234/events{/privacy}",
"received_events_url": "https://api.github.com/users/MarkEdmondson1234/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2023-12-06T07:13:51 | 2023-12-06T07:21:52 | null | CONTRIBUTOR | null | ### System Info
Deployed on Cloud Run
```
Python 3.10
langchain 0.0.345
langchain-cli 0.0.19
langchain-core 0.0.9
langchain-experimental 0.0.43
langdetect 1.0.9
langserve 0.0.32
langsmith 0.0.69
```
```
google-ai-generativelanguage 0.3.3
google-api-core 2.14.0
google-api-python-client 2.109.0
google-auth 2.24.0
google-auth-httplib2 0.1.1
google-auth-oauthlib 1.1.0
google-cloud-aiplatform 1.36.4
google-cloud-bigquery 3.13.0
google-cloud-core 2.3.3
google-cloud-discoveryengine 0.11.3
google-cloud-pubsub 2.18.4
google-cloud-resource-manager 1.10.4
google-cloud-storage 2.13.0
google-crc32c 1.5.0
google-generativeai 0.2.2
google-resumable-media 2.6.0
googleapis-common-protos 1.61.0
```
Deployed via the Langchain template here:
https://github.com/langchain-ai/langchain/tree/master/templates/rag-google-cloud-vertexai-search
### Who can help?
@holtskinner I think has been fixing Google related stuff or knows someone who can
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Add https://github.com/langchain-ai/langchain/tree/master/templates/rag-google-cloud-vertexai-search to Langserve server
Run in playground with any input - get error.
AttributeError("'ProtoType' object has no attribute 'DESCRIPTOR'")
Langsmith chain:
```
{
"id": [
"langchain_core",
"runnables",
"RunnableSequence"
],
"lc": 1,
"type": "constructor",
"kwargs": {
"last": {
"id": [
"langchain_core",
"output_parsers",
"string",
"StrOutputParser"
],
"lc": 1,
"type": "constructor",
"kwargs": {}
},
"first": {
"id": [
"langchain_core",
"runnables",
"RunnableParallel"
],
"lc": 1,
"type": "constructor",
"kwargs": {
"steps": {
"context": {
"id": [
"langchain",
"retrievers",
"google_vertex_ai_search",
"GoogleVertexAISearchRetriever"
],
"lc": 1,
"repr": "GoogleVertexAISearchRetriever(project_id='project-id', data_store_id='datastore-id')",
"type": "not_implemented"
},
"question": {
"id": [
"langchain_core",
"runnables",
"RunnablePassthrough"
],
"lc": 1,
"type": "constructor",
"kwargs": {
"func": null,
"afunc": null,
"input_type": null
}
}
}
}
},
"middle": [
{
"id": [
"langchain_core",
"prompts",
"chat",
"ChatPromptTemplate"
],
"lc": 1,
"type": "constructor",
"kwargs": {
"messages": [
{
"id": [
"langchain_core",
"prompts",
"chat",
"HumanMessagePromptTemplate"
],
"lc": 1,
"type": "constructor",
"kwargs": {
"prompt": {
"id": [
"langchain_core",
"prompts",
"prompt",
"PromptTemplate"
],
"lc": 1,
"type": "constructor",
"kwargs": {
"template": "Answer the question based only on the following context:\n{context}\nQuestion: {question}\n",
"input_variables": [
"context",
"question"
],
"template_format": "f-string",
"partial_variables": {}
}
}
}
}
],
"input_variables": [
"context",
"question"
]
}
},
{
"id": [
"langchain",
"chat_models",
"vertexai",
"ChatVertexAI"
],
"lc": 1,
"type": "constructor",
"kwargs": {
"model_name": "chat-bison",
"temperature": 0
}
}
]
}
}
```
The traceback comes back as:
```
File "/usr/local/lib/python3.10/site-packages/langchain_core/retrievers.py", line 157, in _aget_relevant_documents
return await asyncio.get_running_loop().run_in_executor(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/langchain/retrievers/google_vertex_ai_search.py", line 343, in _get_relevant_documents
search_request = self._create_search_request(query)
File "/usr/local/lib/python3.10/site-packages/langchain/retrievers/google_vertex_ai_search.py", line 327, in _create_search_request
return SearchRequest(
File "/usr/local/lib/python3.10/site-packages/proto/message.py", line 570, in __init__
pb_value = marshal.to_proto(pb_type, value)
File "/usr/local/lib/python3.10/site-packages/proto/marshal/marshal.py", line 222, in to_proto
proto_type.DESCRIPTOR.has_options
AttributeError: 'ProtoType' object has no attribute 'DESCRIPTOR'
```
### Expected behavior
The call to https://github.com/langchain-ai/langchain/blob/e1ea1912377ca7c013e89fac4c1d26c0cb836009/libs/langchain/langchain/retrievers/google_vertex_ai_search.py#L327
returns correctly with some documents. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14333/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14333/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14332 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14332/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14332/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14332/events | https://github.com/langchain-ai/langchain/pull/14332 | 2,027,799,577 | PR_kwDOIPDwls5hQ61j | 14,332 | Add Alpha Vantage API Tool | {
"login": "anshaneel",
"id": 68671970,
"node_id": "MDQ6VXNlcjY4NjcxOTcw",
"avatar_url": "https://avatars.githubusercontent.com/u/68671970?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/anshaneel",
"html_url": "https://github.com/anshaneel",
"followers_url": "https://api.github.com/users/anshaneel/followers",
"following_url": "https://api.github.com/users/anshaneel/following{/other_user}",
"gists_url": "https://api.github.com/users/anshaneel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/anshaneel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anshaneel/subscriptions",
"organizations_url": "https://api.github.com/users/anshaneel/orgs",
"repos_url": "https://api.github.com/users/anshaneel/repos",
"events_url": "https://api.github.com/users/anshaneel/events{/privacy}",
"received_events_url": "https://api.github.com/users/anshaneel/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | null | [] | null | 2 | 2023-12-06T06:59:03 | 2024-01-03T07:04:23 | null | NONE | null | ### Description
This implementation adds functionality from the AlphaVantage API, renowned for its comprehensive financial data. The class encapsulates various methods, each dedicated to fetching specific types of financial information from the API.
### Implemented Functions
- **`search_symbols`**:
- Searches the AlphaVantage API for financial symbols using the provided keywords.
- **`_get_market_news_sentiment`**:
- Retrieves market news sentiment for a specified stock symbol from the AlphaVantage API.
- **`_get_time_series_daily`**:
- Fetches daily time series data for a specific symbol from the AlphaVantage API.
- **`_get_quote_endpoint`**:
- Obtains the latest price and volume information for a given symbol from the AlphaVantage API.
- **`_get_time_series_weekly`**:
- Gathers weekly time series data for a particular symbol from the AlphaVantage API.
- **`_get_top_gainers_losers`**:
- Provides details on top gainers, losers, and most actively traded tickers in the US market from the AlphaVantage API.
### Issue:
- #11994
### Dependencies:
- 'requests' library for HTTP requests. (import requests)
- 'pytest' library for testing. (import pytest)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14332/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14332/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14332",
"html_url": "https://github.com/langchain-ai/langchain/pull/14332",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14332.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14332.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14331 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14331/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14331/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14331/events | https://github.com/langchain-ai/langchain/pull/14331 | 2,027,665,882 | PR_kwDOIPDwls5hQeUv | 14,331 | Include run_id | {
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-06T05:03:58 | 2023-12-06T22:07:46 | 2023-12-06T22:07:45 | COLLABORATOR | null | in the test run outputs | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14331/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14331/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14331",
"html_url": "https://github.com/langchain-ai/langchain/pull/14331",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14331.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14331.patch",
"merged_at": "2023-12-06T22:07:45"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14330 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14330/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14330/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14330/events | https://github.com/langchain-ai/langchain/issues/14330 | 2,027,603,413 | I_kwDOIPDwls542sXV | 14,330 | No module named 'langchain.callbacks.tracers.log_stream' | {
"login": "kientv",
"id": 3217438,
"node_id": "MDQ6VXNlcjMyMTc0Mzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3217438?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kientv",
"html_url": "https://github.com/kientv",
"followers_url": "https://api.github.com/users/kientv/followers",
"following_url": "https://api.github.com/users/kientv/following{/other_user}",
"gists_url": "https://api.github.com/users/kientv/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kientv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kientv/subscriptions",
"organizations_url": "https://api.github.com/users/kientv/orgs",
"repos_url": "https://api.github.com/users/kientv/repos",
"events_url": "https://api.github.com/users/kientv/events{/privacy}",
"received_events_url": "https://api.github.com/users/kientv/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 4 | 2023-12-06T04:00:41 | 2023-12-07T03:12:07 | null | NONE | null | ### System Info
I already create venv and re-install langchain: `pip install langchain` but error:
> from langserve import add_routes
> File "/usr/local/lib/python3.10/dist-packages/langserve/__init__.py", line 7, in <module>
> from langserve.client import RemoteRunnable
> File "/usr/local/lib/python3.10/dist-packages/langserve/client.py", line 29, in <module>
> from langchain.callbacks.tracers.log_stream import RunLogPatch
> ModuleNotFoundError: No module named 'langchain.callbacks.tracers.log_stream'
>
### Who can help?
@agola11
### 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
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install langchain
$ pip install google-generativeai
$ pip install fastapi
$ pip install uvicorn
$ pip install langserve
$ `uvicorn main:app --host 0.0.0.0 --port 8000`
### Expected behavior
App run with langserve without error | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14330/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14330/timeline | null | reopened | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14329 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14329/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14329/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14329/events | https://github.com/langchain-ai/langchain/issues/14329 | 2,027,594,343 | I_kwDOIPDwls542qJn | 14,329 | Issue: The purpose to validate_tools_single_input in CHAT_CONVERSATIONAL_REACT_DESCRIPTION agent | {
"login": "ChengyangDu",
"id": 33564701,
"node_id": "MDQ6VXNlcjMzNTY0NzAx",
"avatar_url": "https://avatars.githubusercontent.com/u/33564701?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ChengyangDu",
"html_url": "https://github.com/ChengyangDu",
"followers_url": "https://api.github.com/users/ChengyangDu/followers",
"following_url": "https://api.github.com/users/ChengyangDu/following{/other_user}",
"gists_url": "https://api.github.com/users/ChengyangDu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ChengyangDu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ChengyangDu/subscriptions",
"organizations_url": "https://api.github.com/users/ChengyangDu/orgs",
"repos_url": "https://api.github.com/users/ChengyangDu/repos",
"events_url": "https://api.github.com/users/ChengyangDu/events{/privacy}",
"received_events_url": "https://api.github.com/users/ChengyangDu/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] | open | false | null | [] | null | 2 | 2023-12-06T03:49:44 | 2023-12-06T05:36:34 | null | NONE | null | ### Issue you'd like to raise.
Cannot figure out why validate_tools_single_input is necessary. I've tried to adopt multi-inputs tools in CHAT_CONVERSATIONAL_REACT_DESCRIPTION agents by just commenting out the implementation of such function. Everything seemed fun.
So what's the purpose of such design, and if it is possible to use multi-inputs tools in a more flexible setup?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14329/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14329/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14328 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14328/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14328/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14328/events | https://github.com/langchain-ai/langchain/issues/14328 | 2,027,583,278 | I_kwDOIPDwls542ncu | 14,328 | Allow PresidioAnonymizer() to redact data instead of anonymizing. | {
"login": "Siddhartha90",
"id": 2003023,
"node_id": "MDQ6VXNlcjIwMDMwMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/2003023?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Siddhartha90",
"html_url": "https://github.com/Siddhartha90",
"followers_url": "https://api.github.com/users/Siddhartha90/followers",
"following_url": "https://api.github.com/users/Siddhartha90/following{/other_user}",
"gists_url": "https://api.github.com/users/Siddhartha90/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Siddhartha90/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Siddhartha90/subscriptions",
"organizations_url": "https://api.github.com/users/Siddhartha90/orgs",
"repos_url": "https://api.github.com/users/Siddhartha90/repos",
"events_url": "https://api.github.com/users/Siddhartha90/events{/privacy}",
"received_events_url": "https://api.github.com/users/Siddhartha90/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] | closed | false | null | [] | null | 3 | 2023-12-06T03:35:45 | 2023-12-27T11:33:34 | 2023-12-07T02:06:20 | NONE | null | ### Feature request
The langchain library only supports anonymizing it seems. The native microsoft library can redact data:
```
analyzer_results = analyzer.analyze(text=text_to_anonymize,
entities=["PERSON", "PHONE_NUMBER", "EMAIL_ADDRESS", "URL", "LOCATION"],
ad_hoc_recognizers=ad_hoc_recognizers,
language='en')
anonymized_results = anonymizer.anonymize(
text=text_to_anonymize,
analyzer_results=analyzer_results,
operators={"DEFAULT": OperatorConfig("redact", {})}
)
```
I don't see a way to do this via langchain_experimental.data_anonymizer
### Motivation
Redaction is cleaner than anonymizing. It's better than replacing first names with gibberish for my. use case
### Your contribution
I can help provide use-cases, like i did above. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14328/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14328/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14327 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14327/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14327/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14327/events | https://github.com/langchain-ai/langchain/pull/14327 | 2,027,547,613 | PR_kwDOIPDwls5hQFGo | 14,327 | [Feature] Openai bind_tools | {
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | open | false | null | [] | null | 1 | 2023-12-06T02:51:29 | 2023-12-14T17:39:21 | null | COLLABORATOR | null | It's nice to not have to remember the imports for these (though now with the split, the cyclic dep on langchain is a bit annoying) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14327/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14327/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14327",
"html_url": "https://github.com/langchain-ai/langchain/pull/14327",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14327.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14327.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14326 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14326/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14326/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14326/events | https://github.com/langchain-ai/langchain/issues/14326 | 2,027,520,337 | I_kwDOIPDwls542YFR | 14,326 | Issue: <Please write a coImportError: cannot import name 'open_filename' from 'pdfminer.utils' (/home/nickjtay/Projects/langtest1/lib/python3.10/site-packages/pdfminer/utils.py)mprehensive title after the 'Issue: ' prefix> | {
"login": "nickjtay",
"id": 52182102,
"node_id": "MDQ6VXNlcjUyMTgyMTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/52182102?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nickjtay",
"html_url": "https://github.com/nickjtay",
"followers_url": "https://api.github.com/users/nickjtay/followers",
"following_url": "https://api.github.com/users/nickjtay/following{/other_user}",
"gists_url": "https://api.github.com/users/nickjtay/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nickjtay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nickjtay/subscriptions",
"organizations_url": "https://api.github.com/users/nickjtay/orgs",
"repos_url": "https://api.github.com/users/nickjtay/repos",
"events_url": "https://api.github.com/users/nickjtay/events{/privacy}",
"received_events_url": "https://api.github.com/users/nickjtay/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-12-06T02:23:04 | 2024-01-15T10:02:31 | null | NONE | null | ### Issue you'd like to raise.
I tried to run the notebook [Semi_structured_multi_modal_RAG_LLaMA2.ipynb](https://github.com/langchain-ai/langchain/blob/master/cookbook/Semi_structured_multi_modal_RAG_LLaMA2.ipynb). I installed and imported the required libraries, but an error message was returned as a result of running the below code:
```
from typing import Any
from pydantic import BaseModel
from unstructured.partition.pdf import partition_pdf
path = "/home/nickjtay/LLaVA/"
raw_pdf_elements = partition_pdf(
filename=path + "LLaVA.pdf",
# Using pdf format to find embedded image blocks
extract_images_in_pdf=True,
# Use layout model (YOLOX) to get bounding boxes (for tables) and find titles
# Titles are any sub-section of the document
infer_table_structure=True,
# Post processing to aggregate text once we have the title
chunking_strategy="by_title",
# Chunking params to aggregate text blocks
# Attempt to create a new chunk 3800 chars
# Attempt to keep chunks > 2000 chars
# Hard max on chunks
max_characters=4000,
new_after_n_chars=3800,
combine_text_under_n_chars=2000,
image_output_dir_path=path,
)
```
```
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[5], line 4
1 from typing import Any
3 from pydantic import BaseModel
----> 4 from unstructured.partition.pdf import partition_pdf
5 import pdfminer
6 print(pdfminer.utils.__version__)
File ~/Projects/langtest1/lib/python3.10/site-packages/unstructured/partition/pdf.py:40
38 from pdfminer.pdfparser import PSSyntaxError
39 from pdfminer.pdftypes import PDFObjRef
---> 40 from pdfminer.utils import open_filename
41 from PIL import Image as PILImage
43 from unstructured.chunking.title import add_chunking_strategy
ImportError: cannot import name 'open_filename' from 'pdfminer.utils' (/home/nickjtay/Projects/langtest1/lib/python3.10/site-packages/pdfminer/utils.py)
```
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14326/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14326/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14325 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14325/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14325/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14325/events | https://github.com/langchain-ai/langchain/pull/14325 | 2,027,469,502 | PR_kwDOIPDwls5hP0DU | 14,325 | docs[patch]: fix ipynb links | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-12-06T01:37:04 | 2023-12-06T17:31:08 | 2023-12-06T17:29:07 | COLLABORATOR | null | Keeping it simple for now.
Still iterating on our docs build in pursuit of making everything mdxv2 compatible for docusaurus 3, and the fewer custom scripts we're reliant on through that, the less likely the docs will break again.
Other things to consider in future:
Quarto rewriting in ipynbs: https://quarto.org/docs/extensions/nbfilter.html (but this won't do md/mdx files)
Docusaurus plugins for rewriting these paths | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14325/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14325/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14325",
"html_url": "https://github.com/langchain-ai/langchain/pull/14325",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14325.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14325.patch",
"merged_at": "2023-12-06T17:29:07"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14324 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14324/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14324/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14324/events | https://github.com/langchain-ai/langchain/pull/14324 | 2,027,414,824 | PR_kwDOIPDwls5hPoIl | 14,324 | [Evals] End project | {
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-06T00:46:41 | 2023-12-15T08:05:35 | 2023-12-15T08:05:34 | COLLABORATOR | null | Also does some cleanup.
Now that we support updating/ending projects, do this automatically. Then you can edit the name of the project in the app. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14324/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14324/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14324",
"html_url": "https://github.com/langchain-ai/langchain/pull/14324",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14324.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14324.patch",
"merged_at": "2023-12-15T08:05:34"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14322 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14322/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14322/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14322/events | https://github.com/langchain-ai/langchain/pull/14322 | 2,027,370,636 | PR_kwDOIPDwls5hPekU | 14,322 | feat(add): LLM integration of Cloudflare Workers AI | {
"login": "cxumol",
"id": 8279655,
"node_id": "MDQ6VXNlcjgyNzk2NTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/8279655?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cxumol",
"html_url": "https://github.com/cxumol",
"followers_url": "https://api.github.com/users/cxumol/followers",
"following_url": "https://api.github.com/users/cxumol/following{/other_user}",
"gists_url": "https://api.github.com/users/cxumol/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cxumol/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cxumol/subscriptions",
"organizations_url": "https://api.github.com/users/cxumol/orgs",
"repos_url": "https://api.github.com/users/cxumol/repos",
"events_url": "https://api.github.com/users/cxumol/events{/privacy}",
"received_events_url": "https://api.github.com/users/cxumol/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-06T00:05:38 | 2023-12-06T16:24:20 | 2023-12-06T16:24:19 | CONTRIBUTOR | null | Add [Text Generation by Cloudflare Workers AI](https://developers.cloudflare.com/workers-ai/models/text-generation/). It's a new LLM integration.
- Dependencies: N/A | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14322/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14322/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14322",
"html_url": "https://github.com/langchain-ai/langchain/pull/14322",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14322.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14322.patch",
"merged_at": "2023-12-06T16:24:19"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14321 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14321/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14321/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14321/events | https://github.com/langchain-ai/langchain/issues/14321 | 2,027,269,893 | I_kwDOIPDwls541a8F | 14,321 | Better synergy with `poetry` groups and extras | {
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] | open | false | null | [] | null | 1 | 2023-12-05T22:51:16 | 2023-12-05T22:53:33 | null | CONTRIBUTOR | null | ### Feature request
Currently when getting started developing, there is:
- `extras`: `extended_testing`
- `poetry`: `dev`, `test`, `test_integration`
There is also an annoying `rapidfuzz` error one can hit: https://github.com/langchain-ai/langchain/issues/12237
Can we have the poetry groups reusing `extras`?
### Motivation
Less moving parts, and a more clear installation workflow
### Your contribution
I propose:
- Removing `dev` group
- Having the `test` group install the `extended_testing` extra | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14321/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14321/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14319 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14319/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14319/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14319/events | https://github.com/langchain-ai/langchain/pull/14319 | 2,027,236,158 | PR_kwDOIPDwls5hPAaT | 14,319 | Update OpenCLIP docs | {
"login": "rlancemartin",
"id": 122662504,
"node_id": "U_kgDOB0-uaA",
"avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rlancemartin",
"html_url": "https://github.com/rlancemartin",
"followers_url": "https://api.github.com/users/rlancemartin/followers",
"following_url": "https://api.github.com/users/rlancemartin/following{/other_user}",
"gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions",
"organizations_url": "https://api.github.com/users/rlancemartin/orgs",
"repos_url": "https://api.github.com/users/rlancemartin/repos",
"events_url": "https://api.github.com/users/rlancemartin/events{/privacy}",
"received_events_url": "https://api.github.com/users/rlancemartin/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T22:26:39 | 2023-12-05T23:31:11 | 2023-12-05T23:31:10 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14319/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14319/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14319",
"html_url": "https://github.com/langchain-ai/langchain/pull/14319",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14319.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14319.patch",
"merged_at": "2023-12-05T23:31:10"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14318 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14318/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14318/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14318/events | https://github.com/langchain-ai/langchain/issues/14318 | 2,027,229,878 | I_kwDOIPDwls541RK2 | 14,318 | DOC: TextGen (Text Generation Web UI) - the code no longer works. | {
"login": "solarslurpi",
"id": 5243679,
"node_id": "MDQ6VXNlcjUyNDM2Nzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/5243679?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/solarslurpi",
"html_url": "https://github.com/solarslurpi",
"followers_url": "https://api.github.com/users/solarslurpi/followers",
"following_url": "https://api.github.com/users/solarslurpi/following{/other_user}",
"gists_url": "https://api.github.com/users/solarslurpi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/solarslurpi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/solarslurpi/subscriptions",
"organizations_url": "https://api.github.com/users/solarslurpi/orgs",
"repos_url": "https://api.github.com/users/solarslurpi/repos",
"events_url": "https://api.github.com/users/solarslurpi/events{/privacy}",
"received_events_url": "https://api.github.com/users/solarslurpi/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 | 5 | 2023-12-05T22:22:39 | 2023-12-28T02:23:48 | null | NONE | null | ### Issue with current documentation:
I believe the Oobabooga Text Generation Web UI API was rewritten, causing the code on the TextGen page of the Langchain docs to stop working.
e.g.: the way the code handles talking to a ws: causes a 403. I can execute API calls that work well, e.g.: curl http://127.0.0.1:5000/v1/chat/completions \
> -H "Content-Type: application/json" \
> -d '{
> "messages": [
> {
> "role": "user",
> "content": "Hello! Who are you?"
> }
> ],
> "mode": "chat",
> "character": "Example"
> }'
works.
while llm_chain.run(question) returns a 403 (failed handshake).
### Idea or request for content:
It would be awesome if this would be fixed. If not, please pull the page. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14318/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/14318/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14317 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14317/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14317/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14317/events | https://github.com/langchain-ai/langchain/pull/14317 | 2,027,191,944 | PR_kwDOIPDwls5hO2dx | 14,317 | Moderation: migrate to new openai api | {
"login": "CheeseDurger",
"id": 18169985,
"node_id": "MDQ6VXNlcjE4MTY5OTg1",
"avatar_url": "https://avatars.githubusercontent.com/u/18169985?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/CheeseDurger",
"html_url": "https://github.com/CheeseDurger",
"followers_url": "https://api.github.com/users/CheeseDurger/followers",
"following_url": "https://api.github.com/users/CheeseDurger/following{/other_user}",
"gists_url": "https://api.github.com/users/CheeseDurger/gists{/gist_id}",
"starred_url": "https://api.github.com/users/CheeseDurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CheeseDurger/subscriptions",
"organizations_url": "https://api.github.com/users/CheeseDurger/orgs",
"repos_url": "https://api.github.com/users/CheeseDurger/repos",
"events_url": "https://api.github.com/users/CheeseDurger/events{/privacy}",
"received_events_url": "https://api.github.com/users/CheeseDurger/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | open | false | null | [] | null | 6 | 2023-12-05T21:56:09 | 2024-01-11T16:14:41 | null | NONE | null | Fixes issue #13685 : OpenAIModerationChain still uses the old OpenAI API.
### Description
The following snippet:
```python
from langchain.chains import OpenAIModerationChain
from openai import moderations
print(OpenAIModerationChain(client=moderations).run("i want to kill you"))
```
Gives the following error :
```
Traceback (most recent call last):
File "moderate.py", line 4, in <module>
print(OpenAIModerationChain(client=moderations).run("i want to kill you"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\Lib\site-packages\langchain\chains\base.py", line 507, in run
return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\Lib\site-packages\langchain\chains\base.py", line 312, in __call__
raise e
File "\Lib\site-packages\langchain\chains\base.py", line 306, in __call__
self._call(inputs, run_manager=run_manager)
File "\Lib\site-packages\langchain\chains\moderation.py", line 94, in _call
results = self.client.create(text)
^^^^^^^^^^^^^^^^^^^^^^^^
File "\Lib\site-packages\openai\lib\_old_api.py", line 39, in __call__
raise APIRemovedInV1(symbol=self._symbol)
openai.lib._old_api.APIRemovedInV1:
You tried to access openai.Moderation, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.
You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface.
Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28`
A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742
```
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14317/reactions",
"total_count": 2,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 1,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14317/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14317",
"html_url": "https://github.com/langchain-ai/langchain/pull/14317",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14317.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14317.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14315 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14315/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14315/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14315/events | https://github.com/langchain-ai/langchain/pull/14315 | 2,027,085,260 | PR_kwDOIPDwls5hOe2L | 14,315 | docs: `integrations/providers/` update | {
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T20:39:47 | 2023-12-05T21:23:00 | 2023-12-05T21:05:29 | COLLABORATOR | null | - added missed provider files (from `integrations/Callbacks`
- updated notebooks: added links; updated into consistent formats | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14315/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14315/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14315",
"html_url": "https://github.com/langchain-ai/langchain/pull/14315",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14315.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14315.patch",
"merged_at": "2023-12-05T21:05:29"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14314 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14314/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14314/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14314/events | https://github.com/langchain-ai/langchain/pull/14314 | 2,027,084,689 | PR_kwDOIPDwls5hOeuI | 14,314 | Fixing empty input variable crashing `PromptTemplate` validations | {
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 4 | 2023-12-05T20:39:20 | 2023-12-06T15:44:07 | 2023-12-05T21:13:09 | CONTRIBUTOR | null | - Fixes `input_variables=[""]` crashing validations with a template `"{}"`
- Uses `__cause__` for proper `Exception` chaining in `check_valid_template` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14314/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14314/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14314",
"html_url": "https://github.com/langchain-ai/langchain/pull/14314",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14314.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14314.patch",
"merged_at": "2023-12-05T21:13:09"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14313 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14313/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14313/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14313/events | https://github.com/langchain-ai/langchain/pull/14313 | 2,027,055,642 | PR_kwDOIPDwls5hOYaQ | 14,313 | Create hi | {
"login": "SchmaltzVisuals",
"id": 38481385,
"node_id": "MDQ6VXNlcjM4NDgxMzg1",
"avatar_url": "https://avatars.githubusercontent.com/u/38481385?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SchmaltzVisuals",
"html_url": "https://github.com/SchmaltzVisuals",
"followers_url": "https://api.github.com/users/SchmaltzVisuals/followers",
"following_url": "https://api.github.com/users/SchmaltzVisuals/following{/other_user}",
"gists_url": "https://api.github.com/users/SchmaltzVisuals/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SchmaltzVisuals/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SchmaltzVisuals/subscriptions",
"organizations_url": "https://api.github.com/users/SchmaltzVisuals/orgs",
"repos_url": "https://api.github.com/users/SchmaltzVisuals/repos",
"events_url": "https://api.github.com/users/SchmaltzVisuals/events{/privacy}",
"received_events_url": "https://api.github.com/users/SchmaltzVisuals/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-12-05T20:17:45 | 2023-12-05T20:32:06 | 2023-12-05T20:32:05 | NONE | null | <!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14313/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14313/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14313",
"html_url": "https://github.com/langchain-ai/langchain/pull/14313",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14313.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14313.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14312 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14312/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14312/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14312/events | https://github.com/langchain-ai/langchain/pull/14312 | 2,027,026,712 | PR_kwDOIPDwls5hOR5i | 14,312 | core[patch], langchain[patch]: ByteStore | {
"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": 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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 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": 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"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T20:03:17 | 2023-12-06T18:05:45 | 2023-12-06T18:05:44 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14312/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 1,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14312/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14312",
"html_url": "https://github.com/langchain-ai/langchain/pull/14312",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14312.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14312.patch",
"merged_at": "2023-12-06T18:05:44"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14311 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14311/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14311/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14311/events | https://github.com/langchain-ai/langchain/pull/14311 | 2,027,017,166 | PR_kwDOIPDwls5hOPzM | 14,311 | Adding `BaseChatMessageHistory.__str__` | {
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-12-05T19:56:26 | 2023-12-05T21:31:07 | 2023-12-05T21:22:31 | CONTRIBUTOR | null | Increasing the usability of `BaseChatMessageHistory` by implementing:
- ~`add_system_message`: for parity with human and AI messages~
- `__str__` for easy debugging
~I also added `add_system_message` to the one subclasser that changes the adders~ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14311/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14311/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14311",
"html_url": "https://github.com/langchain-ai/langchain/pull/14311",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14311.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14311.patch",
"merged_at": "2023-12-05T21:22:31"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14310 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14310/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14310/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14310/events | https://github.com/langchain-ai/langchain/pull/14310 | 2,027,010,206 | PR_kwDOIPDwls5hOOMg | 14,310 | experimental[patch]: Release 0.0.44 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T19:53:06 | 2023-12-05T20:11:43 | 2023-12-05T20:11:42 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14310/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14310/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14310",
"html_url": "https://github.com/langchain-ai/langchain/pull/14310",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14310.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14310.patch",
"merged_at": "2023-12-05T20:11:42"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14309 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14309/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14309/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14309/events | https://github.com/langchain-ai/langchain/pull/14309 | 2,027,005,743 | PR_kwDOIPDwls5hONLI | 14,309 | Mask API key for Minimax LLM | {
"login": "rancomp",
"id": 23070692,
"node_id": "MDQ6VXNlcjIzMDcwNjky",
"avatar_url": "https://avatars.githubusercontent.com/u/23070692?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rancomp",
"html_url": "https://github.com/rancomp",
"followers_url": "https://api.github.com/users/rancomp/followers",
"following_url": "https://api.github.com/users/rancomp/following{/other_user}",
"gists_url": "https://api.github.com/users/rancomp/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rancomp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rancomp/subscriptions",
"organizations_url": "https://api.github.com/users/rancomp/orgs",
"repos_url": "https://api.github.com/users/rancomp/repos",
"events_url": "https://api.github.com/users/rancomp/events{/privacy}",
"received_events_url": "https://api.github.com/users/rancomp/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T19:51:06 | 2023-12-05T23:42:00 | 2023-12-05T23:42:00 | CONTRIBUTOR | null | - **Description:** Added masking for the API key for Minimax LLM + tests inspired by https://github.com/langchain-ai/langchain/pull/12418.
- **Issue:** the issue # fixes https://github.com/langchain-ai/langchain/issues/12165
- **Dependencies:** this fix is dependent on Minimax instantiation fix which is introduced in https://github.com/langchain-ai/langchain/pull/13439, so merge this one after.
- **Tag maintainer:** @eyurtsev
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14309/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14309/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14309",
"html_url": "https://github.com/langchain-ai/langchain/pull/14309",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14309.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14309.patch",
"merged_at": "2023-12-05T23:42:00"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14308 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14308/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14308/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14308/events | https://github.com/langchain-ai/langchain/pull/14308 | 2,026,953,245 | PR_kwDOIPDwls5hOBwk | 14,308 | Allow not enforcing function usage when a single function is passed to openai function executable | {
"login": "karimassi",
"id": 23644408,
"node_id": "MDQ6VXNlcjIzNjQ0NDA4",
"avatar_url": "https://avatars.githubusercontent.com/u/23644408?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/karimassi",
"html_url": "https://github.com/karimassi",
"followers_url": "https://api.github.com/users/karimassi/followers",
"following_url": "https://api.github.com/users/karimassi/following{/other_user}",
"gists_url": "https://api.github.com/users/karimassi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/karimassi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/karimassi/subscriptions",
"organizations_url": "https://api.github.com/users/karimassi/orgs",
"repos_url": "https://api.github.com/users/karimassi/repos",
"events_url": "https://api.github.com/users/karimassi/events{/privacy}",
"received_events_url": "https://api.github.com/users/karimassi/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T19:15:14 | 2023-12-06T07:46:22 | 2023-12-05T23:56:31 | CONTRIBUTOR | null |
- **Description:** allows not enforcing function usage when a single function is passed to an openAI function executable (or corresponding legacy chain). This is a desired feature in the case where the model does not have enough information to call a function, and needs to get back to the user.
- **Issue:** N/A
- **Dependencies:** N/A
- **Tag maintainer:** N/A
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14308/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14308/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14308",
"html_url": "https://github.com/langchain-ai/langchain/pull/14308",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14308.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14308.patch",
"merged_at": "2023-12-05T23:56:31"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14307 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14307/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14307/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14307/events | https://github.com/langchain-ai/langchain/pull/14307 | 2,026,952,648 | PR_kwDOIPDwls5hOBoW | 14,307 | langchain[patch]: Release 0.0.346 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T19:14:51 | 2023-12-05T19:38:53 | 2023-12-05T19:38:52 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14307/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14307/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14307",
"html_url": "https://github.com/langchain-ai/langchain/pull/14307",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14307.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14307.patch",
"merged_at": "2023-12-05T19:38:52"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14306 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14306/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14306/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14306/events | https://github.com/langchain-ai/langchain/pull/14306 | 2,026,871,364 | PR_kwDOIPDwls5hNva3 | 14,306 | ci matrix | {
"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": 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 | null | [] | null | 1 | 2023-12-05T18:30:52 | 2023-12-06T19:43:05 | 2023-12-06T19:43:04 | 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/14306/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14306/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14306",
"html_url": "https://github.com/langchain-ai/langchain/pull/14306",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14306.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14306.patch",
"merged_at": "2023-12-06T19:43:04"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14305 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14305/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14305/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14305/events | https://github.com/langchain-ai/langchain/pull/14305 | 2,026,846,552 | PR_kwDOIPDwls5hNp_B | 14,305 | Add support for CORS options for AzureSearch | {
"login": "jalagus",
"id": 2630698,
"node_id": "MDQ6VXNlcjI2MzA2OTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2630698?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jalagus",
"html_url": "https://github.com/jalagus",
"followers_url": "https://api.github.com/users/jalagus/followers",
"following_url": "https://api.github.com/users/jalagus/following{/other_user}",
"gists_url": "https://api.github.com/users/jalagus/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jalagus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jalagus/subscriptions",
"organizations_url": "https://api.github.com/users/jalagus/orgs",
"repos_url": "https://api.github.com/users/jalagus/repos",
"events_url": "https://api.github.com/users/jalagus/events{/privacy}",
"received_events_url": "https://api.github.com/users/jalagus/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T18:15:40 | 2023-12-06T09:24:02 | 2023-12-06T00:05:40 | CONTRIBUTOR | null | - **Description:** Add support for setting the CORS options when using AzureSearch indexes | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14305/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14305/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14305",
"html_url": "https://github.com/langchain-ai/langchain/pull/14305",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14305.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14305.patch",
"merged_at": "2023-12-06T00:05:40"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14304 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14304/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14304/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14304/events | https://github.com/langchain-ai/langchain/pull/14304 | 2,026,824,967 | PR_kwDOIPDwls5hNlTE | 14,304 | hide api key: arcee | {
"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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-12-05T18:01:29 | 2023-12-05T19:49:57 | 2023-12-05T19:49:56 | COLLABORATOR | null | Hide API key for Arcee | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14304/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14304/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14304",
"html_url": "https://github.com/langchain-ai/langchain/pull/14304",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14304.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14304.patch",
"merged_at": "2023-12-05T19:49:56"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14303 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14303/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14303/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14303/events | https://github.com/langchain-ai/langchain/pull/14303 | 2,026,799,700 | PR_kwDOIPDwls5hNfwd | 14,303 | core[patch]: Release 0.0.10 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T17:44:49 | 2023-12-05T18:20:59 | 2023-12-05T18:20:58 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14303/reactions",
"total_count": 4,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 1,
"confused": 0,
"heart": 1,
"rocket": 1,
"eyes": 1
} | https://api.github.com/repos/langchain-ai/langchain/issues/14303/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14303",
"html_url": "https://github.com/langchain-ai/langchain/pull/14303",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14303.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14303.patch",
"merged_at": "2023-12-05T18:20:58"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14302 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14302/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14302/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14302/events | https://github.com/langchain-ai/langchain/issues/14302 | 2,026,785,573 | I_kwDOIPDwls54zksl | 14,302 | Custom LLM from API for QA chain | {
"login": "nnngoc",
"id": 45694972,
"node_id": "MDQ6VXNlcjQ1Njk0OTcy",
"avatar_url": "https://avatars.githubusercontent.com/u/45694972?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nnngoc",
"html_url": "https://github.com/nnngoc",
"followers_url": "https://api.github.com/users/nnngoc/followers",
"following_url": "https://api.github.com/users/nnngoc/following{/other_user}",
"gists_url": "https://api.github.com/users/nnngoc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nnngoc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nnngoc/subscriptions",
"organizations_url": "https://api.github.com/users/nnngoc/orgs",
"repos_url": "https://api.github.com/users/nnngoc/repos",
"events_url": "https://api.github.com/users/nnngoc/events{/privacy}",
"received_events_url": "https://api.github.com/users/nnngoc/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 | 24 | 2023-12-05T17:36:18 | 2023-12-26T11:37:08 | 2023-12-11T02:25:20 | NONE | null | ### Issue you'd like to raise.
Hi,
Currently, I want to build RAG chatbot for production.
I already had my LLM API and I want to create a custom LLM and then use this in RetrievalQA.from_chain_type function.
```
curl --location 'https:/myhost:10001/llama/api' -k \
--header 'Content-Type: application/json' \
--data-raw '{
"inputs": "[INST] Question: Who is Albert Einstein? \n Answer: [/INST]",
"parameters": {"max_new_tokens":100},
"token": "abcdfejkwehr"
}
```
I don't know whether Langchain support this in my case.
I read about this topic on reddit: https://www.reddit.com/r/LangChain/comments/17v1rhv/integrating_llm_rest_api_into_a_langchain/
And in langchain document: https://python.langchain.com/docs/modules/model_io/llms/custom_llm
But this still does not work when I apply the custom LLM to qa_chain.
Below is my code, hope for the support from you, sorry for my language, english is not my mother tongue.
```
from pydantic import Extra
import requests
from typing import Any, List, Mapping, Optional
from langchain.callbacks.manager import CallbackManagerForLLMRun
from langchain.llms.base import LLM
class LlamaLLM(LLM):
llm_url = 'https:/myhost/llama/api'
class Config:
extra = Extra.forbid
@property
def _llm_type(self) -> str:
return "Llama2 7B"
def _call(
self,
prompt: str,
stop: Optional[List[str]] = None,
run_manager: Optional[CallbackManagerForLLMRun] = None,
**kwargs: Any,
) -> str:
if stop is not None:
raise ValueError("stop kwargs are not permitted.")
payload = {
"inputs": prompt,
"parameters": {"max_new_tokens": 100},
"token": "abcdfejkwehr"
}
headers = {"Content-Type": "application/json"}
response = requests.post(self.llm_url, json=payload, headers=headers, verify=False)
response.raise_for_status()
# print("API Response:", response.json())
return response.json()['generated_text'] # get the response from the API
@property
def _identifying_params(self) -> Mapping[str, Any]:
"""Get the identifying parameters."""
return {"llmUrl": self.llm_url}
```
```
llm = LlamaLLM()
```
```
#Testing
prompt = "[INST] Question: Who is Albert Einstein? \n Answer: [/INST]"
result = llm._call(prompt)
print(result)
Albert Einstein (1879-1955) was a German-born theoretical physicist who is widely regarded as one of the most influential scientists of the 20th century. He is best known for his theory of relativity, which revolutionized our understanding of space and time, and his famous equation E=mc².
```
```
# Build prompt
from langchain.prompts import PromptTemplate
template = """[INST] <<SYS>>
Answer the question base on the context below.
<</SYS>>
Context: {context}
Question: {question}
Answer:
[/INST]"""
QA_CHAIN_PROMPT = PromptTemplate(input_variables=["context", "question"],template=template,)
# Run chain
from langchain.chains import RetrievalQA
qa_chain = RetrievalQA.from_chain_type(llm,
verbose=True,
# retriever=vectordb.as_retriever(),
retriever=custom_retriever,
return_source_documents=True,
chain_type_kwargs={"prompt": QA_CHAIN_PROMPT})
```
```
question = "Is probability a class topic?"
result = qa_chain({"query": question})
result["result"]
Encountered some errors. Please recheck your request!
```
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14302/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14302/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14301 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14301/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14301/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14301/events | https://github.com/langchain-ai/langchain/pull/14301 | 2,026,664,814 | PR_kwDOIPDwls5hNBiI | 14,301 | read_file function implemented in tools | {
"login": "DrKroll",
"id": 71385874,
"node_id": "MDQ6VXNlcjcxMzg1ODc0",
"avatar_url": "https://avatars.githubusercontent.com/u/71385874?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DrKroll",
"html_url": "https://github.com/DrKroll",
"followers_url": "https://api.github.com/users/DrKroll/followers",
"following_url": "https://api.github.com/users/DrKroll/following{/other_user}",
"gists_url": "https://api.github.com/users/DrKroll/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DrKroll/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DrKroll/subscriptions",
"organizations_url": "https://api.github.com/users/DrKroll/orgs",
"repos_url": "https://api.github.com/users/DrKroll/repos",
"events_url": "https://api.github.com/users/DrKroll/events{/privacy}",
"received_events_url": "https://api.github.com/users/DrKroll/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": 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."
}
] | open | false | null | [] | null | 1 | 2023-12-05T16:48:03 | 2023-12-06T16:56:41 | null | NONE | null | <!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** Read File function implemented,
- **Issue:** not applicable
- **Dependencies:** no dependencies
- **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/14301/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14301/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14301",
"html_url": "https://github.com/langchain-ai/langchain/pull/14301",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14301.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14301.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14300 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14300/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14300/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14300/events | https://github.com/langchain-ai/langchain/pull/14300 | 2,026,560,704 | PR_kwDOIPDwls5hMqMc | 14,300 | Fix rag google cloud vertex ai template | {
"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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T16:07:52 | 2023-12-05T17:38:05 | 2023-12-05T17:38:04 | COLLABORATOR | null | Fix template by exposing chain correctly
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14300/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/14300/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14300",
"html_url": "https://github.com/langchain-ai/langchain/pull/14300",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14300.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14300.patch",
"merged_at": "2023-12-05T17:38:04"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14299 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14299/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14299/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14299/events | https://github.com/langchain-ai/langchain/pull/14299 | 2,026,459,370 | PR_kwDOIPDwls5hMT7K | 14,299 | Add custom async generator example | {
"login": "169",
"id": 10000925,
"node_id": "MDQ6VXNlcjEwMDAwOTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/169",
"html_url": "https://github.com/169",
"followers_url": "https://api.github.com/users/169/followers",
"following_url": "https://api.github.com/users/169/following{/other_user}",
"gists_url": "https://api.github.com/users/169/gists{/gist_id}",
"starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/169/subscriptions",
"organizations_url": "https://api.github.com/users/169/orgs",
"repos_url": "https://api.github.com/users/169/repos",
"events_url": "https://api.github.com/users/169/events{/privacy}",
"received_events_url": "https://api.github.com/users/169/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T15:19:43 | 2023-12-06T00:08:19 | 2023-12-06T00:08:19 | CONTRIBUTOR | null | <img width="1172" alt="Screenshot 2023-12-05 at 11 19 16 PM" src="https://github.com/langchain-ai/langchain/assets/10000925/6b0fbd70-9f6b-4f91-b494-9e88676b4786">
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14299/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14299/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14299",
"html_url": "https://github.com/langchain-ai/langchain/pull/14299",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14299.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14299.patch",
"merged_at": "2023-12-06T00:08:19"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14298 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14298/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14298/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14298/events | https://github.com/langchain-ai/langchain/issues/14298 | 2,026,436,998 | I_kwDOIPDwls54yPmG | 14,298 | Using AzureSearch with custom vector field names | {
"login": "levalencia",
"id": 6962857,
"node_id": "MDQ6VXNlcjY5NjI4NTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/6962857?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/levalencia",
"html_url": "https://github.com/levalencia",
"followers_url": "https://api.github.com/users/levalencia/followers",
"following_url": "https://api.github.com/users/levalencia/following{/other_user}",
"gists_url": "https://api.github.com/users/levalencia/gists{/gist_id}",
"starred_url": "https://api.github.com/users/levalencia/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/levalencia/subscriptions",
"organizations_url": "https://api.github.com/users/levalencia/orgs",
"repos_url": "https://api.github.com/users/levalencia/repos",
"events_url": "https://api.github.com/users/levalencia/events{/privacy}",
"received_events_url": "https://api.github.com/users/levalencia/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2023-12-05T15:09:36 | 2023-12-05T15:31:36 | null | CONTRIBUTOR | null | ### System Info
azure-search-documents==11.4.0b9
langchain 0.0.342
langchain-core 0.0.7
### Who can help?
@hwc
### 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
My local.settings.json has the custom field names for Azure Cognitive Search:
```
{
"IsEncrypted": false,
"Values": {
"FUNCTIONS_WORKER_RUNTIME": "python",
"AZURESEARCH_FIELDS_ID" :"chunk_id",
"AZURESEARCH_FIELDS_CONTENT" :"chunk",
"AZURESEARCH_FIELDS_CONTENT_VECTOR " :"vector",
"AZURESEARCH_FIELDS_TAG" :"metadata",
"FIELDS_ID" : "chunk_id",
"FIELDS_CONTENT" : "chunk",
"FIELDS_CONTENT_VECTOR" : "vector",
"FIELDS_METADATA" : "metadata",
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
}
}
```
I also tried to create a Fields array and pass it into the AzureSearch constructor like this:
```
os.environ["AZURE_OPENAI_API_KEY"] = "xx"
os.environ["AZURE_OPENAI_ENDPOINT"] = "https://xx.openai.azure.com/"
embeddings = AzureOpenAIEmbeddings(
azure_deployment="text-embedding-ada-002",
openai_api_version="2023-05-15",
)
fields = [
SimpleField(
name="chunk_id",
type=SearchFieldDataType.String,
key=True,
filterable=True,
),
SearchableField(
name="chunk",
type=SearchFieldDataType.String,
searchable=True,
),
SearchField(
name="vector",
type=SearchFieldDataType.Collection(SearchFieldDataType.Single),
searchable=True,
vector_search_dimensions=1536,
vector_search_configuration="default",
)
]
FIELDS_ID = get_from_env(
key="AZURESEARCH_FIELDS_ID", env_key="AZURESEARCH_FIELDS_ID", default="id"
)
FIELDS_CONTENT = get_from_env(
key="AZURESEARCH_FIELDS_CONTENT",
env_key="AZURESEARCH_FIELDS_CONTENT",
default="content",
)
FIELDS_CONTENT_VECTOR = get_from_env(
key="AZURESEARCH_FIELDS_CONTENT_VECTOR",
env_key="AZURESEARCH_FIELDS_CONTENT_VECTOR",
default="content_vector",
)
FIELDS_METADATA = get_from_env(
key="AZURESEARCH_FIELDS_TAG", env_key="AZURESEARCH_FIELDS_TAG", default="metadata"
)
vector_store_address: str = "https://xx.search.windows.net"
vector_store_password: str = "xx"
vector_store: AzureSearch = AzureSearch(
azure_search_endpoint=vector_store_address,
azure_search_key=vector_store_password,
index_name="vector-1701341754619",
fiekds=fields,
embedding_function=embeddings.embed_query
)
llm = AzureChatOpenAI(
azure_deployment="chat",
openai_api_version="2023-05-15",
)
chain = RetrievalQA.from_chain_type(llm=llm,
chain_type="stuff",
retriever=Element61Retriever(vectorstore=vector_store),
return_source_documents=True)
result = chain({"query": 'Whats out of scope?'})
return result
```
However I am always getting:
```
Executed 'Functions.TestCustomRetriever' (Failed, Id=2f243ed8-24bd-414b-af51-6cf1419633a5, Duration=6900ms)
[2023-12-05T15:08:53.252Z] System.Private.CoreLib: Exception while executing function: Functions.TestCustomRetriever. System.Private.CoreLib: Result: Failure
Exception: HttpResponseError: (InvalidRequestParameter) Unknown field 'content_vector' in vector field list.
Code: InvalidRequestParameter
Message: Unknown field 'content_vector' in vector field list.
Exception Details: (UnknownField) Unknown field 'content_vector' in vector field list.
Code: UnknownField
```
Please note this is being executed in an Azure Function locally
### Expected behavior
The custom field names should be taken into account | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14298/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14298/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14297 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14297/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14297/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14297/events | https://github.com/langchain-ai/langchain/pull/14297 | 2,026,431,254 | PR_kwDOIPDwls5hMNyW | 14,297 | Supporting LLM Models over REST endpoints | {
"login": "daichi-m",
"id": 7357338,
"node_id": "MDQ6VXNlcjczNTczMzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/7357338?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/daichi-m",
"html_url": "https://github.com/daichi-m",
"followers_url": "https://api.github.com/users/daichi-m/followers",
"following_url": "https://api.github.com/users/daichi-m/following{/other_user}",
"gists_url": "https://api.github.com/users/daichi-m/gists{/gist_id}",
"starred_url": "https://api.github.com/users/daichi-m/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/daichi-m/subscriptions",
"organizations_url": "https://api.github.com/users/daichi-m/orgs",
"repos_url": "https://api.github.com/users/daichi-m/repos",
"events_url": "https://api.github.com/users/daichi-m/events{/privacy}",
"received_events_url": "https://api.github.com/users/daichi-m/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | null | [] | null | 3 | 2023-12-05T15:07:00 | 2023-12-18T01:44:38 | null | NONE | null | **Description**
With multiple LLMs being developed by various organizations, and in-house LLMs developed for internal consumption, we at Walmart want to expose all these LLMs over simple REST endpoint. This enables each team to independently develop their LLMs and their API signatures - which can then be easily exposed to users via LangChain. This PR adds the support to serve LLMs over REST endpoints.
For the initial PR, this is a simple implementation of Sync HTTP REST call. Based on approval and interests, we would be enhancing this further with support for Async HTTP and Streaming HTTP as well in future PRs.
**Dependencies**
This is built on top of `requests`. If `httpx` is available on the PYTHONPATH, then httpx is preferred over requests.
**Twitter Handles**
@daichi_majumdar
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14297/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14297/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14297",
"html_url": "https://github.com/langchain-ai/langchain/pull/14297",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14297.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14297.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14296 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14296/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14296/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14296/events | https://github.com/langchain-ai/langchain/pull/14296 | 2,026,413,391 | PR_kwDOIPDwls5hMJ2_ | 14,296 | Fixes issue-14295: Correctly pass along the kwargs | {
"login": "timvw",
"id": 115225,
"node_id": "MDQ6VXNlcjExNTIyNQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/115225?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/timvw",
"html_url": "https://github.com/timvw",
"followers_url": "https://api.github.com/users/timvw/followers",
"following_url": "https://api.github.com/users/timvw/following{/other_user}",
"gists_url": "https://api.github.com/users/timvw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/timvw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/timvw/subscriptions",
"organizations_url": "https://api.github.com/users/timvw/orgs",
"repos_url": "https://api.github.com/users/timvw/repos",
"events_url": "https://api.github.com/users/timvw/events{/privacy}",
"received_events_url": "https://api.github.com/users/timvw/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T14:59:10 | 2023-12-06T01:14:01 | 2023-12-06T01:14:00 | CONTRIBUTOR | null |
- **Description:** Update code to correctly pass the kwargs
- **Issue:** #14295
- **Dependencies:** -
- **Tag maintainer:**
<--
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
#issue-14295
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14296/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14296/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14296",
"html_url": "https://github.com/langchain-ai/langchain/pull/14296",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14296.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14296.patch",
"merged_at": "2023-12-06T01:14:00"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14295 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14295/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14295/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14295/events | https://github.com/langchain-ai/langchain/issues/14295 | 2,026,387,711 | I_kwDOIPDwls54yDj_ | 14,295 | OpenSearchVectorSearch add_texts does wraps kwargs | {
"login": "timvw",
"id": 115225,
"node_id": "MDQ6VXNlcjExNTIyNQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/115225?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/timvw",
"html_url": "https://github.com/timvw",
"followers_url": "https://api.github.com/users/timvw/followers",
"following_url": "https://api.github.com/users/timvw/following{/other_user}",
"gists_url": "https://api.github.com/users/timvw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/timvw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/timvw/subscriptions",
"organizations_url": "https://api.github.com/users/timvw/orgs",
"repos_url": "https://api.github.com/users/timvw/repos",
"events_url": "https://api.github.com/users/timvw/events{/privacy}",
"received_events_url": "https://api.github.com/users/timvw/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | closed | false | null | [] | null | 1 | 2023-12-05T14:48:10 | 2023-12-08T06:58:43 | 2023-12-08T06:58:43 | CONTRIBUTOR | null | ### System Info
langchain==0.0.344
langchain-core==0.0.8
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [x] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
The code incorrectly calls __add with kwargs=kwargs
```python
return self.__add(
texts,
embeddings,
metadatas=metadatas,
ids=ids,
bulk_size=bulk_size,
kwargs=kwargs,
)
```
This results that the _add method has a kwargs dict which contains a key 'kwargs' and all provided parameters (eg: engine="faiss") are not picked up...
### Expected behavior
The code does not mistakingly wraps the kwargs, it does it correctly in the add_embeddings:
```python
return self.__add(
list(texts),
list(embeddings),
metadatas=metadatas,
ids=ids,
bulk_size=bulk_size,
**kwargs,
)
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14295/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14295/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14294 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14294/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14294/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14294/events | https://github.com/langchain-ai/langchain/pull/14294 | 2,026,367,067 | PR_kwDOIPDwls5hL_pg | 14,294 | Update docs | {
"login": "169",
"id": 10000925,
"node_id": "MDQ6VXNlcjEwMDAwOTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/169",
"html_url": "https://github.com/169",
"followers_url": "https://api.github.com/users/169/followers",
"following_url": "https://api.github.com/users/169/following{/other_user}",
"gists_url": "https://api.github.com/users/169/gists{/gist_id}",
"starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/169/subscriptions",
"organizations_url": "https://api.github.com/users/169/orgs",
"repos_url": "https://api.github.com/users/169/repos",
"events_url": "https://api.github.com/users/169/events{/privacy}",
"received_events_url": "https://api.github.com/users/169/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T14:38:26 | 2023-12-06T00:08:03 | 2023-12-06T00:08:03 | CONTRIBUTOR | null | ### Description
Fixed 3 doc issues:
1. `ConfigurableField ` needs to be imported in `docs/docs/expression_language/how_to/configure.ipynb`
2. use `error` instead of `RateLimitError()` in `docs/docs/expression_language/how_to/fallbacks.ipynb`
3. I think it might be better to output the fixed json data(when I looked at this example, I didn't understand its purpose at first, but then I suddenly realized):
<img width="1219" alt="Screenshot 2023-12-05 at 10 34 13 PM" src="https://github.com/langchain-ai/langchain/assets/10000925/7623ba13-7b56-4964-8c98-b7430fabc6de">
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14294/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14294/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14294",
"html_url": "https://github.com/langchain-ai/langchain/pull/14294",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14294.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14294.patch",
"merged_at": "2023-12-06T00:08:03"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14293 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14293/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14293/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14293/events | https://github.com/langchain-ai/langchain/pull/14293 | 2,026,134,097 | PR_kwDOIPDwls5hLL4M | 14,293 | Mask API key for ChatOpenAI based chat_models | {
"login": "onesolpark",
"id": 32834020,
"node_id": "MDQ6VXNlcjMyODM0MDIw",
"avatar_url": "https://avatars.githubusercontent.com/u/32834020?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/onesolpark",
"html_url": "https://github.com/onesolpark",
"followers_url": "https://api.github.com/users/onesolpark/followers",
"following_url": "https://api.github.com/users/onesolpark/following{/other_user}",
"gists_url": "https://api.github.com/users/onesolpark/gists{/gist_id}",
"starred_url": "https://api.github.com/users/onesolpark/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/onesolpark/subscriptions",
"organizations_url": "https://api.github.com/users/onesolpark/orgs",
"repos_url": "https://api.github.com/users/onesolpark/repos",
"events_url": "https://api.github.com/users/onesolpark/events{/privacy}",
"received_events_url": "https://api.github.com/users/onesolpark/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | null | [] | null | 1 | 2023-12-05T12:56:11 | 2023-12-06T01:26:40 | null | NONE | null | - **Description**: Mask API key for ChatOpenAi based chat_models (openai, azureopenai, anyscale, everlyai).
Made changes to all chat_models that are based on ChatOpenAI since all of them assumes that openai_api_key is str rather than SecretStr.
- **Issue:**: #12165
- **Dependencies:** N/A
- **Tag maintainer:** @eyurtsev
- **Twitter handle:** N/A
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14293/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14293/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14293",
"html_url": "https://github.com/langchain-ai/langchain/pull/14293",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14293.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14293.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14292 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14292/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14292/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14292/events | https://github.com/langchain-ai/langchain/issues/14292 | 2,026,106,178 | I_kwDOIPDwls54w-1C | 14,292 | DOC: Cookbook entry for RAG contains older syntax | {
"login": "StefanieSenger",
"id": 91849487,
"node_id": "U_kgDOBXmDDw",
"avatar_url": "https://avatars.githubusercontent.com/u/91849487?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/StefanieSenger",
"html_url": "https://github.com/StefanieSenger",
"followers_url": "https://api.github.com/users/StefanieSenger/followers",
"following_url": "https://api.github.com/users/StefanieSenger/following{/other_user}",
"gists_url": "https://api.github.com/users/StefanieSenger/gists{/gist_id}",
"starred_url": "https://api.github.com/users/StefanieSenger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StefanieSenger/subscriptions",
"organizations_url": "https://api.github.com/users/StefanieSenger/orgs",
"repos_url": "https://api.github.com/users/StefanieSenger/repos",
"events_url": "https://api.github.com/users/StefanieSenger/events{/privacy}",
"received_events_url": "https://api.github.com/users/StefanieSenger/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-12-05T12:40:54 | 2023-12-05T12:46:12 | null | NONE | null | ### Issue with current documentation:
Hey there,
the `_format_chat_history` function [in the RAG cookbook entry](https://python.langchain.com/docs/expression_language/cookbook/retrieval) contains some older syntax. As far as I understand, the cookbook is supposed to provide examples for the newest Langchain version, though.
```
for dialogue_turn in chat_history:
human = "Human: " + dialogue_turn[0]
ai = "Assistant: " + dialogue_turn[1]
```
should be:
```
for dialogue_turn in chat_history:
human = "Human: " + dialogue_turn[0].content
ai = "Assistant: " + dialogue_turn[1].content
```
Thank you. :)
### Idea or request for content:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14292/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14292/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14290 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14290/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14290/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14290/events | https://github.com/langchain-ai/langchain/pull/14290 | 2,026,054,535 | PR_kwDOIPDwls5hK6hZ | 14,290 | fix error issue 12250 | {
"login": "daniellefranca96",
"id": 134293046,
"node_id": "U_kgDOCAEmNg",
"avatar_url": "https://avatars.githubusercontent.com/u/134293046?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/daniellefranca96",
"html_url": "https://github.com/daniellefranca96",
"followers_url": "https://api.github.com/users/daniellefranca96/followers",
"following_url": "https://api.github.com/users/daniellefranca96/following{/other_user}",
"gists_url": "https://api.github.com/users/daniellefranca96/gists{/gist_id}",
"starred_url": "https://api.github.com/users/daniellefranca96/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/daniellefranca96/subscriptions",
"organizations_url": "https://api.github.com/users/daniellefranca96/orgs",
"repos_url": "https://api.github.com/users/daniellefranca96/repos",
"events_url": "https://api.github.com/users/daniellefranca96/events{/privacy}",
"received_events_url": "https://api.github.com/users/daniellefranca96/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-05T12:12:47 | 2023-12-15T13:26:14 | 2023-12-15T13:26:14 | NONE | null | Description: Correction of bug that make the predict method failed on VertexAI LLM.
Issue: #12250
Dependencies: none.
Tag maintainer: @hwchase17 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14290/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14290/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14290",
"html_url": "https://github.com/langchain-ai/langchain/pull/14290",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14290.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14290.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14289 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14289/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14289/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14289/events | https://github.com/langchain-ai/langchain/pull/14289 | 2,025,933,206 | PR_kwDOIPDwls5hKff- | 14,289 | Update gitlab.py to support On Prims GitLab URL's | {
"login": "manjunathshiva",
"id": 35326118,
"node_id": "MDQ6VXNlcjM1MzI2MTE4",
"avatar_url": "https://avatars.githubusercontent.com/u/35326118?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/manjunathshiva",
"html_url": "https://github.com/manjunathshiva",
"followers_url": "https://api.github.com/users/manjunathshiva/followers",
"following_url": "https://api.github.com/users/manjunathshiva/following{/other_user}",
"gists_url": "https://api.github.com/users/manjunathshiva/gists{/gist_id}",
"starred_url": "https://api.github.com/users/manjunathshiva/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/manjunathshiva/subscriptions",
"organizations_url": "https://api.github.com/users/manjunathshiva/orgs",
"repos_url": "https://api.github.com/users/manjunathshiva/repos",
"events_url": "https://api.github.com/users/manjunathshiva/events{/privacy}",
"received_events_url": "https://api.github.com/users/manjunathshiva/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": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 5 | 2023-12-05T11:09:32 | 2023-12-08T02:34:20 | 2023-12-06T03:42:08 | CONTRIBUTOR | null | Gitlab defaults to public URL : https://gitlab.com which is preventing to use self hosted Gilab instances. Add a Support to pass self hosted URL by setting GITLAB_URL env variable.
<!-- 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/14289/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14289/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14289",
"html_url": "https://github.com/langchain-ai/langchain/pull/14289",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14289.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14289.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14288 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14288/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14288/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14288/events | https://github.com/langchain-ai/langchain/pull/14288 | 2,025,887,380 | PR_kwDOIPDwls5hKVi4 | 14,288 | feat(embeddings): text-embeddings-inference | {
"login": "mspronesti",
"id": 44113430,
"node_id": "MDQ6VXNlcjQ0MTEzNDMw",
"avatar_url": "https://avatars.githubusercontent.com/u/44113430?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mspronesti",
"html_url": "https://github.com/mspronesti",
"followers_url": "https://api.github.com/users/mspronesti/followers",
"following_url": "https://api.github.com/users/mspronesti/following{/other_user}",
"gists_url": "https://api.github.com/users/mspronesti/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mspronesti/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mspronesti/subscriptions",
"organizations_url": "https://api.github.com/users/mspronesti/orgs",
"repos_url": "https://api.github.com/users/mspronesti/repos",
"events_url": "https://api.github.com/users/mspronesti/events{/privacy}",
"received_events_url": "https://api.github.com/users/mspronesti/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 4 | 2023-12-05T10:44:23 | 2023-12-13T09:32:42 | 2023-12-06T01:22:05 | CONTRIBUTOR | null | - **Description:** Added a notebook to illustrate how to use `text-embeddings-inference` from huggingface. As `HuggingFaceHubEmbeddings` was using a deprecated client, I made the most of this PR updating that too.
- **Issue:** #13286
- **Dependencies**: None
- **Tag maintainer:** @baskaryan | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14288/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14288/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14288",
"html_url": "https://github.com/langchain-ai/langchain/pull/14288",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14288.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14288.patch",
"merged_at": "2023-12-06T01:22:05"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14287 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14287/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14287/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14287/events | https://github.com/langchain-ai/langchain/issues/14287 | 2,025,877,332 | I_kwDOIPDwls54wG9U | 14,287 | DOC: Why use LCEL ModuleNotFoundError: No module named 'langchain_core' | {
"login": "Nghiauet",
"id": 63385521,
"node_id": "MDQ6VXNlcjYzMzg1NTIx",
"avatar_url": "https://avatars.githubusercontent.com/u/63385521?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Nghiauet",
"html_url": "https://github.com/Nghiauet",
"followers_url": "https://api.github.com/users/Nghiauet/followers",
"following_url": "https://api.github.com/users/Nghiauet/following{/other_user}",
"gists_url": "https://api.github.com/users/Nghiauet/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Nghiauet/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Nghiauet/subscriptions",
"organizations_url": "https://api.github.com/users/Nghiauet/orgs",
"repos_url": "https://api.github.com/users/Nghiauet/repos",
"events_url": "https://api.github.com/users/Nghiauet/events{/privacy}",
"received_events_url": "https://api.github.com/users/Nghiauet/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] | open | false | null | [] | null | 7 | 2023-12-05T10:38:45 | 2023-12-23T14:11:07 | null | NONE | null | ### Issue with current documentation:
In this Announcements (https://github.com/langchain-ai/langchain/discussions/categories/announcements) [LangChain Core #13823
](https://github.com/langchain-ai/langchain/discussions/13823) hwchase17 say he
> TL;DR: we are splitting our core functionality to langchain-core to make LangChain more stable and reliable. This should be invisible to the eye and will happen in the background for the next two weeks, and we’d recommend not using langchain-core until then, but we’re flagging for transparency.
RunnablePassthrough moved from `langchain_core.runnables ` to from `langchain.schema.runnable`
And the same
langchain version : 0.0.336
### Idea or request for content:
**change**
```
from langchain_core.runnables import RunnablePassthrough
from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import RunnablePassthrough
from langchain_core.runnables import ConfigurableField
```
**To**
```
from langchain.schema.runnable import RunnablePassthrough
from langchain.schema import StrOutputParser
from langchain.prompts import ChatPromptTemplate
from langchain.schema.runnable import RunnablePassthrough
from langchain.schema.runnable.utils import ConfigurableField
```
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14287/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/14287/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14286 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14286/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14286/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14286/events | https://github.com/langchain-ai/langchain/issues/14286 | 2,025,828,110 | I_kwDOIPDwls54v68O | 14,286 | xml.py Value Error --> insufficient error information | {
"login": "adam-borowa-techsee",
"id": 151518175,
"node_id": "U_kgDOCQf73w",
"avatar_url": "https://avatars.githubusercontent.com/u/151518175?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/adam-borowa-techsee",
"html_url": "https://github.com/adam-borowa-techsee",
"followers_url": "https://api.github.com/users/adam-borowa-techsee/followers",
"following_url": "https://api.github.com/users/adam-borowa-techsee/following{/other_user}",
"gists_url": "https://api.github.com/users/adam-borowa-techsee/gists{/gist_id}",
"starred_url": "https://api.github.com/users/adam-borowa-techsee/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adam-borowa-techsee/subscriptions",
"organizations_url": "https://api.github.com/users/adam-borowa-techsee/orgs",
"repos_url": "https://api.github.com/users/adam-borowa-techsee/repos",
"events_url": "https://api.github.com/users/adam-borowa-techsee/events{/privacy}",
"received_events_url": "https://api.github.com/users/adam-borowa-techsee/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-12-05T10:12:15 | 2023-12-05T10:14:33 | null | NONE | null | ### System Info
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[27], line 5
1 #### All together!
2 # Put it all together now
3 full_chain = {"topic": chain, "question": lambda x: x["question"]} | branch
----> 5 full_chain.invoke({"question":"what is the best city?"})
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain_core/runnables/base.py:1427, in RunnableSequence.invoke(self, input, config)
1425 try:
1426 for i, step in enumerate(self.steps):
-> 1427 input = step.invoke(
1428 input,
1429 # mark each step as a child run
1430 patch_config(
1431 config, callbacks=run_manager.get_child(f"seq:step:{i+1}")
1432 ),
1433 )
1434 # finish the root run
1435 except BaseException as e:
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain_core/runnables/branch.py:186, in RunnableBranch.invoke(self, input, config, **kwargs)
177 expression_value = condition.invoke(
178 input,
179 config=patch_config(
(...)
182 ),
183 )
185 if expression_value:
--> 186 output = runnable.invoke(
187 input,
188 config=patch_config(
189 config,
190 callbacks=run_manager.get_child(tag=f"branch:{idx + 1}"),
191 ),
192 **kwargs,
193 )
194 break
195 else:
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain/chains/base.py:89, in Chain.invoke(self, input, config, **kwargs)
82 def invoke(
83 self,
84 input: Dict[str, Any],
85 config: Optional[RunnableConfig] = None,
86 **kwargs: Any,
87 ) -> Dict[str, Any]:
88 config = config or {}
---> 89 return self(
90 input,
91 callbacks=config.get("callbacks"),
92 tags=config.get("tags"),
93 metadata=config.get("metadata"),
94 run_name=config.get("run_name"),
95 **kwargs,
96 )
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain/chains/base.py:312, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
310 except BaseException as e:
311 run_manager.on_chain_error(e)
--> 312 raise e
313 run_manager.on_chain_end(outputs)
314 final_outputs: Dict[str, Any] = self.prep_outputs(
315 inputs, outputs, return_only_outputs
316 )
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain/chains/base.py:306, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
299 run_manager = callback_manager.on_chain_start(
300 dumpd(self),
301 inputs,
302 name=run_name,
303 )
304 try:
305 outputs = (
--> 306 self._call(inputs, run_manager=run_manager)
307 if new_arg_supported
308 else self._call(inputs)
309 )
310 except BaseException as e:
311 run_manager.on_chain_error(e)
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain/agents/agent.py:1251, in AgentExecutor._call(self, inputs, run_manager)
1249 # We now enter the agent loop (until it returns something).
1250 while self._should_continue(iterations, time_elapsed):
-> 1251 next_step_output = self._take_next_step(
1252 name_to_tool_map,
1253 color_mapping,
1254 inputs,
1255 intermediate_steps,
1256 run_manager=run_manager,
1257 )
1258 if isinstance(next_step_output, AgentFinish):
1259 return self._return(
1260 next_step_output, intermediate_steps, run_manager=run_manager
1261 )
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain/agents/agent.py:1038, in AgentExecutor._take_next_step(self, name_to_tool_map, color_mapping, inputs, intermediate_steps, run_manager)
1035 intermediate_steps = self._prepare_intermediate_steps(intermediate_steps)
1037 # Call the LLM to see what to do.
-> 1038 output = self.agent.plan(
1039 intermediate_steps,
1040 callbacks=run_manager.get_child() if run_manager else None,
1041 **inputs,
1042 )
1043 except OutputParserException as e:
1044 if isinstance(self.handle_parsing_errors, bool):
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain/agents/agent.py:391, in RunnableAgent.plan(self, intermediate_steps, callbacks, **kwargs)
379 """Given input, decided what to do.
380
381 Args:
(...)
388 Action specifying what tool to use.
389 """
390 inputs = {**kwargs, **{"intermediate_steps": intermediate_steps}}
--> 391 output = self.runnable.invoke(inputs, config={"callbacks": callbacks})
392 return output
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain_core/runnables/base.py:1427, in RunnableSequence.invoke(self, input, config)
1425 try:
1426 for i, step in enumerate(self.steps):
-> 1427 input = step.invoke(
1428 input,
1429 # mark each step as a child run
1430 patch_config(
1431 config, callbacks=run_manager.get_child(f"seq:step:{i+1}")
1432 ),
1433 )
1434 # finish the root run
1435 except BaseException as e:
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain_core/output_parsers/base.py:170, in BaseOutputParser.invoke(self, input, config)
166 def invoke(
167 self, input: Union[str, BaseMessage], config: Optional[RunnableConfig] = None
168 ) -> T:
169 if isinstance(input, BaseMessage):
--> 170 return self._call_with_config(
171 lambda inner_input: self.parse_result(
172 [ChatGeneration(message=inner_input)]
173 ),
174 input,
175 config,
176 run_type="parser",
177 )
178 else:
179 return self._call_with_config(
180 lambda inner_input: self.parse_result([Generation(text=inner_input)]),
181 input,
182 config,
183 run_type="parser",
184 )
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain_core/runnables/base.py:848, in Runnable._call_with_config(self, func, input, config, run_type, **kwargs)
841 run_manager = callback_manager.on_chain_start(
842 dumpd(self),
843 input,
844 run_type=run_type,
845 name=config.get("run_name"),
846 )
847 try:
--> 848 output = call_func_with_variable_args(
849 func, input, config, run_manager, **kwargs
850 )
851 except BaseException as e:
852 run_manager.on_chain_error(e)
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain_core/runnables/config.py:308, in call_func_with_variable_args(func, input, config, run_manager, **kwargs)
306 if run_manager is not None and accepts_run_manager(func):
307 kwargs["run_manager"] = run_manager
--> 308 return func(input, **kwargs)
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain_core/output_parsers/base.py:171, in BaseOutputParser.invoke.<locals>.<lambda>(inner_input)
166 def invoke(
167 self, input: Union[str, BaseMessage], config: Optional[RunnableConfig] = None
168 ) -> T:
169 if isinstance(input, BaseMessage):
170 return self._call_with_config(
--> 171 lambda inner_input: self.parse_result(
172 [ChatGeneration(message=inner_input)]
173 ),
174 input,
175 config,
176 run_type="parser",
177 )
178 else:
179 return self._call_with_config(
180 lambda inner_input: self.parse_result([Generation(text=inner_input)]),
181 input,
182 config,
183 run_type="parser",
184 )
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain_core/output_parsers/base.py:222, in BaseOutputParser.parse_result(self, result, partial)
209 def parse_result(self, result: List[Generation], *, partial: bool = False) -> T:
210 """Parse a list of candidate model Generations into a specific format.
211
212 The return value is parsed from only the first Generation in the result, which
(...)
220 Structured output.
221 """
--> 222 return self.parse(result[0].text)
File ~/miniconda3/envs/langchain_multiagent_env/lib/python3.8/site-packages/langchain/agents/output_parsers/xml.py:45, in XMLAgentOutputParser.parse(self, text)
43 return AgentFinish(return_values={"output": answer}, log=text)
44 else:
---> 45 raise ValueError(f"Could not parse output: {text}")
ValueError:
### 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
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from langchain.prompts import PromptTemplate
from langchain.schema.output_parser import StrOutputParser
from langchain.chat_models import AzureChatOpenAI
import openai
openai.api_key = "........................................."
llm = AzureChatOpenAI(
azure_endpoint=".......................................",
openai_api_version="....................................",
deployment_name=..............................................'',
openai_api_key=openai.api_key,
openai_api_type="azure",
temperature=0
)
from langchain.chains import LLMChain
from langchain.memory import ConversationBufferMemory
from langchain.callbacks.stdout import StdOutCallbackHandler
memory = ConversationBufferMemory(return_messages=True)
chain = LLMChain(prompt = PromptTemplate.from_template(template="""
Given the user question below, classify it as either being about 'city', `weather` or `other`.
Do not respond with more than one word.
<question>```
{question}
</question>
Classification:""",
output_parser = StrOutputParser(),
),
llm = llm,
memory = memory,
callbacks=[StdOutCallbackHandler()]
)
from langchain.agents import XMLAgent, tool, AgentExecutor
from langchain.chat_models import ChatAnthropic
model = llm
@tool
def search(query: str) -> str:
"""Search things about current wheather."""
return "32 degrees" # 32 degrees Dzień Dobry przyjacielu!
tool_list = [search
@tool
def find_city(query: str) -> str:
"""Search the answer"""
return "Gdynia" # 32 degrees
city_tool_list = [find_city]
prompt = XMLAgent.get_default_prompt()
def convert_intermediate_steps(intermediate_steps):
log = ""
for action, observation in intermediate_steps:
print('\n')
print(action)
print(observation)
log += (
f"<tool>{action.tool}</tool><tool_input>{action.tool_input}"
f"</tool_input><observation>{observation}</observation>"
)
return log
def convert_tools(tools):
return "\n".join([f"{tool.name}: {tool.description}" for tool in tools])
agent = (
{
"question": lambda x: x["question"],
"intermediate_steps": lambda x: convert_intermediate_steps(x["intermediate_steps"])
}
| prompt.partial(tools=convert_tools(tool_list))
| model.bind(stop=["</tool_input>", "</final_answer>"])
| XMLAgent.get_default_output_parser()
)
agent_executor = AgentExecutor(agent=agent, tools=tool_list, verbose=True)
city_prompt = XMLAgent.get_default_prompt()
new_template = """Use the tools to find the answer.
You have access to the following tools:
{tools}
In order to use a tool, you can use <tool></tool> and <tool_input></tool_input> tags. You will then get back a response in the form <observation></observation>
For example, if you have a tool called 'find_city' that could run and search best city:
<tool>find_city</tool><tool_input>what city?</tool_input>
<observation>Gdynia</observation>
When you are done, respond with a final answer between <final_answer></final_answer>. For example:
<final_answer>The city is Gdynia</final_answer>
Begin!
Question: {question}"""
city_prompt.messages[0].prompt.template = new_template
city_agent = (
{
"question": lambda x: x["question"],
"intermediate_steps": lambda x: convert_intermediate_steps(x["intermediate_steps"])
}
| city_prompt.partial(tools=convert_tools(city_tool_list))
| model.bind(stop=["</tool_input>", "</final_answer>"]) # .bind(memory=memory)
| XMLAgent.get_default_output_parser()
)
city_agent_executor = AgentExecutor(agent=city_agent, tools=city_tool_list, verbose=True)
general_chain = PromptTemplate.from_template("""Respond to the following question:
Question: {question}
Answer:""") | llm
from langchain.schema.runnable import RunnableBranch
branch = RunnableBranch(
(lambda x: "weather" in x["topic"]['text'].lower(), agent_executor),
(lambda x: "city" in x["topic"]['text'].lower(), city_agent_executor),
general_chain
)
full_chain = {"topic": chain, "question": lambda x: x["question"]} | branch
full_chain.invoke({"question":"what is the best city?"})
```
```
### Expected behavior
In xml.py
langchain==0.0.341
line 45.
Is now:
`raise ValueError`
It would be better to have:
`raise ValueError(f"Could not pa](url)rse output: {text}")` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14286/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14286/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14284 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14284/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14284/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14284/events | https://github.com/langchain-ai/langchain/issues/14284 | 2,025,725,528 | I_kwDOIPDwls54vh5Y | 14,284 | extract vector id and delete one | {
"login": "x1337x1",
"id": 88579697,
"node_id": "MDQ6VXNlcjg4NTc5Njk3",
"avatar_url": "https://avatars.githubusercontent.com/u/88579697?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/x1337x1",
"html_url": "https://github.com/x1337x1",
"followers_url": "https://api.github.com/users/x1337x1/followers",
"following_url": "https://api.github.com/users/x1337x1/following{/other_user}",
"gists_url": "https://api.github.com/users/x1337x1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/x1337x1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/x1337x1/subscriptions",
"organizations_url": "https://api.github.com/users/x1337x1/orgs",
"repos_url": "https://api.github.com/users/x1337x1/repos",
"events_url": "https://api.github.com/users/x1337x1/events{/privacy}",
"received_events_url": "https://api.github.com/users/x1337x1/received_events",
"type": "User",
"site_admin": false
} | [] | open | false | null | [] | null | 2 | 2023-12-05T09:18:12 | 2023-12-05T12:20:32 | null | NONE | null | ### Issue you'd like to raise.
so i have this function that saves data into the vector database , what i want is , to extract that vector id so i can delete it later if i want to.
is there a way to accomplish this ?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14284/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14284/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14283 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14283/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14283/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14283/events | https://github.com/langchain-ai/langchain/pull/14283 | 2,025,651,777 | PR_kwDOIPDwls5hJhm9 | 14,283 | introduce convert_to_secret() to bananadev llm | {
"login": "tholapz",
"id": 1384845,
"node_id": "MDQ6VXNlcjEzODQ4NDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1384845?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tholapz",
"html_url": "https://github.com/tholapz",
"followers_url": "https://api.github.com/users/tholapz/followers",
"following_url": "https://api.github.com/users/tholapz/following{/other_user}",
"gists_url": "https://api.github.com/users/tholapz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tholapz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tholapz/subscriptions",
"organizations_url": "https://api.github.com/users/tholapz/orgs",
"repos_url": "https://api.github.com/users/tholapz/repos",
"events_url": "https://api.github.com/users/tholapz/events{/privacy}",
"received_events_url": "https://api.github.com/users/tholapz/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | open | false | null | [] | null | 2 | 2023-12-05T08:54:34 | 2024-01-12T04:44:27 | null | NONE | null | - **Description:** Per #12165, this PR add to BananaLLM the function convert_to_secret_str() during environment variable validation.
- **Issue:** #12165
- **Tag maintainer:** @eyurtsev
- **Twitter handle:** @treewatcha75751
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14283/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14283/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14283",
"html_url": "https://github.com/langchain-ai/langchain/pull/14283",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14283.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14283.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14282 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14282/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14282/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14282/events | https://github.com/langchain-ai/langchain/pull/14282 | 2,025,623,607 | PR_kwDOIPDwls5hJbRg | 14,282 | added get_num_tokens to GooglePalm | {
"login": "lkuligin",
"id": 11026406,
"node_id": "MDQ6VXNlcjExMDI2NDA2",
"avatar_url": "https://avatars.githubusercontent.com/u/11026406?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lkuligin",
"html_url": "https://github.com/lkuligin",
"followers_url": "https://api.github.com/users/lkuligin/followers",
"following_url": "https://api.github.com/users/lkuligin/following{/other_user}",
"gists_url": "https://api.github.com/users/lkuligin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lkuligin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lkuligin/subscriptions",
"organizations_url": "https://api.github.com/users/lkuligin/orgs",
"repos_url": "https://api.github.com/users/lkuligin/repos",
"events_url": "https://api.github.com/users/lkuligin/events{/privacy}",
"received_events_url": "https://api.github.com/users/lkuligin/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T08:42:16 | 2023-12-06T01:24:20 | 2023-12-06T01:24:20 | CONTRIBUTOR | null | added get_num_tokens to GooglePalm + a little bit of refactoring | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14282/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14282/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14282",
"html_url": "https://github.com/langchain-ai/langchain/pull/14282",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14282.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14282.patch",
"merged_at": "2023-12-06T01:24:20"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14281 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14281/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14281/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14281/events | https://github.com/langchain-ai/langchain/pull/14281 | 2,025,611,757 | PR_kwDOIPDwls5hJYpp | 14,281 | Mask API key for baidu qianfan | {
"login": "newfinder",
"id": 5830392,
"node_id": "MDQ6VXNlcjU4MzAzOTI=",
"avatar_url": "https://avatars.githubusercontent.com/u/5830392?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/newfinder",
"html_url": "https://github.com/newfinder",
"followers_url": "https://api.github.com/users/newfinder/followers",
"following_url": "https://api.github.com/users/newfinder/following{/other_user}",
"gists_url": "https://api.github.com/users/newfinder/gists{/gist_id}",
"starred_url": "https://api.github.com/users/newfinder/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/newfinder/subscriptions",
"organizations_url": "https://api.github.com/users/newfinder/orgs",
"repos_url": "https://api.github.com/users/newfinder/repos",
"events_url": "https://api.github.com/users/newfinder/events{/privacy}",
"received_events_url": "https://api.github.com/users/newfinder/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T08:37:14 | 2023-12-06T16:47:10 | 2023-12-06T16:47:10 | CONTRIBUTOR | null | Description: This PR masked baidu qianfan - Chat_Models API Key and added unit tests.
Issue: the issue langchain-ai#12165.
Tag maintainer: @eyurtsev | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14281/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14281/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14281",
"html_url": "https://github.com/langchain-ai/langchain/pull/14281",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14281.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14281.patch",
"merged_at": "2023-12-06T16:47:10"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14280 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14280/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14280/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14280/events | https://github.com/langchain-ai/langchain/issues/14280 | 2,025,593,782 | I_kwDOIPDwls54vBu2 | 14,280 | LCEL Streaming doesn't seem to work properly when using an AzureChatOpenAI model, and the JsonOutputFunctionsParser parser | {
"login": "mlamothe-zz",
"id": 531382,
"node_id": "MDQ6VXNlcjUzMTM4Mg==",
"avatar_url": "https://avatars.githubusercontent.com/u/531382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mlamothe-zz",
"html_url": "https://github.com/mlamothe-zz",
"followers_url": "https://api.github.com/users/mlamothe-zz/followers",
"following_url": "https://api.github.com/users/mlamothe-zz/following{/other_user}",
"gists_url": "https://api.github.com/users/mlamothe-zz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mlamothe-zz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mlamothe-zz/subscriptions",
"organizations_url": "https://api.github.com/users/mlamothe-zz/orgs",
"repos_url": "https://api.github.com/users/mlamothe-zz/repos",
"events_url": "https://api.github.com/users/mlamothe-zz/events{/privacy}",
"received_events_url": "https://api.github.com/users/mlamothe-zz/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-12-05T08:30:23 | 2023-12-05T08:38:44 | null | NONE | null | ### System Info
MacOS 14.1.1
```
pip3 show langchain
Name: langchain
Version: 0.0.345
Summary: Building applications with LLMs through composability
Home-page: https://github.com/langchain-ai/langchain
Author:
Author-email:
License: MIT
Location: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
Requires: aiohttp, anyio, dataclasses-json, jsonpatch, langchain-core, langsmith, numpy, pydantic, PyYAML, requests, SQLAlchemy, tenacity
Required-by: langserve, permchain
```
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python
testFunctions = [
{
"name": "set_animal_properties",
"description": "Set different properties for an animal.",
"parameters": {
"type": "object",
"properties": {
"animals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the animal",
},
"appearance": {
"type": "string",
"description": "Summary of the appearance of the animal",
},
"joke": {
"type": "string",
"description": "A joke about the animal",
}
}
}
}
}
}
}
]
def get_chain_animals() -> Runnable:
"""Return a chain."""
prompt = ChatPromptTemplate.from_template("Pick 5 random animals for me. For each of them, give me a 300 word summary of their appearance, and tell me a joke about them. Please call a function with this information.")
# Uncomment to use ChatOpenAI model
#model = ChatOpenAI(model_name="gpt-3.5-turbo-1106",
# openai_api_key=OpenAISettings.OPENAI_API_KEY,
# ).bind(functions=testFunctions, function_call={"name": "set_animal_properties"})
model = AzureChatOpenAI(temperature=.7,
openai_api_base=AzureSettings.BASE_URL,
openai_api_version=AzureSettings.API_VERSION,
deployment_name=AzureSettings.DEPLOYMENT_NAME,
openai_api_key=AzureSettings.API_KEY,
openai_api_type=AzureSettings.API_TYPE,
).bind(functions=testFunctions, function_call={"name": "set_animal_properties"})
parser = JsonOutputFunctionsParser()
return prompt | model | parser
if __name__ == "__main__":
chain = get_chain_animals()
for chunk in chain.stream({}):
print(chunk)
```
### Expected behavior
LCEL Streaming doesn't seem to work properly when using an AzureChatOpenAI model, and the JsonOutputFunctionsParser parser.
I'm unable to stream an LCEL chain correctly when using an Azure-hosted OpenAI model (using the AzureChatOpenAI class).
I'm using a simple LCEL chain:
`chain = promptTemplate | model | parser`
The parser is of type `langchain.output_parsers.openai_functions.JsonOutputFunctionsParser`
When using a AzureChatOpenAI model, the text is not streamed as the tokens are generated. Instead, it appears that I receive all of the text at once after all the tokens are generated.
However, if I **replace** the AzureChatOpenAI model with a ChatOpenAI model (using the same prompt, function bindings, etc.), the stream **DOES** work as intended, returning text in real-time as the tokens are generated.
So I believe I've isolated the problem down to that particular AzureChatOpenAI model.
Any insight or workarounds would be appreciated. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14280/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14280/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14279 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14279/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14279/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14279/events | https://github.com/langchain-ai/langchain/issues/14279 | 2,025,500,538 | I_kwDOIPDwls54uq96 | 14,279 | Ollama: parameters and instruction templates | {
"login": "lfoppiano",
"id": 15426,
"node_id": "MDQ6VXNlcjE1NDI2",
"avatar_url": "https://avatars.githubusercontent.com/u/15426?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lfoppiano",
"html_url": "https://github.com/lfoppiano",
"followers_url": "https://api.github.com/users/lfoppiano/followers",
"following_url": "https://api.github.com/users/lfoppiano/following{/other_user}",
"gists_url": "https://api.github.com/users/lfoppiano/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lfoppiano/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lfoppiano/subscriptions",
"organizations_url": "https://api.github.com/users/lfoppiano/orgs",
"repos_url": "https://api.github.com/users/lfoppiano/repos",
"events_url": "https://api.github.com/users/lfoppiano/events{/privacy}",
"received_events_url": "https://api.github.com/users/lfoppiano/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] | closed | false | null | [] | null | 3 | 2023-12-05T07:49:56 | 2023-12-06T08:16:04 | 2023-12-06T08:16:04 | CONTRIBUTOR | null | ### Issue with current documentation:
It's not clear from the documentation whether when calling Ollama, langchain will take care of formatting the template correctly or if I have to supply the template by myself.
For example, in https://ollama.ai/library/mistral:instruct
we have:
```
parameter
stop "[INST]"
stop "[/INST]"
stop "<<SYS>>"
stop "<</SYS>>"
template
[INST] {{ .System }} {{ .Prompt }} [/INST]
```
Do I have to take care of formatting my instructions using these parameters and template, or langchain will take care of it?
### Idea or request for content:
If this is not implemented, would be very useful to have definitely | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14279/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/14279/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14278 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14278/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14278/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14278/events | https://github.com/langchain-ai/langchain/pull/14278 | 2,025,487,321 | PR_kwDOIPDwls5hI8rd | 14,278 | fix error issue 12250 | {
"login": "daniellefranca96",
"id": 134293046,
"node_id": "U_kgDOCAEmNg",
"avatar_url": "https://avatars.githubusercontent.com/u/134293046?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/daniellefranca96",
"html_url": "https://github.com/daniellefranca96",
"followers_url": "https://api.github.com/users/daniellefranca96/followers",
"following_url": "https://api.github.com/users/daniellefranca96/following{/other_user}",
"gists_url": "https://api.github.com/users/daniellefranca96/gists{/gist_id}",
"starred_url": "https://api.github.com/users/daniellefranca96/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/daniellefranca96/subscriptions",
"organizations_url": "https://api.github.com/users/daniellefranca96/orgs",
"repos_url": "https://api.github.com/users/daniellefranca96/repos",
"events_url": "https://api.github.com/users/daniellefranca96/events{/privacy}",
"received_events_url": "https://api.github.com/users/daniellefranca96/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T07:43:56 | 2023-12-05T11:35:31 | 2023-12-05T11:35:31 | NONE | null | <!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14278/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14278/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14278",
"html_url": "https://github.com/langchain-ai/langchain/pull/14278",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14278.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14278.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14277 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14277/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14277/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14277/events | https://github.com/langchain-ai/langchain/pull/14277 | 2,025,448,649 | PR_kwDOIPDwls5hIz-k | 14,277 | Jaguar vector store | {
"login": "jonyue",
"id": 8786482,
"node_id": "MDQ6VXNlcjg3ODY0ODI=",
"avatar_url": "https://avatars.githubusercontent.com/u/8786482?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jonyue",
"html_url": "https://github.com/jonyue",
"followers_url": "https://api.github.com/users/jonyue/followers",
"following_url": "https://api.github.com/users/jonyue/following{/other_user}",
"gists_url": "https://api.github.com/users/jonyue/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jonyue/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonyue/subscriptions",
"organizations_url": "https://api.github.com/users/jonyue/orgs",
"repos_url": "https://api.github.com/users/jonyue/repos",
"events_url": "https://api.github.com/users/jonyue/events{/privacy}",
"received_events_url": "https://api.github.com/users/jonyue/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T07:24:54 | 2023-12-18T09:00:38 | 2023-12-18T09:00:22 | NONE | null |
- **Description:** A new vector store Jaguar is being added. Class, test scripts, and documentation is added.
- **Issue:** None -- This is the first PR contributing to LangChain
- **Dependencies:** This depends on "pip install -U jaguardb-http-client" client http package
- **Tag maintainer:** @baskaryan, @eyurtsev, @hwchase1
- **Twitter handle:** @workbot
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14277/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14277/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14277",
"html_url": "https://github.com/langchain-ai/langchain/pull/14277",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14277.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14277.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14276 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14276/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14276/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14276/events | https://github.com/langchain-ai/langchain/issues/14276 | 2,025,423,592 | I_kwDOIPDwls54uYLo | 14,276 | OutputParser cheap json format Validation | {
"login": "albertoecf",
"id": 81099969,
"node_id": "MDQ6VXNlcjgxMDk5OTY5",
"avatar_url": "https://avatars.githubusercontent.com/u/81099969?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/albertoecf",
"html_url": "https://github.com/albertoecf",
"followers_url": "https://api.github.com/users/albertoecf/followers",
"following_url": "https://api.github.com/users/albertoecf/following{/other_user}",
"gists_url": "https://api.github.com/users/albertoecf/gists{/gist_id}",
"starred_url": "https://api.github.com/users/albertoecf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/albertoecf/subscriptions",
"organizations_url": "https://api.github.com/users/albertoecf/orgs",
"repos_url": "https://api.github.com/users/albertoecf/repos",
"events_url": "https://api.github.com/users/albertoecf/events{/privacy}",
"received_events_url": "https://api.github.com/users/albertoecf/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-12-05T07:05:27 | 2023-12-05T07:25:15 | null | NONE | null | ### Feature request
Currently, when working with LangChain and generating JSON files which will be rendered in user facing application. We haven't found a dedicated method to check whether a JSON file adheres to the desired structure before executing subsequent operators.
This feature request suggests the implementation of a method or utility for asserting the structure of a JSON file/format, ideally use defined schema (i.e: ResponseSchema). This would allow users to proactively identify any issues with the format.
### Motivation
In the current workflow, users have to rely on executing downstream operators (e.g., RetryWithErrorOutputParser) to discover issues with the JSON structure. This approach can be inefficient, especially when the error detection occurs after execution. Having a method to check the JSON structure beforehand would enable users to catch format issues early in the process. This would prevent users to further interact with LLM
### Your contribution
I'm willing to contribute to the implementation of this feature. I'll carefully read the CONTRIBUTING.md and follow the guidelines to submit a Pull Request once the scope is clarified.
Some simple example use case code:
```python
import os
import json
from dotenv import load_dotenv, find_dotenv
import openai
from langchain.output_parsers import StructuredOutputParser
from langchain.chat_models import ChatOpenAI
from langchain.prompts import ChatPromptTemplate
from jsonschema import validate, exceptions
_ = load_dotenv(find_dotenv())
openai.api_key = os.environ["OPENAI_API_KEY"]
expected_json_file_path = "app/files/expected_schema.json"
# LCEL - INSTANCES & STRUCTURE
prompt = ChatPromptTemplate.from_template(template=template_string)
chat_llm = ChatOpenAI(temperature=0.0)
# Define output parser based on reponse schemas
output_parser = StructuredOutputParser.from_response_schemas(
asset_instance.response_schemas
)
# Define format instruction using get format instruction method
format_instructions = output_parser.get_format_instructions()
# LCEL DEFINE CHAIN
simple_chain_validator = prompt | chat_llm | output_parser
# LCEL INVOKE CHAIN
chain_to_parse = simple_chain_validator.invoke(
{
"content_to_format": asset_instance.raw_information,
"format_instructions": format_instructions,
}
)
# Define the expected JSON schema
with open(expected_json_file_path, "r") as schema_file:
expected_schema = json.load(schema_file)
# Validate against the schema
try:
validate(instance=chain_to_parse, schema=expected_schema)
print("JSON is valid.")
except exceptions.ValidationError as e:
print(f"Validation Error: {e}")
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14276/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/14276/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14275 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14275/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14275/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14275/events | https://github.com/langchain-ai/langchain/pull/14275 | 2,025,360,347 | PR_kwDOIPDwls5hIg-J | 14,275 | feat: 1. Add system parameters, 2. Align with the QianfanChatEndpoint for function calling | {
"login": "wangwei1237",
"id": 3480154,
"node_id": "MDQ6VXNlcjM0ODAxNTQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/3480154?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wangwei1237",
"html_url": "https://github.com/wangwei1237",
"followers_url": "https://api.github.com/users/wangwei1237/followers",
"following_url": "https://api.github.com/users/wangwei1237/following{/other_user}",
"gists_url": "https://api.github.com/users/wangwei1237/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wangwei1237/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wangwei1237/subscriptions",
"organizations_url": "https://api.github.com/users/wangwei1237/orgs",
"repos_url": "https://api.github.com/users/wangwei1237/repos",
"events_url": "https://api.github.com/users/wangwei1237/events{/privacy}",
"received_events_url": "https://api.github.com/users/wangwei1237/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T06:12:51 | 2023-12-06T01:28:31 | 2023-12-06T01:28:31 | CONTRIBUTOR | null | - **Description:**
1. Add system parameters to the ERNIE LLM API to set the role of the LLM.
2. Add support for the ERNIE-Bot-turbo-AI model according from the document https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Alp0kdm0n.
3. For the function call of ErnieBotChat, align with the QianfanChatEndpoint.
With this PR, the `QianfanChatEndpoint()` can use the `function calling` ability with `create_ernie_fn_chain()`. The example is as the following:
```
from langchain.prompts import ChatPromptTemplate
import json
from langchain.prompts.chat import (
ChatPromptTemplate,
)
from langchain.chat_models import QianfanChatEndpoint
from langchain.chains.ernie_functions import (
create_ernie_fn_chain,
)
def get_current_news(location: str) -> str:
"""Get the current news based on the location.'
Args:
location (str): The location to query.
Returs:
str: Current news based on the location.
"""
news_info = {
"location": location,
"news": [
"I have a Book.",
"It's a nice day, today."
]
}
return json.dumps(news_info)
def get_current_weather(location: str, unit: str="celsius") -> str:
"""Get the current weather in a given location
Args:
location (str): location of the weather.
unit (str): unit of the tempuature.
Returns:
str: weather in the given location.
"""
weather_info = {
"location": location,
"temperature": "27",
"unit": unit,
"forecast": ["sunny", "windy"],
}
return json.dumps(weather_info)
template = ChatPromptTemplate.from_messages([
("user", "{user_input}"),
])
chat = QianfanChatEndpoint(model="ERNIE-Bot-4")
chain = create_ernie_fn_chain([get_current_weather, get_current_news], chat, template, verbose=True)
res = chain.run("北京今天的新闻是什么?")
print(res)
```
The result of the above code:
```
> Entering new LLMChain chain...
Prompt after formatting:
Human: 北京今天的新闻是什么?
> Finished chain.
{'name': 'get_current_news', 'arguments': {'location': '北京'}}
```
For the `ErnieBotChat`, now can use the `system` parameter to set the role of the LLM.
```
from langchain.prompts import ChatPromptTemplate
from langchain.chains import LLMChain
from langchain.chat_models import ErnieBotChat
llm = ErnieBotChat(model_name="ERNIE-Bot-turbo-AI", system="你是一个能力很强的机器人,你的名字叫 小叮当。无论问你什么问题,你都可以给出答案。")
prompt = ChatPromptTemplate.from_messages(
[
("human", "{query}"),
]
)
chain = LLMChain(llm=llm, prompt=prompt, verbose=True)
res = chain.run(query="你是谁?")
print(res)
```
The result of the above code:
```
> Entering new LLMChain chain...
Prompt after formatting:
Human: 你是谁?
> Finished chain.
我是小叮当,一个智能机器人。我可以为你提供各种服务,包括回答问题、提供信息、进行计算等。如果你需要任何帮助,请随时告诉我,我会尽力为你提供最好的服务。
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14275/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14275/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14275",
"html_url": "https://github.com/langchain-ai/langchain/pull/14275",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14275.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14275.patch",
"merged_at": "2023-12-06T01:28:31"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14274 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14274/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14274/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14274/events | https://github.com/langchain-ai/langchain/issues/14274 | 2,025,331,957 | I_kwDOIPDwls54uBz1 | 14,274 | Agent not calling tool with the right data. | {
"login": "kashyap-aditya",
"id": 33648978,
"node_id": "MDQ6VXNlcjMzNjQ4OTc4",
"avatar_url": "https://avatars.githubusercontent.com/u/33648978?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kashyap-aditya",
"html_url": "https://github.com/kashyap-aditya",
"followers_url": "https://api.github.com/users/kashyap-aditya/followers",
"following_url": "https://api.github.com/users/kashyap-aditya/following{/other_user}",
"gists_url": "https://api.github.com/users/kashyap-aditya/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kashyap-aditya/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kashyap-aditya/subscriptions",
"organizations_url": "https://api.github.com/users/kashyap-aditya/orgs",
"repos_url": "https://api.github.com/users/kashyap-aditya/repos",
"events_url": "https://api.github.com/users/kashyap-aditya/events{/privacy}",
"received_events_url": "https://api.github.com/users/kashyap-aditya/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] | open | false | null | [] | null | 1 | 2023-12-05T05:44:22 | 2023-12-05T05:51:06 | null | NONE | null | ### System Info
langchain 0.0.330
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
class SummarizationTool(BaseTool):
name = "summarization_tool"
description = '''This tool must be used at the very end.
It is used to summarize the results from each of other tools.
It needs the entire text of the results from each of the previous tool.'''
llm: BaseLanguageModel
return_direct = True
def _run(self, query: str, run_manager: Optional[CallbackManagerForToolRun] = None) -> str:
print ('\n in summarization tool. query:', query, 'query type:', type(query), query[0], query[1])
```
I can see that this tool is called at the very end, as expected.
The output from the query is:
in summarization tool. query: [text from openai_search tool, text from wikipedia_search tool] query type: <class 'str'> [ t
Instead of " [text from openai_search tool, text from wikipedia_search tool]", I want the actual text.
How do I get it to pass the actual text?
### Expected behavior
Instead of " [text from openai_search tool, text from wikipedia_search tool]", I want the actual text.
How do I get it to pass the actual text? | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14274/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14274/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14273 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14273/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14273/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14273/events | https://github.com/langchain-ai/langchain/pull/14273 | 2,025,322,946 | PR_kwDOIPDwls5hIY6N | 14,273 | docs: Mendable AI Floating Button | {
"login": "nickscamara",
"id": 20311743,
"node_id": "MDQ6VXNlcjIwMzExNzQz",
"avatar_url": "https://avatars.githubusercontent.com/u/20311743?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nickscamara",
"html_url": "https://github.com/nickscamara",
"followers_url": "https://api.github.com/users/nickscamara/followers",
"following_url": "https://api.github.com/users/nickscamara/following{/other_user}",
"gists_url": "https://api.github.com/users/nickscamara/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nickscamara/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nickscamara/subscriptions",
"organizations_url": "https://api.github.com/users/nickscamara/orgs",
"repos_url": "https://api.github.com/users/nickscamara/repos",
"events_url": "https://api.github.com/users/nickscamara/events{/privacy}",
"received_events_url": "https://api.github.com/users/nickscamara/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": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-05T05:34:35 | 2023-12-05T18:17:12 | 2023-12-05T18:17:12 | CONTRIBUTOR | null | Hey yall,
As discussed, here is the Mendable AI chat triggered by a small floating button on the right of the screen. That way users can continue to get the value out of the assistant while you experiment. The implementation is very similar to what we have done with Snapchat, Llamaindex, AutoGPT.
Let me know if you have any questions and feedback, happy to iterate! If this looks good, we will PR in the langchain js docs as well.
Thank you!
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14273/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14273/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14273",
"html_url": "https://github.com/langchain-ai/langchain/pull/14273",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14273.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14273.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14272 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14272/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14272/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14272/events | https://github.com/langchain-ai/langchain/pull/14272 | 2,025,322,696 | PR_kwDOIPDwls5hIY2s | 14,272 | feat: mask api key for cerebriumai llm | {
"login": "yliang412",
"id": 70461588,
"node_id": "MDQ6VXNlcjcwNDYxNTg4",
"avatar_url": "https://avatars.githubusercontent.com/u/70461588?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yliang412",
"html_url": "https://github.com/yliang412",
"followers_url": "https://api.github.com/users/yliang412/followers",
"following_url": "https://api.github.com/users/yliang412/following{/other_user}",
"gists_url": "https://api.github.com/users/yliang412/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yliang412/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yliang412/subscriptions",
"organizations_url": "https://api.github.com/users/yliang412/orgs",
"repos_url": "https://api.github.com/users/yliang412/repos",
"events_url": "https://api.github.com/users/yliang412/events{/privacy}",
"received_events_url": "https://api.github.com/users/yliang412/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-05T05:34:20 | 2023-12-06T18:22:19 | 2023-12-06T17:06:00 | CONTRIBUTOR | null | - **Description:** Masking API key for CerebriumAI LLM to protect user secrets.
- **Issue:** #12165
- **Dependencies:** None
- **Tag maintainer:** @eyurtsev | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14272/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14272/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14272",
"html_url": "https://github.com/langchain-ai/langchain/pull/14272",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14272.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14272.patch",
"merged_at": "2023-12-06T17:06:00"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14271 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14271/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14271/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14271/events | https://github.com/langchain-ai/langchain/issues/14271 | 2,025,310,554 | I_kwDOIPDwls54t8la | 14,271 | DOC: UnstructuredExcelLoader code comment‘s error | {
"login": "Mike575",
"id": 25719061,
"node_id": "MDQ6VXNlcjI1NzE5MDYx",
"avatar_url": "https://avatars.githubusercontent.com/u/25719061?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Mike575",
"html_url": "https://github.com/Mike575",
"followers_url": "https://api.github.com/users/Mike575/followers",
"following_url": "https://api.github.com/users/Mike575/following{/other_user}",
"gists_url": "https://api.github.com/users/Mike575/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Mike575/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mike575/subscriptions",
"organizations_url": "https://api.github.com/users/Mike575/orgs",
"repos_url": "https://api.github.com/users/Mike575/repos",
"events_url": "https://api.github.com/users/Mike575/events{/privacy}",
"received_events_url": "https://api.github.com/users/Mike575/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 | 2 | 2023-12-05T05:20:47 | 2023-12-05T11:47:17 | null | NONE | null | ### Issue with current documentation:
In UnstructuredExcelLoader code comment, introduce 'elements' mode for twice, but nothing about 'single' mode.
Original code comment are following:
Unstructured loaders, UnstructuredExcelLoader can be used in both "single" and "elements" mode. **_If you use the loader in "elements" mode_**, each sheet in the Excel file will be a an Unstructured Table element. **_If you use the loader in "elements" mode_**, an HTML representation of the table will be available in the "text_as_html" key in the document metadata.
### Idea or request for content:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14271/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14271/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14270 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14270/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14270/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14270/events | https://github.com/langchain-ai/langchain/pull/14270 | 2,025,301,464 | PR_kwDOIPDwls5hIUXS | 14,270 | Handling inline references to .ipynb files | {
"login": "169",
"id": 10000925,
"node_id": "MDQ6VXNlcjEwMDAwOTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/169",
"html_url": "https://github.com/169",
"followers_url": "https://api.github.com/users/169/followers",
"following_url": "https://api.github.com/users/169/following{/other_user}",
"gists_url": "https://api.github.com/users/169/gists{/gist_id}",
"starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/169/subscriptions",
"organizations_url": "https://api.github.com/users/169/orgs",
"repos_url": "https://api.github.com/users/169/repos",
"events_url": "https://api.github.com/users/169/events{/privacy}",
"received_events_url": "https://api.github.com/users/169/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | {
"login": "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 | 7 | 2023-12-05T05:10:52 | 2023-12-07T00:30:34 | 2023-12-06T02:10:28 | CONTRIBUTOR | null | ### Description
I found that [the OpenAI Adapter document](https://python.langchain.com/docs/integrations/adapters/openai) cannot correctly jump to other internal links. Clicking on the link will download it as an ipynb file.
If it works normally on both jupyter notebook and doc websites, additional processing needs to be done, that is, replacing the link before rendering.
I added 2 scripts and tested `make docs_build` and `./vercel_build.sh`. In both cases, the link can be generated correctly without affecting the original ipynb file content.
@efriis Please review this. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14270/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14270/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14270",
"html_url": "https://github.com/langchain-ai/langchain/pull/14270",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14270.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14270.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14268 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14268/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14268/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14268/events | https://github.com/langchain-ai/langchain/issues/14268 | 2,025,281,757 | I_kwDOIPDwls54t1jd | 14,268 | ImportError: cannot import name 'BaseCache' from 'langchain' | {
"login": "Tylersuard",
"id": 41713505,
"node_id": "MDQ6VXNlcjQxNzEzNTA1",
"avatar_url": "https://avatars.githubusercontent.com/u/41713505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Tylersuard",
"html_url": "https://github.com/Tylersuard",
"followers_url": "https://api.github.com/users/Tylersuard/followers",
"following_url": "https://api.github.com/users/Tylersuard/following{/other_user}",
"gists_url": "https://api.github.com/users/Tylersuard/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Tylersuard/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tylersuard/subscriptions",
"organizations_url": "https://api.github.com/users/Tylersuard/orgs",
"repos_url": "https://api.github.com/users/Tylersuard/repos",
"events_url": "https://api.github.com/users/Tylersuard/events{/privacy}",
"received_events_url": "https://api.github.com/users/Tylersuard/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-12-05T04:51:11 | 2024-01-03T20:19:50 | null | NONE | null | ### System Info
Every time I use Langchain, something is wrong with it. This is just the latest iteration. If you guys want people to use your library you seriously need to clean things up.
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
To reproduce:
from llama_index import SimpleDirectoryReader, LLMPredictor, ServiceContext, GPTVectorStoreIndex
### Expected behavior
Run without error | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14268/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/14268/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14267 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14267/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14267/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14267/events | https://github.com/langchain-ai/langchain/issues/14267 | 2,025,258,589 | I_kwDOIPDwls54tv5d | 14,267 | DOC: ParentDocumentRetriever without InMemoryStore | {
"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": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"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 | 10 | 2023-12-05T04:26:07 | 2024-01-15T19:46:03 | null | NONE | null | ### Issue with current documentation:
Hi, I'm not quite sure how to translate the `ParentDocumentRetriever` examples to ingest documents to OpenSearch in one phase, and then reconnect to it by instantiating a retriever at a later point.
The examples use an `InMemoryStore()` for the parent documents. Is the idea then that it would be necessary if I wanted to use OpenSearch to create two different OpenSearch clusters, one for the parent docs and one for the child docs? Or is there a more simple way to do this?
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14267/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/14267/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14266 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14266/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14266/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14266/events | https://github.com/langchain-ai/langchain/pull/14266 | 2,025,236,516 | PR_kwDOIPDwls5hIGL1 | 14,266 | Harrison/delegate from template | {
"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"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T04:05:52 | 2023-12-05T04:18:16 | 2023-12-05T04:18:15 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14266/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14266/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14266",
"html_url": "https://github.com/langchain-ai/langchain/pull/14266",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14266.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14266.patch",
"merged_at": "2023-12-05T04:18:15"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14265 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14265/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14265/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14265/events | https://github.com/langchain-ai/langchain/pull/14265 | 2,025,232,138 | PR_kwDOIPDwls5hIFQE | 14,265 | LangChain: factory method to FileChatMessageHistory for use with RunnableWithMessageHistory (Improvement) | {
"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": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2023-12-05T04:00:11 | 2023-12-06T17:33:10 | 2023-12-06T17:33:10 | COLLABORATOR | null | This PR adds a bit of utility code to make it more convenient to use existing
file chat message history with RunnableWithMessageHistory.
* Create a factory method that takes session id and creates a file chat message history
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14265/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14265/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14265",
"html_url": "https://github.com/langchain-ai/langchain/pull/14265",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14265.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14265.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14264 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14264/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14264/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14264/events | https://github.com/langchain-ai/langchain/pull/14264 | 2,025,230,945 | PR_kwDOIPDwls5hIE_0 | 14,264 | docs[patch]: chat model page names | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T03:58:35 | 2023-12-05T04:08:42 | 2023-12-05T04:08:41 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14264/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14264/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14264",
"html_url": "https://github.com/langchain-ai/langchain/pull/14264",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14264.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14264.patch",
"merged_at": "2023-12-05T04:08:41"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14263 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14263/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14263/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14263/events | https://github.com/langchain-ai/langchain/pull/14263 | 2,025,224,964 | PR_kwDOIPDwls5hIDuy | 14,263 | Image prompt template | {
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | open | false | null | [] | null | 3 | 2023-12-05T03:51:07 | 2024-01-04T22:50:33 | null | COLLABORATOR | null | Builds on Bagatur's (#13227). See unit test for example usage (below)
```python
def test_chat_tmpl_from_messages_multipart_image() -> None:
base64_image = "abcd123"
other_base64_image = "abcd123"
template = ChatPromptTemplate.from_messages(
[
("system", "You are an AI assistant named {name}."),
(
"human",
[
{"type": "text", "text": "What's in this image?"},
# OAI supports all these structures today
{
"type": "image_url",
"image_url": "data:image/jpeg;base64,{my_image}",
},
{
"type": "image_url",
"image_url": {"url": "data:image/jpeg;base64,{my_image}"},
},
{"type": "image_url", "image_url": "{my_other_image}"},
{
"type": "image_url",
"image_url": {"url": "{my_other_image}", "detail": "medium"},
},
{
"type": "image_url",
"image_url": {"url": "https://www.langchain.com/image.png"},
},
{
"type": "image_url",
"image_url": {"url": "data:image/jpeg;base64,foobar"},
},
],
),
]
)
messages = template.format_messages(
name="R2D2", my_image=base64_image, my_other_image=other_base64_image
)
expected = [
SystemMessage(content="You are an AI assistant named R2D2."),
HumanMessage(
content=[
{"type": "text", "text": "What's in this image?"},
{
"type": "image_url",
"image_url": {"url": f"data:image/jpeg;base64,{base64_image}"},
},
{
"type": "image_url",
"image_url": {
"url": f"data:image/jpeg;base64,{other_base64_image}"
},
},
{
"type": "image_url",
"image_url": {"url": f"{other_base64_image}"},
},
{
"type": "image_url",
"image_url": {
"url": f"{other_base64_image}",
"detail": "medium",
},
},
{
"type": "image_url",
"image_url": {"url": "https://www.langchain.com/image.png"},
},
{
"type": "image_url",
"image_url": {"url": "data:image/jpeg;base64,foobar"},
},
]
),
]
assert messages == expected
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14263/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 1,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14263/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14263",
"html_url": "https://github.com/langchain-ai/langchain/pull/14263",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14263.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14263.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14262 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14262/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14262/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14262/events | https://github.com/langchain-ai/langchain/pull/14262 | 2,025,181,411 | PR_kwDOIPDwls5hH6ce | 14,262 | Update doc-string in RunnableWithMessageHistory | {
"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"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T03:01:56 | 2023-12-06T17:31:47 | 2023-12-06T17:31:46 | COLLABORATOR | null | Update doc-string in RunnableWithMessageHistory
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14262/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14262/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14262",
"html_url": "https://github.com/langchain-ai/langchain/pull/14262",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14262.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14262.patch",
"merged_at": "2023-12-06T17:31:46"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14261 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14261/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14261/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14261/events | https://github.com/langchain-ai/langchain/issues/14261 | 2,025,142,888 | I_kwDOIPDwls54tTpo | 14,261 | Does langchain support using local LLM models to request the Neo4j database? | {
"login": "pst2016",
"id": 22267411,
"node_id": "MDQ6VXNlcjIyMjY3NDEx",
"avatar_url": "https://avatars.githubusercontent.com/u/22267411?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pst2016",
"html_url": "https://github.com/pst2016",
"followers_url": "https://api.github.com/users/pst2016/followers",
"following_url": "https://api.github.com/users/pst2016/following{/other_user}",
"gists_url": "https://api.github.com/users/pst2016/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pst2016/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pst2016/subscriptions",
"organizations_url": "https://api.github.com/users/pst2016/orgs",
"repos_url": "https://api.github.com/users/pst2016/repos",
"events_url": "https://api.github.com/users/pst2016/events{/privacy}",
"received_events_url": "https://api.github.com/users/pst2016/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-12-05T02:18:01 | 2023-12-05T02:29:39 | null | NONE | null | ### Feature request
Does langchain support using local LLM models to request the Neo4j database in a non-openai access mode?
### Motivation
It is inconvenient to use local LLM for cypher generation
### Your contribution
No solution available at this time | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14261/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14261/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14260 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14260/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14260/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14260/events | https://github.com/langchain-ai/langchain/issues/14260 | 2,025,137,077 | I_kwDOIPDwls54tSO1 | 14,260 | how to add Qwen model in initialize_agent() | {
"login": "ZhuJD-China",
"id": 50070803,
"node_id": "MDQ6VXNlcjUwMDcwODAz",
"avatar_url": "https://avatars.githubusercontent.com/u/50070803?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ZhuJD-China",
"html_url": "https://github.com/ZhuJD-China",
"followers_url": "https://api.github.com/users/ZhuJD-China/followers",
"following_url": "https://api.github.com/users/ZhuJD-China/following{/other_user}",
"gists_url": "https://api.github.com/users/ZhuJD-China/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ZhuJD-China/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ZhuJD-China/subscriptions",
"organizations_url": "https://api.github.com/users/ZhuJD-China/orgs",
"repos_url": "https://api.github.com/users/ZhuJD-China/repos",
"events_url": "https://api.github.com/users/ZhuJD-China/events{/privacy}",
"received_events_url": "https://api.github.com/users/ZhuJD-China/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-12-05T02:10:39 | 2023-12-05T02:15:47 | null | NONE | null | ### Issue you'd like to raise.
_No response_
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14260/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14260/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14259 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14259/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14259/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14259/events | https://github.com/langchain-ai/langchain/pull/14259 | 2,025,094,650 | PR_kwDOIPDwls5hHoeg | 14,259 | fix comet tracer | {
"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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T01:18:41 | 2023-12-05T03:03:20 | 2023-12-05T03:03:19 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14259/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14259/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14259",
"html_url": "https://github.com/langchain-ai/langchain/pull/14259",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14259.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14259.patch",
"merged_at": "2023-12-05T03:03:19"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14258 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14258/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14258/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14258/events | https://github.com/langchain-ai/langchain/pull/14258 | 2,025,075,272 | PR_kwDOIPDwls5hHkbG | 14,258 | Harrison/bookend ai | {
"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": 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"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T00:55:19 | 2023-12-05T03:42:16 | 2023-12-05T03:42:15 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14258/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14258/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14258",
"html_url": "https://github.com/langchain-ai/langchain/pull/14258",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14258.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14258.patch",
"merged_at": "2023-12-05T03:42:15"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14257 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14257/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14257/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14257/events | https://github.com/langchain-ai/langchain/pull/14257 | 2,025,071,613 | PR_kwDOIPDwls5hHjpU | 14,257 | Bagatur/community | {
"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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T00:51:12 | 2023-12-11T20:30:55 | 2023-12-11T20:30:55 | 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/14257/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14257/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14257",
"html_url": "https://github.com/langchain-ai/langchain/pull/14257",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14257.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14257.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14256 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14256/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14256/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14256/events | https://github.com/langchain-ai/langchain/pull/14256 | 2,025,067,692 | PR_kwDOIPDwls5hHi0m | 14,256 | fake consistent embeddings cleanup | {
"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": 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"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T00:46:11 | 2023-12-05T08:26:11 | 2023-12-05T00:55:30 | COLLABORATOR | null | delete code that could never be reached | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14256/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14256/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14256",
"html_url": "https://github.com/langchain-ai/langchain/pull/14256",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14256.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14256.patch",
"merged_at": "2023-12-05T00:55:30"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14255 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14255/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14255/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14255/events | https://github.com/langchain-ai/langchain/pull/14255 | 2,025,064,706 | PR_kwDOIPDwls5hHiML | 14,255 | docs[patch] Add how-to doc for RunnablePassthrough and nav modifications | {
"login": "akira",
"id": 43946,
"node_id": "MDQ6VXNlcjQzOTQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/43946?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akira",
"html_url": "https://github.com/akira",
"followers_url": "https://api.github.com/users/akira/followers",
"following_url": "https://api.github.com/users/akira/following{/other_user}",
"gists_url": "https://api.github.com/users/akira/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akira/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akira/subscriptions",
"organizations_url": "https://api.github.com/users/akira/orgs",
"repos_url": "https://api.github.com/users/akira/repos",
"events_url": "https://api.github.com/users/akira/events{/privacy}",
"received_events_url": "https://api.github.com/users/akira/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T00:42:24 | 2023-12-06T01:01:08 | 2023-12-06T01:01:07 | CONTRIBUTOR | null | - **Description:** Add How To docs for `RunnablePassthrough` with examples. Also redo the ordering and some of the other How-To docs.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14255/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14255/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14255",
"html_url": "https://github.com/langchain-ai/langchain/pull/14255",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14255.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14255.patch",
"merged_at": "2023-12-06T01:01:07"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14254 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14254/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14254/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14254/events | https://github.com/langchain-ai/langchain/pull/14254 | 2,025,055,251 | PR_kwDOIPDwls5hHgLP | 14,254 | docs[patch]: search experiment | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-05T00:31:42 | 2023-12-05T00:58:27 | 2023-12-05T00:58:26 | COLLABORATOR | null | - npm
- search config
- custom
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14254/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14254/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14254",
"html_url": "https://github.com/langchain-ai/langchain/pull/14254",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14254.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14254.patch",
"merged_at": "2023-12-05T00:58:26"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14252 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14252/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14252/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14252/events | https://github.com/langchain-ai/langchain/pull/14252 | 2,025,049,028 | PR_kwDOIPDwls5hHe4H | 14,252 | Harrison/searchapi | {
"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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] | closed | false | null | [] | null | 1 | 2023-12-05T00:24:26 | 2023-12-05T00:34:16 | 2023-12-05T00:34:15 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14252/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14252/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14252",
"html_url": "https://github.com/langchain-ai/langchain/pull/14252",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14252.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14252.patch",
"merged_at": "2023-12-05T00:34:15"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14251 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14251/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14251/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14251/events | https://github.com/langchain-ai/langchain/pull/14251 | 2,025,017,482 | PR_kwDOIPDwls5hHYEM | 14,251 | docs[patch]: fix columns | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-04T23:51:27 | 2023-12-05T00:03:10 | 2023-12-05T00:03:09 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14251/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14251/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14251",
"html_url": "https://github.com/langchain-ai/langchain/pull/14251",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14251.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14251.patch",
"merged_at": "2023-12-05T00:03:09"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14250 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14250/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14250/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14250/events | https://github.com/langchain-ai/langchain/pull/14250 | 2,025,002,672 | PR_kwDOIPDwls5hHUrx | 14,250 | Feature/Add LLMs Integration For Oracle Cloud Infrastructure(OCI) Data Science Model Deployment Endpoint | {
"login": "mingkang111",
"id": 49049296,
"node_id": "MDQ6VXNlcjQ5MDQ5Mjk2",
"avatar_url": "https://avatars.githubusercontent.com/u/49049296?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mingkang111",
"html_url": "https://github.com/mingkang111",
"followers_url": "https://api.github.com/users/mingkang111/followers",
"following_url": "https://api.github.com/users/mingkang111/following{/other_user}",
"gists_url": "https://api.github.com/users/mingkang111/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mingkang111/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mingkang111/subscriptions",
"organizations_url": "https://api.github.com/users/mingkang111/orgs",
"repos_url": "https://api.github.com/users/mingkang111/repos",
"events_url": "https://api.github.com/users/mingkang111/events{/privacy}",
"received_events_url": "https://api.github.com/users/mingkang111/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | closed | false | {
"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 | 18 | 2023-12-04T23:43:06 | 2023-12-20T19:52:21 | 2023-12-20T19:52:20 | CONTRIBUTOR | null | - **Description:**
- [OCI Data Science](https://docs.oracle.com/en-us/iaas/data-science/using/home.htm) is a fully managed and serverless platform for data science teams to build, train, and manage machine learning models in the Oracle Cloud Infrastructure. This PR add integration for using LangChain with an LLM hosted on a [OCI Data Science Model Deployment](https://docs.oracle.com/en-us/iaas/data-science/using/model-dep-about.htm). To authenticate, [oracle-ads](https://accelerated-data-science.readthedocs.io/en/latest/user_guide/cli/authentication.html) has been used to automatically load credentials for invoking endpoint.
- **Issue:** None
- **Dependencies:** `oracle-ads`
- **Tag maintainer:** @baskaryan
- **Twitter handle:** None | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14250/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14250/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14250",
"html_url": "https://github.com/langchain-ai/langchain/pull/14250",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14250.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14250.patch",
"merged_at": "2023-12-20T19:52:20"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14249 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14249/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14249/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14249/events | https://github.com/langchain-ai/langchain/pull/14249 | 2,024,880,185 | PR_kwDOIPDwls5hHAJF | 14,249 | Make LogFileLoader more generic | {
"login": "ancjainil",
"id": 80884488,
"node_id": "MDQ6VXNlcjgwODg0NDg4",
"avatar_url": "https://avatars.githubusercontent.com/u/80884488?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ancjainil",
"html_url": "https://github.com/ancjainil",
"followers_url": "https://api.github.com/users/ancjainil/followers",
"following_url": "https://api.github.com/users/ancjainil/following{/other_user}",
"gists_url": "https://api.github.com/users/ancjainil/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ancjainil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ancjainil/subscriptions",
"organizations_url": "https://api.github.com/users/ancjainil/orgs",
"repos_url": "https://api.github.com/users/ancjainil/repos",
"events_url": "https://api.github.com/users/ancjainil/events{/privacy}",
"received_events_url": "https://api.github.com/users/ancjainil/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | null | [] | null | 2 | 2023-12-04T22:29:27 | 2023-12-11T04:56:26 | null | NONE | null | **Description:**
Introducing a flexible log file loader class, `LogFileLoader`, designed to handle various log file formats. This enhancement addresses the need for a versatile tool that adapts to diverse log structures. The class allows users to define custom parsing functions for timestamps, severity levels, and log messages, providing a robust solution for log file processing.
**Issue:**
N/A
**Dependencies:**
- [loguru](https://pypi.org/project/loguru/): A logging library for flexible and easy-to-use logging.
- [dateutil](https://pypi.org/project/python-dateutil/): Part of the Python standard library, used for parsing timestamps.
- [termcolor](https://pypi.org/project/termcolor/): A library for adding colored output to the terminal.
**Tag maintainer:**
@ancjainil
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14249/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14249/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14249",
"html_url": "https://github.com/langchain-ai/langchain/pull/14249",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14249.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14249.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14248 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14248/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14248/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14248/events | https://github.com/langchain-ai/langchain/issues/14248 | 2,024,863,086 | I_kwDOIPDwls54sPVu | 14,248 | Error YahooFinanceNewsTool() Tools | {
"login": "wwExpert",
"id": 38178363,
"node_id": "MDQ6VXNlcjM4MTc4MzYz",
"avatar_url": "https://avatars.githubusercontent.com/u/38178363?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wwExpert",
"html_url": "https://github.com/wwExpert",
"followers_url": "https://api.github.com/users/wwExpert/followers",
"following_url": "https://api.github.com/users/wwExpert/following{/other_user}",
"gists_url": "https://api.github.com/users/wwExpert/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wwExpert/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wwExpert/subscriptions",
"organizations_url": "https://api.github.com/users/wwExpert/orgs",
"repos_url": "https://api.github.com/users/wwExpert/repos",
"events_url": "https://api.github.com/users/wwExpert/events{/privacy}",
"received_events_url": "https://api.github.com/users/wwExpert/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 | 4 | 2023-12-04T22:17:30 | 2024-01-17T10:49:40 | null | NONE | null | ### System Info
When running the tool: Error YahooFinanceNewsTool()
the following error message is displayed:
```
File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\tools\yahoo_finance_news.py", line 66, in <listcomp>
if query in doc.metadata["description"] or query in doc.metadata["title"]
KeyError: 'description'
```
I have tried to reproduce the error. It looks like the docs element does not contain a field that can return a "description".
```
loader = WebBaseLoader(web_paths=links)
docs = loader.load()
print(docs) # only insert for test
```
output print (docs):
....
tieren\nAlle ablehnen\nDatenschutzeinstellungen verwalten\n\n\n\n\n\nZum Ende\n \n\n\n\n\n\n\n\n\n\n\n\n\n', metadata={'source': 'https://finance.yahoo.com/m/280830e6-928c-3b1f-97f4-bd37147499cb/not-even-tesla-bulls-love-the.html', 'title': 'Yahooist Teil der Yahoo Markenfamilie', 'language': 'No language found.'}), Document(page_content='\n\n\nYahooist Teil der Yahoo Markenfamilie\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n guce guce \n\n\n\n Yahoo ist Teil der Yahoo MarkenfamilieDie Websites und Apps, die wir betreiben und verwalten, einschließlich Yahoo und AOL, sowie unser digitaler Werbedienst Yahoo Advertising.Yahoo Markenfamilie.\n\n Bei der Nutzung unserer Websites und Apps verwenden wir CookiesMithilfe von Cookies (einschließlich ähnlicher Technologien wie der Webspeicherung) können die Betreiber von Websites und Apps Informationen auf Ihrem Gerät speichern und ablesen. Weitere Informationen finden Sie in unserer Cookie-Richtlinie.Cookies, um:\n\n\nunsere Websites und Apps für Sie bereitzustellen\nNutzer zu authentifizieren, Sicherheitsmaßnahmen anzuwenden und Spam und Missbrauch zu verhindern, und\nIhre Nutzung unserer Websites und Apps zu messen\n\n\n\n Wenn Sie auf „Alle akzeptieren“ klicken, verwenden wir und unsere Partner (einschließlich der 239, die dem IAB Transparency & Consent Framework angehören) Cookies und Ihre personenbezogenen Daten, wie IP-Adresse, genauen Standort sowie Browsing- und Suchdaten, auch für folgende Zwecke:\n\n\npersonalisierte Werbung und Inhalte auf der Grundlage von Interessenprofilen anzuzeigen\ndie Effektivität von personalisierten Anzeigen und Inhalten zu messen, sowie\nunsere Produkte und Dienstleistungen zu entwickeln und zu verbessern\n\n Klicken Sie auf „Alle ablehnen“, wenn Sie nicht möchten, dass wir und unsere Partner Cookies und personenbezogene Daten für diese zusätzlichen Zwecke verwenden.\n\n Wenn Sie Ihre Auswahl anpassen möchten, klicken Sie auf „Datenschutzeinstellungen verwalten“.\n\n Sie können Ihre Einstellungen jederzeit ändern, indem Sie auf unseren Websites und Apps auf den Link „Datenschutz- und Cookie-Einstellungen“ oder „Datenschutz-Dashboard“ klicken. Weitere Informationen darüber, wie wir Ihre personenbezogenen Daten nutzen, finden Sie in unserer Datenschutzerklärung und unserer Cookie-Richtlinie.\n\n\n\n\n\n\n\n\nAlle akzeptieren\nAlle ablehnen\nDatenschutzeinstellungen verwalten\n\n\n\n\n\nZum Ende\n
\n\n\n\n\n\n\n\n\n\n\n\n\n', metadata={'source': 'https://finance.yahoo.com/news/minister-khera-participates-unesco-global-215400355.html', 'title': 'Yahooist Teil der Yahoo Markenfamilie', 'language': 'No language found.'})]
....
### 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
The example in the LangChain docs.
### Expected behavior
The example in the LangChain docs. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14248/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14248/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14247 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14247/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14247/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14247/events | https://github.com/langchain-ai/langchain/issues/14247 | 2,024,815,058 | I_kwDOIPDwls54sDnS | 14,247 | Lang chain not able to connect to SQL Anywhere 17 | {
"login": "developer20sujeet",
"id": 8278919,
"node_id": "MDQ6VXNlcjgyNzg5MTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/8278919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/developer20sujeet",
"html_url": "https://github.com/developer20sujeet",
"followers_url": "https://api.github.com/users/developer20sujeet/followers",
"following_url": "https://api.github.com/users/developer20sujeet/following{/other_user}",
"gists_url": "https://api.github.com/users/developer20sujeet/gists{/gist_id}",
"starred_url": "https://api.github.com/users/developer20sujeet/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/developer20sujeet/subscriptions",
"organizations_url": "https://api.github.com/users/developer20sujeet/orgs",
"repos_url": "https://api.github.com/users/developer20sujeet/repos",
"events_url": "https://api.github.com/users/developer20sujeet/events{/privacy}",
"received_events_url": "https://api.github.com/users/developer20sujeet/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 6 | 2023-12-04T21:47:32 | 2023-12-06T05:03:36 | null | CONTRIBUTOR | null | ### System Info
Name: langchain
Version: 0.0.344
Python 3.9.6
--(tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] on win32
OS - Window 11
Programming language - Python
Database - SQL Anywhere 17
### Who can help?
@hwchase17
@agola11
**I have SAP SQL Anywhere 17 database server** which I want to talk to **using Langchain and OpenAI in python language**
I am successful able to do this with MS SQL **but failing to do with SQL Anywhere**
**Code below**
import os
import pyodbc
import tkinter as tk
import tkinter.ttk as ttk
from langchain.agents import create_sql_agent
from langchain.agents.agent_toolkits import SQLDatabaseToolkit
from langchain.sql_database import SQLDatabase
from langchain.llms.openai import OpenAI
from langchain.agents import AgentExecutor
DATABASE_SERVER = 'sqldemo'
DATABASE_NAME = 'demo'
DATABASE_USERNAME = 'dba'
DATABASE_PASSWORD = 'sql'
DRIVER = '{SQL Anywhere 17}'
// For Microsoft SQL DB - working
// conn_uri = f"mssql+pyodbc://{DATABASE_SERVER}/{DATABASE_NAME}?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes&Trusted_Connection=yes"
//For SQL Anywhere 17 - Not working
conn_uri = f"**sqlanywhere+pyodbc:**//{DATABASE_USERNAME}:{DATABASE_PASSWORD}@{DATABASE_SERVER}/{DATABASE_NAME}?driver=SQL+Anywhere+17"
db = SQLDatabase.from_uri(conn_uri) #Error line
llm = OpenAI(api_key=os.environ['OPENAI_API_KEY'], temperature=0)
toolkit = SQLDatabaseToolkit(db=db, llm=llm)
agent_executor = create_sql_agent(
llm=OpenAI(temperature=0),
toolkit=toolkit,
verbose=True
)
return agent_executor
================================
**Error I am getting as below**
Exception has occurred: NoSuchModuleError
**Can't load plugin: sqlalchemy.dialects:sqlanywhere.pyodbc**
![image](https://github.com/langchain-ai/langchain/assets/8278919/879a9f8e-ab78-4f06-a7eb-5061ae9530a2)
I can be reached at cloudme50@gmail.com if needed
### Information
- [] The official example notebooks/scripts
- [X ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Code can be found here
Please download and check
https://github.com/developer20sujeet/Self_GenerativeAI/blob/main/Langchain_OpenAI_SQLAnywhere_Chat/sql_anywhere_error.py
### Expected behavior
able to connect and query SQL anyhwere 17 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14247/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14247/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14246 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14246/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14246/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14246/events | https://github.com/langchain-ai/langchain/pull/14246 | 2,024,708,511 | PR_kwDOIPDwls5hGZ7l | 14,246 | Harrison/deepsparse | {
"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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | null | [] | null | 1 | 2023-12-04T20:49:09 | 2023-12-05T00:47:43 | null | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14246/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14246/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14246",
"html_url": "https://github.com/langchain-ai/langchain/pull/14246",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14246.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14246.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14245 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14245/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14245/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14245/events | https://github.com/langchain-ai/langchain/pull/14245 | 2,024,686,218 | PR_kwDOIPDwls5hGU4Q | 14,245 | Harrison/nasa 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"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-04T20:37:44 | 2023-12-04T21:43:12 | 2023-12-04T21:43:11 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14245/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14245/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14245",
"html_url": "https://github.com/langchain-ai/langchain/pull/14245",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14245.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14245.patch",
"merged_at": "2023-12-04T21:43:11"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14244 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14244/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14244/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14244/events | https://github.com/langchain-ai/langchain/pull/14244 | 2,024,677,666 | PR_kwDOIPDwls5hGS8X | 14,244 | Use deepcopy in RunLogPatch | {
"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": 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": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-04T20:33:03 | 2023-12-08T19:09:37 | 2023-12-08T19:09:36 | COLLABORATOR | null | This PR adds deepcopy usage in RunLogPatch. I am not confident that this is the appropriate place for the fix.
I included a unit-test that shows an issue that was caused in LangServe in the RemoteClient.
```python
import jsonpatch
s1 = {}
s2 = {'value': []}
s3 = {'value': ['a']}
ops0 = list(jsonpatch.JsonPatch.from_diff(None, s1))
ops1 = list(jsonpatch.JsonPatch.from_diff(s1, s2))
ops2 = list(jsonpatch.JsonPatch.from_diff(s2, s3))
ops = ops0 + ops1 + ops2
jsonpatch.apply_patch(None, ops)
{'value': ['a']}
jsonpatch.apply_patch(None, ops)
{'value': ['a', 'a']}
jsonpatch.apply_patch(None, ops)
{'value': ['a', 'a', 'a']}
```
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14244/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14244/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14244",
"html_url": "https://github.com/langchain-ai/langchain/pull/14244",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14244.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14244.patch",
"merged_at": "2023-12-08T19:09:36"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14242 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14242/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14242/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14242/events | https://github.com/langchain-ai/langchain/pull/14242 | 2,024,573,895 | PR_kwDOIPDwls5hF8A3 | 14,242 | Harrison/embass | {
"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": 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": 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": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-04T19:31:02 | 2023-12-04T19:58:54 | 2023-12-04T19:58:53 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14242/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14242/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14242",
"html_url": "https://github.com/langchain-ai/langchain/pull/14242",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14242.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14242.patch",
"merged_at": "2023-12-04T19:58:53"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14241 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14241/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14241/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14241/events | https://github.com/langchain-ai/langchain/issues/14241 | 2,024,477,858 | I_kwDOIPDwls54qxSi | 14,241 | Request: ability to set callbacks with LCEL at instantiation | {
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-12-04T18:33:49 | 2023-12-04T18:37:17 | null | CONTRIBUTOR | null | ### Feature request
With `LLMChain`, it was possible to instantiate with `callbacks`, and just pass around the `LLMChain`.
With LCEL, the only way to handle `callbacks` is to pass them to every `invoke` call. This requires one to pass around both the runnable LCEL object as well as the `callbacks`.
### Motivation
It's preferable to bake the `callbacks` into the LCEL object in advance at instantiation, then they get called each `invoke`.
### Your contribution
I can contribute something if I can get a confirm this is desirable. The callbacks would be inserted at the base of the LCEL:
```python
from langchain.chat_models import ChatOpenAI
from langchain.prompts import PromptTemplate
from langchain.schema.callbacks.stdout import StdOutCallbackHandler
from langchain.schema.runnable import RunnableConfig
config = RunnableConfig(callbacks=[StdOutCallbackHandler()])
prompt = PromptTemplate.from_template(
"What is a good name for a company that makes {product}?"
)
runnable = config | prompt | ChatOpenAI()
runnable.invoke(input={"product": "colorful socks"})
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14241/reactions",
"total_count": 7,
"+1": 7,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14241/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14240 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14240/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14240/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14240/events | https://github.com/langchain-ai/langchain/pull/14240 | 2,024,406,949 | PR_kwDOIPDwls5hFXeq | 14,240 | WIP: sql research assistant | {
"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": ""
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-12-04T17:50:50 | 2023-12-18T22:00:19 | 2023-12-18T22:00:18 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14240/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14240/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14240",
"html_url": "https://github.com/langchain-ai/langchain/pull/14240",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14240.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14240.patch",
"merged_at": "2023-12-18T22:00:18"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14239 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14239/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14239/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14239/events | https://github.com/langchain-ai/langchain/pull/14239 | 2,024,404,727 | PR_kwDOIPDwls5hFW_q | 14,239 | WIP: integrations start | {
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-04T17:49:22 | 2023-12-27T21:42:05 | 2023-12-27T21:42:05 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14239/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14239/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14239",
"html_url": "https://github.com/langchain-ai/langchain/pull/14239",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14239.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14239.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14238 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14238/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14238/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14238/events | https://github.com/langchain-ai/langchain/issues/14238 | 2,024,280,548 | I_kwDOIPDwls54qBHk | 14,238 | Using AzureChatOpenAI | {
"login": "TomHollidge",
"id": 101202114,
"node_id": "U_kgDOBgg4wg",
"avatar_url": "https://avatars.githubusercontent.com/u/101202114?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/TomHollidge",
"html_url": "https://github.com/TomHollidge",
"followers_url": "https://api.github.com/users/TomHollidge/followers",
"following_url": "https://api.github.com/users/TomHollidge/following{/other_user}",
"gists_url": "https://api.github.com/users/TomHollidge/gists{/gist_id}",
"starred_url": "https://api.github.com/users/TomHollidge/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomHollidge/subscriptions",
"organizations_url": "https://api.github.com/users/TomHollidge/orgs",
"repos_url": "https://api.github.com/users/TomHollidge/repos",
"events_url": "https://api.github.com/users/TomHollidge/events{/privacy}",
"received_events_url": "https://api.github.com/users/TomHollidge/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-12-04T16:40:49 | 2023-12-04T16:56:17 | null | NONE | null | ### System Info
I have just updated my LangChain packages. Until a few weeks ago, LangChain was working fine for me with my Azure OpenAI resource and deployment of the GPT-4-32K model. As I've gone to create more complex applications with it, I got stuck at one section where I kept getting the error: "InvalidRequestError: The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again."
I have given up on this error personally, but I currently have multiple Microsoft employees trying to help me figure it out. However, all of sudden, the basic implementations of LangChain now seem to be creating the same issue. Even though the native/direct API call to Azure OpenAI services is functioning correctly with the same credentials.
I am trying to use the following code to get the basic implementation working again, following directly what is written at https://python.langchain.com/docs/integrations/chat/azure_chat_openai :
model = AzureChatOpenAI(
azure_deployment="Brian",
openai_api_version="2023-05-15"
)
message = HumanMessage(
content="Translate this sentence from English to French. I love programming."
)
print(model([message]))
This keeps getting the same error (as above with "the API deployment does not exist...") and I'm am completely stumped. How has LangChain gone from working to this error without me changing my credentials? And at the same time these credentials still work for the native Azure OpenAI API call. Any help would be massively appreciated.
### Who can help?
@hwchase17 @agola11
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I have put the code above that you can use, but it seems more of an issue about how LangChain uses my Azure OpenAI account.
### Expected behavior
WARNING! azure_deployment is not default parameter.
azure_deployment was transferred to model_kwargs.
Please confirm that azure_deployment is what you intended.
---------------------------------------------------------------------------
InvalidRequestError Traceback (most recent call last)
Cell In[16], line 9
1 model = AzureChatOpenAI(
2 azure_deployment="Brian",
3 openai_api_version="2023-05-15"
4 )
6 message = HumanMessage(
7 content="Translate this sentence from English to French. I love programming."
8 )
----> 9 print(model([message]))
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/langchain/chat_models/base.py:606, in BaseChatModel.__call__(self, messages, stop, callbacks, **kwargs)
599 def __call__(
600 self,
601 messages: List[BaseMessage],
(...)
604 **kwargs: Any,
605 ) -> BaseMessage:
--> 606 generation = self.generate(
607 [messages], stop=stop, callbacks=callbacks, **kwargs
608 ).generations[0][0]
609 if isinstance(generation, ChatGeneration):
610 return generation.message
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/langchain/chat_models/base.py:355, in BaseChatModel.generate(self, messages, stop, callbacks, tags, metadata, run_name, **kwargs)
353 if run_managers:
354 run_managers[i].on_llm_error(e)
--> 355 raise e
356 flattened_outputs = [
357 LLMResult(generations=[res.generations], llm_output=res.llm_output)
358 for res in results
359 ]
360 llm_output = self._combine_llm_outputs([res.llm_output for res in results])
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/langchain/chat_models/base.py:345, in BaseChatModel.generate(self, messages, stop, callbacks, tags, metadata, run_name, **kwargs)
342 for i, m in enumerate(messages):
343 try:
344 results.append(
--> 345 self._generate_with_cache(
346 m,
347 stop=stop,
348 run_manager=run_managers[i] if run_managers else None,
349 **kwargs,
350 )
351 )
352 except BaseException as e:
353 if run_managers:
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/langchain/chat_models/base.py:498, in BaseChatModel._generate_with_cache(self, messages, stop, run_manager, **kwargs)
494 raise ValueError(
495 "Asked to cache, but no cache found at `langchain.cache`."
496 )
497 if new_arg_supported:
--> 498 return self._generate(
499 messages, stop=stop, run_manager=run_manager, **kwargs
500 )
501 else:
502 return self._generate(messages, stop=stop, **kwargs)
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/langchain/chat_models/openai.py:360, in ChatOpenAI._generate(self, messages, stop, run_manager, stream, **kwargs)
358 message_dicts, params = self._create_message_dicts(messages, stop)
359 params = {**params, **kwargs}
--> 360 response = self.completion_with_retry(
361 messages=message_dicts, run_manager=run_manager, **params
362 )
363 return self._create_chat_result(response)
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/langchain/chat_models/openai.py:299, in ChatOpenAI.completion_with_retry(self, run_manager, **kwargs)
295 @retry_decorator
296 def _completion_with_retry(**kwargs: Any) -> Any:
297 return self.client.create(**kwargs)
--> 299 return _completion_with_retry(**kwargs)
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/tenacity/__init__.py:289, in BaseRetrying.wraps.<locals>.wrapped_f(*args, **kw)
287 @functools.wraps(f)
288 def wrapped_f(*args: t.Any, **kw: t.Any) -> t.Any:
--> 289 return self(f, *args, **kw)
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/tenacity/__init__.py:379, in Retrying.__call__(self, fn, *args, **kwargs)
377 retry_state = RetryCallState(retry_object=self, fn=fn, args=args, kwargs=kwargs)
378 while True:
--> 379 do = self.iter(retry_state=retry_state)
380 if isinstance(do, DoAttempt):
381 try:
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/tenacity/__init__.py:314, in BaseRetrying.iter(self, retry_state)
312 is_explicit_retry = fut.failed and isinstance(fut.exception(), TryAgain)
313 if not (is_explicit_retry or self.retry(retry_state)):
--> 314 return fut.result()
316 if self.after is not None:
317 self.after(retry_state)
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/concurrent/futures/_base.py:451, in Future.result(self, timeout)
449 raise CancelledError()
450 elif self._state == FINISHED:
--> 451 return self.__get_result()
453 self._condition.wait(timeout)
455 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/concurrent/futures/_base.py:403, in Future.__get_result(self)
401 if self._exception:
402 try:
--> 403 raise self._exception
404 finally:
405 # Break a reference cycle with the exception in self._exception
406 self = None
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/tenacity/__init__.py:382, in Retrying.__call__(self, fn, *args, **kwargs)
380 if isinstance(do, DoAttempt):
381 try:
--> 382 result = fn(*args, **kwargs)
383 except BaseException: # noqa: B902
384 retry_state.set_exception(sys.exc_info()) # type: ignore[arg-type]
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/langchain/chat_models/openai.py:297, in ChatOpenAI.completion_with_retry.<locals>._completion_with_retry(**kwargs)
295 @retry_decorator
296 def _completion_with_retry(**kwargs: Any) -> Any:
--> 297 return self.client.create(**kwargs)
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/openai/api_resources/chat_completion.py:25, in ChatCompletion.create(cls, *args, **kwargs)
23 while True:
24 try:
---> 25 return super().create(*args, **kwargs)
26 except TryAgain as e:
27 if timeout is not None and time.time() > start + timeout:
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py:155, in EngineAPIResource.create(cls, api_key, api_base, api_type, request_id, api_version, organization, **params)
129 @classmethod
130 def create(
131 cls,
(...)
138 **params,
139 ):
140 (
141 deployment_id,
142 engine,
(...)
152 api_key, api_base, api_type, api_version, organization, **params
153 )
--> 155 response, _, api_key = requestor.request(
156 "post",
157 url,
158 params=params,
159 headers=headers,
160 stream=stream,
161 request_id=request_id,
162 request_timeout=request_timeout,
163 )
165 if stream:
166 # must be an iterator
167 assert not isinstance(response, OpenAIResponse)
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/openai/api_requestor.py:299, in APIRequestor.request(self, method, url, params, headers, files, stream, request_id, request_timeout)
278 def request(
279 self,
280 method,
(...)
287 request_timeout: Optional[Union[float, Tuple[float, float]]] = None,
288 ) -> Tuple[Union[OpenAIResponse, Iterator[OpenAIResponse]], bool, str]:
289 result = self.request_raw(
290 method.lower(),
291 url,
(...)
297 request_timeout=request_timeout,
298 )
--> 299 resp, got_stream = self._interpret_response(result, stream)
300 return resp, got_stream, self.api_key
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/openai/api_requestor.py:710, in APIRequestor._interpret_response(self, result, stream)
702 return (
703 self._interpret_response_line(
704 line, result.status_code, result.headers, stream=True
705 )
706 for line in parse_stream(result.iter_lines())
707 ), True
708 else:
709 return (
--> 710 self._interpret_response_line(
711 result.content.decode("utf-8"),
712 result.status_code,
713 result.headers,
714 stream=False,
715 ),
716 False,
717 )
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/openai/api_requestor.py:775, in APIRequestor._interpret_response_line(self, rbody, rcode, rheaders, stream)
773 stream_error = stream and "error" in resp.data
774 if stream_error or not 200 <= rcode < 300:
--> 775 raise self.handle_error_response(
776 rbody, rcode, resp.data, rheaders, stream_error=stream_error
777 )
778 return resp
InvalidRequestError: The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14238/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/14238/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14237 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14237/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14237/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14237/events | https://github.com/langchain-ai/langchain/pull/14237 | 2,024,250,221 | PR_kwDOIPDwls5hE1Hx | 14,237 | Remove deprecated Embaas API | {
"login": "juliuslipp",
"id": 43986145,
"node_id": "MDQ6VXNlcjQzOTg2MTQ1",
"avatar_url": "https://avatars.githubusercontent.com/u/43986145?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/juliuslipp",
"html_url": "https://github.com/juliuslipp",
"followers_url": "https://api.github.com/users/juliuslipp/followers",
"following_url": "https://api.github.com/users/juliuslipp/following{/other_user}",
"gists_url": "https://api.github.com/users/juliuslipp/gists{/gist_id}",
"starred_url": "https://api.github.com/users/juliuslipp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/juliuslipp/subscriptions",
"organizations_url": "https://api.github.com/users/juliuslipp/orgs",
"repos_url": "https://api.github.com/users/juliuslipp/repos",
"events_url": "https://api.github.com/users/juliuslipp/events{/privacy}",
"received_events_url": "https://api.github.com/users/juliuslipp/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 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 | null | [] | null | 2 | 2023-12-04T16:26:50 | 2023-12-04T19:30:53 | 2023-12-04T19:30:52 | CONTRIBUTOR | null | - **Description:** We're removing the doc api (since nobody uses it) of Embaas and are cleaning this up as well.,
- **Issue:** -
- **Dependencies:** -,
- **Tag maintainer:** -,
- **Twitter handle:** - | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14237/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14237/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14237",
"html_url": "https://github.com/langchain-ai/langchain/pull/14237",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14237.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14237.patch",
"merged_at": null
} |