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" ]
Module: `embeddings/openai.py` Preface: While using the AzureOpenAI or a custom model deployment on Azure, I am unable to use the OpenAIEmbeddings as `pydantic` forbids passing extra arguments. Whereas this works perfectly fine with ChatOpenAI or OpenAI models. Environment Variables I am using - ``` OPENAI_L...
OpenAIEmbeddings can not take headers
https://api.github.com/repos/langchain-ai/langchain/issues/3992/comments
1
2023-05-02T19:04:56Z
2023-10-05T16:10:08Z
https://github.com/langchain-ai/langchain/issues/3992
1,692,950,910
3,992
[ "hwchase17", "langchain" ]
It seems maintaining separate namespaces in your vector DB is helpful and/or necessary in making sure an LLM can answer compare/contrast questions that need to reference texts separated by dates like "03/2023" vs. "03/2022" without getting confused. To that end, there's a need to retrieve from multiple vectorstore...
Seeking solution for combined retrievers, or retrieving from multiple vectorstores with sources, to maintain separate Namespaces.
https://api.github.com/repos/langchain-ai/langchain/issues/3991/comments
7
2023-05-02T18:14:32Z
2023-06-28T03:31:58Z
https://github.com/langchain-ai/langchain/issues/3991
1,692,881,402
3,991
[ "hwchase17", "langchain" ]
Hi .. I am currently into problems where I call the LLM to search over the local docs, I get this warning which never seems to stop ``` Setting `pad_token_id` to `eos_token_id`:0 for open-end generation. Setting `pad_token_id` to `eos_token_id`:0 for open-end generation. Setting `pad_token_id` to `eos_token_id`:0 f...
Local hugging face model to search over docs
https://api.github.com/repos/langchain-ai/langchain/issues/3989/comments
1
2023-05-02T18:09:07Z
2023-05-16T05:31:24Z
https://github.com/langchain-ai/langchain/issues/3989
1,692,873,345
3,989
[ "hwchase17", "langchain" ]
Hi all! I have an [application](https://github.com/ur-whitelab/BO-LIFT) based on langchain. A few months ago, I used it with fine-tuned (FT) models. We added a token usage counter later, and I haven't tried fine-tuned models again since then. Recently we have been interested in using (FT) models again, but the ...
LangChain openAI callback doesn't allow finetuned models
https://api.github.com/repos/langchain-ai/langchain/issues/3988/comments
0
2023-05-02T18:00:22Z
2023-05-02T23:19:58Z
https://github.com/langchain-ai/langchain/issues/3988
1,692,856,409
3,988
[ "hwchase17", "langchain" ]
I am interested in writing a tutorial for using langchain with [Shimmy](https://shimmy.farama.org/), an API conversion tool allowing many popular reinforcement learning environments to be used natively with PettingZoo and Gymnasium. Since there are already PettingZoo and Gymnasium tutorials/wrappers (https://python...
Simulated Environment: Shimmy (Farama Foundation API conversion tool)
https://api.github.com/repos/langchain-ai/langchain/issues/3986/comments
1
2023-05-02T17:32:55Z
2023-05-20T02:32:14Z
https://github.com/langchain-ai/langchain/issues/3986
1,692,816,840
3,986
[ "hwchase17", "langchain" ]
With a schema such as: ``` class JsonList(BaseModel): __root__: List[str] ``` We can validate a JSON string in the form: ``` [ 'xxx', 'yyy', 'zzz' ] ``` But the Pydantic parser [assumes the input is an object](https://github.com/hwchase17/langchain/blob/71a337dac6aa8c5a7f472e3e7fd0a61ca2a4eefb/lang...
Pydantic output parser assumes JSON object
https://api.github.com/repos/langchain-ai/langchain/issues/3985/comments
2
2023-05-02T17:06:44Z
2023-10-24T16:08:48Z
https://github.com/langchain-ai/langchain/issues/3985
1,692,784,932
3,985
[ "hwchase17", "langchain" ]
Hi, I am using below function create_collection() for creating collection and it is working fine , like it is creating a collection and storing it into my persist directory and also I am able to perform question answering using this collection. def create_collection(openai_api_key, embedding_path, persist_directory, ...
Is updating collection possible
https://api.github.com/repos/langchain-ai/langchain/issues/3984/comments
4
2023-05-02T16:45:03Z
2023-10-06T16:08:50Z
https://github.com/langchain-ai/langchain/issues/3984
1,692,751,873
3,984
[ "hwchase17", "langchain" ]
`VectorDBQA` is being deprecated in favour of `RetrievalQA` & similarly, `VectorDBQAWithSourcesChain` is being deprecated for `RetrievalQAWithSourcesChain`. Currently, `VectorDBQA` & `VectorDBQAWithSourcesChain` chains can be serialized using `vec_chain.save(...)` because they have `_chain_type` property - https://...
RetrievalQA & RetrievalQAWithSourcesChain chains cannot be serialized/saved or loaded
https://api.github.com/repos/langchain-ai/langchain/issues/3983/comments
15
2023-05-02T16:17:48Z
2023-08-01T13:53:17Z
https://github.com/langchain-ai/langchain/issues/3983
1,692,711,579
3,983
[ "hwchase17", "langchain" ]
hello, why i get this error : `2023-05-02 16:59:06.633 Uncaught app exception Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.__dict__) File...
why i get :openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens. However, your messages resulted in 16762 tokens. Please reduce the length of the messages.
https://api.github.com/repos/langchain-ai/langchain/issues/3982/comments
4
2023-05-02T16:04:31Z
2023-11-15T16:11:06Z
https://github.com/langchain-ai/langchain/issues/3982
1,692,692,832
3,982
[ "hwchase17", "langchain" ]
Hello everyone! I am using Langchain and I want to implement chatbot memory. I am doing everything according to the docs and my bot doesn't remember anything I tell him. **Code snippet:** ``` llm = ChatOpenAI(model_name='gpt-3.5-turbo', temperature=0.3, openai_api_key=OPENAI_API_KEY) memory = ConversationBuf...
Chatbot memory integration
https://api.github.com/repos/langchain-ai/langchain/issues/3977/comments
4
2023-05-02T15:01:31Z
2023-09-22T16:10:31Z
https://github.com/langchain-ai/langchain/issues/3977
1,692,593,040
3,977
[ "hwchase17", "langchain" ]
ConversationChain's conversation.predict() multiple times gives confusing logging. Inspired by: https://python.langchain.com/en/latest/modules/memory/examples/conversational_customization.html Minimal Confusing Example: ```python from langchain.llms import OpenAI from langchain.chains import ConversationChai...
Multi-turn conversation chains have unintuitive logging.
https://api.github.com/repos/langchain-ai/langchain/issues/3974/comments
1
2023-05-02T13:18:55Z
2023-09-10T16:23:48Z
https://github.com/langchain-ai/langchain/issues/3974
1,692,411,958
3,974
[ "hwchase17", "langchain" ]
I use the huggingface model locally and run the following code: ``` chain = load_qa_chain(llm=chatglm, chain_type="map_rerank", return_intermediate_steps=True, prompt=PROMPT) chain({"input_documents": search_docs_Documents, "question": query}, return_only_outputs=True) ``` The error is as follows: ``` ──────...
load_qa_chain with map_rerank by local huggingface model
https://api.github.com/repos/langchain-ai/langchain/issues/3970/comments
12
2023-05-02T11:55:21Z
2023-12-06T17:46:35Z
https://github.com/langchain-ai/langchain/issues/3970
1,692,285,119
3,970
[ "hwchase17", "langchain" ]
When using the SQL Chain I can return the intermediate steps so that I can output the Query. For the SQL Agent this seems not to be an option without modifying the tool itself. How can I see the actual queries used (not only in the verbose, but save it in a variable e.g.)? Alternatively is there a way to save the ve...
Get intermediate_steps with SQLDatabase Agent
https://api.github.com/repos/langchain-ai/langchain/issues/3969/comments
17
2023-05-02T11:47:15Z
2024-07-06T16:04:57Z
https://github.com/langchain-ai/langchain/issues/3969
1,692,274,905
3,969
[ "hwchase17", "langchain" ]
Currently I'm using a specific prompt suffix (`". Assign the printed dataframe to a variable and return it as the final answer."`) in the Pandas agent, which sometimes gives the result I'm looking for as a printed DataFrame. I've then written an output parser that turns this into a JSON which can then be loaded as a Da...
Make Pandas Agent return DataFrame object?
https://api.github.com/repos/langchain-ai/langchain/issues/3968/comments
5
2023-05-02T11:37:03Z
2023-12-16T03:13:49Z
https://github.com/langchain-ai/langchain/issues/3968
1,692,261,993
3,968
[ "hwchase17", "langchain" ]
Chroma or Pinecone Vector databases allow filtering documents by metadata with the filter parameter in the similarity_search function but the similarity_search does not have this parameter. Would it be possible to enable similarity_search for Redis Vector store?
[Feature] Redis Vectorestore - similarity_search filter by metadata
https://api.github.com/repos/langchain-ai/langchain/issues/3967/comments
27
2023-05-02T11:08:29Z
2023-10-31T21:51:13Z
https://github.com/langchain-ai/langchain/issues/3967
1,692,223,105
3,967
[ "hwchase17", "langchain" ]
What's the difference between the two parameters handlers and inheritable_handlers in the callback manager class? Also if I am not wrong, previously there was only AsyncCallBackManager and BaseCallbackManager. What's the recent introduction of langchain.callbacks.manager for? Which one should I use for Conversat...
Callback Manager
https://api.github.com/repos/langchain-ai/langchain/issues/3966/comments
2
2023-05-02T10:59:02Z
2023-05-06T04:22:59Z
https://github.com/langchain-ai/langchain/issues/3966
1,692,209,891
3,966
[ "hwchase17", "langchain" ]
Currently the logging output from the ConversationChain is quite hard to read. I believe implementing separate colors from System Messages, Human Messages and AI messages by role would involve modifying the prep_prompts and the aprep_prompts methods within the ConversationChain subclass. Something like: ``` ...
[Feature Request] ConversationalChain prints system, user and human message prompts using separate colors.
https://api.github.com/repos/langchain-ai/langchain/issues/3965/comments
2
2023-05-02T10:26:54Z
2023-09-10T16:23:52Z
https://github.com/langchain-ai/langchain/issues/3965
1,692,166,533
3,965
[ "hwchase17", "langchain" ]
While it is known that ultimately it is the responsibility of the prompt to control the responses to QA task, the ConversationalRetrievalChain running with ConversationSummaryBufferMemory occasionally responds with strange replies to non relevant questions. In the prompt it is mentioned like _"Please do not refer to d...
Relevancy for Chroma retriever results for non relevant questions
https://api.github.com/repos/langchain-ai/langchain/issues/3963/comments
1
2023-05-02T09:58:43Z
2023-09-10T16:23:57Z
https://github.com/langchain-ai/langchain/issues/3963
1,692,127,355
3,963
[ "hwchase17", "langchain" ]
api documentations:https://github.com/pengzhile/pandora/blob/master/doc/HTTP-API.md
How can I customize Chat Models? For example, use the chatgpt web page in an api-like manner through the pandora project
https://api.github.com/repos/langchain-ai/langchain/issues/3962/comments
0
2023-05-02T09:32:33Z
2023-05-06T06:20:47Z
https://github.com/langchain-ai/langchain/issues/3962
1,692,090,239
3,962
[ "hwchase17", "langchain" ]
When installing `Langchain==0.0.155` I am getting the error that `langchain.schemas` does not exists. This is because the file is named langchain.schema so there is a typo. I will create a pull request and reference this issue.
ModuleNotFoundError: No module named 'langchain.schemas'
https://api.github.com/repos/langchain-ai/langchain/issues/3960/comments
13
2023-05-02T09:17:39Z
2023-05-03T09:29:32Z
https://github.com/langchain-ai/langchain/issues/3960
1,692,069,373
3,960
[ "hwchase17", "langchain" ]
Since upgrading to 0.0.155, the following code does not work: ``` tool_names = [tool.name for tool in tools] agent = LLMSingleActionAgent( llm_chain=llm_chain, output_parser=output_parser, stop=["\nObservation:"], allowed_tools=tool_names ) ``` The following error is raised in what was previou...
Allowed tools (set()) different than provided tools error - all/most Agent examples broken?
https://api.github.com/repos/langchain-ai/langchain/issues/3957/comments
10
2023-05-02T07:04:11Z
2023-05-05T09:47:17Z
https://github.com/langchain-ai/langchain/issues/3957
1,691,889,457
3,957
[ "hwchase17", "langchain" ]
I am constantly getting OutputParserException from my agent executions but it actually outputs the correct or desired answer to the problem i'm presenting to the agent. Is there a way to redirect that output as the final answer to avoid that error?
OutputParserException with correct answer
https://api.github.com/repos/langchain-ai/langchain/issues/3955/comments
2
2023-05-02T06:23:29Z
2023-10-31T16:07:40Z
https://github.com/langchain-ai/langchain/issues/3955
1,691,845,593
3,955
[ "hwchase17", "langchain" ]
How to reproduce: just pass in a non-None list to `create_pandas_dataframe_agent`, you will see template validator return “missing key” exception.
custom value in `input_variables` would cause missing_variable exception
https://api.github.com/repos/langchain-ai/langchain/issues/3950/comments
1
2023-05-02T05:32:19Z
2023-05-02T05:39:31Z
https://github.com/langchain-ai/langchain/issues/3950
1,691,802,345
3,950
[ "hwchase17", "langchain" ]
Hey ive been working on trying to implement a Custom LLM Agent via ChatOpenAI with access to Bash and REPL tools, but been running into a problem of not being able to execute MultiAgentLLMAction module properly for it to work, do you have any hints or ideas of why is this the case?
MultiAgentLLMAction
https://api.github.com/repos/langchain-ai/langchain/issues/3949/comments
0
2023-05-02T05:30:01Z
2023-05-02T05:45:20Z
https://github.com/langchain-ai/langchain/issues/3949
1,691,800,773
3,949
[ "hwchase17", "langchain" ]
I'm trying to build a chatbot that can chat about pdfs, and I got it working with memory using ConversationBufferMemory and ConversationalRetrievalChain like in this example. https://python.langchain.com/en/latest/modules/chains/index_examples/chat_vector_db.html Now I'm trying to give the AI some special instructio...
Giving SystemMessage/Context to ConversationalRetrievalChain and ConversationBufferMemory
https://api.github.com/repos/langchain-ai/langchain/issues/3947/comments
8
2023-05-02T05:28:35Z
2023-11-26T16:09:51Z
https://github.com/langchain-ai/langchain/issues/3947
1,691,799,815
3,947
[ "hwchase17", "langchain" ]
I just installed https://mlc.ai/mlc-llm/ and played around with it locally. Looks like a good option if you do not want to rely on internet access to interact with the LLM. I think an llm interface with this could be useful in langchain. I asked mlc running locally on my machine to write something to the owners of t...
Are their plans to incorporate mlc.ai
https://api.github.com/repos/langchain-ai/langchain/issues/3932/comments
5
2023-05-02T03:08:33Z
2024-06-21T16:37:50Z
https://github.com/langchain-ai/langchain/issues/3932
1,691,708,912
3,932
[ "hwchase17", "langchain" ]
The `ConversationTokenBufferMemory` doesn't behave as expected. https://github.com/hwchase17/langchain/blob/master/langchain/memory/token_buffer.py Specifically, the memory is only set to the `max_token_limit` as part of the `save_context` method. (I hope I'm using the word "method" correctly; I'm a n00b so correct ...
ConversationTokenBufferMemory does not behave as expected
https://api.github.com/repos/langchain-ai/langchain/issues/3922/comments
2
2023-05-01T23:31:10Z
2023-09-26T16:07:24Z
https://github.com/langchain-ai/langchain/issues/3922
1,691,554,341
3,922
[ "hwchase17", "langchain" ]
I am working on a streamlit prototype to query text documents with an LLM. Everything works fine with the openAI model. However if I am using LlamaCpp the output only gets written in the console and LangChain returns an empty object at the end. ```python # model callback_manager = BaseCallbackManager([Stream...
How to extract answer from RetrievalQAWithSourcesChain with ggml-model-q4_0.bin?
https://api.github.com/repos/langchain-ai/langchain/issues/3905/comments
6
2023-05-01T18:45:03Z
2023-09-23T16:06:42Z
https://github.com/langchain-ai/langchain/issues/3905
1,691,177,594
3,905
[ "hwchase17", "langchain" ]
Error I am getting: ``` > Entering new AgentExecutor chain... I need to navigate to the TechCrunch website and search for an article about Clubhouse. Action: navigate_browser Action Input: https://techcrunch.com/Traceback (most recent call last): File "c:\Users\ryans\Documents\JobsGPT\test.py", line 45, in ...
Playwright bug? ValueError: Synchronous browser not provided to navigate_browser
https://api.github.com/repos/langchain-ai/langchain/issues/3903/comments
6
2023-05-01T18:10:21Z
2023-09-23T16:06:46Z
https://github.com/langchain-ai/langchain/issues/3903
1,691,144,943
3,903
[ "hwchase17", "langchain" ]
null
delete this duplicate
https://api.github.com/repos/langchain-ai/langchain/issues/3901/comments
1
2023-05-01T18:08:25Z
2023-09-10T16:24:02Z
https://github.com/langchain-ai/langchain/issues/3901
1,691,142,512
3,901
[ "hwchase17", "langchain" ]
Uninformative error. The error still exists. I just got back from vacation to see my app stop working with this new error. I tried updating... pip install -U langchain Successfully installed langchain-0.0.154 openapi-schema-pydantic-1.2.4 Clearly, this is not the issue if nothing changed for 2 weeks. I assume ...
KeyError: 'completion' @ version: langchain-0.0.154 openapi-schema-pydantic-1.2.4
https://api.github.com/repos/langchain-ai/langchain/issues/3900/comments
3
2023-05-01T17:37:58Z
2023-09-16T16:14:43Z
https://github.com/langchain-ai/langchain/issues/3900
1,691,106,870
3,900
[ "hwchase17", "langchain" ]
Here is an example code that gives this error: ``` from langchain import OpenAI from langchain.agents import load_tools, Tool from langchain.prompts import PromptTemplate from langchain.chains import LLMChain llm = OpenAI( openai_api_key='', temperature=0, model_name="text-davinci-003", ...
_func() takes from 1 to 2 positional arguments but 42 were given. Please try again with a valid numerical expression
https://api.github.com/repos/langchain-ai/langchain/issues/3898/comments
1
2023-05-01T17:36:24Z
2023-09-10T16:24:13Z
https://github.com/langchain-ai/langchain/issues/3898
1,691,105,497
3,898
[ "hwchase17", "langchain" ]
The `FAISS.add_texts` and `FAISS.merge_from` don't check duplicated document contents, and always add contents into Vecstore. ```ruby test_db = FAISS.from_texts(['text 2'], embeddings) test_db.add_texts(['text 1', 'text 2', 'text 1']) print(test_db.index_to_docstore_id) test_db.docstore._dict ``` Note that 'te...
Remove duplication when creating and updating FAISS Vecstore
https://api.github.com/repos/langchain-ai/langchain/issues/3896/comments
3
2023-05-01T17:31:28Z
2023-11-30T16:10:11Z
https://github.com/langchain-ai/langchain/issues/3896
1,691,099,458
3,896
[ "hwchase17", "langchain" ]
I am trying to follow this guide on evaluation of agents (https://python.langchain.com/en/latest/use_cases/evaluation/generic_agent_evaluation.html), but I'm seeing the following error: `ImportError: cannot import name 'ChainManagerMixin' from 'langchain.callbacks.base'` I am using langchain==0.0.154 with Pyth...
TrajectoryEvalChain import error - cannot import name 'ChainManagerMixin' from 'langchain.callbacks.base
https://api.github.com/repos/langchain-ai/langchain/issues/3894/comments
6
2023-05-01T17:21:34Z
2023-06-02T00:50:49Z
https://github.com/langchain-ai/langchain/issues/3894
1,691,090,422
3,894
[ "hwchase17", "langchain" ]
I'm trying to make a vectorstore using redis and store the embeddings in redis. When I write the code rds = Redis.from_documents(docs, embeddings, redis_url="redis://localhost:6379", index_name='test_link') I get the following error AttributeError: 'Redis' object has no attribute 'module_list'. Note: I'm trying t...
AttributeError: 'Redis' object has no attribute 'module_list'
https://api.github.com/repos/langchain-ai/langchain/issues/3893/comments
18
2023-05-01T17:02:43Z
2024-02-12T05:13:49Z
https://github.com/langchain-ai/langchain/issues/3893
1,691,068,719
3,893
[ "hwchase17", "langchain" ]
Build SDK support for .NET. I'd be happy to contribute to the project.
Support for .NET
https://api.github.com/repos/langchain-ai/langchain/issues/3891/comments
15
2023-05-01T16:37:36Z
2024-01-22T21:48:28Z
https://github.com/langchain-ai/langchain/issues/3891
1,691,041,869
3,891
[ "hwchase17", "langchain" ]
`print(agent.agent.llm_chain.prompt.template)` >You are working with a pandas dataframe in Python. The name of the dataframe is `df`. You should use the tools below to answer the question posed of you: >python_repl_ast: A Python shell. Use this to execute python commands. Input should be a valid python command. ...
How many times llm (openai) api called in csv agent for the below prompt?
https://api.github.com/repos/langchain-ai/langchain/issues/3886/comments
3
2023-05-01T14:29:44Z
2023-09-16T16:14:47Z
https://github.com/langchain-ai/langchain/issues/3886
1,690,886,384
3,886
[ "hwchase17", "langchain" ]
Hello Guys, I am currently trying to make chain summary of long document with langchain (before that I did my own tools) but the summaries dont seem to work with get3.5 wich can only be made using the chatversion. Do someone has an exemple of implementation on that matter?
Summary chain with chat 3.5 turbo
https://api.github.com/repos/langchain-ai/langchain/issues/3885/comments
3
2023-05-01T13:51:42Z
2023-05-01T17:43:55Z
https://github.com/langchain-ai/langchain/issues/3885
1,690,834,249
3,885
[ "hwchase17", "langchain" ]
# Issue description: I have encountered an issue while using the PGVector vectorstore in **long-running applications like Celery**. with a non-existent table. Currently, the application hangs indefinitely in a database transaction, which affects visibility of created tables (e.g., langchain_pg_embedding) when inspec...
PGVector vectorstore hangs in database transaction
https://api.github.com/repos/langchain-ai/langchain/issues/3883/comments
1
2023-05-01T13:37:12Z
2023-05-02T11:44:19Z
https://github.com/langchain-ai/langchain/issues/3883
1,690,818,388
3,883
[ "hwchase17", "langchain" ]
Hi there, I'm relatively new to langchain and I was wondering if there's an ETA for async support for general HF pipelines (so that we can stream from server the answer of any HF model). Thanks for the lib and amazing work so far.
Question: ETA of async support for HuggingFacePipelines
https://api.github.com/repos/langchain-ai/langchain/issues/3869/comments
1
2023-05-01T08:16:28Z
2023-09-10T16:24:23Z
https://github.com/langchain-ai/langchain/issues/3869
1,690,546,087
3,869
[ "hwchase17", "langchain" ]
Both the loaders fail with the error below- ``` [Errno 30] Read-only file system: '/home/sbx_user1051' ``` This is because of [this line](https://github.com/hwchase17/langchain/blob/f7cb2af5f40c958ac1b3d6ba243170ef627dbb6e/langchain/document_loaders/s3_file.py#L29). The only writable directory in AWS Lambda is ...
S3FileLoader and S3DirectoryLoader does not work on AWS Lambda
https://api.github.com/repos/langchain-ai/langchain/issues/3866/comments
0
2023-05-01T07:47:09Z
2023-05-01T08:01:41Z
https://github.com/langchain-ai/langchain/issues/3866
1,690,514,948
3,866
[ "hwchase17", "langchain" ]
From the [official doc](https://python.langchain.com/en/latest/modules/agents/tools/examples/arxiv.html), to run an agent with arxiv, you can arxiv as a tool `from langchain.chat_models import ChatOpenAI from langchain.agents import load_tools, initialize_agent, AgentType llm = ChatOpenAI(temperature=0.0) tools...
arxiv is not recognized in tools
https://api.github.com/repos/langchain-ai/langchain/issues/3865/comments
4
2023-05-01T07:43:32Z
2023-09-23T16:06:51Z
https://github.com/langchain-ai/langchain/issues/3865
1,690,512,769
3,865
[ "hwchase17", "langchain" ]
I tried to follow the instructions on the site and use Cohere embeddings, but it keeps trying to use OpenAI. ``` from langchain.document_loaders import PyPDFLoader from langchain.indexes import VectorstoreIndexCreator from langchain.embeddings import CohereEmbeddings cohere = CohereEmbeddings(cohere_api_key="api...
Cohere Embeddings not picked up in VectorstoreIndexCreator
https://api.github.com/repos/langchain-ai/langchain/issues/3859/comments
0
2023-05-01T02:55:02Z
2023-05-01T03:03:15Z
https://github.com/langchain-ai/langchain/issues/3859
1,690,283,994
3,859
[ "hwchase17", "langchain" ]
I would like the option to define the fallback behavior for when the Agent executes a tool action that is "invalid". This is useful when you have a lot of commands and instead of putting them all in the prompt you instead provide the agent with a "help" command which it can run to learn about additional commands. ...
[Feature Request] Option to define my own "InvalidTool"
https://api.github.com/repos/langchain-ai/langchain/issues/3852/comments
1
2023-05-01T00:34:20Z
2023-05-03T12:00:59Z
https://github.com/langchain-ai/langchain/issues/3852
1,690,170,650
3,852
[ "hwchase17", "langchain" ]
I have used LangChain heavily in my two LLMs demos. Really appreciate for your efforts on building such a great platform! I recently designed a **prompt compression tool** which allows **LLMs to deal with 2x more context** without any finetuning/training. It's a **plug-and-play module** that fits langchain ecosystem...
[Feature] Adding prompt compression to langchain?
https://api.github.com/repos/langchain-ai/langchain/issues/3849/comments
1
2023-04-30T23:24:20Z
2023-09-10T16:24:28Z
https://github.com/langchain-ai/langchain/issues/3849
1,690,129,009
3,849
[ "hwchase17", "langchain" ]
The current implementation only excludes inputs matching the memory key. When using CombinedMemory, there will be multiple keys and the vector store memory will save everything except the memory_key. This is unwanted because in my case the other key includes the entire chat history. This seems to be the relevant fu...
VectorStoreRetrieverMemory does not respect input_key, stores additional keys
https://api.github.com/repos/langchain-ai/langchain/issues/3845/comments
1
2023-04-30T22:01:09Z
2023-09-10T16:24:33Z
https://github.com/langchain-ai/langchain/issues/3845
1,690,101,859
3,845
[ "hwchase17", "langchain" ]
Hi, i am wondering if using the csv agent or the pandas dataframe agent I can also query and visualize charts with a chart library (seaborn, matplotlib or others..) when analysing a csv file/dataframe? thanks, Marcello
Use of matplotlib or seaborn with csv agent or Pandas Dataframe Agent?
https://api.github.com/repos/langchain-ai/langchain/issues/3844/comments
9
2023-04-30T21:48:12Z
2023-10-23T16:08:58Z
https://github.com/langchain-ai/langchain/issues/3844
1,690,097,001
3,844
[ "hwchase17", "langchain" ]
Hi Team, I am getting below error while trying to use the gpt4all model, Can someone please advice ? Error: ``` File "/home/ubuntu/.local/share/virtualenvs/local-conversational-ai-chatbot-using-gpt4-6TvxabtR/lib/python3.10/site-packages/langchain/llms/gpt4all.py", line 181, in _call text = self.client.ge...
Unable to use gpt4all model
https://api.github.com/repos/langchain-ai/langchain/issues/3839/comments
27
2023-04-30T17:49:59Z
2023-08-24T15:27:07Z
https://github.com/langchain-ai/langchain/issues/3839
1,690,013,787
3,839
[ "hwchase17", "langchain" ]
I'm trying to use the GPT model to interact with the Google Calendar API, but I'm receiving the following error message: "This model's maximum context length is 4097 tokens. However, your messages resulted in 4392 tokens. Please reduce the length of the messages." https://gist.github.com/kingcharlezz/e820bc60febe...
Model's maximum context length exceeded when building agent
https://api.github.com/repos/langchain-ai/langchain/issues/3838/comments
3
2023-04-30T17:02:16Z
2023-11-16T16:08:12Z
https://github.com/langchain-ai/langchain/issues/3838
1,689,996,954
3,838
[ "hwchase17", "langchain" ]
Sample export: ``` [30/04/23, 5:33:19 PM] ‪Sam‬: Hi Sameer [30/04/23, 5:37:30 PM] Sameer: Hi Sam [30/04/23, 5:43:06 PM] ‪Sam‬: How are you doing [30/04/23, 5:44:11 PM] Sameer: Going great. Wbu? [30/04/23, 5:44:39 PM] ‪Sam‬: I am doing fine thanks for asking ``` The export from iOS is different in format so re...
WhatsppLoader broken for iOS exports
https://api.github.com/repos/langchain-ai/langchain/issues/3832/comments
2
2023-04-30T14:35:11Z
2023-09-10T16:24:38Z
https://github.com/langchain-ai/langchain/issues/3832
1,689,940,368
3,832
[ "hwchase17", "langchain" ]
Traceback (most recent call last): File "/Users/vnx/experiments/openai/products-recommendation.py", line 10, in <module> data = loader.load() ^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/langchain/document_loaders/csv_loader.py", line 52, in load csv_reader = csv.DictReader(cs...
CSVLoader TypeError: "delimiter" must be string, not NoneType
https://api.github.com/repos/langchain-ai/langchain/issues/3831/comments
2
2023-04-30T13:40:09Z
2023-05-03T14:06:46Z
https://github.com/langchain-ai/langchain/issues/3831
1,689,922,867
3,831
[ "hwchase17", "langchain" ]
@app.post("/memask") async def memask(ask: Ask, authorization: str = Header(None)): bearer = authorization.split()[0].lower() if authorization is None or bearer != 'bearer': raise HTTPException(status_code=401, detail="请求头authorization错误!") token = authorization.split()[1] if get_user(ask....
fastapi+ConversationSummaryBufferMemory+chain+streaming response
https://api.github.com/repos/langchain-ai/langchain/issues/3830/comments
1
2023-04-30T12:59:31Z
2023-09-10T16:24:43Z
https://github.com/langchain-ai/langchain/issues/3830
1,689,910,731
3,830
[ "hwchase17", "langchain" ]
Most web applications are developed using Java, and may we need Java SDK
[Feature] supported java sdk
https://api.github.com/repos/langchain-ai/langchain/issues/3829/comments
3
2023-04-30T11:19:17Z
2023-10-09T16:08:13Z
https://github.com/langchain-ai/langchain/issues/3829
1,689,878,359
3,829
[ "hwchase17", "langchain" ]
I am new to contributing to open-source. I have installed poetry 1.4.0 version and setup new conda environment. While running ```poetry install -E all```, I am getting error as such: ``` Command ['python', '-I', '-W', 'ignore', '-'] errored with the following return code 2 Error output: Unknown option: -I usa...
getting error while running poetry install -E all
https://api.github.com/repos/langchain-ai/langchain/issues/3821/comments
2
2023-04-30T05:55:47Z
2023-09-10T16:24:48Z
https://github.com/langchain-ai/langchain/issues/3821
1,689,793,136
3,821
[ "hwchase17", "langchain" ]
For some questions they give me answer but not for other. But the data are already available in my dataset. How I can improve this!? 😌
Why langchain embading missing the information.
https://api.github.com/repos/langchain-ai/langchain/issues/3816/comments
2
2023-04-30T02:51:30Z
2023-09-10T16:24:53Z
https://github.com/langchain-ai/langchain/issues/3816
1,689,756,708
3,816
[ "hwchase17", "langchain" ]
While the agent seems to find the correct function, I keep getting `Observation: "... is not a valid tool, try another one."` and it struggles to iterate over the other similar solutions from there. Here is an output using the [docs example](https://python.langchain.com/en/latest/modules/agents/tools/multi_input_tool.h...
Invalid tool using Llama.cpp
https://api.github.com/repos/langchain-ai/langchain/issues/3815/comments
2
2023-04-30T01:40:12Z
2024-04-03T14:21:27Z
https://github.com/langchain-ai/langchain/issues/3815
1,689,743,256
3,815
[ "hwchase17", "langchain" ]
Whenever I run code like ``` chain = load_qa_chain(llm=flan_t5_xxl, chain_type="map_reduce") answer = chain({"input_documents": split_docs, "question": query), return_only_outputs=True) ``` I get first a warning: `Token indices sequence length is longer than the specified maximum length for this model` f...
`load_qa_chain` with `map_reduce` results in "Token indices sequence length" error
https://api.github.com/repos/langchain-ai/langchain/issues/3812/comments
14
2023-04-29T23:47:54Z
2023-10-05T16:10:23Z
https://github.com/langchain-ai/langchain/issues/3812
1,689,721,102
3,812
[ "hwchase17", "langchain" ]
https://github.com/hwchase17/langchain/blob/adcad98bee03ac8486f328b4f316017a6ccfc808/langchain/embeddings/openai.py#L159 Getting "no attribute" error for `tiktoken.model`. Believe that this is because tiktoken has changed their import model, per code [here](https://github.com/openai/tiktoken/blob/main/tiktoken/__ini...
Tiktoken import bug?
https://api.github.com/repos/langchain-ai/langchain/issues/3811/comments
11
2023-04-29T23:14:52Z
2024-07-30T12:32:34Z
https://github.com/langchain-ai/langchain/issues/3811
1,689,715,364
3,811
[ "hwchase17", "langchain" ]
I'm trying to implement a basic chatbot that searches over PDFs documents. I've been following the examples in the Langchain docs and I've noticed that the answers I get back from different methods are inconsistent. When I use `RetrievalQA` I get better answers than when I use `ConversationalRetrievalChain`. I wa...
ConversationalRetrievalChain gives different answers than Retrieval QA when searching docs
https://api.github.com/repos/langchain-ai/langchain/issues/3809/comments
6
2023-04-29T22:27:40Z
2023-11-26T16:09:59Z
https://github.com/langchain-ai/langchain/issues/3809
1,689,705,722
3,809
[ "hwchase17", "langchain" ]
null
pizza
https://api.github.com/repos/langchain-ai/langchain/issues/3804/comments
1
2023-04-29T21:24:08Z
2023-04-29T21:45:53Z
https://github.com/langchain-ai/langchain/issues/3804
1,689,692,183
3,804
[ "hwchase17", "langchain" ]
The `Pinecone.from_documents()` embeddings-creation/upsert ([based on this example](https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/pinecone.html)) produces two unexpected behaviors: 1. Mutates the original `docs` object inplace, such that each entry's `Document.metadata` dict now has a ...
Pinecone.from_texts() added 'text' metadata field modifies data object passed in as argument AND errors if text size exceeds Pinecone metadata limit per vector
https://api.github.com/repos/langchain-ai/langchain/issues/3800/comments
7
2023-04-29T19:57:58Z
2023-09-23T16:06:56Z
https://github.com/langchain-ai/langchain/issues/3800
1,689,671,027
3,800
[ "hwchase17", "langchain" ]
https://python.langchain.com/en/latest/use_cases/question_answering/semantic-search-over-chat.html https://github.com/hwchase17/langchain/blob/master/docs/use_cases/question_answering/semantic-search-over-chat.ipynb ![image](https://user-images.githubusercontent.com/54778084/235321215-c5907803-064b-4ea5-beb9-8e51...
AttributeError: 'str' object has no attribute 'page_content'
https://api.github.com/repos/langchain-ai/langchain/issues/3799/comments
8
2023-04-29T19:41:25Z
2024-06-03T12:38:54Z
https://github.com/langchain-ai/langchain/issues/3799
1,689,666,728
3,799
[ "hwchase17", "langchain" ]
In the documentation it is mentioned to create toolkit without LLM agent, but its one of the required fields for toolkit. Instead of this, ``` toolkit = SQLDatabaseToolkit(db=db) agent_executor = create_sql_agent( llm=OpenAI(temperature=0), toolkit=toolkit, verbose=True ) ``` it should be th...
Docs to include LLM before creating SQL Database Agent
https://api.github.com/repos/langchain-ai/langchain/issues/3798/comments
5
2023-04-29T19:30:26Z
2023-11-30T16:10:21Z
https://github.com/langchain-ai/langchain/issues/3798
1,689,663,886
3,798
[ "hwchase17", "langchain" ]
https://github.com/hwchase17/langchain/tree/master/langchain/docstore)/base.py The search method of base.py states: """Search for document. If page exists, return the page summary, and a Document object. If page does not exist, return similar entries. """ The signature for th...
The signature and derived Implementations of DocStore(ABC).search don't match the documentation of the base class
https://api.github.com/repos/langchain-ai/langchain/issues/3794/comments
4
2023-04-29T17:38:34Z
2023-11-29T16:11:04Z
https://github.com/langchain-ai/langchain/issues/3794
1,689,632,702
3,794
[ "hwchase17", "langchain" ]
chain = load_qa_chain(llm, chain_type="stuff") answer = chain.run(input_documents=similar_docs ,question=query) --> This is return a attribute error as below 8 frames [/usr/local/lib/python3.10/dist-packages/langchain/chains/combine_documents/base.py](https://wtvsodgob9i-496ff2e9c6d22116-0-colab.googleuserconten...
Attribute error tuple has no attribute 'page_content'
https://api.github.com/repos/langchain-ai/langchain/issues/3790/comments
13
2023-04-29T15:30:33Z
2023-11-05T16:07:24Z
https://github.com/langchain-ai/langchain/issues/3790
1,689,596,758
3,790
[ "hwchase17", "langchain" ]
receive chat history and custom knowledge source
is there a chain type equivalent to ConversationalRetrievalQA in JS
https://api.github.com/repos/langchain-ai/langchain/issues/3789/comments
1
2023-04-29T15:12:41Z
2023-09-10T16:25:04Z
https://github.com/langchain-ai/langchain/issues/3789
1,689,591,831
3,789
[ "hwchase17", "langchain" ]
Hi, I've been playing with the [SelfQueryRetriever examples](https://python.langchain.com/en/latest/modules/indexes/retrievers/examples/self_query_retriever.html) but am having a few issues with allowed operators and valid Comparator/s. **Example 2:** This example only specifies a filter `retriever.get_relevant_...
SelfQueryRetriever: invalid operators/comparators
https://api.github.com/repos/langchain-ai/langchain/issues/3788/comments
13
2023-04-29T14:37:53Z
2024-08-05T21:58:09Z
https://github.com/langchain-ai/langchain/issues/3788
1,689,581,463
3,788
[ "hwchase17", "langchain" ]
Hi! I am using GPT4All with agents and Wikipedia as a tool. I'm getting this error: `is not a valid tool, try another one.`. I have noticed that in the action there is that: `Action: Use Wikipedia to confirm the accuracy of this information.` I think it should be `Action: wikipedia`.
Is not a valid tool, try another one.
https://api.github.com/repos/langchain-ai/langchain/issues/3785/comments
6
2023-04-29T13:32:19Z
2023-09-24T16:06:41Z
https://github.com/langchain-ai/langchain/issues/3785
1,689,561,941
3,785
[ "hwchase17", "langchain" ]
# Description There is a typo on the [Components/Schema/Text documentation page](https://docs.langchain.com/docs/components/schema/text). The third sentence starts with: ``` Therefor, a lot of the interfaces... ``` It should be changed to: ``` Therefore, a lot of the interfaces... ```
DOCS: Typo on Components/Schema/Text page
https://api.github.com/repos/langchain-ai/langchain/issues/3784/comments
7
2023-04-29T12:10:04Z
2023-12-19T00:51:18Z
https://github.com/langchain-ai/langchain/issues/3784
1,689,539,500
3,784
[ "hwchase17", "langchain" ]
Hey guys, wanted to ask if I can use the SQL Database Agent agent and get the inference from OpenAI gpt-3.5-turbo? And if so, how can I do that? Tried to replace the llm argument on the initialization of the agent executor from OpenAI to OpenAIChat and a bunch of other stuff. But none seems to work. Thanks!
Using the SQL Database Agent with inference from OpenAI gpt-3.5-turbo model.
https://api.github.com/repos/langchain-ai/langchain/issues/3783/comments
7
2023-04-29T12:01:17Z
2023-09-24T16:06:46Z
https://github.com/langchain-ai/langchain/issues/3783
1,689,537,068
3,783
[ "hwchase17", "langchain" ]
I am trying to follow quick start guide for using agents from https://python.langchain.com/en/latest/getting_started/getting_started.html#agents-dynamically-call-chains-based-on-user-input while following steps I am seeing error ``` ZeroShotAgent does not support multi-input tool Calculator. ``` I am using `langch...
ZeroShotAgent does not support multi-input tool Calculator.
https://api.github.com/repos/langchain-ai/langchain/issues/3781/comments
9
2023-04-29T11:28:21Z
2023-10-30T12:34:46Z
https://github.com/langchain-ai/langchain/issues/3781
1,689,528,678
3,781
[ "hwchase17", "langchain" ]
While working on https://github.com/hwchase17/langchain/issues/3722 I have noticed that there might be a bug in the current implementation of the OpenAI length safe embeddings in `_get_len_safe_embeddings`, which before #3722 was actually the **default implementation** (after https://github.com/hwchase17/langchain/pull...
OpenAI embedding use invalid/constant weights
https://api.github.com/repos/langchain-ai/langchain/issues/3777/comments
1
2023-04-29T05:57:29Z
2023-09-15T22:12:54Z
https://github.com/langchain-ai/langchain/issues/3777
1,689,407,698
3,777
[ "hwchase17", "langchain" ]
### Description Currently, the `AzureOpenAI` and `AzureChatOpenAI` classes call the same underlying SDK, but the developer interaction with both is different. The goal of this issue is to update the `AzureOpenAI` class to use the following parameters like `AzureChatOpenAI`: ```python deployment_name: str = "" o...
[Azure OpenAI] Merging validate_environment from AzureChatOpenAI to AzureOpenAI
https://api.github.com/repos/langchain-ai/langchain/issues/3769/comments
2
2023-04-29T04:12:41Z
2023-09-10T16:25:14Z
https://github.com/langchain-ai/langchain/issues/3769
1,689,355,370
3,769
[ "hwchase17", "langchain" ]
Commit: https://github.com/hwchase17/langchain/commit/4654c58f7238e10b35544633bd780b73bbb75c75 This commit appears to have broken the Quick Start example for Agents: Dynamically Call Chains Based on User Input. When attempting to follow along this now causes an error ValueError: ZeroShotAgent does not support multi-in...
Quick Start example for Agents: Dynamically Call Chains Based on User Input is broken
https://api.github.com/repos/langchain-ai/langchain/issues/3757/comments
5
2023-04-29T01:02:41Z
2023-05-01T21:42:18Z
https://github.com/langchain-ai/langchain/issues/3757
1,689,291,529
3,757
[ "hwchase17", "langchain" ]
Hey guys, the code is absolutely the same as https://github.com/hwchase17/langchain/issues/3750 but just with a german prompt. The prompt justs asks for recommendations about things to do in Middle-Franconia (part of Germany). ``` % python3 app.py "Nenne mir 3 Ausflugsziele in Mittelfranken?" llam...
ValueError: Requested tokens exceed context window of 512
https://api.github.com/repos/langchain-ai/langchain/issues/3751/comments
8
2023-04-28T23:42:51Z
2023-05-24T20:06:54Z
https://github.com/langchain-ai/langchain/issues/3751
1,689,259,604
3,751
[ "hwchase17", "langchain" ]
Hey there, thanks for langchain! It's super awesome! 👍 I am currently trying to write a simple REST API but i am getting somewhat random errors. Sometimes (about 1 in 15 runs) it's this: ``` % python3 app.py "Who won the superbowl the year justin bieber was born?" llama.cpp: loading model from /Users/myad...
langchain.schema.OutputParserException: Could not parse LLM output: `
https://api.github.com/repos/langchain-ai/langchain/issues/3750/comments
7
2023-04-28T23:35:05Z
2024-03-16T23:01:29Z
https://github.com/langchain-ai/langchain/issues/3750
1,689,255,999
3,750
[ "hwchase17", "langchain" ]
https://github.com/hwchase17/langchain/blob/72c5c15f7fdc1918880e3cfd0949199e5a0b5bda/langchain/retrievers/document_compressors/chain_extract.py#L67-L77 Should allow to pass arbitrary argument to the `LLMChain` for example `verbose`, much like for example `BaseQAWithSourcesChain` does: https://github.com/hwchase17/la...
`LLMChainExtractor.from_llm` should accept `kwargs` for the internal `LLMChain`
https://api.github.com/repos/langchain-ai/langchain/issues/3747/comments
0
2023-04-28T23:31:03Z
2023-04-29T04:21:25Z
https://github.com/langchain-ai/langchain/issues/3747
1,689,254,467
3,747
[ "hwchase17", "langchain" ]
The following code broke post updating, was working fine before: ```py def get_chat_agent(memory, tools): return initialize_agent( tools, ChatOpenAI(verbose=True), agent=AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION, memory=memory, system_message=CHAT_AGENT_S...
:bug: Breaking changes introduced into previous code after updating to 0.0.152
https://api.github.com/repos/langchain-ai/langchain/issues/3743/comments
2
2023-04-28T23:03:42Z
2023-09-10T16:25:19Z
https://github.com/langchain-ai/langchain/issues/3743
1,689,241,785
3,743
[ "hwchase17", "langchain" ]
The default prompt of `load_qa_with_sources_chain` in `langchain.chains.qa_with_sources` ( `langchain 0.0.147` and the last few versions) contains user information (probably a question someone had, or an example) - please clean it. **The default prompt should be (I think):** ``` template = """Given the following...
Bug reporting in `load_qa_with_sources_chain` promt
https://api.github.com/repos/langchain-ai/langchain/issues/3737/comments
6
2023-04-28T21:12:29Z
2023-09-24T16:06:51Z
https://github.com/langchain-ai/langchain/issues/3737
1,689,140,634
3,737
[ "hwchase17", "langchain" ]
I am interested in making use of Prompt serialization in order to allow for more modular use of models / chains. I noticed when partial variables were initially added in [this PR](https://github.com/hwchase17/langchain/pull/1308), there was some discussion about their interaction with serialized prompts, which resul...
Serializing Prompts with Partial Variables
https://api.github.com/repos/langchain-ai/langchain/issues/3735/comments
2
2023-04-28T21:06:22Z
2023-09-17T17:21:49Z
https://github.com/langchain-ai/langchain/issues/3735
1,689,135,358
3,735
[ "hwchase17", "langchain" ]
Hello, my code is reading "state_of_the_union" text which I converted to a PDF chromadb.__version__ '0.3.21' my code is ################## # LLM model model_path = f"{model_dir}gpt-neo-2.7B" generate_text = pipeline('text-generation', model = model_path,\ max_new_tokens = 100, ...
Strange document similarity results
https://api.github.com/repos/langchain-ai/langchain/issues/3731/comments
2
2023-04-28T20:09:11Z
2023-10-09T16:08:18Z
https://github.com/langchain-ai/langchain/issues/3731
1,689,078,087
3,731
[ "hwchase17", "langchain" ]
``` from langchain.document_loaders import DirectoryLoader loader = DirectoryLoader('./server', glob="**/*.md") data = loader.load() ``` Error ``` from pdfminer.utils import open_filename ImportError: cannot import name 'open_filename' from 'pdfminer.utils' (/usr/local/lib/python3.8/dist-packages/pdfminer...
Errors with DirectoryLoader
https://api.github.com/repos/langchain-ai/langchain/issues/3726/comments
9
2023-04-28T18:16:21Z
2024-03-26T16:04:51Z
https://github.com/langchain-ai/langchain/issues/3726
1,688,958,540
3,726
[ "hwchase17", "langchain" ]
If you have a look at: [https://python.langchain.com/en/latest/modules/models/llms/integrations/gpt4all.html](https://python.langchain.com/en/latest/modules/models/llms/integrations/gpt4all.html), you will see that it tells to `pip install pyllamacpp` This is because the class GPT4All (from langchain.llms import...
GPT4All model - Update required in the documentation
https://api.github.com/repos/langchain-ai/langchain/issues/3725/comments
1
2023-04-28T18:03:24Z
2023-09-15T22:12:53Z
https://github.com/langchain-ai/langchain/issues/3725
1,688,945,178
3,725
[ "hwchase17", "langchain" ]
https://github.com/hwchase17/langchain/blob/1bf1c37c0cccb7c8c73d87ace27cf742f814dbe5/langchain/embeddings/openai.py#L210-L211 Means that the length safe embedding method is "always" used, initial implementation https://github.com/hwchase17/langchain/pull/991 has the `embedding_ctx_length` set to -1 (meaning you had ...
`OpenAIEmbeddings` should use length safe embedding method only when needed
https://api.github.com/repos/langchain-ai/langchain/issues/3722/comments
1
2023-04-28T16:42:26Z
2023-04-29T03:11:38Z
https://github.com/langchain-ai/langchain/issues/3722
1,688,845,073
3,722
[ "hwchase17", "langchain" ]
Type: Improvement performance Issue: Most of the CPUs / Hardware are today multi core. 4 cores are common, some have 8 cores. The [DirectoryLoader](https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/directory_loader.html) is using a single core and misses the opportunity of leverage th...
Multi-core loader
https://api.github.com/repos/langchain-ai/langchain/issues/3720/comments
1
2023-04-28T15:29:25Z
2023-09-10T16:25:30Z
https://github.com/langchain-ai/langchain/issues/3720
1,688,753,825
3,720
[ "hwchase17", "langchain" ]
I recommend modifying the `PythonREPL` class in the provided code to raise syntax exceptions when the command string has invalid syntax. Currently, the `run` method uses a `try-except` block to catch any exceptions and return their string representation. Instead, we can use the `ast.parse` function to check for syntax ...
Modify PythonREPL to raise syntax exceptions for invalid command strings
https://api.github.com/repos/langchain-ai/langchain/issues/3712/comments
1
2023-04-28T13:37:48Z
2023-04-28T14:01:54Z
https://github.com/langchain-ai/langchain/issues/3712
1,688,576,160
3,712
[ "hwchase17", "langchain" ]
## Context When the completion is of a longer format such as an Email, the text will likely contain new line character `\n`. If it is not properly escaped like `\\n`, parsing will fail when using PydanticOutputParser as `json.loads` does not allow control characters in strict mode. Most of the time, RetryWithErrorOu...
PydanticOutputParser has high chance failing when completion contains new line
https://api.github.com/repos/langchain-ai/langchain/issues/3709/comments
1
2023-04-28T12:21:49Z
2023-09-24T16:06:56Z
https://github.com/langchain-ai/langchain/issues/3709
1,688,460,377
3,709
[ "hwchase17", "langchain" ]
It fails with ``` File [langchain/chains/base.py:113], in Chain.__call__(self, inputs, return_only_outputs) 107 self.callback_manager.on_chain_start( 108 {"name": self.__class__.__name__}, 109 inputs, 110 verbose=self.verbose, 111 ) 112 try: --> 113 outputs = self._call(...
RetrievalQA cannot be called with QA chain having `return_intermediate_steps=True`
https://api.github.com/repos/langchain-ai/langchain/issues/3707/comments
3
2023-04-28T12:05:34Z
2023-10-18T01:58:05Z
https://github.com/langchain-ai/langchain/issues/3707
1,688,438,803
3,707
[ "hwchase17", "langchain" ]
null
How to create unittest for langchain use in my project?
https://api.github.com/repos/langchain-ai/langchain/issues/3706/comments
1
2023-04-28T12:03:39Z
2023-09-10T16:25:34Z
https://github.com/langchain-ai/langchain/issues/3706
1,688,436,004
3,706
[ "hwchase17", "langchain" ]
from langchain.retrievers.self_query.base import SelfQueryRetriever failed File [~/anaconda3/envs/langchain/lib/python3.11/site-packages/langchain/chains/query_constructor/parser.py:41](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/rubensmau/luby/machine-learning/langchain/~/anaconda3/en...
SelfQueryRetriever import failed in langchain 0.0.152 and 0.0.151
https://api.github.com/repos/langchain-ai/langchain/issues/3705/comments
2
2023-04-28T10:54:32Z
2023-05-02T10:50:16Z
https://github.com/langchain-ai/langchain/issues/3705
1,688,345,812
3,705
[ "hwchase17", "langchain" ]
I'm trying to store vector in Milvus with the following code ~~~ from os import environ MILVUS_HOST = "xxx" MILVUS_PORT = "xxx" OPENAI_API_KEY = "xxx" ## Set up environment variables environ["OPENAI_API_KEY"] = OPENAI_API_KEY from langchain.embeddings.openai import OpenAIEmbeddings from langchain.vecto...
Missing key title in metadata with UnstructuredFileLoader
https://api.github.com/repos/langchain-ai/langchain/issues/3704/comments
12
2023-04-28T10:51:47Z
2024-01-08T19:16:22Z
https://github.com/langchain-ai/langchain/issues/3704
1,688,342,420
3,704
[ "hwchase17", "langchain" ]
There is an error when i tried to use this code. ``` tools = load_tools(['llm-math', 'python_repl'], llm) agent = initialize_agent(tools, agent="zero-shot-react-description", llm=llm) ``` Looks like because of #3684 checking if len(self.args) == 1: in self.is_single_input. But, self.args of llm-math is ``` {'...
ValueError: ZeroShotAgent does not support multi-input tool Calculator.
https://api.github.com/repos/langchain-ai/langchain/issues/3700/comments
29
2023-04-28T09:33:17Z
2023-09-09T01:47:57Z
https://github.com/langchain-ai/langchain/issues/3700
1,688,227,611
3,700
[ "hwchase17", "langchain" ]
## Motivation The Map step is scalable as long as we split documents into chunks. Meanwhile, as far as I know, the Reduce step has a weak point on the limitation of max tokens of a LLM model, since the Reduce step tries to put all summaries generated in the Map step into a prompt of the Reduce step. So, if all summari...
Enable to skip the reduce step of the MapReduce mode of `MapReduceDocumentsChain`
https://api.github.com/repos/langchain-ai/langchain/issues/3694/comments
7
2023-04-28T06:29:39Z
2023-10-13T22:27:50Z
https://github.com/langchain-ai/langchain/issues/3694
1,687,979,068
3,694
[ "hwchase17", "langchain" ]
I have ``` model_kwargs = {"n_predict": 500, "top_k": 40, "top_p": 0.95, "repeat_penalty" : 3} llm = Replicate(model="replicate/gpt4all:1150831d577dd5a992a38aa47cec565ab099390b2825c6c090bd7c715219db3b", model_kwargs=model_kwargs) loader = TextLoader("./materials/sometext.txt") documents ...
Bugs with replicate
https://api.github.com/repos/langchain-ai/langchain/issues/3689/comments
1
2023-04-28T03:16:52Z
2023-09-10T16:25:39Z
https://github.com/langchain-ai/langchain/issues/3689
1,687,832,316
3,689
[ "hwchase17", "langchain" ]
I am currently in the process of replacing GPT with Vicuna in my project. While Vicuna is able to successfully generate the required action and action input, I am encountering a bug where the search API is failing to execute these actions. As a result, the LLM is generating observations independently instead of utilizi...
Action Not Executed After Attempting to Replace with Vicuna
https://api.github.com/repos/langchain-ai/langchain/issues/3688/comments
2
2023-04-28T02:24:18Z
2023-09-10T16:25:45Z
https://github.com/langchain-ai/langchain/issues/3688
1,687,790,352
3,688
[ "hwchase17", "langchain" ]
Hi there. Realise there is a lot happening and this this looks to be something that has been missed. When trying to use TWVSR with ChromaDb it errors because of the lack of implementation of the following, namely __similarity_search_with_relevance_scores, inside of base.py `def _similarity_search_with_releva...
TimeWeightedVectorStoreRetriever (TWVSR) and ChromaDb vector store - base.py
https://api.github.com/repos/langchain-ai/langchain/issues/3685/comments
2
2023-04-28T00:16:05Z
2023-09-03T22:05:31Z
https://github.com/langchain-ai/langchain/issues/3685
1,687,707,556
3,685
[ "hwchase17", "langchain" ]
Hi, I am in the process of developing an agent and a toolkit to query mongodb databases, and to do this I simulated SQL Database Agent code with implementations for mongodb, I created this function to create the agent: ``` def create_mongodb_agent( llm: BaseLLM, toolkit: MongoDBDatabaseToolkit, callb...
Error creating AgentExecutor with custom Toolkit
https://api.github.com/repos/langchain-ai/langchain/issues/3680/comments
5
2023-04-27T21:49:18Z
2023-09-29T03:10:54Z
https://github.com/langchain-ai/langchain/issues/3680
1,687,597,127
3,680
[ "hwchase17", "langchain" ]
[One of the best practices](https://nextword.dev/blog/pinecone-cost-best-practices#store-foreign_key-in-your-meta-not-the-whole-json) for dealing with vectorstores is to treat them as vector databases, not traditional databases (NoSQL, SQL, Postgres, etc). I propose to update LangChain's [getting started](https://py...
Store foreign_key in your meta, not the whole JSON
https://api.github.com/repos/langchain-ai/langchain/issues/3676/comments
1
2023-04-27T21:11:24Z
2023-09-10T16:25:55Z
https://github.com/langchain-ai/langchain/issues/3676
1,687,556,728
3,676
[ "hwchase17", "langchain" ]
With FAISS you can save and load created indexes locally: db.save_local("faiss_index") new_db = FAISS.load_local("faiss_index", embeddings) In a production environment you might want to keep your indexes and docs separated from your application and access those remotely and not locally. How can that be achieved? ...
FAISS remote saving and loading of indexes
https://api.github.com/repos/langchain-ai/langchain/issues/3673/comments
3
2023-04-27T20:26:42Z
2024-01-25T19:58:23Z
https://github.com/langchain-ai/langchain/issues/3673
1,687,502,751
3,673
[ "hwchase17", "langchain" ]
Trying to run langchain with open ai api, it works fine with short paragraphs but when I tried longer ones I got this error: openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens, however you requested 13214 tokens (12958 in your prompt; 256 for the completion). Please reduce your pro...
Feedback error while running langchain
https://api.github.com/repos/langchain-ai/langchain/issues/3670/comments
2
2023-04-27T19:16:21Z
2023-09-10T16:26:00Z
https://github.com/langchain-ai/langchain/issues/3670
1,687,421,640
3,670