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
[ "hwchase17", "langchain" ]
### Feature request Parses the first triple backtick fenced block of code in the output. ### Motivation I think forcing the model to answer immediately on zero shot is more challanging than allowing it to talk out loud before beginning. The first code block is usually the answer i'm llooking for with 3.5-turbo ### ...
CodeBlockOutputParser
https://api.github.com/repos/langchain-ai/langchain/issues/4254/comments
2
2023-05-07T05:00:55Z
2023-09-10T16:21:30Z
https://github.com/langchain-ai/langchain/issues/4254
1,698,893,729
4,254
[ "hwchase17", "langchain" ]
### Feature request Pases the output from one parser into the input of another ### Motivation Useful when coupling a `RemoveQuotesOutputParser` (#4252), the primary output parser, and a `Retry/RetryWithErrorOutputParser` ### Your contribution Implemented `ChainedOutputParser` Details in PR
ChainedOutputParser
https://api.github.com/repos/langchain-ai/langchain/issues/4253/comments
2
2023-05-07T04:57:10Z
2023-09-10T16:21:34Z
https://github.com/langchain-ai/langchain/issues/4253
1,698,892,646
4,253
[ "hwchase17", "langchain" ]
### Feature request OutputParser for removing quotes from the input ### Motivation Sometimes we end up using quotes to identify our examples. In these cases, the LLM usually assumes it should also surround its output with quotes. This output parser removes those quotes ### Your contribution Implemented `RemoveQuot...
RemoveQuotesOutputParser
https://api.github.com/repos/langchain-ai/langchain/issues/4252/comments
2
2023-05-07T04:55:52Z
2023-09-10T16:21:39Z
https://github.com/langchain-ai/langchain/issues/4252
1,698,892,182
4,252
[ "hwchase17", "langchain" ]
### Feature request Provide facades for wrapping any `BaseChatModel` into an `LLM` interface and wrapping any `BaseLanguageModel` into a `BaseChatModel` interface. ### Motivation This dramatically simplifies the process of supporting both chat models and language models in the same chain ### Your contribution I ha...
LLMFacade and ChatModelFacade
https://api.github.com/repos/langchain-ai/langchain/issues/4251/comments
2
2023-05-07T04:52:35Z
2023-05-16T01:28:58Z
https://github.com/langchain-ai/langchain/issues/4251
1,698,891,353
4,251
[ "hwchase17", "langchain" ]
### Feature request The concise API provides many one-liners for common use cases ### Motivation - Many devs are too busy to learn langchain's abstractions and paradigms - Many devs just want concise, ready-to-go LLM tools https://twitter.com/abacaj/status/1654573048912048130?s=20 ### Your contribution I have imp...
Concise API
https://api.github.com/repos/langchain-ai/langchain/issues/4250/comments
9
2023-05-07T04:46:58Z
2023-11-27T16:34:39Z
https://github.com/langchain-ai/langchain/issues/4250
1,698,890,051
4,250
[ "hwchase17", "langchain" ]
### Feature request As mentioned in title above, I hope LangChain could add a function to get the vector data saved in the vector database such as deeplake. Refer to 9:28 of this video: https://youtu.be/qaPMdcCqtWk, this tutorial asked us to get the vector data and do the Kmeans clustering to find which topic is ...
Function to retrieve the embedding data (in vector form) from vector databases such as deeplake
https://api.github.com/repos/langchain-ai/langchain/issues/4249/comments
1
2023-05-07T03:49:45Z
2023-09-10T16:21:44Z
https://github.com/langchain-ai/langchain/issues/4249
1,698,876,373
4,249
[ "hwchase17", "langchain" ]
### Issue you'd like to raise. When using Azure OpenAI deployments and Langchain Agents, the responses contain stop sequence '<|im_end|>'. This is affecting subsequent prompts and chains. Is there a way to ignore this token from responses? Example: ``` > Entering new LLMChain chain... Prompt after formatting: T...
Issue: When using Azure OpenAI APIs, the results contain stop sequence '<|im_end|>' in the output. How to eliminate it?
https://api.github.com/repos/langchain-ai/langchain/issues/4246/comments
15
2023-05-06T22:03:42Z
2023-10-26T16:08:24Z
https://github.com/langchain-ai/langchain/issues/4246
1,698,793,578
4,246
[ "hwchase17", "langchain" ]
### Issue with current documentation: LangChain is an exceptional project that has significantly contributed to the AI community. However, it is imperative that we maintain the project's professional and inclusive nature and avoid using it as a platform for political propaganda. It has come to my attention that ove...
DOC: Request for the Removal of all Political Content from the Project
https://api.github.com/repos/langchain-ai/langchain/issues/4240/comments
4
2023-05-06T18:25:10Z
2023-12-03T16:07:56Z
https://github.com/langchain-ai/langchain/issues/4240
1,698,728,293
4,240
[ "hwchase17", "langchain" ]
### Issue you'd like to raise. Working with a conversation agent and the standard QA chain works fine but you can’t use the QA with sources chain in combination with an agent. The QA with sources chain gives us ['answer', 'sources'] which the ‚run‘ function of the ‚Chain‘ class can’t handle. ### Suggestion:...
Can’t use QA with sources chain together with a conversation agent
https://api.github.com/repos/langchain-ai/langchain/issues/4235/comments
4
2023-05-06T13:21:42Z
2023-10-12T16:09:58Z
https://github.com/langchain-ai/langchain/issues/4235
1,698,630,198
4,235
[ "hwchase17", "langchain" ]
### System Info Platform: WSL Ubuntu 22.10 Langchain: Latest Python: 3.10, Jupyter Notebook Code: ```python from langchain.embeddings.huggingface import HuggingFaceEmbeddings index = VectorstoreIndexCreator(embedding=HuggingFaceEmbeddings).from_loaders([loader]) ``` Error: ``` ---------------------------...
HuggingFaceEmbeddings Error. instance of Embeddings expected (type=type_error.arbitrary_type; expected_arbitrary_type=Embeddings)
https://api.github.com/repos/langchain-ai/langchain/issues/4233/comments
0
2023-05-06T12:38:30Z
2023-05-06T12:50:03Z
https://github.com/langchain-ai/langchain/issues/4233
1,698,614,576
4,233
[ "hwchase17", "langchain" ]
### Feature request At the moment faiss is hard wired to `IndexFlatL2`. See here: https://github.com/hwchase17/langchain/blob/423f497168e3a8982a4cdc4155b15fbfaa089b38/langchain/vectorstores/faiss.py#L347 I would like to set other index methods. For example `IndexFlatIP`. This should be configurable. Also s...
Add more index methods to faiss.
https://api.github.com/repos/langchain-ai/langchain/issues/4232/comments
4
2023-05-06T12:25:52Z
2023-09-22T16:09:45Z
https://github.com/langchain-ai/langchain/issues/4232
1,698,609,113
4,232
[ "hwchase17", "langchain" ]
Opening the detailed API doc shows a blank page. See: https://python.langchain.com/en/latest/reference/modules/llms.html Ans screenshot below. <img width="1106" alt="image" src="https://user-images.githubusercontent.com/229382/236622376-fa995c4a-fdda-4e5f-a400-f53b8693d1db.png">
DOC: API reference is empty (LangChain 0.0.160)
https://api.github.com/repos/langchain-ai/langchain/issues/4231/comments
1
2023-05-06T11:53:04Z
2023-05-08T07:28:20Z
https://github.com/langchain-ai/langchain/issues/4231
1,698,598,565
4,231
[ "hwchase17", "langchain" ]
### Feature request Being able to pass fallback (already initialised) LLMs at the LLM initialisation and have the `generate` and `agenerate` methods using those fallbacks if the main LLM fails. ### Motivation In production we often might need to fallback from one provider to another without raising errors and ...
[Feature Request] Fallback from one provider to another
https://api.github.com/repos/langchain-ai/langchain/issues/4230/comments
5
2023-05-06T11:50:12Z
2023-11-09T15:24:38Z
https://github.com/langchain-ai/langchain/issues/4230
1,698,597,574
4,230
[ "hwchase17", "langchain" ]
### System Info Given how chroma results are converted to Documents, I don't think it's possible to update those documents since the id is not stored, [Here is the current implementation](https://github.com/hwchase17/langchain/blob/master/langchain/vectorstores/chroma.py#L27-L37) Would it make sense to add the...
Chroma VectorStore document cannot be updated
https://api.github.com/repos/langchain-ai/langchain/issues/4229/comments
6
2023-05-06T11:42:25Z
2023-09-19T16:12:22Z
https://github.com/langchain-ai/langchain/issues/4229
1,698,595,319
4,229
[ "hwchase17", "langchain" ]
### Issue you'd like to raise. _No response_ ### Suggestion: _No response_
How to output word by word like chatgpt to avoid waiting too long when the response is very long?
https://api.github.com/repos/langchain-ai/langchain/issues/4227/comments
1
2023-05-06T09:10:55Z
2023-05-06T09:36:31Z
https://github.com/langchain-ai/langchain/issues/4227
1,698,548,518
4,227
[ "hwchase17", "langchain" ]
### Feature request The idea is to use an LLM to rank conversation history by relevance. The top k elements will be used as input, leading to more accurate and relevant Langchain responses. Advantages over Sentence Vector-based Methods: - Better understanding: LLMs grasp language semantics more effectively, leadin...
Add LLM Based Memory Controller
https://api.github.com/repos/langchain-ai/langchain/issues/4226/comments
0
2023-05-06T08:55:53Z
2023-05-06T10:30:31Z
https://github.com/langchain-ai/langchain/issues/4226
1,698,543,258
4,226
[ "hwchase17", "langchain" ]
### System Info since the new version i can't add qa_prompt, i would like to customize the prompt how to do? Error: 1 validation error for ConversationalRetrievalChain qa_prompt extra fields not permitted (type=value_error.extra) ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official exam...
Unable to add qa_prompt to ConversationalRetrievalChain.from_llm
https://api.github.com/repos/langchain-ai/langchain/issues/4225/comments
8
2023-05-06T08:46:06Z
2023-11-12T16:09:00Z
https://github.com/langchain-ai/langchain/issues/4225
1,698,540,392
4,225
[ "hwchase17", "langchain" ]
### System Info 0.0.160 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders -...
Loading pdf files from directory gives the following error
https://api.github.com/repos/langchain-ai/langchain/issues/4223/comments
2
2023-05-06T07:58:08Z
2023-05-07T20:25:48Z
https://github.com/langchain-ai/langchain/issues/4223
1,698,524,957
4,223
[ "hwchase17", "langchain" ]
### System Info langchain-0.0.160 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Pars...
PYDANTIC_FORMAT_INSTRUCTIONS json is malformed
https://api.github.com/repos/langchain-ai/langchain/issues/4221/comments
2
2023-05-06T06:33:37Z
2023-11-01T16:07:35Z
https://github.com/langchain-ai/langchain/issues/4221
1,698,494,218
4,221
[ "hwchase17", "langchain" ]
### System Info langChain==0.0.160 error: llama_model_load: loading model from './models/ggml-gpt4all-l13b-snoozy.bin' - please wait ... llama_model_load: n_vocab = 32000 llama_model_load: n_ctx = 512 llama_model_load: n_embd = 5120 llama_model_load: n_mult = 256 llama_model_load: n_head = 40 llama_mode...
generate() got an unexpected keyword argument 'new_text_callback'
https://api.github.com/repos/langchain-ai/langchain/issues/4220/comments
1
2023-05-06T06:26:39Z
2023-09-10T16:21:55Z
https://github.com/langchain-ai/langchain/issues/4220
1,698,492,102
4,220
[ "hwchase17", "langchain" ]
### System Info ```$ uname -a Linux knockdhu 5.4.0-139-generic #156-Ubuntu SMP Fri Jan 20 17:27:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ``` ### Who can help? @hwchase17 @agola11 @vowelparrot ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components ...
OutputParserException: Could not parse LLM output
https://api.github.com/repos/langchain-ai/langchain/issues/4219/comments
3
2023-05-06T06:16:02Z
2023-09-22T16:09:50Z
https://github.com/langchain-ai/langchain/issues/4219
1,698,488,882
4,219
[ "hwchase17", "langchain" ]
### Issue you'd like to raise. I am using chain wiht ConversationBufferMemory. I have defined about 50+ tools with detailed description。So the prompt to GPT is likely over 4096 tokens within 4 loops. How can i reduce my prompts or increase the max tokens of GPT. Is there any ideas? ### Suggestion: _No response_
How to reduce prompt with too many tools
https://api.github.com/repos/langchain-ai/langchain/issues/4217/comments
5
2023-05-06T03:54:02Z
2023-11-19T16:07:11Z
https://github.com/langchain-ai/langchain/issues/4217
1,698,416,183
4,217
[ "hwchase17", "langchain" ]
### System Info langchain-0.0.160 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Pars...
additional_kwargs does not take effect
https://api.github.com/repos/langchain-ai/langchain/issues/4215/comments
1
2023-05-06T03:21:04Z
2023-09-10T16:22:00Z
https://github.com/langchain-ai/langchain/issues/4215
1,698,402,851
4,215
[ "hwchase17", "langchain" ]
### Issue you'd like to raise. prompt: You are a cryptocurrency expert, and your goal is to maximize profits from your investments. You have access to the following tools: create_order: Create an order on Binance. cancel_order: Cancel an order on Binance. avg_price: Get the average price for a given symbol. t...
Issue: gpt4 talks to itself, does not follow the prompt to execute
https://api.github.com/repos/langchain-ai/langchain/issues/4211/comments
3
2023-05-06T02:52:08Z
2023-05-09T11:29:05Z
https://github.com/langchain-ai/langchain/issues/4211
1,698,394,535
4,211
[ "hwchase17", "langchain" ]
### Feature request When using the chain as a Tool for a custom Agent, sometimes it's useful for the Agent to have access to the raw API response. I see support for this in SQLDatabaseChain. Will be helpful to have the same support in OpenAPIEndpointChain ### Motivation [#864](https://github.com/hwchase17/langchain/...
request_direct support in langchain.chains.OpenAPIEndpointChain
https://api.github.com/repos/langchain-ai/langchain/issues/4208/comments
1
2023-05-06T00:21:59Z
2023-09-10T16:22:05Z
https://github.com/langchain-ai/langchain/issues/4208
1,698,328,058
4,208
[ "hwchase17", "langchain" ]
### Issue with current documentation: Almost all documentations I found to build a chain are using OpenAPI. ### Idea or request for content: Create an equivalent of the excellent [CSV Agent](https://python.langchain.com/en/latest/modules/agents/toolkits/examples/csv.html) but that could be used : - :100: l...
:pray: Code sample to tun a csv agent locally (no OpenAI)
https://api.github.com/repos/langchain-ai/langchain/issues/4206/comments
1
2023-05-06T00:00:00Z
2023-09-10T16:22:10Z
https://github.com/langchain-ai/langchain/issues/4206
1,698,317,750
4,206
[ "hwchase17", "langchain" ]
### System Info Platform (short version): - 2020 MacBook Pro - 2 GHz Quad-Core Intel Core i5 - 16 GB - macOS 13.3.1 - Anaconda managed Python 3.10.11 - langchain 0.0.159 - unstructured 0.6.3 - unstructured-inference 0.4.4 Short description: When running the example notebooks, originally for `DirectoryLoader...
UnstructuredFileLoader crashes on PDFs
https://api.github.com/repos/langchain-ai/langchain/issues/4201/comments
7
2023-05-05T22:53:06Z
2023-09-10T19:15:45Z
https://github.com/langchain-ai/langchain/issues/4201
1,698,283,864
4,201
[ "hwchase17", "langchain" ]
### Issue you'd like to raise. Hi I want to pass multiple arguments to a tool, that was created using `@tool` decorator. E.g.: ```python @tool def test(query: str, smth: str) -> str: """description""" return "test" tools = [ lambda query, smth: test(query, smth) ] initialize_agent(tools...) ...
How to pass multiple arguments to tool?
https://api.github.com/repos/langchain-ai/langchain/issues/4197/comments
11
2023-05-05T21:44:42Z
2024-04-10T18:26:14Z
https://github.com/langchain-ai/langchain/issues/4197
1,698,228,465
4,197
[ "hwchase17", "langchain" ]
### Issue with current documentation: https://python.langchain.com/en/latest/modules/models/llms/integrations/llamacpp.html It seems like the example in the document simply does not work due to the code below. ``` from langchain.callbacks.manager import CallbackManager // Missing CallbackManager ``` I se...
DOC: Llama-cpp (CallbackManager)
https://api.github.com/repos/langchain-ai/langchain/issues/4195/comments
2
2023-05-05T21:19:29Z
2023-05-14T08:05:48Z
https://github.com/langchain-ai/langchain/issues/4195
1,698,208,867
4,195
[ "hwchase17", "langchain" ]
### System Info Langchain version 0.0.142-latest Unix Python 3.10.6 ### 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...
Langchain is no longer fork safe after version 0.0.141
https://api.github.com/repos/langchain-ai/langchain/issues/4190/comments
0
2023-05-05T18:29:26Z
2023-06-28T23:40:30Z
https://github.com/langchain-ai/langchain/issues/4190
1,698,020,515
4,190
[ "hwchase17", "langchain" ]
### System Info Python 3.10 0.0.158 Tried to upgrade Langchain to latest version and the SQLChain no longer works Looks like the latest version has changed the way SQL chains are initialized. ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scrip...
DatabaseChain not working on version 0.0.158 for SQLLite
https://api.github.com/repos/langchain-ai/langchain/issues/4175/comments
6
2023-05-05T13:40:20Z
2023-09-19T16:12:32Z
https://github.com/langchain-ai/langchain/issues/4175
1,697,641,660
4,175
[ "hwchase17", "langchain" ]
### System Info version: 0.0.158 ### Who can help? @vowelparrot ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Par...
this decorator doesn't generate tool() error:pydantic.error_wrappers.ValidationError: 9 validation errors for CustomPromptTemplate
https://api.github.com/repos/langchain-ai/langchain/issues/4172/comments
1
2023-05-05T11:46:53Z
2023-05-05T15:33:07Z
https://github.com/langchain-ai/langchain/issues/4172
1,697,483,507
4,172
[ "hwchase17", "langchain" ]
### Feature request ```python langchain.document_loaders.AnyDataLoader ``` A document loader that incorporates all document loaders available in `langchain.document_loaders` that just takes any string that represents a path or url or any data source and loads it ### Motivation One document loading solutio...
langchain.document_loaders.AnyDataLoader
https://api.github.com/repos/langchain-ai/langchain/issues/4171/comments
4
2023-05-05T11:26:16Z
2023-12-06T17:46:30Z
https://github.com/langchain-ai/langchain/issues/4171
1,697,456,405
4,171
[ "hwchase17", "langchain" ]
### Issue Stream with AgentExecutors I am running my AgentExecutor with the agent: "conversational-react-description" to get back responses. How can I stream the responses using the same agent?
Issue: How can I get back a streaming response with AgentExecutors?
https://api.github.com/repos/langchain-ai/langchain/issues/4169/comments
1
2023-05-05T10:42:46Z
2023-09-10T16:22:15Z
https://github.com/langchain-ai/langchain/issues/4169
1,697,399,576
4,169
[ "hwchase17", "langchain" ]
### Issue with current documentation: When I run the example from https://python.langchain.com/en/latest/modules/models/llms/integrations/sagemaker.html#example I first get the following error: ``` line 49, in <module> llm=SagemakerEndpoint( File "pydantic/main.py", line 341, in pydantic.main.BaseModel...
DOC: Issues with the SageMakerEndpoint example
https://api.github.com/repos/langchain-ai/langchain/issues/4168/comments
3
2023-05-05T10:09:04Z
2023-10-19T12:08:37Z
https://github.com/langchain-ai/langchain/issues/4168
1,697,355,905
4,168
[ "hwchase17", "langchain" ]
### System Info Hi Team, When using WebBaseLoader and setting header_template the user agent does not get set and sticks with the default python user agend. ``` loader = WebBaseLoader(url, header_template={ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko...
User Agent on WebBaseLoader does not set header_template when passing `header_template`
https://api.github.com/repos/langchain-ai/langchain/issues/4167/comments
1
2023-05-05T10:04:47Z
2023-05-15T03:09:28Z
https://github.com/langchain-ai/langchain/issues/4167
1,697,349,995
4,167
[ "hwchase17", "langchain" ]
### Feature request Add extra input to the components of generative agents to enable virtual time instead of wall time ### Motivation Because generative agents can "live in another world", it makes sense to enable virtual time ### Your contribution I can submit a PR, in which I modified everything related to `date...
Enable virtual time in Generative Agents
https://api.github.com/repos/langchain-ai/langchain/issues/4165/comments
3
2023-05-05T09:49:24Z
2023-05-14T17:49:32Z
https://github.com/langchain-ai/langchain/issues/4165
1,697,326,841
4,165
[ "hwchase17", "langchain" ]
### System Info langchain==0.0.157 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Par...
AttributeError: module 'langchain' has no attribute 'verbose'
https://api.github.com/repos/langchain-ai/langchain/issues/4164/comments
23
2023-05-05T09:41:58Z
2024-06-10T04:23:33Z
https://github.com/langchain-ai/langchain/issues/4164
1,697,314,949
4,164
[ "hwchase17", "langchain" ]
### System Info When I try to import initialize_agent module from langchain.agents I receive this error. `cannot import name 'CursorResult' from 'sqlalchemy' ` ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] L...
from langchain.agents import initialize_agent
https://api.github.com/repos/langchain-ai/langchain/issues/4163/comments
1
2023-05-05T09:34:24Z
2023-05-05T09:58:32Z
https://github.com/langchain-ai/langchain/issues/4163
1,697,304,506
4,163
[ "hwchase17", "langchain" ]
### System Info Jupyter Lab notebook 3.6.3 Python 3.10 Langchain ==0.0.158 ### Who can help? @vowelparrot ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Se...
GoogleSerperAPIWrapper: HTTPError: 403 Client Error: Forbidden error
https://api.github.com/repos/langchain-ai/langchain/issues/4162/comments
6
2023-05-05T09:22:33Z
2023-11-22T09:26:02Z
https://github.com/langchain-ai/langchain/issues/4162
1,697,289,685
4,162
[ "hwchase17", "langchain" ]
### Issue you'd like to raise. I'd like to use Redis as vector database and installed redis-4.5.4. An error occurred after executing the code. **Redis.from_documents(split_docs, embeddings, redis_url="redis://10.110.80.158:6379")** How can I fix this issue. ### Suggestion: _No response_
Issue: ValueError: Redis failed to connect: You must add the RediSearch (>= 2.4) module from Redis Stack. Please refer to Redis Stack docs: https://redis.io/docs/stack/
https://api.github.com/repos/langchain-ai/langchain/issues/4161/comments
3
2023-05-05T09:00:37Z
2023-09-19T16:12:38Z
https://github.com/langchain-ai/langchain/issues/4161
1,697,260,504
4,161
[ "hwchase17", "langchain" ]
My guess is that you may not have langchain installed in the same environment as your Jupyter Notebook. Try running ``` !pip list ``` in a Notebook cell and see if langchain is listed. If not, try running: ``` !pip install -U langchain ``` Also, you have a typo: ```python from langchain.llms import ... ```...
My guess is that you may not have langchain installed in the same environment as your Jupyter Notebook. Try running
https://api.github.com/repos/langchain-ai/langchain/issues/4158/comments
3
2023-05-05T07:37:56Z
2023-09-10T16:22:21Z
https://github.com/langchain-ai/langchain/issues/4158
1,697,155,924
4,158
[ "hwchase17", "langchain" ]
### Issue with current documentation: The conceptual guide is high-level and the Python guide is based on examples, which are all good when we only want to use langchain. However, when we want to develop some components of langchain, say a new type of memory, I suddenly get lost in the source code. Take `BaseMemory`...
DOC: Need developer guide
https://api.github.com/repos/langchain-ai/langchain/issues/4157/comments
1
2023-05-05T07:17:08Z
2023-09-10T16:22:26Z
https://github.com/langchain-ai/langchain/issues/4157
1,697,132,850
4,157
[ "hwchase17", "langchain" ]
Sorry, kindly delete this issue
Delete this
https://api.github.com/repos/langchain-ai/langchain/issues/4156/comments
0
2023-05-05T07:14:43Z
2023-05-05T07:32:16Z
https://github.com/langchain-ai/langchain/issues/4156
1,697,130,153
4,156
[ "hwchase17", "langchain" ]
### System Info langchain-0.0.158 Python 3.11.2 macos ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Out...
OpenAIEmbeddings Unsupported OpenAI-Version header provided: 2022-12-01
https://api.github.com/repos/langchain-ai/langchain/issues/4154/comments
4
2023-05-05T06:44:58Z
2023-09-18T07:35:44Z
https://github.com/langchain-ai/langchain/issues/4154
1,697,095,078
4,154
[ "hwchase17", "langchain" ]
### System Info langchain 0.0.158 Mac OS M1 Python 3.11 ### Who can help? @ey ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] O...
WhatsAppChatLoader doesn't work on chats exported from WhatsApp
https://api.github.com/repos/langchain-ai/langchain/issues/4153/comments
1
2023-05-05T05:25:38Z
2023-05-05T20:13:06Z
https://github.com/langchain-ai/langchain/issues/4153
1,697,026,187
4,153
[ "hwchase17", "langchain" ]
### System Info # Name Version Build Channel _libgcc_mutex 0.1 main _openmp_mutex 5.1 1_gnu aiohttp 3.8.3 py310h5eee18b_0 aiosignal 1.3.1 pyhd8ed...
ImportError: cannot import name 'CursorResult' from 'sqlalchemy'
https://api.github.com/repos/langchain-ai/langchain/issues/4142/comments
10
2023-05-05T00:47:24Z
2023-11-14T14:32:14Z
https://github.com/langchain-ai/langchain/issues/4142
1,696,864,988
4,142
[ "hwchase17", "langchain" ]
To replicate: Make hundreds of simultaneous calls to AzureAI using gpt-3.5-turbo. I was using about 60 requests per minute. About once every 3 minute you get a response that is empty that has no `content` key. There is an easy fix for this. I pushed a PR that solves the problem: https://github.com/hwchase17/langchain...
OpenAI chain crashes due to missing content key
https://api.github.com/repos/langchain-ai/langchain/issues/4140/comments
2
2023-05-04T22:43:21Z
2023-09-12T16:16:16Z
https://github.com/langchain-ai/langchain/issues/4140
1,696,793,202
4,140
[ "hwchase17", "langchain" ]
Updates in version 0.0.158 have introduced a bug that prevents this import from being successful, while it works in 0.0.157 ``` Traceback (most recent call last): File "path", line 5, in <module> from langchain.chains import OpenAIModerationChain, SequentialChain, ConversationChain File "/Users/chasemcdo...
Bug introduced in 0.0.158
https://api.github.com/repos/langchain-ai/langchain/issues/4129/comments
5
2023-05-04T19:24:15Z
2023-05-05T13:25:53Z
https://github.com/langchain-ai/langchain/issues/4129
1,696,573,367
4,129
[ "hwchase17", "langchain" ]
Following the recent update to callback handlers `agent_action` and `agent_finish` stopped being called. I trakced down the problem to this [line](https://github.com/hwchase17/langchain/blob/ac0a9d02bd6a5a7c076670c56aa5fbaf75640428/langchain/agents/agent.py#L960) Is there any reason not to include `run_manager` here...
agent callbacks not being called
https://api.github.com/repos/langchain-ai/langchain/issues/4128/comments
0
2023-05-04T19:22:27Z
2023-05-05T06:59:57Z
https://github.com/langchain-ai/langchain/issues/4128
1,696,571,051
4,128
[ "hwchase17", "langchain" ]
At present, [`StructuredChatOutputParser` assumes that if there is not matching ```](https://github.com/hwchase17/langchain/blob/ac0a9d02bd6a5a7c076670c56aa5fbaf75640428/langchain/agents/structured_chat/output_parser.py#L34-L37), then the full text is the "Final Answer". The issue is that in some cases (due to truncati...
StructuredChatOutputParser too Lenient with Final Answers
https://api.github.com/repos/langchain-ai/langchain/issues/4127/comments
2
2023-05-04T19:18:58Z
2023-09-19T16:12:42Z
https://github.com/langchain-ai/langchain/issues/4127
1,696,567,177
4,127
[ "hwchase17", "langchain" ]
Sample code: ```from langchain import PromptTemplate, LLMChain from langchain.llms import GPT4All from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler gpt4all_model_path = "./models/ggml-gpt4all-l13b-snoozy.bin" template = """Question: {question} Answer: Let's think step by step...
Error running GPT4ALL model: TypeError: Model.generate() got an unexpected keyword argument 'new_text_callback'
https://api.github.com/repos/langchain-ai/langchain/issues/4126/comments
6
2023-05-04T18:59:07Z
2023-09-22T16:09:55Z
https://github.com/langchain-ai/langchain/issues/4126
1,696,539,005
4,126
[ "hwchase17", "langchain" ]
Thanks for the recent updates. I am getting the following issue on CohereRerank: I am getting this error when following [This documentation](https://python.langchain.com/en/latest/modules/indexes/retrievers/examples/cohere-reranker.html) exactly: `pydantic.error_wrappers.ValidationError: 1 validation error for Co...
langchain.retrievers.document_compressors.CohereRerank issue
https://api.github.com/repos/langchain-ai/langchain/issues/4125/comments
10
2023-05-04T18:55:41Z
2024-02-05T07:53:20Z
https://github.com/langchain-ai/langchain/issues/4125
1,696,534,852
4,125
[ "hwchase17", "langchain" ]
Description: Currently, when creating a Chrome or Firefox web driver using the `selenium.webdriver` module, users can only pass a limited set of arguments such as `headless` mode and hardcoded `no-sandbox`. However, there are many additional options available for these browsers that cannot be passed in using the exist...
[Feature Request] Allow users to pass additional arguments to the WebDriver
https://api.github.com/repos/langchain-ai/langchain/issues/4120/comments
0
2023-05-04T18:15:03Z
2023-05-05T20:24:43Z
https://github.com/langchain-ai/langchain/issues/4120
1,696,484,251
4,120
[ "hwchase17", "langchain" ]
How confident are you in your prompts? Since LLM's are non deterministic there's always a chance of failure, even using the same prompt template and input variables. How do we stress test prompt templates and their input variables to understand how often they complete successfully? There's no easy way atm. Let's change...
Prompt Stress Testing
https://api.github.com/repos/langchain-ai/langchain/issues/4119/comments
5
2023-05-04T17:10:54Z
2023-10-12T16:10:04Z
https://github.com/langchain-ai/langchain/issues/4119
1,696,383,683
4,119
[ "hwchase17", "langchain" ]
I get TypeError: 'tuple' object is not callable running this code. I guess it's because a __run__ call doesn't work on a chain with multiple outputs, How then can I use callbacks on that chain? from flask import Flask, render_template from flask_socketio import SocketIO from initialize_llm_chain import build_ch...
Error using callbacks on RetrievalQAWithSourcesChain
https://api.github.com/repos/langchain-ai/langchain/issues/4118/comments
4
2023-05-04T17:00:05Z
2023-07-24T02:40:43Z
https://github.com/langchain-ai/langchain/issues/4118
1,696,368,990
4,118
[ "hwchase17", "langchain" ]
I am currently working with SequentialChains with the goal to moderate input using the OpenAI moderation endpoint. ie: ``` # Pseudo Code SequentialChain(chains=[OpenAIModerationChain(), ConversationChain()]) ``` From what I can tell SequentialChain combines the list of current inputs with new inputs and passes ...
Sequential Chains Pass All Prior Inputs
https://api.github.com/repos/langchain-ai/langchain/issues/4116/comments
1
2023-05-04T15:39:11Z
2023-05-14T03:33:20Z
https://github.com/langchain-ai/langchain/issues/4116
1,696,264,709
4,116
[ "hwchase17", "langchain" ]
This is a simple heuristic but first rows in database tend to be fed with test data that can be less accurate than most recent one (dummy user etc ... ) Currently sql_database select first rows as sample data, what do you think about getting newest one instead ? https://github.com/hwchase17/langchain/blob/62455...
[Suggestion] Use most recent row to feed sample_rows in sql_database.py
https://api.github.com/repos/langchain-ai/langchain/issues/4114/comments
1
2023-05-04T15:26:43Z
2023-09-10T16:22:35Z
https://github.com/langchain-ai/langchain/issues/4114
1,696,243,606
4,114
[ "hwchase17", "langchain" ]
Hi, I tried to use Python REPL tool with new Structured Tools Agent. (Langchain version 0.0.157) Code: ``` from langchain.agents import load_tools from langchain.agents import initialize_agent from langchain.agents import AgentType from langchain.llms import OpenAI from langchain.chat_models import ChatOpenAI ...
PythonREPLTool._run() missing 1 required positional argument: 'query'
https://api.github.com/repos/langchain-ai/langchain/issues/4112/comments
4
2023-05-04T14:52:20Z
2023-10-12T12:59:14Z
https://github.com/langchain-ai/langchain/issues/4112
1,696,184,600
4,112
[ "hwchase17", "langchain" ]
This is a part of the error I get back when running the chat-langchain uvicorn server. The base.py file doesn't have the AsyncCallbackManager class anymore since version 0.0.154. from query_data import get_chain File "/home/user/Documents/Langchain/chat-langchain/./query_data.py", line 2, in from langchain.callbac...
AsyncCallbackManager Class from base.py gone after version 0.0.154 referenced from chat-langchain query_data.py
https://api.github.com/repos/langchain-ai/langchain/issues/4109/comments
7
2023-05-04T13:31:49Z
2024-01-30T00:42:49Z
https://github.com/langchain-ai/langchain/issues/4109
1,696,022,038
4,109
[ "hwchase17", "langchain" ]
Getting a value error when trying to use the structured agent. ValueError: Got unknown agent type: structured-chat-zero-shot-react-description. Valid types are: dict_keys([<AgentType.ZERO_SHOT_REACT_DESCRIPTION: 'zero-shot-react-description'>, <AgentType.REACT_DOCSTORE: 'react-docstore'>, <AgentType.SELF_ASK_WITH_SE...
Unknown Agent: "structured-chat-zero-shot-react-description" Error
https://api.github.com/repos/langchain-ai/langchain/issues/4108/comments
8
2023-05-04T13:15:10Z
2023-09-19T16:13:03Z
https://github.com/langchain-ai/langchain/issues/4108
1,695,993,076
4,108
[ "hwchase17", "langchain" ]
The code block [here](https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html#obtaining-results-with-metadata) doesn't run: ```python search = GoogleSerperAPIWrapper() results = search.results("Apple Inc.") pprint.pp(results) ``` Doing so results in: ``` AttributeError: 'Go...
docs: non-working code for Serper API tool
https://api.github.com/repos/langchain-ai/langchain/issues/4105/comments
13
2023-05-04T11:52:39Z
2023-11-13T16:09:35Z
https://github.com/langchain-ai/langchain/issues/4105
1,695,858,504
4,105
[ "hwchase17", "langchain" ]
In order to learn how to develop my own custom LLM agents with the ChatOpenAI model, I copy and pasted this example exactly: https://python.langchain.com/en/latest/modules/agents/agents/custom_llm_chat_agent.html This was successful besides one error where the program would throw a "Could not parse LLM output" er...
Silent bug on custom agent template change
https://api.github.com/repos/langchain-ai/langchain/issues/4104/comments
1
2023-05-04T11:44:23Z
2023-09-10T16:22:46Z
https://github.com/langchain-ai/langchain/issues/4104
1,695,846,736
4,104
[ "hwchase17", "langchain" ]
Langchain agents need to use some sort of warning whenever doing get requests or wikipedia/arxiv/google searches. If the online text contains a nefarious prompt, it could hijack the agent. I have tested this on a sample agent, code included below. `tools = load_tools(["wikipedia", "llm-math", "arxiv","ddg-se...
Langchain agents can be hijacked while searching internet via injection prompts.
https://api.github.com/repos/langchain-ai/langchain/issues/4102/comments
4
2023-05-04T11:20:01Z
2023-09-23T11:15:39Z
https://github.com/langchain-ai/langchain/issues/4102
1,695,813,308
4,102
[ "hwchase17", "langchain" ]
code as following: retriever = vectordb.as_retriever(search_type="mmr") docs = retriever.get_relevant_documents(question) it failed with follow error: TypeError: __query_collection() got an unexpected keyword argument 'include' I check the source code,it really no include param for __query_collection() function ...
fail to user ”mmr“ retriever for chroma DB
https://api.github.com/repos/langchain-ai/langchain/issues/4098/comments
2
2023-05-04T09:20:31Z
2023-09-19T16:13:13Z
https://github.com/langchain-ai/langchain/issues/4098
1,695,610,601
4,098
[ "hwchase17", "langchain" ]
``` llm = OpenAI(temperature=0.9) prompt = PromptTemplate( input_variables=["product"], template="What is a good name for a company that makes {product}?", ) from langchain.chains import LLMChain db_chain = SQLDatabaseChain.from_llm(llm, db2,prompt = prompt,return_direct=True) print(db_chain.prompt) ``...
There is no prompt attribute in SQLDatabaseChain.
https://api.github.com/repos/langchain-ai/langchain/issues/4097/comments
2
2023-05-04T09:08:08Z
2023-05-15T01:13:33Z
https://github.com/langchain-ai/langchain/issues/4097
1,695,591,512
4,097
[ "hwchase17", "langchain" ]
Hello, I cannot figure out how to pass callback when using `load_tools`, I used to pass a callback_manager but I understand that it's now deprecated. I was able to reproduce with the following snippet: ```python from langchain.agents import load_tools from langchain.callbacks.base import BaseCallbackHandler f...
Callbacks are ignored when passed to load_tools
https://api.github.com/repos/langchain-ai/langchain/issues/4096/comments
5
2023-05-04T09:05:12Z
2023-05-23T16:38:32Z
https://github.com/langchain-ai/langchain/issues/4096
1,695,586,103
4,096
[ "hwchase17", "langchain" ]
Hi, I need to create chatbot using PyThon and Chat with Project Docs/pdf for Residential Projects, so if i select project name then enter and chat with selected project. So how can i make this can you please help
Chat with Multiple Projects
https://api.github.com/repos/langchain-ai/langchain/issues/4093/comments
1
2023-05-04T07:19:37Z
2023-09-10T16:22:51Z
https://github.com/langchain-ai/langchain/issues/4093
1,695,411,663
4,093
[ "hwchase17", "langchain" ]
https://github.com/hwchase17/langchain/blob/master/langchain/embeddings/openai.py#L188 `encoding = tiktoken.model.encoding_for_model(self.model)` The above line tries to get encoding as per the model we use. It works efficiently when used in open network. But fails to get encoding as it tries to downloads it fr...
Fails to get encoding for vector database in secured network.
https://api.github.com/repos/langchain-ai/langchain/issues/4092/comments
1
2023-05-04T07:11:12Z
2023-09-10T16:22:56Z
https://github.com/langchain-ai/langchain/issues/4092
1,695,400,137
4,092
[ "hwchase17", "langchain" ]
it seems that the source code for initializing a CSVLoader doesn't put an appropriate if condition here: ``` def __init__( self, file_path: str, source_column: Optional[str] = None, csv_args: Optional[Dict] = None, encoding: Optional[str] = None, ): sel...
CSVLoader TypeError: "delimiter" must be string, not NoneType
https://api.github.com/repos/langchain-ai/langchain/issues/4087/comments
3
2023-05-04T05:33:10Z
2023-05-14T03:35:04Z
https://github.com/langchain-ai/langchain/issues/4087
1,695,290,170
4,087
[ "hwchase17", "langchain" ]
Hi. I am trying to find out the similarity search score. but I got the score In 3 digits. ![image](https://user-images.githubusercontent.com/72593205/236118690-eed8fdf0-3e6d-4466-9cdb-9a15ddb3aefc.png)
FAISS similarity search with score issue
https://api.github.com/repos/langchain-ai/langchain/issues/4086/comments
9
2023-05-04T05:25:49Z
2024-05-28T03:37:10Z
https://github.com/langchain-ai/langchain/issues/4086
1,695,284,394
4,086
[ "hwchase17", "langchain" ]
**[THIS JUST CAN NOT WORK WITH JUPYTER NOTEBOOK]** My code is from https://python.langchain.com/en/latest/modules/models/llms/examples/streaming_llm.html. I didn't change anything. I download the ipynb file and excute in my local jupyter notebook. the version of langchain is 0.0.157. then , I saw the warning and erro...
Object of type StreamingStdOutCallbackHandler is not JSON serializable
https://api.github.com/repos/langchain-ai/langchain/issues/4085/comments
5
2023-05-04T05:21:52Z
2023-09-22T16:10:15Z
https://github.com/langchain-ai/langchain/issues/4085
1,695,281,300
4,085
[ "hwchase17", "langchain" ]
While going through base_language.py code , in _get_num_tokens_default_method .. code makes instance of gpt2 tokenizer while comment says " # tokenize the text using the GPT-3 tokenizer" . this needs to be corrected to gpt-2 # create a GPT-2 tokenizer instance tokenizer = GPT2TokenizerFast.from_pretrain...
minor issue in code( base_language.py) comments
https://api.github.com/repos/langchain-ai/langchain/issues/4082/comments
3
2023-05-04T04:03:45Z
2023-05-04T06:39:50Z
https://github.com/langchain-ai/langchain/issues/4082
1,695,224,121
4,082
[ "hwchase17", "langchain" ]
I think this is killing me. Literally!!. Why is it that the `ConversationalRetrievalChain` rephrase every question I ask it? Here is an example: **Example:** **Human**: `Hi` **AI**: ` Hello! How may I assist you today?` **Human**: `What activities do you recommend?` **AI Rephrasing Human Question**: `What ar...
Why does ConversationalRetrievalChain rephrase every human question?
https://api.github.com/repos/langchain-ai/langchain/issues/4076/comments
21
2023-05-04T01:37:10Z
2024-07-01T07:34:46Z
https://github.com/langchain-ai/langchain/issues/4076
1,695,085,954
4,076
[ "hwchase17", "langchain" ]
I would like to give a simple suggestion. There could be support or some way to add custom models instead of just using the OpenAI model. There are projects that use third-party platforms that use the Chat-GPT model and can be accessed via API. The reason for this is the cost of the API from the platforms offered, espe...
Model Limitations
https://api.github.com/repos/langchain-ai/langchain/issues/4075/comments
3
2023-05-03T23:39:58Z
2023-09-15T16:15:45Z
https://github.com/langchain-ai/langchain/issues/4075
1,694,988,865
4,075
[ "hwchase17", "langchain" ]
import os from langchain.llms import OpenAI, Anthropic from langchain.chat_models import ChatOpenAI from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler from langchain.schema import HumanMessage llm = OpenAI(streaming=True, callbacks=[StreamingStdOutCallbackHandler()], temperature=0) ...
Object of type StreamingStdOutCallbackHandler is not JSON serializable
https://api.github.com/repos/langchain-ai/langchain/issues/4070/comments
20
2023-05-03T21:36:02Z
2023-10-24T08:30:07Z
https://github.com/langchain-ai/langchain/issues/4070
1,694,879,163
4,070
[ "hwchase17", "langchain" ]
As of now if a hallucinated link is handed to the `ClickTool`, it will wait for 30 seconds and then fail. Instead it should generate a message that is added to the prompt along the lines of: "I was unable to find that element. Could you suggest another approach?" In addition it might be handed an element that is inv...
ClickTool Should Better Handle Hallucinated and Invisible Links
https://api.github.com/repos/langchain-ai/langchain/issues/4066/comments
3
2023-05-03T20:43:20Z
2023-09-15T16:15:51Z
https://github.com/langchain-ai/langchain/issues/4066
1,694,787,690
4,066
[ "hwchase17", "langchain" ]
Hi, I had a streamlit app that was working perfectly for a while. Starting today, however, I am getting the following errors: ImportError: cannot import name 'BaseLanguageModel' from 'langchain.schema' (C:\Users\jvineburgh\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\schema.py) Traceback: ...
Was Running Fine and now getting errors
https://api.github.com/repos/langchain-ai/langchain/issues/4064/comments
20
2023-05-03T20:29:30Z
2023-08-16T10:41:10Z
https://github.com/langchain-ai/langchain/issues/4064
1,694,761,634
4,064
[ "hwchase17", "langchain" ]
When utilizing [a Structured Chat Agent](https://github.com/hwchase17/langchain/pull/3912), GPT-4 will often send a direct response when it should be crafting a JSON blob. As an example, I prompted a Playwright-driven agent w/ `Can you summarize this site: ramp.com?` The first gpt-4 agent response is: `````` AS...
For Structured Chat Agent, GPT-4 often responds directly.
https://api.github.com/repos/langchain-ai/langchain/issues/4059/comments
10
2023-05-03T20:24:33Z
2023-10-06T16:08:45Z
https://github.com/langchain-ai/langchain/issues/4059
1,694,752,528
4,059
[ "hwchase17", "langchain" ]
When using PineconeStore.fromExistingIndex with JS there is a way to add Pinecone filter to store. ``` const vectorStore = await PineconeStore.fromExistingIndex( new OpenAIEmbeddings(), { pineconeIndex, filter, namespace: NAMESPACE} ); ``` However, when using Pinecone.from_existing_index with P...
No Pinecone filter support to fromExistingIndex
https://api.github.com/repos/langchain-ai/langchain/issues/4057/comments
2
2023-05-03T19:15:39Z
2023-09-15T16:15:56Z
https://github.com/langchain-ai/langchain/issues/4057
1,694,651,795
4,057
[ "hwchase17", "langchain" ]
Hi, Maybe this is already doable today, but I didn't manage to, so I'll try to ask it here as a feature request... I'd like to do a map-reduce chain, but with 2 different reductions happening in parallel (therefore, I want to have 2 final outputs). I managed to do it by doing the 2 reductions sequentially, and r...
Multiple combine prompts when using Map-Reduce
https://api.github.com/repos/langchain-ai/langchain/issues/4054/comments
4
2023-05-03T17:34:03Z
2023-12-18T23:50:37Z
https://github.com/langchain-ai/langchain/issues/4054
1,694,506,476
4,054
[ "hwchase17", "langchain" ]
We commonly used this pattern to create tools: ```py from langchain.tools import Tool from functools import partial def foo(x, y): return y Tool.from_function( func=partial(foo, "bar"), name = "foo", description="foobar" ) ``` which as of 0.0.148 (I think) gives a pydantic error "Par...
Tools with partials (Partial functions not yet supported in tools)
https://api.github.com/repos/langchain-ai/langchain/issues/4053/comments
2
2023-05-03T17:28:46Z
2023-09-10T16:23:16Z
https://github.com/langchain-ai/langchain/issues/4053
1,694,499,938
4,053
[ "hwchase17", "langchain" ]
Hey, I tried to use the Arxiv loader but it seems that this type of document does not exist anymore. The documentation is still there https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/arxiv.html Do you have any details on that?
Arxiv loader does not work
https://api.github.com/repos/langchain-ai/langchain/issues/4052/comments
1
2023-05-03T16:23:51Z
2023-09-10T16:23:21Z
https://github.com/langchain-ai/langchain/issues/4052
1,694,404,521
4,052
[ "hwchase17", "langchain" ]
I'm trying to use the Terminal tool to execute a command, which throws an error right now. This is my Python code: ```python import os import dotenv from langchain.agents import load_tools, initialize_agent, AgentType from langchain.llms import OpenAI dotenv.load_dotenv() assert 'OPENAI_API_KEY' in os.envi...
Pydantic error for Terminal tool
https://api.github.com/repos/langchain-ai/langchain/issues/4049/comments
6
2023-05-03T15:16:28Z
2023-09-19T16:13:28Z
https://github.com/langchain-ai/langchain/issues/4049
1,694,285,466
4,049
[ "hwchase17", "langchain" ]
Hi! I am working with AgentExecutors, which are being created with the create_llama_chat_agent() function. The relevant part of the code looks like this: ``` llm = OpenAI(temperature=0, model_name="gpt-3.5-turbo") return create_llama_chat_agent( toolkit, llm, memory=memory, ...
Question: System messages with AgentExecutors
https://api.github.com/repos/langchain-ai/langchain/issues/4048/comments
2
2023-05-03T14:50:11Z
2023-09-10T16:23:27Z
https://github.com/langchain-ai/langchain/issues/4048
1,694,233,383
4,048
[ "hwchase17", "langchain" ]
I create an agent using: ``` zero_shot_agent = initialize_agent( agent="zero-shot-react-description", tools=tools, llm=llm, verbose=True, max_iterations=3 ) ``` I now want to customize the content of the default prompt used by the agent. I wasn't able to locate any documented input pa...
How do I customize the prompt for the zero shot agent ?
https://api.github.com/repos/langchain-ai/langchain/issues/4044/comments
14
2023-05-03T13:32:32Z
2024-03-21T15:32:24Z
https://github.com/langchain-ai/langchain/issues/4044
1,694,087,287
4,044
[ "hwchase17", "langchain" ]
How can I read the files in parallel to speed up the process https://github.com/hwchase17/langchain/blob/f3ec6d2449f3fe0660e4452bd4ce98c694dc0638/langchain/document_loaders/directory.py#L74
Make DirectoryLoader to read file in parallel to reduce file reading time
https://api.github.com/repos/langchain-ai/langchain/issues/4041/comments
3
2023-05-03T12:10:29Z
2023-09-19T16:13:33Z
https://github.com/langchain-ai/langchain/issues/4041
1,693,953,239
4,041
[ "hwchase17", "langchain" ]
`from langchain.callbacks.manager import CallbackManager` generates: `ModuleNotFoundError: No module named 'langchain.callbacks.manager' Source code: https://python.langchain.com/en/latest/modules/models/llms/integrations/llamacpp.html
can't import callback manager
https://api.github.com/repos/langchain-ai/langchain/issues/4040/comments
2
2023-05-03T11:48:53Z
2023-08-14T21:36:50Z
https://github.com/langchain-ai/langchain/issues/4040
1,693,917,485
4,040
[ "hwchase17", "langchain" ]
Hello everyone! I am developing simple chat with pdf bot. I am facing strange error. I and facing an error _raise ValueError(f"Got unknown type {message}") ValueError: Got unknown type w_ Code snippet is: ``` from langchain.document_loaders import UnstructuredPDFLoader from langchain.text_splitter import ...
llm.generate([query]) return ValueError: Got unknown type w
https://api.github.com/repos/langchain-ai/langchain/issues/4037/comments
3
2023-05-03T10:12:48Z
2023-09-26T16:07:19Z
https://github.com/langchain-ai/langchain/issues/4037
1,693,777,877
4,037
[ "hwchase17", "langchain" ]
Hi, was looking into using a vectorstore to save some embeddings and ChromaDB seemed good. Only issue for now is if it is possible to persist into an AzureBlobStorage instead of in the local disk. Currently using Databricks and only solution found was mounting the blobstorage into the databricks environment, but thi...
Question: Possible to use ChromaDB with persistence into an Azure Blob Storage
https://api.github.com/repos/langchain-ai/langchain/issues/4036/comments
1
2023-05-03T10:03:33Z
2023-09-10T16:23:32Z
https://github.com/langchain-ai/langchain/issues/4036
1,693,763,541
4,036
[ "hwchase17", "langchain" ]
Hi all, One major benefit of using Summary method for context in Conversation is to save cost. But with increasing chat iterations, no of token keeps on increasing, significantly. Is there any parameter, by which I can set the max limit of Summary?
How can we set a limit for max tokens in ConversationSummaryMemory
https://api.github.com/repos/langchain-ai/langchain/issues/4033/comments
4
2023-05-03T09:41:10Z
2023-11-21T12:41:06Z
https://github.com/langchain-ai/langchain/issues/4033
1,693,725,706
4,033
[ "hwchase17", "langchain" ]
Version: 0.0.153 I follow instructions here https://python.langchain.com/en/latest/modules/models/llms/examples/streaming_llm.html ```python from langchain.llms import OpenAI, Anthropic from langchain.chat_models import ChatOpenAI from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler fro...
TypeError: Object of type StreamingStdOutCallbackHandler is not JSON serializable
https://api.github.com/repos/langchain-ai/langchain/issues/4027/comments
1
2023-05-03T07:07:09Z
2023-05-03T07:34:11Z
https://github.com/langchain-ai/langchain/issues/4027
1,693,520,800
4,027
[ "hwchase17", "langchain" ]
I prefer async LLM calls in my code, but need fallbacks for LLMs that do not support. My code lets users supply their own LLMs. It would be nice to automatically do this fallback to `run` if `arun` will not work with the given LLM. Something like `mychain.arun(..., fallback=True)`. The work around I use is belo...
[Feature Request] Fallback to run from arun
https://api.github.com/repos/langchain-ai/langchain/issues/4025/comments
4
2023-05-03T05:57:00Z
2023-09-19T16:13:39Z
https://github.com/langchain-ai/langchain/issues/4025
1,693,453,400
4,025
[ "hwchase17", "langchain" ]
Hi, I'm now considering to get llm to search directories, see the names of document files in them and then fetch information from files the name of which are relevant to a given task. It seems a simple function so I can make by myself, but is there any agents or index loader that accomplish this kind of task so far?
Is there any function that crawls directories?
https://api.github.com/repos/langchain-ai/langchain/issues/4023/comments
1
2023-05-03T05:00:37Z
2023-09-10T16:23:42Z
https://github.com/langchain-ai/langchain/issues/4023
1,693,415,360
4,023
[ "hwchase17", "langchain" ]
Running the code at https://python.langchain.com/en/latest/modules/agents/agents/custom_llm_chat_agent.html results in the following error `Allowed tools (set()) different than provided tools (['Search']) (type=value_error)` I'm guessing the issue is that LLMSingleActionAgent does not currently allow any tools?
Custom LLM Agent example does not work
https://api.github.com/repos/langchain-ai/langchain/issues/4015/comments
0
2023-05-03T01:48:38Z
2023-05-03T01:50:43Z
https://github.com/langchain-ai/langchain/issues/4015
1,693,298,662
4,015
[ "hwchase17", "langchain" ]
As of `0.0.155`, the `SelfQueryRetriever ` class supports Pinecone only. I wanted to extend it myself to support Vespa too but, after reviewing the current implementation, I discovered that `SelfQueryRetriever` ["wraps around a vector store" instead of a retriever](https://github.com/hwchase17/langchain/blob/18f9d7b...
[Feature] Augment SelfQueryRetriever to support Vespa
https://api.github.com/repos/langchain-ai/langchain/issues/4008/comments
13
2023-05-02T22:45:23Z
2023-09-22T16:10:25Z
https://github.com/langchain-ai/langchain/issues/4008
1,693,187,800
4,008
[ "hwchase17", "langchain" ]
I was testing the new version on streaming (I've updated /hwchase17/chat-langchain locally and made the necessary changes) the example provided there has handler with websockets as a parameter: ```python class StreamingLLMCallbackHandler(AsyncCallbackHandler): """Callback handler for streaming LLM responses...
v0.0.155: maximum recursion depth exceeded in comparison when setting async callback
https://api.github.com/repos/langchain-ai/langchain/issues/4002/comments
1
2023-05-02T20:56:35Z
2023-05-20T19:33:49Z
https://github.com/langchain-ai/langchain/issues/4002
1,693,089,213
4,002
[ "hwchase17", "langchain" ]
## `AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION` This is a fantastic addition to langchain's collection of pre-built agents. The rendered prompt is less cluttered and the agent seems to be choosing tools correctly more often. However I could not seem to get it working with the `ConversationalBufferWin...
Does the new Structured Chat Agent support ConversationMemory?
https://api.github.com/repos/langchain-ai/langchain/issues/4000/comments
13
2023-05-02T20:46:12Z
2024-04-23T05:42:03Z
https://github.com/langchain-ai/langchain/issues/4000
1,693,078,189
4,000
[ "hwchase17", "langchain" ]
As in title, I think it might be because of deprecation and renaming at some point? Updated to use BaseCallbackManager in PR #3996 , please merge, thanks!
Llama-cpp docs loading has CallbackManager error
https://api.github.com/repos/langchain-ai/langchain/issues/3997/comments
0
2023-05-02T20:13:28Z
2023-05-02T23:20:18Z
https://github.com/langchain-ai/langchain/issues/3997
1,693,040,259
3,997
[ "hwchase17", "langchain" ]
I am installing LangChain for the first time. I opened a command box as Administrator to make sure the permissions were solid. It installed the build dependencies, then I got "ERROR: Command errored out with exit status 1: command: 'c:\python27\python.exe' 'c:\python27\lib\site-packages\pip\_vendor\pep517\_in_proce...
First time install of v 0.0.155, errors in build wheel
https://api.github.com/repos/langchain-ai/langchain/issues/3994/comments
4
2023-05-02T19:27:03Z
2023-05-03T20:47:16Z
https://github.com/langchain-ai/langchain/issues/3994
1,692,979,677
3,994