issue_owner_repo listlengths 2 2 | issue_body stringlengths 0 261k ⌀ | issue_title stringlengths 1 925 | issue_comments_url stringlengths 56 81 | issue_comments_count int64 0 2.5k | issue_created_at stringlengths 20 20 | issue_updated_at stringlengths 20 20 | issue_html_url stringlengths 37 62 | issue_github_id int64 387k 2.46B | issue_number int64 1 127k |
|---|---|---|---|---|---|---|---|---|---|
[
"langchain-ai",
"langchain"
] | ### Feature request
parse the text in a pdf to determine whether it contains header fields such as From:, To:, Date: etc which make it likely that the original data was an email. if so, return the contents of those fields as Document metadata which can, for example, be used as metadata in a database. (reopening of htt... | email with metadata from pdfs | https://api.github.com/repos/langchain-ai/langchain/issues/12494/comments | 2 | 2023-10-28T21:01:17Z | 2024-02-06T16:11:56Z | https://github.com/langchain-ai/langchain/issues/12494 | 1,966,738,613 | 12,494 |
[
"langchain-ai",
"langchain"
] | ### Issue with current documentation:
# Issue
On the documentation page: https://python.langchain.com/docs/get_started/quickstart
In the Next Steps section:
- Explore [end-to-end use cases](https://python.langchain.com/docs/use_cases) results in page not found
## Screenshot
<img width="960" alt="Langchain_doc... | DOC: Broken link in Quickstart page | https://api.github.com/repos/langchain-ai/langchain/issues/12490/comments | 1 | 2023-10-28T19:20:13Z | 2024-01-30T01:22:51Z | https://github.com/langchain-ai/langchain/issues/12490 | 1,966,711,948 | 12,490 |
[
"langchain-ai",
"langchain"
] | ### System Info
i am getting an error while using Redistore as docstore `A tuple item must be str, int, float or bytes.`. I do not get error when using the InMemorystore. the problem is with mset function, in redistore mset throws error when i pass a document object, but redistore works if just pass a string.
### Who... | Getting error while using Redistore as docstore in parent document retreival | https://api.github.com/repos/langchain-ai/langchain/issues/12488/comments | 3 | 2023-10-28T18:21:41Z | 2024-02-12T16:09:38Z | https://github.com/langchain-ai/langchain/issues/12488 | 1,966,694,473 | 12,488 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
How can I cache llama models that called in langchain llms CTransformers and add it to a docker image to prevent it download the model every time I called in a cloud environment?
As I researched, I saw no clear explanation of how to cache models in Ctransformers.
### Suggestion:
_No ... | langchain Ctransformers caching and usage in Dockerfile volume | https://api.github.com/repos/langchain-ai/langchain/issues/12483/comments | 3 | 2023-10-28T13:22:30Z | 2024-02-08T16:12:46Z | https://github.com/langchain-ai/langchain/issues/12483 | 1,966,594,109 | 12,483 |
[
"langchain-ai",
"langchain"
] | ### Issue with current documentation:
I am attempting to run: https://python.langchain.com/docs/expression_language/cookbook/code_writing
and I'm seeing this error:
```
from langchain_experimental.utilities import PythonREPL
ImportError: cannot import name 'PythonREPL' from 'langchain_experimental.utilitie... | DOC: Code Writing example throws error with PythonREPL import | https://api.github.com/repos/langchain-ai/langchain/issues/12480/comments | 2 | 2023-10-28T11:56:06Z | 2023-10-28T15:59:15Z | https://github.com/langchain-ai/langchain/issues/12480 | 1,966,566,919 | 12,480 |
[
"langchain-ai",
"langchain"
] | ### Feature request
Module: langchain.chains.conversational_retrieval.base.ConversationalRetrievalChain
`qa = ConversationalRetrievalChain(
retriever=self.vector_store.as_retriever(), # type: ignore
combine_docs_chain=self.doc_chain,
question_generator=LLMChain(
... | Get document ids from ConversationalRetrievalChain's reponse | https://api.github.com/repos/langchain-ai/langchain/issues/12479/comments | 2 | 2023-10-28T11:44:24Z | 2023-10-29T16:42:00Z | https://github.com/langchain-ai/langchain/issues/12479 | 1,966,563,554 | 12,479 |
[
"langchain-ai",
"langchain"
] | ### Feature request
Any plan to support nvidia's latest TensorRT-LLM, maybe via triton-inference-server backend?
### Motivation
New integration
### Your contribution
Test | Support TensorRT-LLM? | https://api.github.com/repos/langchain-ai/langchain/issues/12474/comments | 10 | 2023-10-28T05:04:42Z | 2024-07-09T16:05:44Z | https://github.com/langchain-ai/langchain/issues/12474 | 1,966,435,894 | 12,474 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
During using the agent, I added memory to the agent, but the result seems to be no memory ability,my code is as follows:
`llm=ChatOpenAI(temperature=0, model="gpt-3.5-turbo-16k-0613")
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
agent = init... | Issue: <It seems that my agent has no memory ability> | https://api.github.com/repos/langchain-ai/langchain/issues/12469/comments | 3 | 2023-10-28T01:37:02Z | 2024-02-10T16:09:02Z | https://github.com/langchain-ai/langchain/issues/12469 | 1,966,354,197 | 12,469 |
[
"langchain-ai",
"langchain"
] | ### Issue with current documentation:
During using the agent, I added memory to the agent, but the result seems to be no memory ability,my code is as follows:
`llm=ChatOpenAI(temperature=0, model="gpt-3.5-turbo-16k-0613")
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
agent... | DOC: <It seems that my agent has no memory ability> | https://api.github.com/repos/langchain-ai/langchain/issues/12468/comments | 0 | 2023-10-28T01:33:33Z | 2023-10-28T01:33:53Z | https://github.com/langchain-ai/langchain/issues/12468 | 1,966,353,099 | 12,468 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
I want it to use the observation in the way I want it to use it, however it makes a summary of the observation when it is not the expected result even indicating it in the docstrings, prompt templates....
Agent:
agent_chain = initialize_agent(
agent=AgentType.CHAT_C... | The tool is not working as expected, the observation is correct but it does not return the information the way | https://api.github.com/repos/langchain-ai/langchain/issues/12467/comments | 8 | 2023-10-27T23:59:32Z | 2024-02-13T16:09:22Z | https://github.com/langchain-ai/langchain/issues/12467 | 1,966,313,877 | 12,467 |
[
"langchain-ai",
"langchain"
] | ### System Info
Langchain version: 0.0.325
Python version: Python 3.11.6
### Who can help?
@hwchase17
`chain_type="map_rerank"` is not working when the search cannot be found on the DB
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs... | ValueError: Could not parse output - map_rerank | https://api.github.com/repos/langchain-ai/langchain/issues/12459/comments | 4 | 2023-10-27T21:33:29Z | 2024-03-27T16:07:37Z | https://github.com/langchain-ai/langchain/issues/12459 | 1,966,217,407 | 12,459 |
[
"langchain-ai",
"langchain"
] | ### System Info
Running Ubuntu 22.04.3 LTS
And I am using python 3.11.5 with the following packages:
Package Version
------------------------ ------------
accelerate 0.21.0
aiohttp 3.8.6
aiosignal 1.3.1
annotated-types 0.6.0
anyio ... | langchain.agents.create_sql_agent / SQLDatabaseToolkit - Agent never gets DB schema and tries to query nonexistent table names. | https://api.github.com/repos/langchain-ai/langchain/issues/12458/comments | 2 | 2023-10-27T21:18:04Z | 2024-02-06T16:12:16Z | https://github.com/langchain-ai/langchain/issues/12458 | 1,966,204,121 | 12,458 |
[
"langchain-ai",
"langchain"
] | ### Feature request
Guys,
Just to make it more 'generic' instead of path, could you not make it file handle ? Any reason it has to be file path ?
langchain_experimental.agents.agent_toolkits.csv.base.create_csv_agent
langchain_experimental.agents.agent_toolkits.csv.base.create_csv_agent(llm: [BaseLanguageModel](htt... | Can you make it file handle rather than file/path in langchain_experimental.agents.agent_toolkits.csv.base.create_csv_agent | https://api.github.com/repos/langchain-ai/langchain/issues/12449/comments | 1 | 2023-10-27T20:07:08Z | 2024-02-06T16:12:21Z | https://github.com/langchain-ai/langchain/issues/12449 | 1,966,129,336 | 12,449 |
[
"langchain-ai",
"langchain"
] | ### System Info
langchain==0.0.324
openai==0.28.1
Python 3.9.16
Using gpt-35-turbo-16k model from azure
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts ... | Importing openai causes openai.error.InvalidRequestError: Resource not found | https://api.github.com/repos/langchain-ai/langchain/issues/12430/comments | 7 | 2023-10-27T16:33:47Z | 2024-02-13T16:09:27Z | https://github.com/langchain-ai/langchain/issues/12430 | 1,965,847,758 | 12,430 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
In the create_openapi_agent there is an argument called **shared_memory** and it is passed to the LLM in the **ZeroShotAgent**. What is the difference between this one:
agent = ZeroShotAgent(
llm_chain=LLMChain(llm=llm, prompt=prompt, **memory=shared_memory**), (this is a reado... | Adding a memory to the openAPI agent | https://api.github.com/repos/langchain-ai/langchain/issues/12424/comments | 3 | 2023-10-27T14:46:07Z | 2024-02-08T16:13:05Z | https://github.com/langchain-ai/langchain/issues/12424 | 1,965,684,040 | 12,424 |
[
"langchain-ai",
"langchain"
] | ### Feature request
Currently: api-based models that pass rate limits raise an error and abort.
Desirable: sending api requests together in parallel, in a way that tracks their global token usage and response times, and waits as needed to avoid the rate limit.
### Motivation
Currently api-based models that pass rat... | Developing an api request manager that automatically avoids rate limits | https://api.github.com/repos/langchain-ai/langchain/issues/12423/comments | 1 | 2023-10-27T13:52:28Z | 2024-03-31T16:05:15Z | https://github.com/langchain-ai/langchain/issues/12423 | 1,965,582,446 | 12,423 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
I am trying to fetch relavant topics based on the metadata "country". The documents i am passing as this metadata in this particular format:
Document(page_content=".........", metadata={''Country': 'Ireland'})]..... and so on
now i want to filter retrived content based on the Country ... | get_relavant_docs with metadata parameter is not working as expected | https://api.github.com/repos/langchain-ai/langchain/issues/12421/comments | 12 | 2023-10-27T13:00:30Z | 2024-02-14T16:08:38Z | https://github.com/langchain-ai/langchain/issues/12421 | 1,965,481,118 | 12,421 |
[
"langchain-ai",
"langchain"
] | ### System Info
langchain v0.0.324
python 3.10
window10 amd64
### Who can help?
@hwchase17 @agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates ... | Error happened in PromptTemplate + PydanticOutputParser | https://api.github.com/repos/langchain-ai/langchain/issues/12417/comments | 5 | 2023-10-27T10:40:28Z | 2024-07-08T16:04:35Z | https://github.com/langchain-ai/langchain/issues/12417 | 1,965,249,491 | 12,417 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
I basically followed the tutorial and got exception at the last of call to `agent.invoke`, full code:
```
llm = OpenAI(openai_api_key="xxxxxxxxxxxxx")
from langchain.agents import Tool
@tool
def get_word_length(word: str) -> int:
"""Returns the length of a word."""
retur... | openai.error.InvalidRequestError: Unrecognized request argument supplied: functions | https://api.github.com/repos/langchain-ai/langchain/issues/12415/comments | 2 | 2023-10-27T09:29:56Z | 2023-11-08T08:28:03Z | https://github.com/langchain-ai/langchain/issues/12415 | 1,965,130,370 | 12,415 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
I've successfully generated and stored embeddings for PDF documents, Confluence content, and URL data within a single 'embeddings' folder using ChromaDB. However, I'm looking to enhance the functionality and add the ability to delete and re-add PDF/URL/Confluence data from this combine... | Issue: Adding and Deleting PDF/URL/Confluence Data in Combined 'Embeddings' Folder using ChromaDB | https://api.github.com/repos/langchain-ai/langchain/issues/12413/comments | 4 | 2023-10-27T09:13:58Z | 2024-02-10T16:09:23Z | https://github.com/langchain-ai/langchain/issues/12413 | 1,965,103,714 | 12,413 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
I'm building an agent to interact with neo4j with a custom chain (I'm aware of the chains already implemented for this case), my problem comes when I try to pass multiple arbitrary arguments to my tool. What i want to know is how can I propagate arguments from the creation of the agent... | Issue: Passing multiple arbitrary parameters to a tool. | https://api.github.com/repos/langchain-ai/langchain/issues/12410/comments | 13 | 2023-10-27T08:48:20Z | 2024-02-15T16:08:05Z | https://github.com/langchain-ai/langchain/issues/12410 | 1,965,059,653 | 12,410 |
[
"langchain-ai",
"langchain"
] | **Accessing ChromaDB Embedding Vector from S3 Bucket**
**Issue Description:**
I am attempting to access the ChromaDB embedding vector from an S3 Bucket and I've used the following Python code for reference:
```python
# Now we can load the persisted database from disk, and use it as normal.
vectordb = Chroma(p... | Accessing ChromaDB Embedding Vector from S3 Bucket | https://api.github.com/repos/langchain-ai/langchain/issues/12408/comments | 1 | 2023-10-27T06:50:30Z | 2024-05-08T16:05:44Z | https://github.com/langchain-ai/langchain/issues/12408 | 1,964,880,228 | 12,408 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
I am using the below code to fetch contents for user queries.
db = PGVector(
collection_name=collection_name,
connection_string=CONNECTION_STRING,
embedding_function=embeddings,
)
retriever = db.as_retriever(
search_kwargs={"k": 5}
)
while its working fine gene... | Issue: PGvector-Langchain-inconsistent similatiry search | https://api.github.com/repos/langchain-ai/langchain/issues/12405/comments | 2 | 2023-10-27T05:42:17Z | 2024-02-06T16:12:36Z | https://github.com/langchain-ai/langchain/issues/12405 | 1,964,806,092 | 12,405 |
[
"langchain-ai",
"langchain"
] | ### System Info
Langchain: 0.0.166
Ubuntu: 22.04
NodeJS: 18.18.2
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- ... | sourceDocuments are not returned when streaming with RetrievalQAChain but returns properly when *not* using streaming | https://api.github.com/repos/langchain-ai/langchain/issues/12400/comments | 4 | 2023-10-27T03:53:38Z | 2024-06-10T06:23:52Z | https://github.com/langchain-ai/langchain/issues/12400 | 1,964,716,724 | 12,400 |
[
"langchain-ai",
"langchain"
] | ### System Info
Langchain version: 0.0.323
Platform: MacOS Sonoma
Python version: 3.11
### Who can help?
@eyurtsev
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Pro... | `Docx2txtLoader` isn't loading docx files properly | https://api.github.com/repos/langchain-ai/langchain/issues/12399/comments | 2 | 2023-10-27T03:28:56Z | 2024-04-24T16:13:51Z | https://github.com/langchain-ai/langchain/issues/12399 | 1,964,699,011 | 12,399 |
[
"langchain-ai",
"langchain"
] | ### Feature request
Self-RAG is a new open-source technique (MIT license) that implements:
1. **Adaptive retrieval via retrieval tokens:** allows you to fine-tune LLMs to output `[Retrieval]` tokens mid-generation to indicate when to perform retrieval. It has been empirically shown to improve open-source models to ma... | [Feature Request]: Self-RAG support (NEW TECHNIQUE) | https://api.github.com/repos/langchain-ai/langchain/issues/12375/comments | 2 | 2023-10-26T21:02:47Z | 2024-03-30T16:05:21Z | https://github.com/langchain-ai/langchain/issues/12375 | 1,964,365,338 | 12,375 |
[
"langchain-ai",
"langchain"
] | ### System Info
Running on colab:
langchain==0.0.324
gigachat==0.1.6
gpt4all==2.0.1
chromadb==0.4.15
Python 3.10.12
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [X] Embedding Models
... | VectorDBQA bug on Gigachat | https://api.github.com/repos/langchain-ai/langchain/issues/12372/comments | 2 | 2023-10-26T20:52:19Z | 2024-02-06T16:12:41Z | https://github.com/langchain-ai/langchain/issues/12372 | 1,964,352,398 | 12,372 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
I have been experimenting with SelfQueryRetriever. I am trying to use it to find a book based on a query.
For example:
"Find me a book that was written by Hayek".
The LLM correctly creates the query:
"query='Hayek' filter=Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='A... | Issue: SelfQueryRetriever and contains('string') | https://api.github.com/repos/langchain-ai/langchain/issues/12370/comments | 1 | 2023-10-26T20:45:02Z | 2023-11-05T16:45:47Z | https://github.com/langchain-ai/langchain/issues/12370 | 1,964,343,443 | 12,370 |
[
"langchain-ai",
"langchain"
] | ### System Info
azure-search-documents==11.4.0b8, langchain
### Who can help?
@hwchase17
@agola11
@dosu-bot
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt... | filter query within vector_store.similarity_search() is not working as expected. | https://api.github.com/repos/langchain-ai/langchain/issues/12366/comments | 10 | 2023-10-26T20:16:56Z | 2024-03-25T09:57:23Z | https://github.com/langchain-ai/langchain/issues/12366 | 1,964,306,930 | 12,366 |
[
"langchain-ai",
"langchain"
] | ### System Info
`langchain` = 0.0.324
`pydantic` = 2.4.2
`python` = 3.11
`platform` = macos
In the project I have class `MyChat` which inherits `BaseChatModel` and further customize/extends it. Adding additional fields works fine with both pydantic v1 and v2, however adding a field and/or model validator fails... | Unable to extend BaseChatModel with pydantic 2 | https://api.github.com/repos/langchain-ai/langchain/issues/12358/comments | 3 | 2023-10-26T18:35:45Z | 2023-10-26T19:36:52Z | https://github.com/langchain-ai/langchain/issues/12358 | 1,964,138,560 | 12,358 |
[
"langchain-ai",
"langchain"
] | ### System Info
For this code:
from langchain import LLMMathChain, OpenAI, SerpAPIWrapper, SQLDatabase
from langchain_experimental.sql import SQLDatabaseChain
from langchain.agents import initialize_agent, Tool
from langchain.agents import AgentType
from langchain.chat_models import ChatOpenAI
from decouple im... | InvalidRequestError: This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to use v1/completions? | https://api.github.com/repos/langchain-ai/langchain/issues/12351/comments | 2 | 2023-10-26T16:32:02Z | 2024-02-06T16:12:46Z | https://github.com/langchain-ai/langchain/issues/12351 | 1,963,933,380 | 12,351 |
[
"langchain-ai",
"langchain"
] | ### Feature request
LangChain v0.0.323
Python 3.10.12
turbo-3.5
I use JsonKeyOutputFunctionsParser to parse JSON output:
```
extraction_functions = [convert_pydantic_to_openai_function(Information)]
extraction_model = llm.bind(functions=extraction_functions, function_call={"name": "Information"})
prompt ... | Fix rrror "Could not parse function call data" for JsonKeyOutputFunctionsParser (and other Json parsers) without additional LLM call | https://api.github.com/repos/langchain-ai/langchain/issues/12348/comments | 10 | 2023-10-26T15:34:55Z | 2024-02-14T16:08:49Z | https://github.com/langchain-ai/langchain/issues/12348 | 1,963,840,031 | 12,348 |
[
"langchain-ai",
"langchain"
] | ### Feature request
Currently, there's only a specific output type for the evaluate_strings function in langchain.
{
reasoning: "blah blah"
score: 0 or 1
value: "Y" or "N"
}
Ideally users should be able to override this with the type of request they would want.
### Motivation
It really ties you d... | Langchain evaluate_strings should allow custom output parsing | https://api.github.com/repos/langchain-ai/langchain/issues/12343/comments | 2 | 2023-10-26T14:54:17Z | 2024-02-08T16:13:25Z | https://github.com/langchain-ai/langchain/issues/12343 | 1,963,761,221 | 12,343 |
[
"langchain-ai",
"langchain"
] | ### System Info
aws
### 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
- [ ]... | i am trying to optimize the cost of SQLDatabaseToolkit calls | https://api.github.com/repos/langchain-ai/langchain/issues/12341/comments | 4 | 2023-10-26T14:49:05Z | 2024-02-10T16:09:37Z | https://github.com/langchain-ai/langchain/issues/12341 | 1,963,750,813 | 12,341 |
[
"langchain-ai",
"langchain"
] | ### System Info
I am developing an app utilizing the streaming functionality in Python 3.10. I've crafted my own generator and callback for this purpose. However, I've stumbled upon an issue when setting llm.streaming to true and utilizing a callback - the OpenAI tokenizer appears to malfunction, displaying a token co... | Issue with OpenAI tokenizer not functioning as expected in streaming mode | https://api.github.com/repos/langchain-ai/langchain/issues/12339/comments | 3 | 2023-10-26T13:26:24Z | 2024-04-23T17:02:28Z | https://github.com/langchain-ai/langchain/issues/12339 | 1,963,570,897 | 12,339 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
Since version `v0.0.299` `LangChain` depends on `anyio = "<4.0"`.
### Suggestion:
Could you please relax the `anyio` dependency to support a wider range of versions `<5.0` as `4.0.0` has been out since August? | Issue: Update `anyio` dependency | https://api.github.com/repos/langchain-ai/langchain/issues/12337/comments | 2 | 2023-10-26T12:48:24Z | 2024-02-06T16:13:01Z | https://github.com/langchain-ai/langchain/issues/12337 | 1,963,492,115 | 12,337 |
[
"langchain-ai",
"langchain"
] | ### System Info
langchain 0.0.275
Ubuntu 20.04.6 LTS
llama-2-7b-chat.ggmlv3.q4_0.bin
llama-cpp-python 0.1.78
I am getting a validation error when trying to use the document summary chain. It is giving an error "str type expected". I am passing Document objects to the model. I have checked the type of all page ... | load_summarize_chain ValidationError, str type expected | https://api.github.com/repos/langchain-ai/langchain/issues/12336/comments | 4 | 2023-10-26T12:47:28Z | 2024-02-10T16:09:42Z | https://github.com/langchain-ai/langchain/issues/12336 | 1,963,490,327 | 12,336 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
Hello Team,
I am trying to build a QA system with text files as its knowledge base. While creating embeddings I have provided different metadata tags to documents.
I want to use this metadata to filter documents before sending them to LLM to generate answer.
I am using as_retrie... | Unable to filter results in Neo4j Vectorstore.as_retriever() method using filter paramter in search_kwargs | https://api.github.com/repos/langchain-ai/langchain/issues/12335/comments | 11 | 2023-10-26T11:08:53Z | 2024-08-06T16:07:32Z | https://github.com/langchain-ai/langchain/issues/12335 | 1,963,275,005 | 12,335 |
[
"langchain-ai",
"langchain"
] | I am trying to use langserve with langchain llamacpp like this (chain.py):
```from flask import Flask, jsonify, request
from langchain.chains import RetrievalQA,ConversationalRetrievalChain
from langchain.embeddings import HuggingFaceInstructEmbeddings
from langchain.llms import LlamaCpp
from langchain.prompts i... | langserve with Llamacpp | https://api.github.com/repos/langchain-ai/langchain/issues/12441/comments | 11 | 2023-10-26T10:44:09Z | 2024-05-02T16:04:29Z | https://github.com/langchain-ai/langchain/issues/12441 | 1,966,025,938 | 12,441 |
[
"langchain-ai",
"langchain"
] | ### Need Route Name : Coming in console but not in output
I am using Router chain to route my chain with MultiPromptChain. It gets routed and shows in console to which route it went but it doesn't come in output variable. It just shows in console. I want that in a variable. I used every available method like return... | Issue: Can't get verbose output in a variable in python | https://api.github.com/repos/langchain-ai/langchain/issues/12330/comments | 4 | 2023-10-26T08:31:31Z | 2024-02-10T16:09:47Z | https://github.com/langchain-ai/langchain/issues/12330 | 1,962,991,552 | 12,330 |
[
"langchain-ai",
"langchain"
] | ### System Info
Mac os sonoma
### 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 Loa... | return_source documents does not work | https://api.github.com/repos/langchain-ai/langchain/issues/12329/comments | 4 | 2023-10-26T08:26:40Z | 2024-02-10T16:09:52Z | https://github.com/langchain-ai/langchain/issues/12329 | 1,962,983,060 | 12,329 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
I am using Langchain + Chroma to do a Q&A program with a csv document as its knowledge base.
The CSV file looks like below:
[![enter image description here][1]][1]
Here is the CSV file:
https://1drv.ms/u/s!Asflam6BEzhjgbkdegCGfZ7FI4O1Og?e=2X6ior
And code for creating embedding... | Issue: Similarity_search on Vector Store does not work. | https://api.github.com/repos/langchain-ai/langchain/issues/12326/comments | 12 | 2023-10-26T07:37:18Z | 2024-02-15T16:08:11Z | https://github.com/langchain-ai/langchain/issues/12326 | 1,962,901,400 | 12,326 |
[
"langchain-ai",
"langchain"
] | ### System Info
GPT-4 can now read images. How to combine images and text in PDF or WORD when calling the API?
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prom... | GPT-4 reads the images | https://api.github.com/repos/langchain-ai/langchain/issues/12323/comments | 3 | 2023-10-26T06:38:05Z | 2024-02-10T16:10:02Z | https://github.com/langchain-ai/langchain/issues/12323 | 1,962,808,683 | 12,323 |
[
"langchain-ai",
"langchain"
] | I defined a custom LLM and a custom search, and used the agent for testing, but I found some problems in parsing the llm response, which was prone to result parsing errors after multiple rounds of dialogue. I suspect that there is something wrong with the stop logic of the custom llm, please help me analyze it.
```
... | How do I define the stop logic for a custom llm in agent | https://api.github.com/repos/langchain-ai/langchain/issues/12322/comments | 2 | 2023-10-26T06:35:00Z | 2024-02-06T16:13:26Z | https://github.com/langchain-ai/langchain/issues/12322 | 1,962,804,701 | 12,322 |
[
"langchain-ai",
"langchain"
] | ### System Info
langchain version: 0.0320
python version: 3.10
### 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
- [ ]... | Conversation Buffer Memory clear histroy | https://api.github.com/repos/langchain-ai/langchain/issues/12319/comments | 2 | 2023-10-26T04:56:32Z | 2024-02-06T16:13:31Z | https://github.com/langchain-ai/langchain/issues/12319 | 1,962,704,317 | 12,319 |
[
"langchain-ai",
"langchain"
] | ### System Info
latest langchain code AzureSearch at langchain/libs/langchain/langchain/vectorstores/azuresearch.py:
semantic_hybrid_search_with_score function, when returning search result, the score should be @search.rerankerScore, not @search.score for hybrid semantic search, according to the latest Azure Doc here... | should be @search.rerankerScore, not @search.score for hybrid semantic search (Azure Cognitive Search) | https://api.github.com/repos/langchain-ai/langchain/issues/12317/comments | 2 | 2023-10-26T04:00:06Z | 2024-02-06T16:13:36Z | https://github.com/langchain-ai/langchain/issues/12317 | 1,962,658,507 | 12,317 |
[
"langchain-ai",
"langchain"
] | ### System Info
I got different embedding results using OpenAIEmbeddings and the original openai library. Besides the embeddings from both OpenAIEmbeddings and openai change from time to time. Sometimes it returns the same results but sometimes it returns differently , especially after I exceeds the time limit.
I a... | OpenAIEmbeddings vector different from the openai library and changes from time to time | https://api.github.com/repos/langchain-ai/langchain/issues/12314/comments | 4 | 2023-10-26T02:45:52Z | 2024-07-11T01:57:06Z | https://github.com/langchain-ai/langchain/issues/12314 | 1,962,600,617 | 12,314 |
[
"langchain-ai",
"langchain"
] | ### Feature request
The langchain API integration Elevenlabs should accomodate the very important parameter `voice`.
### Motivation
Without the voice parameter, the Elevenlabs langchain integration is unusable because `play()` switches the voice randomly with every execution.
### Your contribution
I tracked do... | Elevenlabs-langchain API should integrate very important parameter 'voice' | https://api.github.com/repos/langchain-ai/langchain/issues/12312/comments | 5 | 2023-10-26T02:08:00Z | 2024-05-21T16:41:13Z | https://github.com/langchain-ai/langchain/issues/12312 | 1,962,571,837 | 12,312 |
[
"langchain-ai",
"langchain"
] | ### System Info
python=`3.11`
langchain=`0.0.314`
pydantic=`2.3.0`
pydantic_core=`2.6.3`
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [x] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompt... | AttributeError: 'CustomTool' object has no attribute 'fields_set' | https://api.github.com/repos/langchain-ai/langchain/issues/12304/comments | 6 | 2023-10-25T21:55:37Z | 2023-11-25T18:37:22Z | https://github.com/langchain-ai/langchain/issues/12304 | 1,962,296,260 | 12,304 |
[
"langchain-ai",
"langchain"
] | ### System Info
I start a jupyter notebook with
```python
file = 'OutdoorClothingCatalog_1000.csv'
loader = CSVLoader(file_path=file)
from langchain.indexes import VectorstoreIndexCreator
index = VectorstoreIndexCreator(
vectorstore_cls=DocArrayInMemorySearch
).from_loaders([loader])
query ="Please... | Error querying DocArrayInMemorySearch | https://api.github.com/repos/langchain-ai/langchain/issues/12302/comments | 8 | 2023-10-25T20:49:36Z | 2024-05-05T06:11:00Z | https://github.com/langchain-ai/langchain/issues/12302 | 1,962,205,964 | 12,302 |
[
"langchain-ai",
"langchain"
] | ### System Info
Langchain version == 0.0.323
python == 3.10
```
I have a simple code to query a postgres DB:
from langchain.llms import Bedrock
from langchain_experimental.sql import SQLDatabaseChain
db = SQLDatabase.from_uri(database_uri="postgresql://xxx:yyy:zzzzz")
llm = Bedrock(
credentials_pro... | SQLDatabaseChain Error | https://api.github.com/repos/langchain-ai/langchain/issues/12295/comments | 2 | 2023-10-25T18:56:26Z | 2024-02-28T16:08:30Z | https://github.com/langchain-ai/langchain/issues/12295 | 1,962,036,029 | 12,295 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
Terminal Output:
> Entering new SQLDatabaseChain chain...
how many tracks have pop genre?
SQLQuery:SELECT COUNT(*) FROM tracks WHERE "GenreId" = 3 LIMIT 5;
SQLResult: [(374,)]
Answer:374 tracks have pop genre.
> Finished chain.
How do I access and print the SQLQuery, SQLResult i... | Not able to print verbose result in interface. | https://api.github.com/repos/langchain-ai/langchain/issues/12290/comments | 4 | 2023-10-25T18:17:54Z | 2024-02-10T16:10:12Z | https://github.com/langchain-ai/langchain/issues/12290 | 1,961,978,458 | 12,290 |
[
"langchain-ai",
"langchain"
] | ### Issue with current documentation:
How can I use csv_agent with langchain-experimental being that importing csv_agent from langchain.agents now produces this error:
On 2023-10-27 this module will be be deprecated from langchain, and will be available from the langchain-experimental package.This code is already a... | langchain-experimental csv_agent how to? | https://api.github.com/repos/langchain-ai/langchain/issues/12287/comments | 2 | 2023-10-25T17:41:30Z | 2024-02-14T16:08:58Z | https://github.com/langchain-ai/langchain/issues/12287 | 1,961,919,942 | 12,287 |
[
"langchain-ai",
"langchain"
] | ### Issue with current documentation:
There is an error in the code. [link](https://python.langchain.com/docs/use_cases/summarization#splitting-and-summarizing-in-a-single-chain)
```
from langchain.chains import AnalyzeDocumentChain
summarize_document_chain = AnalyzeDocumentChain(combine_docs_chain=chain, text_... | DOC: Error in code for splitting and summarizing in a single chain | https://api.github.com/repos/langchain-ai/langchain/issues/12280/comments | 3 | 2023-10-25T15:56:28Z | 2024-02-10T16:10:22Z | https://github.com/langchain-ai/langchain/issues/12280 | 1,961,752,705 | 12,280 |
[
"langchain-ai",
"langchain"
] | ### System Info
Langchain JS 0.0.172 on DEbian Linux 12 using Nodejs 18.15.0
With the following code I don't get the tokenUsage back from the chain/ call. I checked the docs, asked the AI and did a google search. Am I doing anything wrong?
`const chain = RetrievalQAChain.fromLLM(
model,
vectorStore.asRetri... | Langchain js - can't get token usage | https://api.github.com/repos/langchain-ai/langchain/issues/12279/comments | 4 | 2023-10-25T15:54:36Z | 2024-02-10T16:10:27Z | https://github.com/langchain-ai/langchain/issues/12279 | 1,961,749,463 | 12,279 |
[
"langchain-ai",
"langchain"
] | ### System Info
System:
LangChain 0.0.321
Python 3.10
I'm trying to build a MultiRetrievalQAChain using only Llama2 chat models served by vLLM (no OpenAI). For that end I have created a ConversationChain that acts as the default chain for the MultiRetrievalQAChain. I have customized the prompts for both chains to... | LLM (chain) output parsing in MultiRetrievalQAChain: OutputParserException Got invalid JSON object | https://api.github.com/repos/langchain-ai/langchain/issues/12276/comments | 2 | 2023-10-25T15:07:03Z | 2024-02-06T16:14:01Z | https://github.com/langchain-ai/langchain/issues/12276 | 1,961,655,309 | 12,276 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
Unlike other PDF loaders, I've found that only the PDFMinerLoader doesn't provide pages in metadata when loading. Digging deeper, the PDFMinerParser only gives the page metadata when extract_images=True. I wonder if this was intentional.
### Suggestion:
#12277 | Issue: `PDFMinerLoader` not gives `page` metadata when loading with `extract_images=False` - is it intended? | https://api.github.com/repos/langchain-ai/langchain/issues/12273/comments | 2 | 2023-10-25T14:48:30Z | 2023-11-02T05:03:37Z | https://github.com/langchain-ai/langchain/issues/12273 | 1,961,611,644 | 12,273 |
[
"langchain-ai",
"langchain"
] | ### System Info
langchain version: 0.0320
python version: 3.10
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ]... | User based memorization with ConversationBufferMemory and CombinedMemory | https://api.github.com/repos/langchain-ai/langchain/issues/12272/comments | 2 | 2023-10-25T14:45:46Z | 2024-02-06T16:14:06Z | https://github.com/langchain-ai/langchain/issues/12272 | 1,961,606,028 | 12,272 |
[
"langchain-ai",
"langchain"
] | ### System Info
Langchain == 0.0.320
Following step by step procedures used in actual codebase followed by error message
```
llm = ChatOpenAI(openai_api_key=openai_api_key, model_name=engine)
```
```
db = Chroma(
collection_name=f'collection_1233',
embedding_function=OpenAIEmbed... | ConversationalRetrievalChain doesn't work with ConversationEntityMemory + SQLiteEntityStore | https://api.github.com/repos/langchain-ai/langchain/issues/12266/comments | 3 | 2023-10-25T12:34:48Z | 2023-10-25T14:50:34Z | https://github.com/langchain-ai/langchain/issues/12266 | 1,961,319,260 | 12,266 |
[
"langchain-ai",
"langchain"
] | ### Feature request
Langchain is currently using Pydantic V1, and I believe it would be good to upgrade this to V2
### Motivation
V2 is far more performant than V1 because of the python-rust binding
### Your contribution
I can create a PR here. | Upgrade to Pydantic V2 | https://api.github.com/repos/langchain-ai/langchain/issues/12265/comments | 11 | 2023-10-25T12:28:55Z | 2024-02-15T16:08:15Z | https://github.com/langchain-ai/langchain/issues/12265 | 1,961,308,651 | 12,265 |
[
"langchain-ai",
"langchain"
] | ### System Info
I've been using the conversation chain to retrieve answers from gpt3.5, vertex ai chat-bison. For the user's memory I've been passing the session memory appended to the conversation chain. But once the token limit exceeds I'm getting this following error from the llm
`[chain/error] [1:chain:LLMChai... | Token limitation due to model's maximum context length | https://api.github.com/repos/langchain-ai/langchain/issues/12264/comments | 2 | 2023-10-25T11:34:43Z | 2024-02-06T16:14:11Z | https://github.com/langchain-ai/langchain/issues/12264 | 1,961,177,348 | 12,264 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
`ConversationalRetrievalChain` returns sources to questions without relevant documents. The returned sources are not related to the question or the answer.
Example with relevant document:
```
chain = ConversationalRetrievalChain(
retriever=vectorstore.as_retriever(),
que... | ConversationalRetrievalChain returns sources to questions without context | https://api.github.com/repos/langchain-ai/langchain/issues/12263/comments | 1 | 2023-10-25T11:25:40Z | 2024-07-04T12:48:23Z | https://github.com/langchain-ai/langchain/issues/12263 | 1,961,161,745 | 12,263 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
I am getting below error while trying to use Azure Cosmos DB as vector store.
**_No module named 'langchain.vectorstores.azure_cosmos_db_vector_search'_**
### Suggestion:
_No response_ | Issue: No module named 'langchain.vectorstores.azure_cosmos_db_vector_search' | https://api.github.com/repos/langchain-ai/langchain/issues/12262/comments | 2 | 2023-10-25T10:51:32Z | 2024-02-08T16:14:20Z | https://github.com/langchain-ai/langchain/issues/12262 | 1,961,103,330 | 12,262 |
[
"langchain-ai",
"langchain"
] | ### System Info
Python 3.11.4
LangChain 0.0.321
Platform info (WSL2):
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Relat... | InvalidRequestError: Unrecognized request argument supplied: functions | https://api.github.com/repos/langchain-ai/langchain/issues/12260/comments | 2 | 2023-10-25T09:45:12Z | 2023-10-25T14:30:45Z | https://github.com/langchain-ai/langchain/issues/12260 | 1,960,983,120 | 12,260 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
I am currently using a chain with the following components:
FewshotPrompt ( with SemanticSimilarityExampleSelector) -> LLM -> Outputparser
By default, this will give me the parsed text output of my LLM.
For my purposes, I would need the output of this chain to include all intermedi... | Returning detailed results of intermediate components | https://api.github.com/repos/langchain-ai/langchain/issues/12257/comments | 4 | 2023-10-25T09:11:34Z | 2024-05-13T16:08:37Z | https://github.com/langchain-ai/langchain/issues/12257 | 1,960,921,158 | 12,257 |
[
"langchain-ai",
"langchain"
] | ### System Info
How i can implement user based memorization please can provide a link for refrence
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt... | User based memorization | https://api.github.com/repos/langchain-ai/langchain/issues/12254/comments | 4 | 2023-10-25T07:15:18Z | 2024-02-10T16:10:37Z | https://github.com/langchain-ai/langchain/issues/12254 | 1,960,713,093 | 12,254 |
[
"langchain-ai",
"langchain"
] | ### System Info
1
I have been working with LangChain for some time, and after updating my LangChain module to version 0.0.295 or higher, my Vertex AI models throw an error in my application. The error is
File "E:\Office\2023\AI-Platform\kaya-aia-general-bot\venv\Lib\site-packages\langchain\llms\vertexai.py", l... | Vertex AI Models Throws AttributeError: After Langchain 0.0295 Version | https://api.github.com/repos/langchain-ai/langchain/issues/12250/comments | 2 | 2023-10-25T04:55:22Z | 2024-02-09T16:12:48Z | https://github.com/langchain-ai/langchain/issues/12250 | 1,960,535,933 | 12,250 |
[
"langchain-ai",
"langchain"
] | ### System Info
Under doctran_text_extract.py, DoctranPropertyExtractor class. The methods for the class contains errors.
The first method transform_documents() does not have any operations and simply returns a NotImplementedError. This method should be working and implemented, with the following code:
```
def... | Integration Doctran: DoctranPropertyExtractor class methods transform_documents() and atransform_documents() error | https://api.github.com/repos/langchain-ai/langchain/issues/12249/comments | 2 | 2023-10-25T03:58:43Z | 2024-02-06T16:14:31Z | https://github.com/langchain-ai/langchain/issues/12249 | 1,960,484,085 | 12,249 |
[
"langchain-ai",
"langchain"
] | ### Feature request
Currently the `TelegramChatAPILoader` returns the Date, Sender, and Text of each message. Adding the URL of each message would very helpful for a Natural Language Search Engine for a large Channel.
SOURCE: `langchain.document_loaders.telegram`
### Motivation
We are building a Natural La... | Add URL's to the output of TelegramChatAPILoader 🙏 | https://api.github.com/repos/langchain-ai/langchain/issues/12246/comments | 1 | 2023-10-25T02:22:45Z | 2024-02-06T16:14:36Z | https://github.com/langchain-ai/langchain/issues/12246 | 1,960,397,303 | 12,246 |
[
"langchain-ai",
"langchain"
] | ### System Info
langchain in /opt/conda/lib/python3.11/site-packages (0.0.322)
Python 3.11.6
installed on
image: jupyter/datascience-notebook
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Ch... | retriever.get_relevant_documents | https://api.github.com/repos/langchain-ai/langchain/issues/12244/comments | 4 | 2023-10-25T00:47:28Z | 2023-10-25T23:49:14Z | https://github.com/langchain-ai/langchain/issues/12244 | 1,960,309,220 | 12,244 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
Using langchain on AWS lambda function to call an AWS OpenSearch Serverless vector index. I did not file as a bug, as I suspect that this is a usage problem, but it might be a bug.
I have built an OpenSearch vector index, using AWS OpenSearch Serverless, and are using it to perform v... | Issue: Problems getting filtering to work with langchain, OpenSearchVectorSearch, similarity_search_with_score | https://api.github.com/repos/langchain-ai/langchain/issues/12240/comments | 16 | 2023-10-24T23:46:34Z | 2024-03-14T00:47:50Z | https://github.com/langchain-ai/langchain/issues/12240 | 1,960,264,037 | 12,240 |
[
"langchain-ai",
"langchain"
] | ### System Info
n/a
### Who can help?
@hwchase17
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [X] Output Parsers
- [ ] Document Loaders
- [ ] V... | `StructuredOutputParser.get_format_instructions` missing commas | https://api.github.com/repos/langchain-ai/langchain/issues/12239/comments | 3 | 2023-10-24T23:31:54Z | 2024-05-07T16:06:18Z | https://github.com/langchain-ai/langchain/issues/12239 | 1,960,253,141 | 12,239 |
[
"langchain-ai",
"langchain"
] | ### System Info
https://github.com/langchain-ai/langchain/tree/d2cb95c39d5569019ab3c6aa368aa937d8dcc465
(just above `v0.0.322`)
MacBook Pro, M1 chip, macOS Ventura 13.5.2
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
###... | ModuleNotFoundError: No module named 'rapidfuzz' | https://api.github.com/repos/langchain-ai/langchain/issues/12237/comments | 12 | 2023-10-24T23:05:16Z | 2024-07-18T16:07:14Z | https://github.com/langchain-ai/langchain/issues/12237 | 1,960,229,561 | 12,237 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
Hi, I was wondering if there is a mechanism that I can only use the ConversationSummaryMemory in a chain as the context of a conversation. After the chain is completed, I can retain the old memory without adding the new conversation to it.
### Suggestion:
_No response_ | Issue: can I only use ConversationSummaryMemory in a chain as context without renew it | https://api.github.com/repos/langchain-ai/langchain/issues/12227/comments | 2 | 2023-10-24T20:43:18Z | 2024-02-08T16:14:36Z | https://github.com/langchain-ai/langchain/issues/12227 | 1,960,043,531 | 12,227 |
[
"langchain-ai",
"langchain"
] | ### System Info
aws
### 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
- [ ] Do... | I encountered an issue with SQLDatabaseToolkit where I couldn't configure it to execute multiple SQL queries based on the previously retrieved value from a column in the initial query | https://api.github.com/repos/langchain-ai/langchain/issues/12222/comments | 2 | 2023-10-24T19:13:22Z | 2024-02-06T16:14:46Z | https://github.com/langchain-ai/langchain/issues/12222 | 1,959,912,928 | 12,222 |
[
"langchain-ai",
"langchain"
] | ### System Info
Langchain HEAD
### Who can help?
@hwchase17 @ag
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document L... | OPENAI_API_KEY_PATH is not supported | https://api.github.com/repos/langchain-ai/langchain/issues/12218/comments | 2 | 2023-10-24T17:34:43Z | 2024-02-08T16:14:40Z | https://github.com/langchain-ai/langchain/issues/12218 | 1,959,747,839 | 12,218 |
[
"langchain-ai",
"langchain"
] | ### System Info
Hi!
I have been trying to create a router chain which will route to StuffDocumentsChains.
It seems that default output_key for BaseCombineDocumentsChain is output_text instead of 'text' like in typical chains.
```py
class BaseCombineDocumentsChain(Chain, ABC):
"""Base interface for chains... | Router + BaseCombineDocumentsChain output_key | https://api.github.com/repos/langchain-ai/langchain/issues/12206/comments | 2 | 2023-10-24T14:38:00Z | 2024-02-06T16:14:56Z | https://github.com/langchain-ai/langchain/issues/12206 | 1,959,412,927 | 12,206 |
[
"langchain-ai",
"langchain"
] | ### Feature request
Is it possible to support scenarios for using `RetryWithErrorOutputParser` when prompt is injected in a chain or a summary memory so this prompt is not directly formatted?
### Motivation
I am trying to support complex prompts, multi-chain and combined memory scenarios causing errors regularly whe... | RetryWithErrorOutputParser for chains and summary memory | https://api.github.com/repos/langchain-ai/langchain/issues/12205/comments | 2 | 2023-10-24T14:24:02Z | 2024-02-08T16:14:46Z | https://github.com/langchain-ai/langchain/issues/12205 | 1,959,382,324 | 12,205 |
[
"langchain-ai",
"langchain"
] | ### System Info
Here is a native python llama cpp example
```
"""
Ask to generate 4 questions related to a given content
"""
from llama_cpp import Llama
mpath="/home/mac/llama-2-7b-32k-instruct.Q5_K_S.gguf"
# define n_ctx manually to permit larger contexts
LLM = Llama(model_path=mpath, n_ctx=512,verbose=Fa... | Unable to use LlamCpp from langchain | https://api.github.com/repos/langchain-ai/langchain/issues/12203/comments | 3 | 2023-10-24T14:21:08Z | 2024-02-09T16:12:53Z | https://github.com/langchain-ai/langchain/issues/12203 | 1,959,375,762 | 12,203 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
The `publish_date` field returned in the metadata seems unreliable and is very often empty for many news sites. The publish date can easily be parsed directly from the RSS feed from the `pubDate` tag which, although optional, is pretty standard and is much more reliable than trying to ... | Issue: RSSFeedLoader unreliable publish date | https://api.github.com/repos/langchain-ai/langchain/issues/12202/comments | 2 | 2023-10-24T14:16:40Z | 2024-02-06T16:15:11Z | https://github.com/langchain-ai/langchain/issues/12202 | 1,959,365,429 | 12,202 |
[
"langchain-ai",
"langchain"
] | @dosu-bot
I have 3 issues I need your help with and to fix the code:
1) My code is not remembering previous questions despite using ConversationBufferMemory
2) Not Returning Source Documents
3) When I ask it a question the first time, it writes the answer only but if I ask it any other time afterwards, it alway... | LangChain memory, not returning source doc, repeating question | https://api.github.com/repos/langchain-ai/langchain/issues/12199/comments | 6 | 2023-10-24T11:06:32Z | 2024-05-15T16:06:17Z | https://github.com/langchain-ai/langchain/issues/12199 | 1,959,011,802 | 12,199 |
[
"langchain-ai",
"langchain"
] | ### System Info
langchain==0.0.320
Ubuntu 20.04
Python 3.11.5
### Who can help?
@SuperJokerayo @baskaryan
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Tem... | Error reshaping array in _extract_images_from_page() in pdf.py | https://api.github.com/repos/langchain-ai/langchain/issues/12196/comments | 5 | 2023-10-24T10:05:32Z | 2024-04-27T16:34:18Z | https://github.com/langchain-ai/langchain/issues/12196 | 1,958,920,258 | 12,196 |
[
"langchain-ai",
"langchain"
] | ### Feature request
I have only seen this "[Zero-shot ReAct](https://python.langchain.com/docs/modules/agents/agent_types/react)"
### Motivation
able to provide examples to agent, to understand how these tools area used, in what order
### Your contribution
nothing yet | Is there a few shots agent exists? | https://api.github.com/repos/langchain-ai/langchain/issues/12194/comments | 2 | 2023-10-24T09:32:52Z | 2024-02-06T16:15:21Z | https://github.com/langchain-ai/langchain/issues/12194 | 1,958,865,532 | 12,194 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
Let's say you have a PDF file, an Excel file, and a PowerPoint file all indexed into a pinecone database, they are similar in that, a query can have information relevant in all sources, but now we want the user to indicate which source should be considered first when they ask a question,... | Issue: Prioritze sources in the vector store to consider certain sources first | https://api.github.com/repos/langchain-ai/langchain/issues/12192/comments | 2 | 2023-10-24T09:09:10Z | 2024-02-06T16:15:26Z | https://github.com/langchain-ai/langchain/issues/12192 | 1,958,826,438 | 12,192 |
[
"langchain-ai",
"langchain"
] | ### Feature request
I want to add a config chain prior to the ConversationalRetrievalChain that is going to process the query and set the retriever's search kwargs ( k, fetch_k, lambda_mult ) depending on the question, how can I do that and pass the parameters from the config chain output
### Motivation
The motivati... | Add a config chain before the ConversationalRetrievalChain : search Kwargs | https://api.github.com/repos/langchain-ai/langchain/issues/12189/comments | 5 | 2023-10-24T08:36:14Z | 2024-03-27T13:44:00Z | https://github.com/langchain-ai/langchain/issues/12189 | 1,958,773,387 | 12,189 |
[
"langchain-ai",
"langchain"
] | ### System Info
Python 3.11.4
LangChain 0.0.321
Platform info (WSL2):
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Relat... | KeyError: 'tool_names' | https://api.github.com/repos/langchain-ai/langchain/issues/12186/comments | 6 | 2023-10-24T06:44:44Z | 2024-02-12T16:10:25Z | https://github.com/langchain-ai/langchain/issues/12186 | 1,958,617,422 | 12,186 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
I am trying to add retriever tool to SQL Database Toolkit and run SQL Agent with Vertex AI Text Bison LLM, however I am facing error.
I am following below documentation for implementation
[https://python.langchain.com/docs/use_cases/qa_structured/sql?ref=blog.langchain.dev#case-3-sql... | Retriever Tool for Vertex AI Model | https://api.github.com/repos/langchain-ai/langchain/issues/12185/comments | 2 | 2023-10-24T05:35:24Z | 2024-02-06T16:15:41Z | https://github.com/langchain-ai/langchain/issues/12185 | 1,958,553,638 | 12,185 |
[
"langchain-ai",
"langchain"
] | ### System Info
System:
langchain 0.0.321
Python 3.10
Hi,
I get an error related to a missing OpenAI token when trying to reuse the code to [dynamically select from multiple retrievers](https://python.langchain.com/docs/use_cases/question_answering/multi_retrieval_qa_router) at the MultiRetrievalQAChain init... | multi_retrieval_qa.py hardwires ChatOpenAI() at the _default_chain | https://api.github.com/repos/langchain-ai/langchain/issues/12184/comments | 6 | 2023-10-24T04:17:28Z | 2023-10-26T09:09:59Z | https://github.com/langchain-ai/langchain/issues/12184 | 1,958,479,132 | 12,184 |
[
"langchain-ai",
"langchain"
] | ### System Info
python=3.10
langchain=0.0.320
### Who can help?
@hwchase17
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [X] Output Parsers
- [ ... | Bug when using OPENAI_FUNCTIONS agent | https://api.github.com/repos/langchain-ai/langchain/issues/12183/comments | 2 | 2023-10-24T03:10:22Z | 2024-04-01T16:05:25Z | https://github.com/langchain-ai/langchain/issues/12183 | 1,958,394,412 | 12,183 |
[
"langchain-ai",
"langchain"
] | ### System Info
Python Version: Python 3.10.4
Langchain Version: 0.0.320
OS: Ubuntu 18.04
### Who can help?
@hwchase17
@agola11
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ]... | JSONDecodeError on Cookbook/Semi_structured_multi_mudal_RAG_LLaMA2.ipynb | https://api.github.com/repos/langchain-ai/langchain/issues/12180/comments | 7 | 2023-10-24T02:23:12Z | 2024-01-22T19:18:52Z | https://github.com/langchain-ai/langchain/issues/12180 | 1,958,354,853 | 12,180 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
Hello Team,
We have a metadata field in our opensearch index which I would like use to filter the passages before sending it to LLM to generate the answer. Tried many options suggested in chat.langchain.com but none of them seems to work.
Here is an example:
I have an user with asso... | Issue: <Not able to filter OpenSearch vectorstore using Filter in search_kwargs> | https://api.github.com/repos/langchain-ai/langchain/issues/12179/comments | 2 | 2023-10-24T01:09:55Z | 2024-02-07T16:15:18Z | https://github.com/langchain-ai/langchain/issues/12179 | 1,958,283,958 | 12,179 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
when i try and run this script
```
class WebsiteSummary:
def _SummorizeWebsite(objective, websiteContent):
my_gpt_instance = MyGPT4ALL()
textSplitter = RecursiveCharacterTextSplitter(
separators=["\n\n", "\n"], chunk_size=10000, chunk_ove... | value is not a valid dict (type=type_error.dict) | https://api.github.com/repos/langchain-ai/langchain/issues/12176/comments | 1 | 2023-10-23T23:15:43Z | 2023-10-29T13:51:16Z | https://github.com/langchain-ai/langchain/issues/12176 | 1,958,182,263 | 12,176 |
[
"langchain-ai",
"langchain"
] | ### Feature request
Is there a way to integrate `RetryOutputParser` with `ConversationalRetrievalChain`? Specifically, if I use OpenAI's function calling to generate the response in a specific format, the LLM model does not always follow the instructions and then it would fail the Pydantic model validation.
Therefo... | Integrate RetryOutputParser with ConversationalRetrievalChain | https://api.github.com/repos/langchain-ai/langchain/issues/12175/comments | 8 | 2023-10-23T21:40:52Z | 2024-02-14T16:09:08Z | https://github.com/langchain-ai/langchain/issues/12175 | 1,958,069,230 | 12,175 |
[
"langchain-ai",
"langchain"
] | ### Feature request
The idea is simple. When using various models users have rate limits, both in requests per min/hour and Tokens. When using the raw OpenAI SDK I used the code below. It just uses the "usage" metrics provided in the response (as of now I dont know how to retrieve a 'raw response' when utilizing langc... | Token Usage Management System | https://api.github.com/repos/langchain-ai/langchain/issues/12172/comments | 3 | 2023-10-23T20:36:34Z | 2024-03-11T11:55:29Z | https://github.com/langchain-ai/langchain/issues/12172 | 1,957,982,299 | 12,172 |
[
"langchain-ai",
"langchain"
] | ### System Info
I am trying to setup the local development environment with `poetry install --with test` but I am running into the error `Group(s) not found: test (via --with)`
```
> origin/master:master via 🐍 v3.11.6
> 57% langchain ❯ poetry install --with test
Group(s) not found: test (via --with)
```
C... | `poetry install --with test`: Group(s) not found: test (via --with) | https://api.github.com/repos/langchain-ai/langchain/issues/12170/comments | 3 | 2023-10-23T19:28:02Z | 2023-10-23T19:46:02Z | https://github.com/langchain-ai/langchain/issues/12170 | 1,957,880,716 | 12,170 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
How can I see the context that was used to answer a specific question?
from langchain.memory import ConversationBufferWindowMemory
memory = ConversationBufferWindowMemory(k=3, memory_key="chat_history", return_messages=True)
qa = ConversationalRetrievalChain.from_llm(llm_model,... | Issue: View context used in query in ConversationalRetrievalChain | https://api.github.com/repos/langchain-ai/langchain/issues/12167/comments | 3 | 2023-10-23T18:10:39Z | 2024-02-10T16:10:57Z | https://github.com/langchain-ai/langchain/issues/12167 | 1,957,733,689 | 12,167 |
[
"langchain-ai",
"langchain"
] | ### System Info
make lint errors
```
make lint
./scripts/check_pydantic.sh .
./scripts/check_imports.sh
poetry run ruff .
[ "." = "" ] || poetry run black . --check
All done! ✨ 🍰 ✨
1866 files would be left unchanged.
[ "." = "" ] || poetry run mypy .
langchain/document_loaders/parsers/pdf.py:95: error: "P... | mypy linting error in PyPDFParser with pypdf 3.16.4 | https://api.github.com/repos/langchain-ai/langchain/issues/12166/comments | 4 | 2023-10-23T17:34:36Z | 2024-02-01T13:46:22Z | https://github.com/langchain-ai/langchain/issues/12166 | 1,957,670,819 | 12,166 |
[
"langchain-ai",
"langchain"
] | Updated: 20233-12-06
Hello everyone! thank you all for your contributions! We've made a lot of progress with SecretStrs in the code base.
First time contributors -- hope you had fun learning how to work in the code base and thanks for putting in the time. All contributors -- thanks for all your efforts in improv... | For New Contributors: Use SecretStr for api_keys | https://api.github.com/repos/langchain-ai/langchain/issues/12165/comments | 56 | 2023-10-23T17:29:51Z | 2024-01-07T21:13:38Z | https://github.com/langchain-ai/langchain/issues/12165 | 1,957,660,279 | 12,165 |
[
"langchain-ai",
"langchain"
] | ### Issue you'd like to raise.
Hello team!
I am new to the OpenAPI Specs Toolkit. I am trying to build an OpenAPI Agent Planner for the Microsoft Graph API. The OpenAPI specs can be found here: https://github.com/microsoftgraph/msgraph-metadata/blob/master/openapi/v1.0/openapi.yaml . I downloaded the YAML file and... | OpenAPI Spec - reduce_openapi_spec - maximum recursion depth exceeded | https://api.github.com/repos/langchain-ai/langchain/issues/12163/comments | 6 | 2023-10-23T16:23:35Z | 2024-06-12T16:07:06Z | https://github.com/langchain-ai/langchain/issues/12163 | 1,957,544,509 | 12,163 |
[
"langchain-ai",
"langchain"
] | There's an issue when using JsonSpec that it can't handle the case where it indexes a list with `0` because in [line 52](https://github.com/langchain-ai/langchain/blob/d0505c0d4755d8cbe62a8ddee68f53a5cb330892/libs/langchain/langchain/tools/json/tool.py#L52) it checks `if i` and since `i==0` it returns `False`.
Inst... | JsonSpec `keys` method doesn't handle indexing lists properly | https://api.github.com/repos/langchain-ai/langchain/issues/12160/comments | 1 | 2023-10-23T15:41:45Z | 2024-02-06T16:16:01Z | https://github.com/langchain-ai/langchain/issues/12160 | 1,957,467,852 | 12,160 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.