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" ]
The retry decorator for ChatOpenAI is hardcoded [here](https://github.com/hwchase17/langchain/blob/d54c88aa2140f27c36fa18375f942e5b239799ee/langchain/chat_models/openai.py#L39) Allow the user to supply a custom retry_decorator.
Allow custom retry_decorator to be passed to the LLM
https://api.github.com/repos/langchain-ai/langchain/issues/3109/comments
3
2023-04-18T19:45:57Z
2023-12-14T16:09:08Z
https://github.com/langchain-ai/langchain/issues/3109
1,673,734,340
3,109
[ "hwchase17", "langchain" ]
langchain Version: 0.0.143 SHA: aad0a498ac693acd304cf66e16a6430f5c0410a8 --- In [1]: import numexpr In [2]: numexpr.__version__ Out[2]: '2.8.4' ----- ```python llm_math.run("what is the common denominator of 2 and 5") ``` Stack trace: > Entering new LLMMathChain chain... what is the com...
Encountering exceptions when using LLMathChain on master
https://api.github.com/repos/langchain-ai/langchain/issues/3108/comments
7
2023-04-18T19:44:09Z
2023-10-02T18:52:56Z
https://github.com/langchain-ai/langchain/issues/3108
1,673,732,281
3,108
[ "hwchase17", "langchain" ]
I have been trying to add memory to my `create_pandas_dataframe_agent` agent and ran into some issues. I created the agent like this ```python agent = create_pandas_dataframe_agent( llm=llm, df=df, prefix=prefix, suffix=suffix, max_iterations=4, input_variables=["df", "chat_history",...
Getting ConversationBufferMemory to work with create_pandas_dataframe_agent
https://api.github.com/repos/langchain-ai/langchain/issues/3106/comments
26
2023-04-18T19:20:33Z
2024-06-30T16:02:47Z
https://github.com/langchain-ai/langchain/issues/3106
1,673,703,559
3,106
[ "hwchase17", "langchain" ]
Is there any ETA on this new LLM integration?
Is Google PaLM integration in the pipeline?
https://api.github.com/repos/langchain-ai/langchain/issues/3101/comments
4
2023-04-18T17:30:34Z
2023-09-26T16:08:00Z
https://github.com/langchain-ai/langchain/issues/3101
1,673,559,016
3,101
[ "hwchase17", "langchain" ]
Model page here: https://huggingface.co/Writer/camel-5b-hf
Add bindings for Camel model API
https://api.github.com/repos/langchain-ai/langchain/issues/3099/comments
1
2023-04-18T17:18:55Z
2023-04-21T01:07:06Z
https://github.com/langchain-ai/langchain/issues/3099
1,673,543,750
3,099
[ "hwchase17", "langchain" ]
Glad to see in #2859 @hwchase17 added a `TimeWeightedVectorStoreRetriever`. I'm creating a game so I want `last_accessed_at` can be things like... number of rounds, turns and others. I would make it in one or two days. Is there anyone want to review it? --- I'm reproducing the Generative Agent article, repo...
[feat] I want to contribute a more generic `TimeWeightedVectorStoreRetriever`
https://api.github.com/repos/langchain-ai/langchain/issues/3098/comments
1
2023-04-18T17:00:09Z
2023-09-10T16:31:11Z
https://github.com/langchain-ai/langchain/issues/3098
1,673,518,661
3,098
[ "hwchase17", "langchain" ]
Trying to import langchain 0.0.128 and up in AWS Lambda (Using serverless framework) fails with this: I suspect that this is the PR that causes the issue. Maybe the __version__ line should be wrapped in a try catch in case the code is ran on an environment where the metadata for packages is not available, as it h...
Langchain not working on Lambda from 0.0.128
https://api.github.com/repos/langchain-ai/langchain/issues/3097/comments
1
2023-04-18T16:48:58Z
2023-04-19T00:38:20Z
https://github.com/langchain-ai/langchain/issues/3097
1,673,503,749
3,097
[ "hwchase17", "langchain" ]
I was wondering how to use the `return_intermediate_step` flag for agent executors this is the current Appoach I found to be working: Ok ive dug a little deeper and it seems like setting `return_intermediate_step = True` when creating the agent with `initialize_agent` works. Only when using a memory you need to set...
Usage of `return_intermediate_step` on Agents, and agent step callbacks
https://api.github.com/repos/langchain-ai/langchain/issues/3091/comments
4
2023-04-18T14:09:22Z
2023-09-20T11:26:27Z
https://github.com/langchain-ai/langchain/issues/3091
1,673,220,342
3,091
[ "hwchase17", "langchain" ]
Got a loop when asking for "What's the best BBQ in Kansas City" . When added to the prompt - "say cannot answer,if you don´t know the answer " did not stop the loop. The loop only stopped after blowing up the context length On the other hand, if using OpenAI old models, it worked fine . Using SerpAPIWrapper
Agent SELF_ASK_WITH_SEARCH does not work with ChatOpenAI models
https://api.github.com/repos/langchain-ai/langchain/issues/3090/comments
5
2023-04-18T13:26:25Z
2023-10-02T16:08:52Z
https://github.com/langchain-ai/langchain/issues/3090
1,673,135,511
3,090
[ "hwchase17", "langchain" ]
After reviewing the work done on https://github.com/hwchase17/langchain/pull/2859 and its accompanying examples, I propose creating Generative Characters as a set of langchain components. These components would include Memory, Chain, and Agent Classes. - Memory: This includes the ability to retrieve documents from V...
[feat] Create Memory, Chain and Agent Classes for Generative Characters
https://api.github.com/repos/langchain-ai/langchain/issues/3087/comments
3
2023-04-18T12:15:46Z
2023-09-18T16:15:33Z
https://github.com/langchain-ai/langchain/issues/3087
1,672,996,991
3,087
[ "hwchase17", "langchain" ]
Sitemap data ingestion is a super powerful tool and I love that you already have it built-in. However, sitemaps are potentially huge, covering hundreds or even thousands of sub-sites. If one starts to crawl through the sitemap of a large website, there is little information on how the progress is going. Therefore...
Add tqdm progress bar to base web base loader
https://api.github.com/repos/langchain-ai/langchain/issues/3083/comments
1
2023-04-18T10:58:48Z
2023-04-23T02:19:39Z
https://github.com/langchain-ai/langchain/issues/3083
1,672,867,984
3,083
[ "hwchase17", "langchain" ]
null
Need a Simple Example or method to get stream response of ConversationChain
https://api.github.com/repos/langchain-ai/langchain/issues/3080/comments
2
2023-04-18T10:04:21Z
2023-09-10T16:31:16Z
https://github.com/langchain-ai/langchain/issues/3080
1,672,777,542
3,080
[ "hwchase17", "langchain" ]
## Motivation Right now, HuggingFaceEmbeddings doesn't support loading an embedding model's weights from the cache but downloading the weights every time. Fixing this would be a low hanging fruit by allowing the user to pass their cache directory. ## Suggestion The only change has only a few lines in __init__(...
Feature Request: Allow initializing HuggingFaceEmbeddings from the cached weight
https://api.github.com/repos/langchain-ai/langchain/issues/3079/comments
9
2023-04-18T09:43:38Z
2024-02-13T16:17:08Z
https://github.com/langchain-ai/langchain/issues/3079
1,672,736,711
3,079
[ "hwchase17", "langchain" ]
I'm facing a weird issue with the `ConversationBufferWindowMemory` Running `memory.load_memory_variables({})` prints: ``` {'chat_history': [HumanMessage(content='Hi my name is Ismail', additional_kwargs={}), AIMessage(content='Hello Ismail! How can I assist you today?', additional_kwargs={})]} ``` The error ...
Error `can only concatenate str (not "tuple") to str` when using `ConversationBufferWindowMemory`
https://api.github.com/repos/langchain-ai/langchain/issues/3077/comments
11
2023-04-18T08:38:57Z
2023-11-13T16:10:00Z
https://github.com/langchain-ai/langchain/issues/3077
1,672,633,625
3,077
[ "hwchase17", "langchain" ]
I notice they use different API, but what's the difference between these 2 apis? Question Answering: docs = docsearch.get_relevant_documents(query) Question Answering with Sources: docs = docsearch.similarity_search(query)
Difference between "Question Answering with Sources" and "Question Answering"
https://api.github.com/repos/langchain-ai/langchain/issues/3073/comments
8
2023-04-18T08:05:55Z
2023-10-12T16:10:19Z
https://github.com/langchain-ai/langchain/issues/3073
1,672,578,778
3,073
[ "hwchase17", "langchain" ]
https://github.com/hwchase17/langchain/blob/894c272a562471aadc1eb48e4a2992923533dea0/langchain/memory/summary_buffer.py#L57-L70 The ```ConversationSummaryBufferMemory``` class in ```langchain/memory/summary_buffer.py``` currently prunes chat_memory's messages using the ```List.pop()``` method (line 66). This approac...
Issue with ConversationSummaryBufferMemory pruning messages for non-in-memory chat message histories
https://api.github.com/repos/langchain-ai/langchain/issues/3072/comments
6
2023-04-18T07:48:11Z
2024-05-20T08:06:21Z
https://github.com/langchain-ai/langchain/issues/3072
1,672,549,574
3,072
[ "hwchase17", "langchain" ]
I'm testing out the tutorial code for Agents: `from langchain.agents import load_tools from langchain.agents import initialize_agent from langchain.agents import AgentType from langchain.llms import OpenAI llm = OpenAI(temperature=0) tools = load_tools(["serpapi", "llm-math"], llm=llm) agent = initialize_ag...
llm-math raising an issue
https://api.github.com/repos/langchain-ai/langchain/issues/3071/comments
16
2023-04-18T06:44:50Z
2023-11-16T05:52:22Z
https://github.com/langchain-ai/langchain/issues/3071
1,672,458,216
3,071
[ "hwchase17", "langchain" ]
https://github.com/hwchase17/langchain/blob/894c272a562471aadc1eb48e4a2992923533dea0/langchain/document_loaders/git.py#L8
Once we Clone the Repo using the Git Document loader. How we can auth the Private Repos and How we can chunk the code files into meaning full code and create Embeddings?
https://api.github.com/repos/langchain-ai/langchain/issues/3069/comments
1
2023-04-18T06:08:55Z
2023-09-10T16:31:22Z
https://github.com/langchain-ai/langchain/issues/3069
1,672,416,914
3,069
[ "hwchase17", "langchain" ]
Axios is at v 1.3.5, why does langchain set the dependency to major version 0? It is set to "axios": "^0.26.0", Do we want: "axios": ">=0.26.0" ? Does the whole world need to downgrade in order to use Langchain? Or is this just me and my setup is screwed up somehow. I don't see anyone else making noise abo...
Axios dependency forcing a downgrade on nextJS build.
https://api.github.com/repos/langchain-ai/langchain/issues/3065/comments
5
2023-04-18T05:38:52Z
2023-09-26T16:08:10Z
https://github.com/langchain-ai/langchain/issues/3065
1,672,386,014
3,065
[ "hwchase17", "langchain" ]
Hey folks. I am experimenting with OpenAPI agents and the most recent [Spotify API](https://github.com/sonallux/spotify-web-api/releases). The API defines the endpoint `/me/top/{type}`. _Type_ can be, for example, `tracks`. A GET to `/me/top/tracks` will return the top tracks for the user making the request. The pla...
Validation check in planner.py not working as intended?
https://api.github.com/repos/langchain-ai/langchain/issues/3064/comments
6
2023-04-18T05:12:32Z
2023-09-27T16:08:06Z
https://github.com/langchain-ai/langchain/issues/3064
1,672,364,479
3,064
[ "hwchase17", "langchain" ]
## Problem The current `DirectoryLoader` class relies on the python `glob` and `rglob` utilities to load the filepaths. These utilities in python don't support advanced file patterns, for example specifying files with multiple extensions. For example, consider a sample directory with these files. ```bash - a.py - b...
DirectoryLoader doesn't support including unix file patterns
https://api.github.com/repos/langchain-ai/langchain/issues/3062/comments
3
2023-04-18T05:00:24Z
2023-09-18T16:19:42Z
https://github.com/langchain-ai/langchain/issues/3062
1,672,352,495
3,062
[ "hwchase17", "langchain" ]
Sometimes the LLM response (generated code) tends to miss the ending ticks "```". Therefore causing the text parsing to fail due to `not enough values to unpack`. Suggest to simply the `_, action, _' to just `action` then with index Error message below ``` > Entering new AgentExecutor chain... Traceback (mo...
Error when parsing code from LLM response ValueError: Could not parse LLM output:
https://api.github.com/repos/langchain-ai/langchain/issues/3057/comments
1
2023-04-18T04:13:20Z
2023-04-24T04:19:22Z
https://github.com/langchain-ai/langchain/issues/3057
1,672,318,279
3,057
[ "hwchase17", "langchain" ]
Hi fellas. Langchain is awesome. I have an agent that I created for an app and it will be interacted with via an api. The agent of course needs to run asynchronously. I can run it without any issues synchronously but with agent.arun(inputs) I cannot connect with openai. It throws the "Error communicating with OpenAI" ...
Error communicating with OpenAI when running agent in async
https://api.github.com/repos/langchain-ai/langchain/issues/3056/comments
7
2023-04-18T04:11:58Z
2023-11-20T16:07:27Z
https://github.com/langchain-ai/langchain/issues/3056
1,672,317,378
3,056
[ "hwchase17", "langchain" ]
Conservation instead of conversation. PR pending. Putting in this issue to link.
Spelling Error in ConstitutionalAI Chain Prompt
https://api.github.com/repos/langchain-ai/langchain/issues/3048/comments
0
2023-04-18T03:28:10Z
2023-04-19T02:45:06Z
https://github.com/langchain-ai/langchain/issues/3048
1,672,287,885
3,048
[ "hwchase17", "langchain" ]
retriever = PineconeHybridSearchRetriever(embeddings=embeddings, index=index, tokenizer=CharacterTextSplitter) result = retriever.get_relevant_documents(given_str) gives TypeError: init() got an unexpected keyword argument 'padding' with bm25_encoder retriever = PineconeHybridSearchRetriever(embeddings=embe...
pinecone_hybrid_search doesn't work by following the documents.
https://api.github.com/repos/langchain-ai/langchain/issues/3043/comments
2
2023-04-18T01:27:31Z
2023-09-18T16:19:47Z
https://github.com/langchain-ai/langchain/issues/3043
1,672,192,416
3,043
[ "hwchase17", "langchain" ]
The error is random, it only occurs sometimes. `loader = YoutubeLoader.from_youtube_url(vidurl, add_video_info=True, language=lang)`
YoutubeLoader : Error: Exception while accessing title of https://youtube.com/watch?v=XXX. Please file a bug report at https://github.com/pytube/pytube
https://api.github.com/repos/langchain-ai/langchain/issues/3040/comments
8
2023-04-17T23:22:49Z
2023-09-27T16:08:12Z
https://github.com/langchain-ai/langchain/issues/3040
1,672,104,671
3,040
[ "hwchase17", "langchain" ]
When using the agent to call the tool, some situations may cause an escape, returning the action and final answer at the same time, causing the tool not to run. It is recommended to add appropriate prompt words at the end of “Final Answer: The final answer to the original input question” prompt template to avoid this s...
Some situations cause the tool to not work
https://api.github.com/repos/langchain-ai/langchain/issues/3037/comments
2
2023-04-17T21:59:53Z
2023-09-10T16:31:37Z
https://github.com/langchain-ai/langchain/issues/3037
1,672,028,543
3,037
[ "hwchase17", "langchain" ]
I'd like to be able to run a query via SQLDatabaseSequentialChain or SQLDatabaseChain involving multiple tables living in multiple different schemas, but it seems that as it is, the code is set up to only allow and look through just the one schema provided.
Unable to use multiple schemas in SQLDatabase
https://api.github.com/repos/langchain-ai/langchain/issues/3036/comments
18
2023-04-17T21:40:01Z
2024-07-11T11:30:14Z
https://github.com/langchain-ai/langchain/issues/3036
1,672,009,290
3,036
[ "hwchase17", "langchain" ]
I'm running the openai "todo" manifest and swagger. After 2013-04-16, I get the following error parsing response: ```ValueError: Could not parse LLM output: `I need to check the TODO Plugin API to see if it can help me answer this question.``` Input question was ```agent_chain.run("Do I have a todo to check...
TODO action example from openai fails
https://api.github.com/repos/langchain-ai/langchain/issues/3035/comments
1
2023-04-17T20:49:58Z
2023-09-10T16:31:42Z
https://github.com/langchain-ai/langchain/issues/3035
1,671,945,585
3,035
[ "hwchase17", "langchain" ]
Greetings, The ```python from langchain.agents import create_sql_agent from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.sql_database import SQLDatabase from langchain.chat_models import AzureChatOpenAI db = SQLDatabase.from_uri(connection_string2) toolkit = SQLDatabaseToolkit(...
SQLToolKit not passing correct llm to llm_chain with AzureChatOpenAI
https://api.github.com/repos/langchain-ai/langchain/issues/3031/comments
2
2023-04-17T20:17:06Z
2023-09-10T16:31:47Z
https://github.com/langchain-ai/langchain/issues/3031
1,671,905,614
3,031
[ "hwchase17", "langchain" ]
I have generated the Chroma DB from a single file ( basically lots of questions and answers in one text file ), sometimes when I do ``` db.similarity_search("some question", k=4) ``` And the question is too broad, it will rerun a **LOT** of results, since I'm using the result in next LLM query (prompt template) ...
Limit the db.similarity_search("some question", k=4) output.
https://api.github.com/repos/langchain-ai/langchain/issues/3029/comments
4
2023-04-17T20:09:20Z
2023-04-18T11:08:20Z
https://github.com/langchain-ai/langchain/issues/3029
1,671,895,690
3,029
[ "hwchase17", "langchain" ]
Hello everyone I got this error, I already poppler_path in PATH in system. Is there anyone got the same like me? index = VectorstoreIndexCreator().from_loaders(loaders) --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent cal...
Error index = VectorstoreIndexCreator().from_loaders(loaders)
https://api.github.com/repos/langchain-ai/langchain/issues/3025/comments
1
2023-04-17T16:57:00Z
2023-09-10T16:31:52Z
https://github.com/langchain-ai/langchain/issues/3025
1,671,601,909
3,025
[ "hwchase17", "langchain" ]
Hi, when I am trying to index the documents using cromadb, I am getting the following error. When looked into it, understood it is the compatibility isssue. But couldn't exactly find what packages are the hnswlib compatible with. ImportError: /anaconda3/envs/myenv/lib/python3.9/site-packages/hnswlib.cpython-39-x86_...
Import error and undefined symbol
https://api.github.com/repos/langchain-ai/langchain/issues/3017/comments
6
2023-04-17T13:51:59Z
2023-11-16T16:08:31Z
https://github.com/langchain-ai/langchain/issues/3017
1,671,234,135
3,017
[ "hwchase17", "langchain" ]
Sometimes it is quick expensive to crawl all the URLs, is it possible to save the Documents and reload it later? For example: ``` loader = GitbookLoader("https://docs.gitbook.com") page_data = loader.load() ``` Then save the page_data to gitbook.json, could be in the format of ``` [ { "page...
Is there any quick way to save generated Documents and reload it?
https://api.github.com/repos/langchain-ai/langchain/issues/3016/comments
3
2023-04-17T12:33:05Z
2023-09-28T16:08:05Z
https://github.com/langchain-ai/langchain/issues/3016
1,671,070,412
3,016
[ "hwchase17", "langchain" ]
I am facing a problem when trying to use the Chroma vector store with a persisted index. I have already loaded a document, created embeddings for it, and saved those embeddings in Chroma. The script ran perfectly with LLM and also created the necessary files in the persistence directory (.chroma\index). The files inclu...
"NoIndexException: Index not found when initializing Chroma from a persisted directory"
https://api.github.com/repos/langchain-ai/langchain/issues/3011/comments
38
2023-04-17T10:21:07Z
2023-10-25T16:09:22Z
https://github.com/langchain-ai/langchain/issues/3011
1,670,863,970
3,011
[ "hwchase17", "langchain" ]
hello, i have an instance of chatbotui, configured with the chatgpt api. how do i integrate longchain, so that it allows me to upload documents, which chatgpt will then have to read and use in the conversation? also the memory functionality would be useful to integrate. thanks in advance to all
chatbot ui integration
https://api.github.com/repos/langchain-ai/langchain/issues/3008/comments
1
2023-04-17T09:24:15Z
2023-09-10T16:31:57Z
https://github.com/langchain-ai/langchain/issues/3008
1,670,767,000
3,008
[ "hwchase17", "langchain" ]
I was trying to override the OpenAIEmbeddings class with some customized implementation and got this: ``` In [1]: from langchain.embeddings.openai import OpenAIEmbeddings In [2]: class O(OpenAIEmbeddings): ...: pass ...: --------------------------------------------------------------------------- Typ...
OpenAIEmbeddings can't be inherited
https://api.github.com/repos/langchain-ai/langchain/issues/3007/comments
1
2023-04-17T09:08:50Z
2023-09-10T16:32:02Z
https://github.com/langchain-ai/langchain/issues/3007
1,670,741,139
3,007
[ "hwchase17", "langchain" ]
Hello. I am trying the Time Weighted VectorStore Retriever example, but I get an error at the following ImportError: cannot import name 'TimeWeightedVectorStoreRetriever' from 'langchain.retrievers' (/usr/local/lib/python3.9/dist-packages/langchain/retrievers/__init__.py) The version of langchain is 0.0.141, I...
TimeWeightedVectorStoreRetriever not found
https://api.github.com/repos/langchain-ai/langchain/issues/3006/comments
1
2023-04-17T08:11:24Z
2023-04-18T04:56:47Z
https://github.com/langchain-ai/langchain/issues/3006
1,670,649,685
3,006
[ "hwchase17", "langchain" ]
I am getting this error whenever the time is greater than 60 seconds. I tried giving timeout=120 seconds in ChatOpenAI(). `Retrying langchain.chat_models.openai.ChatOpenAI.completion_with_retry.<locals>._completion_with_retry in 4.0 seconds as it raised Timeout: Request timed out: HTTPSConnectionPool(host='api.open...
Frequent request timed out error
https://api.github.com/repos/langchain-ai/langchain/issues/3005/comments
38
2023-04-17T07:28:20Z
2024-01-08T16:22:54Z
https://github.com/langchain-ai/langchain/issues/3005
1,670,584,519
3,005
[ "hwchase17", "langchain" ]
Hi, I am using DirectoryLoader as document loader and for some of csv files getting below error ValueError: Invalid file union\Book1.csv. The FileType.UNK file type is not supported in partition. can anyone suggest oplease, how to fix this, I will be thankful to you. Thank You
ValueError: Invalid file union\Book1.csv. The FileType.UNK file type is not supported in partition.
https://api.github.com/repos/langchain-ai/langchain/issues/3002/comments
4
2023-04-17T06:06:29Z
2023-05-02T19:25:04Z
https://github.com/langchain-ai/langchain/issues/3002
1,670,480,210
3,002
[ "hwchase17", "langchain" ]
CSV/Pandas Dataframe agent actually replies to question irrelevant to the data, this can be easily resolved by including an extra line in the prompt to not reply to questions irrelevant to the dataframe.
CSV/Pandas Dataframe agent replying to questions irrelevant to data
https://api.github.com/repos/langchain-ai/langchain/issues/3000/comments
4
2023-04-17T04:57:28Z
2023-09-18T16:19:52Z
https://github.com/langchain-ai/langchain/issues/3000
1,670,406,409
3,000
[ "hwchase17", "langchain" ]
While trying to figure out how to save persistent memory, I've come across what I believe to be an error in the docs: Running the example verbatim produces an error. [Source](https://python.langchain.com/en/latest/modules/memory/types/entity_summary_memory.html#using-in-a-chain) ``` from langchain.chains import ...
ConversationChain class variable missing when running example from the docs?
https://api.github.com/repos/langchain-ai/langchain/issues/2997/comments
1
2023-04-17T02:08:33Z
2023-09-10T16:32:12Z
https://github.com/langchain-ai/langchain/issues/2997
1,670,278,618
2,997
[ "hwchase17", "langchain" ]
Hello everyone! I am new to using langchain and I am currently facing an issue with the figma loader. I have followed the steps outlined in the documentation, but I am receiving a TypeError with the following message: `TypeError: expected string or bytes-like object` The error occurs when I try to create a vector...
Vector Store Creator from Figma loader throws an error
https://api.github.com/repos/langchain-ai/langchain/issues/2996/comments
2
2023-04-17T02:02:23Z
2023-06-22T05:40:00Z
https://github.com/langchain-ai/langchain/issues/2996
1,670,271,781
2,996
[ "hwchase17", "langchain" ]
Hello all, I've been encountering an issue while trying to install the dependencies using ```poetry install -E all``` command. I am currently working on the latest commit (a9310a3e) in my development environment. Here is the error message I receive: ``` RuntimeError Unable to find installation candidates ...
Unable to find installation candidates for torch (1.13.1)
https://api.github.com/repos/langchain-ai/langchain/issues/2991/comments
6
2023-04-16T21:17:07Z
2024-01-05T23:40:21Z
https://github.com/langchain-ai/langchain/issues/2991
1,670,143,578
2,991
[ "hwchase17", "langchain" ]
How can I access the data of a website using 'API TOKEN' and use that data in langchain for custom purpose?
How to access data of a website using API token
https://api.github.com/repos/langchain-ai/langchain/issues/2990/comments
1
2023-04-16T19:50:22Z
2023-09-10T16:32:17Z
https://github.com/langchain-ai/langchain/issues/2990
1,670,111,690
2,990
[ "hwchase17", "langchain" ]
the code is simple ``` def load_vector_memory_from_dir(dir_path): from langchain.document_loaders import DirectoryLoader loader = DirectoryLoader(dir_path) documents = loader.load() text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) texts = text_splitter.split_documents...
Got prompt token length error when using agent
https://api.github.com/repos/langchain-ai/langchain/issues/2988/comments
1
2023-04-16T17:27:10Z
2023-09-10T16:32:24Z
https://github.com/langchain-ai/langchain/issues/2988
1,670,056,700
2,988
[ "hwchase17", "langchain" ]
I'm using these code : llm=ChatOpenAI(temperature=0) memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) agent_chain = initialize_agent(tools, llm, agent=AgentType.CONVERSATIONAL_REACT_DESCRIPTION, verbose=True, memory=memory) I run this line several times agent_chain.run(inpu...
Bug : could not parse LLM output: `{llm_output}`") when I run the same question several times
https://api.github.com/repos/langchain-ai/langchain/issues/2985/comments
2
2023-04-16T16:45:42Z
2023-09-10T16:32:28Z
https://github.com/langchain-ai/langchain/issues/2985
1,670,041,682
2,985
[ "hwchase17", "langchain" ]
Hi, I'm running official docker image from Chroma and using it via rest API (I need it in server mode for persistent storage in production deployment) When inserting documents (I'm loading pdfs) I'm getting `chromadb.api.models.Collection No embedding_function provided, using default embedding function: Sentenc...
embedding function not passed properly to Chroma
https://api.github.com/repos/langchain-ai/langchain/issues/2982/comments
17
2023-04-16T15:46:43Z
2024-05-11T14:34:48Z
https://github.com/langchain-ai/langchain/issues/2982
1,670,023,228
2,982
[ "hwchase17", "langchain" ]
This is actually half an issue, half an open disscussion topic. Following #2898 , I tried the offline [LLAMA model](https://python.langchain.com/en/latest/modules/models/llms/integrations/llamacpp.html) with the same agent. And the result is somehow interesting: Given the same prompt: ``` Answer the following que...
agent with LLAMA or GPT4All
https://api.github.com/repos/langchain-ai/langchain/issues/2980/comments
6
2023-04-16T13:03:52Z
2023-11-28T16:12:05Z
https://github.com/langchain-ai/langchain/issues/2980
1,669,962,934
2,980
[ "hwchase17", "langchain" ]
I trying to create embeddings of CSV file of size around 137 MB which has both numerical and text column (total of 6). using the following code `from langchain.document_loaders.csv_loader import CSVLoader loader = CSVLoader(file_path=path, encoding="utf-8") data = loader.load() embeddings = CohereEmbeddings(model="...
Cohere's multilingual model does not creating embeddings of CSV
https://api.github.com/repos/langchain-ai/langchain/issues/2979/comments
1
2023-04-16T12:54:00Z
2023-09-10T16:32:33Z
https://github.com/langchain-ai/langchain/issues/2979
1,669,957,240
2,979
[ "hwchase17", "langchain" ]
I'm using this output parser. But when the agent is passing this to the action state, I'm getting parsing error. <img width="1441" alt="image" src="https://user-images.githubusercontent.com/19322429/232312291-41effe19-0c95-4bb3-8528-ffe9f6571f89.png"> Here is the parser: class CustomOutputParser(AgentOutputP...
Parsing issue when using Python client
https://api.github.com/repos/langchain-ai/langchain/issues/2978/comments
2
2023-04-16T12:44:04Z
2023-09-10T16:32:38Z
https://github.com/langchain-ai/langchain/issues/2978
1,669,945,651
2,978
[ "hwchase17", "langchain" ]
Is there any docs or related issues for caching the Azure chat open ai responses i cannot find one.
Caching for chat based models.
https://api.github.com/repos/langchain-ai/langchain/issues/2976/comments
8
2023-04-16T12:27:30Z
2023-12-21T16:08:39Z
https://github.com/langchain-ai/langchain/issues/2976
1,669,937,971
2,976
[ "hwchase17", "langchain" ]
Hi, I'm using RetrievalQA.from_chain_type to query local index. I'm using Custom Prompt as input (query and context) Is there a way to log or inspect the actual prompt that is sent to OpenAI API including the query, and the context? Also How to control the number of documents the retriever returns? Is there an ...
Question: RetrievalQA.from_chain_type - logging the full prompt
https://api.github.com/repos/langchain-ai/langchain/issues/2975/comments
7
2023-04-16T12:21:39Z
2024-02-08T09:46:58Z
https://github.com/langchain-ai/langchain/issues/2975
1,669,936,294
2,975
[ "hwchase17", "langchain" ]
consider rewrite with pypdf2
pypdf has compatible problems with pdf files which contain complex encodings
https://api.github.com/repos/langchain-ai/langchain/issues/2973/comments
2
2023-04-16T11:10:01Z
2023-09-10T16:32:43Z
https://github.com/langchain-ai/langchain/issues/2973
1,669,870,714
2,973
[ "hwchase17", "langchain" ]
Would be really nice to have support for Googles Vertex AI Matching Engine as a Vector Store: [Google Cloud Vector Store](https://cloud.google.com/vertex-ai/docs/matching-engine/overview?hl=en) I'm currently building an AI application with langchain agents using Google Cloud as my backend. So im trying not to use ...
Support for Vertex AI Matching Engine as a Vector Store
https://api.github.com/repos/langchain-ai/langchain/issues/2971/comments
2
2023-04-16T10:34:51Z
2023-09-25T16:08:43Z
https://github.com/langchain-ai/langchain/issues/2971
1,669,850,988
2,971
[ "hwchase17", "langchain" ]
When you set a max_iterations on a tool agent and it is down to its last iteration, it doesn't make sense for it to try to use a tool. Using a tool would require another iteration, which will be blocked. There should be some way for the agent to realize it's out of iterations and just return a `Final answer` with wh...
Tool agents should not try to use a tool on their last iteration
https://api.github.com/repos/langchain-ai/langchain/issues/2970/comments
6
2023-04-16T10:25:52Z
2023-12-06T17:46:55Z
https://github.com/langchain-ai/langchain/issues/2970
1,669,841,936
2,970
[ "hwchase17", "langchain" ]
using CHAT_CONVERSATIONAL_REACT_DESCRIPTION the agent does not chain together tools - only the first iteration, then stops. The other AgenTypes work as expected. ``` memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) llm = AzureChatOpenAI( temperature=0, deployment_name...
CHAT_CONVERSATIONAL_REACT_DESCRIPTION vs CONVERSATIONAL_REACT_DESCRIPTION
https://api.github.com/repos/langchain-ai/langchain/issues/2968/comments
15
2023-04-16T09:03:51Z
2024-02-15T16:12:05Z
https://github.com/langchain-ai/langchain/issues/2968
1,669,796,108
2,968
[ "hwchase17", "langchain" ]
I tried creating a pandas dataframe agent (using create_dataframe_agent) with ChatOpenai (gpt3-turbo) as the LLM! But langchain isn't able to parse the LLM's output code. Ofcoure when I use davince model it works ### This is the code: from langchain.llms import OpenAIChat openaichat = OpenAIChat(model_name="gpt...
ChatOpenai (gpt3-turbo) isn't compatible with create_pandas_dataframe_agent, create_csv_agent etc
https://api.github.com/repos/langchain-ai/langchain/issues/2967/comments
3
2023-04-16T08:21:47Z
2023-09-18T16:19:58Z
https://github.com/langchain-ai/langchain/issues/2967
1,669,768,015
2,967
[ "hwchase17", "langchain" ]
as you have now created a specific dialect pr https://github.com/hwchase17/langchain/pull/2748 you better remove these lines or make them only applicable if the dialect is sqlite, most of the dialects don't support this https://github.com/hwchase17/langchain/blob/b634489b2e8951b880c2ec467cdcf00f11830705/langcha...
SQLDatabase : Remove set search_path (or rewrite it)
https://api.github.com/repos/langchain-ai/langchain/issues/2951/comments
9
2023-04-15T20:09:12Z
2023-12-06T18:20:32Z
https://github.com/langchain-ai/langchain/issues/2951
1,669,555,201
2,951
[ "hwchase17", "langchain" ]
Streaming is supported by llama-cpp-python and works in Jupyter notebooks outside langchain code, but I can't get it to work with langchain. I didn't see any code for streaming in llms/llamacpp.py. I tried to do calls to self.callback_manager..on_llm_new_token() but nothing worked.
LlamaCpp model needs streaming support
https://api.github.com/repos/langchain-ai/langchain/issues/2948/comments
2
2023-04-15T19:22:53Z
2023-09-10T16:32:53Z
https://github.com/langchain-ai/langchain/issues/2948
1,669,542,731
2,948
[ "hwchase17", "langchain" ]
After ingesting some markdown files using a slightly modified version of the question-answering over docs example, I ran the qa.py script as it was in the example ``` # qa.py import faiss from langchain import OpenAI, HuggingFaceHub, LLMChain from langchain.chains import VectorDBQAWithSourcesChain import pickle...
Question Answering over Docs giving cryptic error upon query
https://api.github.com/repos/langchain-ai/langchain/issues/2944/comments
2
2023-04-15T15:38:36Z
2023-09-10T16:32:58Z
https://github.com/langchain-ai/langchain/issues/2944
1,669,458,405
2,944
[ "hwchase17", "langchain" ]
For example, lets say I have a big txt file (WhatsApp chat export). Now when I'm storing it as embeddings in the vector store, I think the source_document is set as the `<name_of_file>.txt` which is fine. But what I want is to attribute a finer source. Like say, the person(s) who said this particular keyword, datetime ...
Is there a way we can pass in a custom source into vector store?
https://api.github.com/repos/langchain-ai/langchain/issues/2941/comments
4
2023-04-15T14:12:30Z
2023-09-10T16:33:03Z
https://github.com/langchain-ai/langchain/issues/2941
1,669,421,607
2,941
[ "hwchase17", "langchain" ]
In OpenAPI documentation, an endpoint might include a placeholder for a parameter: ``` GET /states/{abbr} ``` Currently, exact matches are needed with OpenAPI Planner to retrieve documentation. In the example above, `GET /states/FL` would receive a `ValueError(f"{endpoint_name} endpoint does not exist.")`.
Allow OpenAPI planner to respect URLs with placeholders
https://api.github.com/repos/langchain-ai/langchain/issues/2938/comments
1
2023-04-15T13:54:15Z
2023-10-12T23:20:34Z
https://github.com/langchain-ai/langchain/issues/2938
1,669,406,711
2,938
[ "hwchase17", "langchain" ]
hey, i'm adding a tool for jira jql, i ran into something weird and not sure what's wrong or how to debug, could anyone help? the Action Input for the action taken is `summary ~ "add support"` but the actual instruction passed into _run of my tool is `summary ~ "add support`, missing the closing double quotes. ...
agent._extract_tool_and_input removes double quote at the end of action input.
https://api.github.com/repos/langchain-ai/langchain/issues/2936/comments
2
2023-04-15T11:52:24Z
2023-09-10T16:33:14Z
https://github.com/langchain-ai/langchain/issues/2936
1,669,327,179
2,936
[ "hwchase17", "langchain" ]
Just installed Lanchain and followed the tutorials without a problem till I reached the agents part. The following modules are not recognized. ``` from langchain.agents import initialize_agent from langchain.agents import AgentType ``` I tried running lanchain in python 3.7, 3.8.11, 3.9 and 3.10 because o...
ModuleNotFoundError: No module named 'langchain.agents'
https://api.github.com/repos/langchain-ai/langchain/issues/2935/comments
1
2023-04-15T10:14:16Z
2023-04-15T10:34:48Z
https://github.com/langchain-ai/langchain/issues/2935
1,669,296,610
2,935
[ "hwchase17", "langchain" ]
Hello Dev, I dont see json_agent_executor executing right.. For my simple requirement, its not able to give desired output. I have 5 users .. users.json. `[ { "username": "john_doe", "email": "john.doe@example.com" }, { "username": "jane_doe", "email": "jane.doe@example.com" }, ...
json_agent_executor unable to perform some basic stuff
https://api.github.com/repos/langchain-ai/langchain/issues/2931/comments
8
2023-04-15T07:35:01Z
2024-03-25T07:06:03Z
https://github.com/langchain-ai/langchain/issues/2931
1,669,216,123
2,931
[ "hwchase17", "langchain" ]
In "combine_docs" in "MapReduceDocumentsChain" class in "langchain/chains/combine_documents/map_reduce.py" num_tokens is defaulted to 3000 not flexible to the model type.
AnalyzeDocumentChain cannot work with "text-ada-001" model or any 2k tokens model
https://api.github.com/repos/langchain-ai/langchain/issues/2930/comments
3
2023-04-15T06:34:23Z
2023-09-10T16:33:20Z
https://github.com/langchain-ai/langchain/issues/2930
1,669,191,327
2,930
[ "hwchase17", "langchain" ]
`UnicodeEncodeError Traceback (most recent call last) Cell In[13], line 11 2 tools = [ 3 Tool( 4 name="Intermediate Answer", (...) 7 ) 8 ] 10 self_ask_with_search = initialize_agent(tools, llm, agent=AgentType.SELF_ASK_WITH_SEARCH, ver...
Error when generating text with the Anthropic LLM
https://api.github.com/repos/langchain-ai/langchain/issues/2929/comments
1
2023-04-15T05:33:09Z
2023-08-06T18:52:23Z
https://github.com/langchain-ai/langchain/issues/2929
1,669,165,015
2,929
[ "hwchase17", "langchain" ]
I hope that langchain can support dolly-v2 which is generated by Databricks employees and released under a permissive license (CC-BY-SA).
Will it support Dolly-V2?
https://api.github.com/repos/langchain-ai/langchain/issues/2928/comments
4
2023-04-15T05:21:27Z
2023-05-02T17:46:43Z
https://github.com/langchain-ai/langchain/issues/2928
1,669,159,656
2,928
[ "hwchase17", "langchain" ]
This is the mypy response for the following code: ``` ChatOpenAI( model_name=args.model_name, temperature=args.temperature, ) ``` I see in the code that ChatOpenAI has a variable client that in the comments is marked private. Any remediation?
Mypy: Missing named argument "client" for "ChatOpenAI"
https://api.github.com/repos/langchain-ai/langchain/issues/2925/comments
11
2023-04-15T03:14:17Z
2024-04-18T20:03:39Z
https://github.com/langchain-ai/langchain/issues/2925
1,669,123,006
2,925
[ "hwchase17", "langchain" ]
The OpenSearch documentation notes that you may use a boolean filter for ANN search: https://opensearch.org/docs/latest/search-plugins/knn/filter-search-knn/#boolean-filter-with-ann-search It would be nice to allow passing in a boolean filter to the OpenSearch vector store `similarity_search` function.
OpenSearch: allow boolean filter search for ANN
https://api.github.com/repos/langchain-ai/langchain/issues/2924/comments
1
2023-04-15T02:26:24Z
2023-04-18T03:26:28Z
https://github.com/langchain-ai/langchain/issues/2924
1,669,111,473
2,924
[ "hwchase17", "langchain" ]
Hello everyone, Working in an implementation Index-GPT+LangChain. I'm trying to set a custom prompt where I can set additional context. [Based on the documentation ](https://python.langchain.com/en/latest/reference/modules/chains.html?highlight=langchain.chains.llm.LLMChain#langchain.chains.LLMChain) I'm trying to ...
Can't instantiate langchain.chains.LLMChain to create_llama_chat_agent (Setting custom prompt)
https://api.github.com/repos/langchain-ai/langchain/issues/2922/comments
7
2023-04-15T00:05:05Z
2023-12-27T16:08:04Z
https://github.com/langchain-ai/langchain/issues/2922
1,669,064,432
2,922
[ "hwchase17", "langchain" ]
[from the notebook ](https://github.com/hwchase17/langchain/blob/master/docs/modules/models/llms/examples/streaming_llm.ipynb ) It says: LangChain provides streaming support for LLMs. Currently, we support streaming for the OpenAI, ChatOpenAI. and Anthropic implementations, but streaming support for other LLM implemen...
streaming support for LLM, from huggingface
https://api.github.com/repos/langchain-ai/langchain/issues/2918/comments
15
2023-04-14T22:32:37Z
2024-08-02T11:45:30Z
https://github.com/langchain-ai/langchain/issues/2918
1,669,020,416
2,918
[ "hwchase17", "langchain" ]
SQLDatabaseToolkit is not currently working. Se errors attached. This is the code that creates the errors: ``` llm = AzureChatOpenAI(deployment_name="gpt-4",temperature=0, max_tokens=500) db = SQLDatabase.from_uri(db_url) toolkit = SQLDatabaseToolkit(db=db) agent_executor = create_sql_agent(llm=llm,toolkit=to...
SQLDatabaseToolkit not working
https://api.github.com/repos/langchain-ai/langchain/issues/2914/comments
10
2023-04-14T20:52:02Z
2023-09-21T17:07:42Z
https://github.com/langchain-ai/langchain/issues/2914
1,668,936,333
2,914
[ "hwchase17", "langchain" ]
those files may be `node_modules` or `.pycache` files or sensitive env files, all of which should be ignored by default
Ignore files from `.gitignore` in Git loader
https://api.github.com/repos/langchain-ai/langchain/issues/2905/comments
0
2023-04-14T17:08:38Z
2023-04-14T22:02:23Z
https://github.com/langchain-ai/langchain/issues/2905
1,668,624,936
2,905
[ "hwchase17", "langchain" ]
I encountered a bug when using PromptLayerOpenAI. The code works as intended only when `model_name` parameter is set to `text-davinci-003`. When a different model is specified, an error message is returned. This works: ```python chain = load_qa_chain(PromptLayerOpenAI( temperature=0, model_na...
PromptLayerOpenAI throws an error when any model other than `text-davinci-003` is passed to the `model_name` parameter
https://api.github.com/repos/langchain-ai/langchain/issues/2903/comments
3
2023-04-14T16:13:25Z
2023-11-14T16:09:34Z
https://github.com/langchain-ai/langchain/issues/2903
1,668,543,593
2,903
[ "hwchase17", "langchain" ]
When use agent to answer question **"Who is Leo DiCaprio's current girlfriend? What is her current age raised to the 0.43 power?"** I saw openAI gives the following initial reply: ``` I should use Google Search to find out who is Leo DiCaprio's current girlfriend. For the second part of the question, I should use th...
regex in langchain/agents/mrkl/base.py
https://api.github.com/repos/langchain-ai/langchain/issues/2898/comments
4
2023-04-14T15:15:34Z
2023-09-18T16:20:03Z
https://github.com/langchain-ai/langchain/issues/2898
1,668,448,881
2,898
[ "hwchase17", "langchain" ]
Could not parse LLM output: I'm not familiar with "bla". Would you like me to search for more information on it? ``` Traceback (most recent call last): File "/Users/admin/Library/Caches/pypoetry/virtualenvs/kbgpt-I7QBBX8f-py3.10/lib/python3.10/site-packages/langchain/agents/chat/base.py", line 50, in _extract_to...
ChatAgent gets "Would you like me to search for more information on it?" instead of Action: or FinalAnswer:
https://api.github.com/repos/langchain-ai/langchain/issues/2896/comments
1
2023-04-14T14:51:47Z
2023-09-10T16:33:29Z
https://github.com/langchain-ai/langchain/issues/2896
1,668,400,538
2,896
[ "hwchase17", "langchain" ]
We're working on an implementation for a vector store using the GCP Matching Engine. We'll be contributing the implementation. If you have any questions or suggestions please contact me (@tomaspiaggio) or @scafati98.
GCP Matching Engine as Vector Store
https://api.github.com/repos/langchain-ai/langchain/issues/2892/comments
5
2023-04-14T13:58:38Z
2023-08-07T23:53:24Z
https://github.com/langchain-ai/langchain/issues/2892
1,668,302,654
2,892
[ "hwchase17", "langchain" ]
Can do REST with OpenAPI? But what about GQL? Possible even?
How GraphQL?
https://api.github.com/repos/langchain-ai/langchain/issues/2891/comments
8
2023-04-14T13:58:14Z
2023-10-30T16:07:48Z
https://github.com/langchain-ai/langchain/issues/2891
1,668,301,661
2,891
[ "hwchase17", "langchain" ]
I guess it just need to return the text when it can't parse the action as triple tilt wrapped json? ```python from langchain import LLMMathChain, OpenAI from langchain.agents import AgentType, Tool, initialize_agent from langchain.chat_models import ChatOpenAI from langchain.embeddings import OpenAIEmbeddings f...
ValueError when it can not find an answer in the MRKL chat agent.
https://api.github.com/repos/langchain-ai/langchain/issues/2890/comments
0
2023-04-14T13:51:06Z
2023-04-14T14:49:16Z
https://github.com/langchain-ai/langchain/issues/2890
1,668,289,225
2,890
[ "hwchase17", "langchain" ]
I have been working with [BunJS](https://bun.sh) runtime and decided to try langchain with it. I also noted in documentation that there are some supported runtimes... It seems that it is not fully compatible with Bun... It imports, instantiates the model, but doesn't execute it. Am I doing something wrong? ```javas...
[Feature Request] BunJs Support
https://api.github.com/repos/langchain-ai/langchain/issues/2888/comments
2
2023-04-14T12:26:34Z
2023-04-14T17:29:44Z
https://github.com/langchain-ai/langchain/issues/2888
1,668,159,936
2,888
[ "hwchase17", "langchain" ]
I have fine tuned curie model of OPEN AI on sample text data and i used that model in llm = OpenAI( temperature=0.7, openai_api_key='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', model_name="curie:ft-personal-2023-03-31-05-59-15"#"text-davinci-003"#""#'' # can be used with llms like 'gpt-3.5...
About fine tune model
https://api.github.com/repos/langchain-ai/langchain/issues/2887/comments
2
2023-04-14T10:54:55Z
2023-05-23T18:18:05Z
https://github.com/langchain-ai/langchain/issues/2887
1,668,028,067
2,887
[ "hwchase17", "langchain" ]
HI, I am getting this error. Sounds like normal pronlem, anyone can halp? TypeError: 'FAISS' object is not callable Traceback: File "D:\mk\python\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.__dict__) File "D:\mk\python\ready cody\Zkoušení\C...
TypeError: 'FAISS' object is not callable
https://api.github.com/repos/langchain-ai/langchain/issues/2881/comments
3
2023-04-14T06:05:13Z
2023-09-10T16:33:34Z
https://github.com/langchain-ai/langchain/issues/2881
1,667,566,366
2,881
[ "hwchase17", "langchain" ]
`import os import time import gptcache from gptcache.processor.pre import get_prompt from gptcache.manager.factory import get_data_manager from langchain.cache import GPTCache, SQLiteCache from gptcache.manager import get_data_manager, CacheBase, VectorBase from gptcache import Cache from gptcache.embedding imp...
GPTCache similarity caching code example encountered an error during execution.
https://api.github.com/repos/langchain-ai/langchain/issues/2879/comments
9
2023-04-14T05:54:25Z
2024-07-01T08:03:52Z
https://github.com/langchain-ai/langchain/issues/2879
1,667,553,784
2,879
[ "hwchase17", "langchain" ]
The `RecursiveTextSplitter` creates a list of strings. The `CharacterTextSplitter` creates a list of `langchain.schema.Document` The `Pinecone.from_documents() `loader seems to expect a list of `langchain.schema.Document` As such, if you try to feed it a "documents" object created by the RecursiveTextSplitter, you g...
RecursiveTextSplitter creates a list of strings that don't play well with Pinecone.from_documents()
https://api.github.com/repos/langchain-ai/langchain/issues/2877/comments
2
2023-04-14T05:39:17Z
2023-09-10T16:33:39Z
https://github.com/langchain-ai/langchain/issues/2877
1,667,541,958
2,877
[ "hwchase17", "langchain" ]
In Agents -> loading.py on line 40 there is a redundant piece of code. ``` if config_type not in AGENT_TO_CLASS: raise ValueError(f"Loading {config_type} agent not supported") ```
Redundunt piece of code
https://api.github.com/repos/langchain-ai/langchain/issues/2874/comments
2
2023-04-14T05:28:42Z
2023-09-10T16:33:44Z
https://github.com/langchain-ai/langchain/issues/2874
1,667,533,910
2,874
[ "hwchase17", "langchain" ]
Here's what I tried: `import os os.environ["COHERE_API_KEY"] = "" from langchain.agents import create_sql_agent from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.sql_database import SQLDatabase from langchain.llms import Cohere from langchain.agents import AgentExecutor db = SQLDat...
sqlagent doesn't work when using Cohere LLM
https://api.github.com/repos/langchain-ai/langchain/issues/2866/comments
5
2023-04-14T04:15:56Z
2023-10-09T16:08:38Z
https://github.com/langchain-ai/langchain/issues/2866
1,667,483,180
2,866
[ "hwchase17", "langchain" ]
While LangChain has already explored [using Hugging Face Datasets to evaluate models](https://python.langchain.com/en/latest/use_cases/evaluation/huggingface_datasets.html), it would be great to see loaders for [HuggingFace Datasets](https://huggingface.co/datasets). I see several benefits to creating a loader for [...
Dataset Loaders: HuggingFace
https://api.github.com/repos/langchain-ai/langchain/issues/2864/comments
3
2023-04-14T03:24:28Z
2024-07-10T11:27:30Z
https://github.com/langchain-ai/langchain/issues/2864
1,667,448,793
2,864
[ "hwchase17", "langchain" ]
When I tries to read the all the sheets from the `.xlsx` file and pass it to the `create_pandas_dataframe_agent` it creates error. ` from langchain.agents import create_pandas_dataframe_agent ` ` df = pd.read_excel('data.xlsx', sheet_name= none) ` ` agent = create_pandas_dataframe_agent(OpenAI(temperature=0), d...
Pandas Dataframe Agent Issue with Multiple sheets of xlsx file
https://api.github.com/repos/langchain-ai/langchain/issues/2862/comments
2
2023-04-14T03:05:12Z
2023-09-10T16:33:54Z
https://github.com/langchain-ai/langchain/issues/2862
1,667,437,084
2,862
[ "hwchase17", "langchain" ]
I am using Directory Loader to load my all the pdf in my data folder. ` from langchain.document_loaders import DirectoryLoader ` ` loader = DirectoryLoader("data", glob = "**/*.pdf") ` ` documents = loader.load() ` ` print(documents) ` This throw error while when I load txt files this is working fine.
Loading Multiple PDF error
https://api.github.com/repos/langchain-ai/langchain/issues/2860/comments
13
2023-04-14T01:53:48Z
2023-09-28T16:08:16Z
https://github.com/langchain-ai/langchain/issues/2860
1,667,385,606
2,860
[ "hwchase17", "langchain" ]
Running the code below produces the following error: `document_variable_name summaries was not found in llm_chain input_variables: ['name'] (type=value_error)` Any ideas? Code: ```python def use_prompt(self, template: str, variables=List[str], verbose: bool = False): prompt_template = PromptTemplate( ...
Trying to pass custom prompt in load_qa_with_sources_chain results in error
https://api.github.com/repos/langchain-ai/langchain/issues/2858/comments
11
2023-04-13T23:16:01Z
2024-06-10T16:06:30Z
https://github.com/langchain-ai/langchain/issues/2858
1,667,267,927
2,858
[ "hwchase17", "langchain" ]
terminal tool is not executing commands my code: ``` tools = load_tools(["llm-math","wikipedia","terminal"], llm=test) agent = initialize_agent(tools, test, agent="zero-shot-react-description", verbose=True) ``` output: ``` Actio...
terminal tool is not executing commands
https://api.github.com/repos/langchain-ai/langchain/issues/2857/comments
1
2023-04-13T22:27:19Z
2023-09-15T22:12:50Z
https://github.com/langchain-ai/langchain/issues/2857
1,667,214,225
2,857
[ "hwchase17", "langchain" ]
We should implement all abstract methods in VectorStore so that users can use weaviate as the vector store for any use case. Context: https://github.com/hwchase17/langchain/blob/763f87953686a69897d1f4d2260388b88eb8d670/langchain/vectorstores/base.py#L104-L113
Implement from_documents class method in weaviate VectorStore
https://api.github.com/repos/langchain-ai/langchain/issues/2855/comments
12
2023-04-13T21:11:00Z
2023-06-08T12:35:52Z
https://github.com/langchain-ai/langchain/issues/2855
1,667,134,280
2,855
[ "hwchase17", "langchain" ]
This is related to AzureOpenAI call. import os import tiktoken from langchain.embeddings import OpenAIEmbeddings from langchain.llms import AzureOpenAI os.environ["OPENAI_API_TYPE"] = "azure" os.environ["OPENAI_API_BASE"] = "https://xxxxxxx.openai.azure.com/" os.environ["OPENAI_API_KEY"] = "xxxx" embedd...
'Could not automatically map SimilarityCurie001 to a tokeniser. Please use `tiktok.get_encoding` to explicitly get the tokeniser you expect.'
https://api.github.com/repos/langchain-ai/langchain/issues/2854/comments
15
2023-04-13T21:08:19Z
2023-09-29T16:08:41Z
https://github.com/langchain-ai/langchain/issues/2854
1,667,130,746
2,854
[ "hwchase17", "langchain" ]
Hello, I came across a problem when using "similarity_search_with_score". According to the [doc](https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/faiss.html?highlight=FAISS.from_documents#faiss), it should return "not only the documents but also the similarity score of the query to them". ...
The scores returned by 'similarity_search_with_score' are NOT in descending order
https://api.github.com/repos/langchain-ai/langchain/issues/2845/comments
8
2023-04-13T17:51:39Z
2024-02-21T17:00:01Z
https://github.com/langchain-ai/langchain/issues/2845
1,666,877,498
2,845
[ "hwchase17", "langchain" ]
Adds Annoy index as VectorStore: https://github.com/spotify/annoy Annoy might be useful in situations where a "read only" vector store is required/sufficient. context: https://discord.com/channels/1038097195422978059/1051632794427723827/1096089994168377354
Add Annoy as VectorStore
https://api.github.com/repos/langchain-ai/langchain/issues/2842/comments
0
2023-04-13T17:10:45Z
2023-04-16T20:44:06Z
https://github.com/langchain-ai/langchain/issues/2842
1,666,809,978
2,842
[ "hwchase17", "langchain" ]
When using ZERO_SHOT_REACT_DESCRIPTION agent type with ChatOpenAI as LLM using 'gpt-3.5-turbo' model and other tools are available like "Google Search", the agent goes into a weird train of thoughts because it deems the answer is "too easy" So in the end it gives the wrong "Final Answer". See screenshot below ![im...
BUG - Agent goes into weird train of thoughts when asked with "too easy" question
https://api.github.com/repos/langchain-ai/langchain/issues/2840/comments
2
2023-04-13T16:44:22Z
2023-04-13T22:24:53Z
https://github.com/langchain-ai/langchain/issues/2840
1,666,765,856
2,840
[ "hwchase17", "langchain" ]
### Description `qdrant.add_texts` always failed ### Steps to repreduce Try add texts to qdrant like this : ```python import qdrant_client client = qdrant_client.QdrantClient("localhost", port=6333) qdrant = Qdrant( client=client, collection_name=COLLECTION_NAME, embedding_function=embeddings.emb...
Fix "validation errors for Batch" when call qdrant.add_texts
https://api.github.com/repos/langchain-ai/langchain/issues/2837/comments
2
2023-04-13T16:03:16Z
2024-01-30T11:48:16Z
https://github.com/langchain-ai/langchain/issues/2837
1,666,708,124
2,837
[ "hwchase17", "langchain" ]
I was trying to use MarkdownTextSplitter to translate a document and maintain formatting, but I noticed that the splitter removed formatting from the markdown when splitting it. As an example, the following markdown example when split with chunk_size=200 removes the "## " from the features line, as well as the line ...
MarkdownTextSplitter removes formatting and line breaks
https://api.github.com/repos/langchain-ai/langchain/issues/2836/comments
19
2023-04-13T15:45:30Z
2023-10-18T16:09:03Z
https://github.com/langchain-ai/langchain/issues/2836
1,666,679,061
2,836