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" ]
In the file `langchain/agents/conversational_chat/base.py` changing line 107 where it returns `response['action'], response['action_input']` to `response['action'], response.get('action_input')` would fix this error when an Agent tries using a tool that is not supposed to take any inputs.
Fix for "Could not parse LLM output" for tools that don't take input
https://api.github.com/repos/langchain-ai/langchain/issues/2832/comments
1
2023-04-13T15:12:58Z
2023-09-15T22:12:49Z
https://github.com/langchain-ai/langchain/issues/2832
1,666,625,495
2,832
[ "hwchase17", "langchain" ]
Hi All, I am trying to use the SQL database chain as mentioned over here (https://python.langchain.com/en/latest/modules/chains/examples/sqlite.html) using AzureOpenAI API but getting the following errors: Command run: db_chain = SQLDatabaseChain(llm=llm, database=db, prompt=PROMPT, verbose=True,return_intermediate...
SQLDatabaseChain returning error for return_intermediate_steps
https://api.github.com/repos/langchain-ai/langchain/issues/2831/comments
4
2023-04-13T14:51:55Z
2023-09-27T16:08:37Z
https://github.com/langchain-ai/langchain/issues/2831
1,666,588,302
2,831
[ "hwchase17", "langchain" ]
how to integrate a toolkit like json tool kit with tool such as human tool to interact with data?
toolkits and tools
https://api.github.com/repos/langchain-ai/langchain/issues/2829/comments
2
2023-04-13T14:29:20Z
2023-09-10T16:34:00Z
https://github.com/langchain-ai/langchain/issues/2829
1,666,539,911
2,829
[ "hwchase17", "langchain" ]
Hello, I would like to request the addition of support for Amazon Bedrock to the Langchain library. As Amazon Bedrock is a new service, it would be beneficial for Langchain to include it as a supported platform. 2023-04-13 Amazon announced the new service [Amazon Bedrock](https://aws.amazon.com/bedrock/). Blog: ...
Support for Amazon Bedrock
https://api.github.com/repos/langchain-ai/langchain/issues/2828/comments
50
2023-04-13T13:39:13Z
2024-05-07T11:11:51Z
https://github.com/langchain-ai/langchain/issues/2828
1,666,442,102
2,828
[ "hwchase17", "langchain" ]
Hi Team, I am trying to create an index for _paul_graham_essay.txt_ with huggingface LLM models. But ending up with below error. Can someone please advice ? Code: ``` from llama_index import GPTSimpleVectorIndex, SimpleDirectoryReader, PromptHelper, LLMPredictor, ServiceContext import torch from langchain.llms.b...
GPTSimpleVectorIndex throwing error of OPENAI_API_KEY for huggingface models
https://api.github.com/repos/langchain-ai/langchain/issues/2824/comments
2
2023-04-13T12:43:57Z
2023-11-19T16:07:26Z
https://github.com/langchain-ai/langchain/issues/2824
1,666,349,132
2,824
[ "hwchase17", "langchain" ]
In previous versions of LC running the following code would create an index in Pinecone: ``` loader = TextLoader(join('data', 'ad.txt')) documents = loader.load() text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) docs = text_splitter.split_documents(documents) embeddings = OpenAIEmbeddin...
`v.0.0.138` does not create a `Pinecone` index when initiating a vectorstore.
https://api.github.com/repos/langchain-ai/langchain/issues/2822/comments
3
2023-04-13T11:28:28Z
2023-09-26T16:08:50Z
https://github.com/langchain-ai/langchain/issues/2822
1,666,235,271
2,822
[ "hwchase17", "langchain" ]
https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/weaviate.html It doesn't look like `embeddings` var is used. This code fails on: ``` ====================================================================== ERROR: test_weaviate_setup (__main__.TestVectorStores) ----------------------...
Weaviate setup in docs is broken
https://api.github.com/repos/langchain-ai/langchain/issues/2820/comments
4
2023-04-13T10:17:05Z
2023-09-26T16:08:55Z
https://github.com/langchain-ai/langchain/issues/2820
1,666,134,513
2,820
[ "hwchase17", "langchain" ]
When using `from_texts()` method on the OpenSearchVectorSearch class it is not possible to pass kwargs to the Opensearch client (which _does_ happen when using the standard `__init__()` constructor). Fix is to add `**kwargs` to line 431 in `opensearch_vector_search.py`: ``` client = _get_opensearch_client(opensear...
Construct OpenSearchVectorSearch using `from_texts` doesn't pass `kwargs` to opensearch client
https://api.github.com/repos/langchain-ai/langchain/issues/2819/comments
1
2023-04-13T10:00:52Z
2023-04-18T03:44:32Z
https://github.com/langchain-ai/langchain/issues/2819
1,666,109,195
2,819
[ "hwchase17", "langchain" ]
Please discuss with me the best practices for creating and sharing tools on langchain. I am developing a library, [langchain-tools-nicovideo](https://github.com/Javakky/langchain-tools-nicovideo), to combine with LangChain for obtaining information from [nicovideo](https://www.nicovideo.jp/) (Japanese video sharing sit...
Proposal for an ecosystem of tools to extend langchain
https://api.github.com/repos/langchain-ai/langchain/issues/2818/comments
3
2023-04-13T09:53:13Z
2023-09-25T16:09:14Z
https://github.com/langchain-ai/langchain/issues/2818
1,666,096,684
2,818
[ "hwchase17", "langchain" ]
null
Having token limit issue while using sql agents when the data returned by the agent query on the database is too large
https://api.github.com/repos/langchain-ai/langchain/issues/2817/comments
3
2023-04-13T08:43:00Z
2024-03-31T04:25:20Z
https://github.com/langchain-ai/langchain/issues/2817
1,665,984,218
2,817
[ "hwchase17", "langchain" ]
As part of our efforts to ensure high quality and robustness of Langchain, it's important to acknowledge that we have experienced many issues with the functional capabilities of the Vector Stores, which do not always perform as expected and have been documented as such. Therefore, we need to implement a comprehensiv...
Complete testing for Vector Stores
https://api.github.com/repos/langchain-ai/langchain/issues/2816/comments
2
2023-04-13T08:36:22Z
2023-11-19T16:07:31Z
https://github.com/langchain-ai/langchain/issues/2816
1,665,974,601
2,816
[ "hwchase17", "langchain" ]
Even though the tiktoken python package is shown in the pyproject.toml, it doesnt seem to have been installed, and I got the error on summarization with map-reduce, ValueError: Could not import tiktoken python package. This is needed in order to calculate get_num_tokens. Please it install it with `pip install tiktok...
tiktoken python package
https://api.github.com/repos/langchain-ai/langchain/issues/2814/comments
7
2023-04-13T08:06:14Z
2024-02-12T16:19:34Z
https://github.com/langchain-ai/langchain/issues/2814
1,665,929,431
2,814
[ "hwchase17", "langchain" ]
How to get the conversation logs in ConversationalRetrievalChain such as the condensed standalone question
Get the conversation logs in ConversationalRetrievalChain
https://api.github.com/repos/langchain-ai/langchain/issues/2813/comments
4
2023-04-13T07:57:09Z
2024-01-04T17:30:12Z
https://github.com/langchain-ai/langchain/issues/2813
1,665,913,983
2,813
[ "hwchase17", "langchain" ]
Is langchain supporting our own api interaction or currently only the ones in examples?
working with own API
https://api.github.com/repos/langchain-ai/langchain/issues/2812/comments
4
2023-04-13T07:43:01Z
2023-11-20T16:07:31Z
https://github.com/langchain-ai/langchain/issues/2812
1,665,894,861
2,812
[ "hwchase17", "langchain" ]
1. `VectorStoreToolkit`, `VectorStoreRouterToolkit` rely on `VectorStoreQATool` and `VectorStoreQAWithSourcesTool` 2. `VectorStoreQATool` and `VectorStoreQAWithSourcesTool` rely on `VectorDBQA` and `VectorDBQAWithSourcesChain` respectively. 3. Although `VectorDBQA` and `VectorDBQAWithSourcesChain`are deprecated, t...
VectorStoreToolkit uses deprecated VectorDBQA, langchain needs create_retrieval_qa_agent
https://api.github.com/repos/langchain-ai/langchain/issues/2811/comments
5
2023-04-13T07:31:47Z
2023-09-18T16:20:13Z
https://github.com/langchain-ai/langchain/issues/2811
1,665,879,850
2,811
[ "hwchase17", "langchain" ]
On the [Hugging Face Hub example page](https://github.com/hwchase17/langchain/blob/0e763677e4c334af80f2b542cb269f3786d8403f/docs/modules/models/llms/integrations/huggingface_hub.ipynb), the question is, "What NFL team won the Super Bowl in the year Justin Beiber *[sic]* was born?" The answer is, "The Seattle Seahawks w...
Hugging Face Hub example is factually incorrect
https://api.github.com/repos/langchain-ai/langchain/issues/2802/comments
8
2023-04-12T23:40:00Z
2023-09-27T16:08:42Z
https://github.com/langchain-ai/langchain/issues/2802
1,665,412,576
2,802
[ "hwchase17", "langchain" ]
It is possible to ask an LLM to create its own symbolic expression to compress a given prompt. See this twitter discussion/[digest](https://www.piratewires.com/p/compression-prompts-gpt-hidden-dialects). It would be useful to add some tooling to compress re-used prompts. Doing some light experimentation with GPT-4, ...
Integrate LLM-assisted symbolic compression
https://api.github.com/repos/langchain-ai/langchain/issues/2794/comments
1
2023-04-12T20:19:58Z
2023-09-10T16:34:20Z
https://github.com/langchain-ai/langchain/issues/2794
1,665,192,419
2,794
[ "hwchase17", "langchain" ]
Below is the code i'm using to explore a CSV on Pokemon. I'm trying to plug in Azure credentials to get it to work but i'm running into some issues. from langchain.agents import create_pandas_dataframe_agent from langchain.llms import OpenAI import pandas as pd import os os.environ["OPENAI_API_KEY"] = 'sk-xxx...
Langchain Azure create_pandas_dataframe_agent Issue
https://api.github.com/repos/langchain-ai/langchain/issues/2790/comments
2
2023-04-12T18:49:32Z
2023-09-10T16:34:26Z
https://github.com/langchain-ai/langchain/issues/2790
1,665,073,170
2,790
[ "hwchase17", "langchain" ]
When replicating the [hierarchical planning example](https://python.langchain.com/en/latest/modules/agents/toolkits/examples/openapi.html#st-example-hierarchical-planning-agent) with a large enough OpenAPI specification, the following error is thrown when running the agent with any query: ``` InvalidRequestError: T...
OpenAPI planner agent doesn't support large specs
https://api.github.com/repos/langchain-ai/langchain/issues/2786/comments
3
2023-04-12T18:15:51Z
2023-11-08T11:32:10Z
https://github.com/langchain-ai/langchain/issues/2786
1,665,027,406
2,786
[ "hwchase17", "langchain" ]
i had see the example llm with streaming output: from langchain.callbacks.base import CallbackManager from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler chat = ChatOpenAI(streaming=True, callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]), verbose=True, temperature=0) ...
ConversationChain with stream responses
https://api.github.com/repos/langchain-ai/langchain/issues/2785/comments
4
2023-04-12T18:15:01Z
2023-05-19T08:19:53Z
https://github.com/langchain-ai/langchain/issues/2785
1,665,026,147
2,785
[ "hwchase17", "langchain" ]
I'm currently using OpenAIEmbeddings and OpenAI LLMs for ConversationalRetrievalChain. I'm trying to switch to LLAMA (specifically Vicuna 13B but it's really slow. I've done this: `embeddings = LlamaCppEmbeddings(model_path="/Users/tgcandido/dalai/llama/models/7B/ggml-model-q4_0.bin") llm = LlamaCpp(model_path="/Us...
Using llama for ConversationalRetrievalChain
https://api.github.com/repos/langchain-ai/langchain/issues/2784/comments
14
2023-04-12T18:14:40Z
2023-05-23T13:23:02Z
https://github.com/langchain-ai/langchain/issues/2784
1,665,025,400
2,784
[ "hwchase17", "langchain" ]
So right now LLMs are exposed and used everywhere through the `predict` method. This method takes a single string, with the whole conversation context, and sends it as a single message. In the case of ChatOpenAI, it includes it as a single user message in the messages list. And I think I get why: the chat API was intro...
On OpenAI's API quirks (system messages, chat history)
https://api.github.com/repos/langchain-ai/langchain/issues/2781/comments
1
2023-04-12T17:34:00Z
2023-05-01T22:15:07Z
https://github.com/langchain-ai/langchain/issues/2781
1,664,969,411
2,781
[ "hwchase17", "langchain" ]
If not, if you know some other similar open source project please recommend !!
Does langchain support Huggingface models for chat task ?
https://api.github.com/repos/langchain-ai/langchain/issues/2777/comments
2
2023-04-12T17:13:37Z
2023-09-10T16:34:30Z
https://github.com/langchain-ai/langchain/issues/2777
1,664,938,359
2,777
[ "hwchase17", "langchain" ]
In creating an exe using Pyinstaller, including the from langchain.docstore.document import Document to use langchain adds over 200MB in size to the resulting exe. Thoughts on reducing the amount of code included with the Documents?
Including from langchain.docstore.document import Document adds 200mb+ to pyinstaller exe
https://api.github.com/repos/langchain-ai/langchain/issues/2774/comments
1
2023-04-12T16:27:28Z
2023-09-15T22:12:48Z
https://github.com/langchain-ai/langchain/issues/2774
1,664,876,336
2,774
[ "hwchase17", "langchain" ]
[Docs](https://python.langchain.com/en/latest/use_cases/evaluation/qa_generation.html) show a QAGenerationChain but that is not exposed via pip install.
QAGenerationChain is missing when langchain is pip installed
https://api.github.com/repos/langchain-ai/langchain/issues/2771/comments
3
2023-04-12T15:20:18Z
2023-04-12T17:25:32Z
https://github.com/langchain-ai/langchain/issues/2771
1,664,773,935
2,771
[ "hwchase17", "langchain" ]
I'm playing around with the [Conversation Agent](https://python.langchain.com/en/latest/modules/agents/agents/examples/conversational_agent.html) notebook and I realized that it tends to use a tool twice with the same input, even though it got the answer it needed the first time around. Here's an example of that sor...
Agent using tools twice unnecessarily
https://api.github.com/repos/langchain-ai/langchain/issues/2766/comments
3
2023-04-12T13:01:16Z
2023-09-10T16:34:36Z
https://github.com/langchain-ai/langchain/issues/2766
1,664,524,216
2,766
[ "hwchase17", "langchain" ]
Getting this error when ever there is some combination of { [ ' in the string_text while building prompts, Is there a work around to this?? ValidationError: 1 validation error for PromptTemplate __root__ Invalid format specifier (type=value_error) Error in get_answer coroutine: Traceback (most recent call l...
Validation error for PromptTemplate __root__ Invalid format specifier (type=value_error)
https://api.github.com/repos/langchain-ai/langchain/issues/2765/comments
7
2023-04-12T12:16:35Z
2023-09-14T14:12:46Z
https://github.com/langchain-ai/langchain/issues/2765
1,664,452,179
2,765
[ "hwchase17", "langchain" ]
# Problem As far as I know, it is not possible to use certain classes like `OpenAIEmbeddings` with deployment names that are not exactly the same as the original model name. In the case of `OpenAIEmbeddings` the `document_model_name` is used to [retrieve the tokenizer from tiktoken](https://github.com/hwchase17/langch...
Deployments names on Azure need to match model names
https://api.github.com/repos/langchain-ai/langchain/issues/2764/comments
2
2023-04-12T12:02:42Z
2023-09-10T16:34:41Z
https://github.com/langchain-ai/langchain/issues/2764
1,664,430,440
2,764
[ "hwchase17", "langchain" ]
This new loader would take in a github wiki url, download all the wiki pages (they're always .md (?), so we can use `UnstructuredMarkdownLoader` too) and load that into a `Document()`
[FEATURE] Add `GithubWikiLoader`
https://api.github.com/repos/langchain-ai/langchain/issues/2763/comments
1
2023-04-12T11:59:35Z
2023-09-15T22:12:48Z
https://github.com/langchain-ai/langchain/issues/2763
1,664,425,508
2,763
[ "hwchase17", "langchain" ]
Hey, with `openai_callback`. I am able to calculate cost to generate text, but this does not work while calculating embedding cost.
Calculate Embedding Cost
https://api.github.com/repos/langchain-ai/langchain/issues/2762/comments
3
2023-04-12T11:38:44Z
2023-09-18T16:20:17Z
https://github.com/langchain-ai/langchain/issues/2762
1,664,392,646
2,762
[ "hwchase17", "langchain" ]
[Modules - Agents - Tools] - It seems that no longer use AgentType. For Example: initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True) -> initialize_agent(tools, llm, agent="zero-shot-react-description", verbose=True) [Modules - Indexes - Document Loaders - YouTube] - It seems ...
About Python Docs modification
https://api.github.com/repos/langchain-ai/langchain/issues/2760/comments
2
2023-04-12T09:12:01Z
2023-08-20T16:31:43Z
https://github.com/langchain-ai/langchain/issues/2760
1,664,164,619
2,760
[ "hwchase17", "langchain" ]
`from langchain.agents.agent_toolkits.openapi import planner` _Traceback (most recent call last): File "/app.py", line 12, in <module> from langchain.agents.agent_toolkits.openapi import planner File ".venv/lib/python3.10/sitepackages/langchain/agents/agent_toolkits/openapi/planner.py", line 43, in <modul...
class RequestsGetToolWithParsing(BaseRequestsTool, BaseTool): File "langchain/agents/agent_toolkits/openapi/planner.py", line 48, in RequestsGetToolWithParsing
https://api.github.com/repos/langchain-ai/langchain/issues/2758/comments
1
2023-04-12T08:23:22Z
2023-04-13T04:26:36Z
https://github.com/langchain-ai/langchain/issues/2758
1,664,088,480
2,758
[ "hwchase17", "langchain" ]
When i use FewShotPromptTemplate function, if the examples contain "{" and "}" characters, I get this error. Like this: {"question": "A = {1; 2; 3; 4; 5; 6; 8; 10}; B = {1; 3; 5; 7; 9; 11}"} How can i fix it. Thank you!!!
KeyError: '1; 2; 3; 4; 5; 6; 8; 10'
https://api.github.com/repos/langchain-ai/langchain/issues/2757/comments
2
2023-04-12T08:19:20Z
2023-09-10T16:34:51Z
https://github.com/langchain-ai/langchain/issues/2757
1,664,082,786
2,757
[ "hwchase17", "langchain" ]
"substring not found" on every user input :( Auto-GPT wont react to it. But the "do nothing sickness" from yesterday work again. (removed the do nothing command temporarily) NEXT ACTION: COMMAND = list_agents ARGUMENTS = {} Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit pro...
"substring not found" on every user suggestion
https://api.github.com/repos/langchain-ai/langchain/issues/2756/comments
1
2023-04-12T08:16:16Z
2023-04-12T08:47:11Z
https://github.com/langchain-ai/langchain/issues/2756
1,664,078,349
2,756
[ "hwchase17", "langchain" ]
Hello Sorry if this was already asked before. I know that the data is embedding and indexed locally but is the data still sent to the LLM Provider ( for example OpenAI ) when you run a query on the embedded data ? how much does this respect user privacy and private domain content ? thank you in advance...
exposing indexed data to LLM Providers
https://api.github.com/repos/langchain-ai/langchain/issues/2754/comments
1
2023-04-12T07:22:32Z
2023-09-15T22:12:47Z
https://github.com/langchain-ai/langchain/issues/2754
1,663,997,463
2,754
[ "hwchase17", "langchain" ]
When I'm using `RetrievalQA` with `OpenAI` and `QDrant`, I sometimes hit the limit of OpenAI `gpt-3.5-turbo` of 4097 token limit. Is this expected behaviour, or does `langchain` implement a tokens calculator that prevents such events? For the record, I'm hitting this problem with Arabic text, and so far didn't with ...
[Q] Does langchain implement any prompt+response token calculation to prevent hitting max limit
https://api.github.com/repos/langchain-ai/langchain/issues/2753/comments
3
2023-04-12T07:16:36Z
2023-09-25T16:09:29Z
https://github.com/langchain-ai/langchain/issues/2753
1,663,990,354
2,753
[ "hwchase17", "langchain" ]
Hey, Does the way of prompting Open AI Chat with SystemMessage, HumanMessage and AIMessage work for Anthropic models aswell? Or must Anthropic models be prompted in the non-chat way? thanks
Chat prompt for Anthropic
https://api.github.com/repos/langchain-ai/langchain/issues/2752/comments
7
2023-04-12T07:07:06Z
2023-10-21T16:09:55Z
https://github.com/langchain-ai/langchain/issues/2752
1,663,976,528
2,752
[ "hwchase17", "langchain" ]
How to load codes from file ,such like .py .java .cpp .js? And how to embedding them to vectors?
How to load codes from file ,such like .py .java .cpp .js?
https://api.github.com/repos/langchain-ai/langchain/issues/2749/comments
2
2023-04-12T06:44:47Z
2023-04-12T07:40:40Z
https://github.com/langchain-ai/langchain/issues/2749
1,663,941,155
2,749
[ "hwchase17", "langchain" ]
The [`FewShotPromptTemplate`](https://python.langchain.com/en/latest/modules/prompts/prompt_templates/examples/prompt_serialization.html#fewshotprompttemplate) examples loaded from `json` and `yaml` files is giving me this error. I've tried this with the examples mentioned in the documentation as well as with my own sa...
Error: in Serialize prompts
https://api.github.com/repos/langchain-ai/langchain/issues/2740/comments
1
2023-04-12T03:32:41Z
2023-04-12T04:32:47Z
https://github.com/langchain-ai/langchain/issues/2740
1,663,657,537
2,740
[ "hwchase17", "langchain" ]
Code: ``` loader_book = PyPDFLoader("D:/PaperPal/langchain-tutorials/data/The Attention Merchants_ The Epic Scramble to Get Inside Our Heads ( PDFDrive ) (1).pdf") test = loader_book.load() chain = load_summarize_chain(llm, chain_type="map_reduce", verbose=True) chain.run(test[0]) ``` I get the following error...
AttributeError: 'tuple' object has no attribute 'page_content' when running a `load_summarize_chain` on an my Document generated from PyPDF Loader
https://api.github.com/repos/langchain-ai/langchain/issues/2736/comments
9
2023-04-12T00:19:48Z
2024-06-13T20:16:40Z
https://github.com/langchain-ai/langchain/issues/2736
1,663,426,842
2,736
[ "hwchase17", "langchain" ]
Hi, I tried several loaders (GitHub , selenium, cheerio,etc) and they retrieve correctly certain data. I then use splitters to split the text in multiple documents, and pass it to the open ai api with high max token. I consistently get 400, which I believe is due to the document size. Is a legit guess? Is t...
Question. OpenAI completion api returns 400
https://api.github.com/repos/langchain-ai/langchain/issues/2727/comments
2
2023-04-11T18:50:19Z
2023-09-10T16:34:55Z
https://github.com/langchain-ai/langchain/issues/2727
1,663,037,095
2,727
[ "hwchase17", "langchain" ]
Python version: 3.9.16 Langchain version: 0.0.109 The code: ``` from langchain.chains import RetrievalQA from langchain.llms import OpenAI ``` the error: ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call la...
Cannot import RetrievalQA from langchain.chains
https://api.github.com/repos/langchain-ai/langchain/issues/2725/comments
8
2023-04-11T17:47:50Z
2024-07-30T15:00:22Z
https://github.com/langchain-ai/langchain/issues/2725
1,662,959,470
2,725
[ "hwchase17", "langchain" ]
After updating to v.0.0.137 version, I now have an error while executing the following script (from the documentation): ```python import os from langchain.agents import create_sql_agent from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.sql_database import SQLDatabase from langchain.l...
Error with `create_sql_agent` after updating to v0.0.137
https://api.github.com/repos/langchain-ai/langchain/issues/2722/comments
4
2023-04-11T17:07:13Z
2023-04-17T16:11:47Z
https://github.com/langchain-ai/langchain/issues/2722
1,662,911,623
2,722
[ "hwchase17", "langchain" ]
Hey guys, I really love langchain and the community, thank you in advance for helping and pointing me in the right direction! I want to use GPT4All as an LLM powering an langchain agent. It wasn't working as expected, so I've started from basics. I've noticed that GPT4All wrapper in langchain creates very low qualit...
GPT4All responds with different results than the similar model executed from cmd line
https://api.github.com/repos/langchain-ai/langchain/issues/2721/comments
1
2023-04-11T16:05:55Z
2023-09-10T16:35:01Z
https://github.com/langchain-ai/langchain/issues/2721
1,662,822,253
2,721
[ "hwchase17", "langchain" ]
I'm proposing modifying the PydanticOutputParsers such that they are generic on the pydantic object passed in to the constructor, so we can get type hints on the resulting pydantic objects that are returned by `parse`. E.g ``` class TestOutput(BaseModel): output: str = ... output_parser = PydanticOutputPar...
Better type hints for OutputParser
https://api.github.com/repos/langchain-ai/langchain/issues/2715/comments
2
2023-04-11T14:20:29Z
2023-04-13T13:50:31Z
https://github.com/langchain-ai/langchain/issues/2715
1,662,600,820
2,715
[ "hwchase17", "langchain" ]
import { SqlDatabase } from "langchain/tools"; Module '"langchain/tools"' has no exported member 'SqlDatabase'.ts
"langchain/tools"' has no exported member 'SqlDatabase'
https://api.github.com/repos/langchain-ai/langchain/issues/2711/comments
1
2023-04-11T12:56:26Z
2023-09-15T21:30:37Z
https://github.com/langchain-ai/langchain/issues/2711
1,662,423,398
2,711
[ "hwchase17", "langchain" ]
When I create `embeddings = HuggingFaceEmbeddings(model_name='THUDM/chatglm-6b')` I get an error message: ``` ValueError: Loading THUDM/chatglm-6b requires you to execute the configuration file in that repo on your local machine. Make sure you have read the code there to avoid malicious use, then set the option t...
Error when creating HuggingFaceEmbeddings with chatglm-6b model
https://api.github.com/repos/langchain-ai/langchain/issues/2710/comments
5
2023-04-11T12:15:55Z
2023-06-20T16:34:51Z
https://github.com/langchain-ai/langchain/issues/2710
1,662,357,596
2,710
[ "hwchase17", "langchain" ]
Would be cool to have this feature. This way we could save already working agent chain into an idempotent workflow to reuse it later many many times. As i understand, right now, LLM can generate another plan for the next call and it could be invalid or with some error. Would be cool to persist that working plan to reu...
Idempotent agent chains or chains import/export?
https://api.github.com/repos/langchain-ai/langchain/issues/2708/comments
1
2023-04-11T10:29:32Z
2023-09-10T16:35:08Z
https://github.com/langchain-ai/langchain/issues/2708
1,662,201,505
2,708
[ "hwchase17", "langchain" ]
Running from the same environment and have tried uninstalling/reinstalling - still getting this error. Anyone have a fix or know what I could be doing wrong? <img width="632" alt="Screenshot 2023-04-11 at 7 05 40 pm" src="https://user-images.githubusercontent.com/121209163/231112960-f55b80dc-93ae-4a96-abc2-33efa7...
ModuleNotFoundError: No module named 'langchain' (Even though LangChain is installed)
https://api.github.com/repos/langchain-ai/langchain/issues/2707/comments
3
2023-04-11T09:14:20Z
2023-09-10T16:35:13Z
https://github.com/langchain-ai/langchain/issues/2707
1,662,074,604
2,707
[ "hwchase17", "langchain" ]
Hi, I'm having some trouble when **linking to MySQL**. Does it only support connecting to sqlite? There seems to be **no introduction to connecting to MySQL in the document**
having some trouble when linking to MySQL
https://api.github.com/repos/langchain-ai/langchain/issues/2705/comments
5
2023-04-11T08:50:12Z
2023-09-25T16:09:39Z
https://github.com/langchain-ai/langchain/issues/2705
1,662,036,269
2,705
[ "hwchase17", "langchain" ]
Hi, I'm having some trouble finding the solution to this. I'm using Langchain on Colab, and for some reasons, the answers sometimes get cut off like below (screenshot attached) I have 2 questions, and both are cut off, as you can see. I tried changing 'max_len_answer' but nothing changes ![image](https://user-ima...
question_answering chains answers cut off
https://api.github.com/repos/langchain-ai/langchain/issues/2703/comments
1
2023-04-11T08:08:14Z
2023-04-12T08:37:08Z
https://github.com/langchain-ai/langchain/issues/2703
1,661,977,111
2,703
[ "hwchase17", "langchain" ]
I noticed llm `OpenAI` returns `finish_reason` in `generation_info` https://github.com/hwchase17/langchain/pull/526 But chat_model `ChatOpenAI`'s `generation_info` is `None` ```python from langchain.chat_models import ChatOpenAI from langchain.schema import HumanMessage, SystemMessage chat = ChatOpenAI(tempera...
generation_info for ChatOpenAI model
https://api.github.com/repos/langchain-ai/langchain/issues/2702/comments
4
2023-04-11T07:02:21Z
2023-10-12T16:10:34Z
https://github.com/langchain-ai/langchain/issues/2702
1,661,884,074
2,702
[ "hwchase17", "langchain" ]
Hi, I have a usecase where i have to fetch Edited posts weekly from community and update the docs within FAISS index. is that possible? or do i have to keep deleting and create new index everytime? Also i use RecursiveCharacterTextSplitter to split docs. ``` loader = DirectoryLoader('./recent_data') ...
How to delete or update a document within a FAISS index?
https://api.github.com/repos/langchain-ai/langchain/issues/2699/comments
19
2023-04-11T06:33:19Z
2023-08-18T07:01:58Z
https://github.com/langchain-ai/langchain/issues/2699
1,661,852,287
2,699
[ "hwchase17", "langchain" ]
I was testing OnlinePDFLoader yesterday iirc and it was working fine. Today I tried experimenting and I keep getting this error `PermissionError: [Errno 13] Permission denied: 'C:\\Users\\REALGL~1\\AppData\\Local\\Temp\\tmp3chr08y0` it may be occurring because the `tempfile.NamedTemporaryFile()` in `pdf.py` is st...
Permission Error with PDF loader
https://api.github.com/repos/langchain-ai/langchain/issues/2698/comments
6
2023-04-11T06:17:16Z
2024-01-27T10:50:22Z
https://github.com/langchain-ai/langchain/issues/2698
1,661,837,012
2,698
[ "hwchase17", "langchain" ]
I am trying to load the multiple pdf using the directory loader its popping up with the following error: `ImportError: cannot import name 'is_directory' from 'PIL._util' (/usr/local/lib/python3.9/dist-packages/PIL/_util.py)`
Directory loader error for pdfs
https://api.github.com/repos/langchain-ai/langchain/issues/2697/comments
2
2023-04-11T05:51:16Z
2023-09-10T16:35:16Z
https://github.com/langchain-ai/langchain/issues/2697
1,661,811,809
2,697
[ "hwchase17", "langchain" ]
I would like to provide an 'embeddings' parameter for the initialization of the Weaviate vector store, as I do not want to start the Weaviate server with the OpenAI key in order to make use of embeddings through the Azure OpenAI Service. The addition of the embeddings parameter affects the __init__ method, as shown...
Allow Weaviate initialization with alternative embedding implementation
https://api.github.com/repos/langchain-ai/langchain/issues/2695/comments
2
2023-04-11T05:19:00Z
2023-04-27T04:45:05Z
https://github.com/langchain-ai/langchain/issues/2695
1,661,787,838
2,695
[ "hwchase17", "langchain" ]
Expectation: Loading a text file via UnstructuredFileLoader then passing the output docs to VectorStoreIndexCreator should work Observation: Crash when attempting to call `VectorstoreIndexCreator().from_loaders(unstructuredFileLoader)` Crashlog: ``` Traceback (most recent call last): File "/Users/minhcnd/Re...
VectorStoreIndexCreator can't load from UnstructuredFileLoader
https://api.github.com/repos/langchain-ai/langchain/issues/2685/comments
4
2023-04-10T22:25:51Z
2023-09-27T16:08:57Z
https://github.com/langchain-ai/langchain/issues/2685
1,661,468,710
2,685
[ "hwchase17", "langchain" ]
I would like to make requests to both Azure OpenAI and the OpenAI API in my app using the `AzureChatOpenAI` and `ChatOpenAI` classes respectively. The issue I'm running into is it seems both classes depend on the same environment variables/global OpenAI variables (`openai.api_key`, `openai.api_type`, etc). For exam...
Support concurrent usage of OpenAI API and Azure OpenAI
https://api.github.com/repos/langchain-ai/langchain/issues/2683/comments
7
2023-04-10T22:01:07Z
2023-09-27T16:09:02Z
https://github.com/langchain-ai/langchain/issues/2683
1,661,437,301
2,683
[ "hwchase17", "langchain" ]
I would like to be able to pass token params for tiktoken in https://github.com/hwchase17/langchain/blob/bd9f095ed249694a98aa438c5467564ace883ff5/langchain/embeddings/openai.py#L198 to be able to work with documents with `<|endoftext|>` in them Related issue: https://github.com/hwchase17/langchain/issues/923
OpenAIEmbeddings special token params for tiktoken
https://api.github.com/repos/langchain-ai/langchain/issues/2681/comments
0
2023-04-10T20:25:15Z
2023-04-11T11:44:18Z
https://github.com/langchain-ai/langchain/issues/2681
1,661,315,327
2,681
[ "hwchase17", "langchain" ]
The following only parse the info within the webpage. If there are links/other pages embedded into the webpage, how do I parse them iteratively? `loader = WebBaseLoader("https://beta.ruff.rs/docs/faq/")` `blog_docs = loader.load()` print(blog_docs) > [Document(page_content='\n\n\n\n\n\n\n\n\n\n\n\nFAQ - Ruff\...
How to Iteratively parse all the contents within links on a page?
https://api.github.com/repos/langchain-ai/langchain/issues/2680/comments
3
2023-04-10T20:17:14Z
2024-02-12T05:47:17Z
https://github.com/langchain-ai/langchain/issues/2680
1,661,305,027
2,680
[ "hwchase17", "langchain" ]
When you ask GPT to produce code, you get an error since the way responses are parsed splits the cleaned output by triple backticks, which doesn't account for possible usage of triple backticks in the output itself. To reproduce: ```python llm = ChatOpenAI(model_name="gpt-3.5-turbo") memory = ConversationBuffe...
Chat agent does not parse properly when model returns a code block
https://api.github.com/repos/langchain-ai/langchain/issues/2679/comments
16
2023-04-10T19:41:05Z
2024-01-04T12:36:47Z
https://github.com/langchain-ai/langchain/issues/2679
1,661,258,754
2,679
[ "hwchase17", "langchain" ]
I noticed that `langchain` will not try to use the `tiktoken` tokenizer if python version is 3.8 and will switch to Hugging Face tokenizer instead ([see line 331 here](https://github.com/hwchase17/langchain/blob/master/langchain/chat_models/openai.py)). It assumes that `tiktoken` does not support python 3.8. However th...
Langchain should use tiktoken tokenizer for python 3.8
https://api.github.com/repos/langchain-ai/langchain/issues/2677/comments
1
2023-04-10T18:40:46Z
2023-09-10T16:35:21Z
https://github.com/langchain-ai/langchain/issues/2677
1,661,183,616
2,677
[ "hwchase17", "langchain" ]
I don't want to use ChatGpt, I want to use a local "chatgpt" So I tried this example with GPT4All https://python.langchain.com/en/latest/modules/agents/toolkits/examples/csv.html ```python from langchain.llms import GPT4All from langchain import PromptTemplate, LLMChain from langchain.agents import create_csv_ag...
GPT4All and create_csv_agent : llama_generate: error: prompt is too long (680 tokens, max 508)
https://api.github.com/repos/langchain-ai/langchain/issues/2674/comments
9
2023-04-10T15:59:17Z
2023-09-28T16:08:32Z
https://github.com/langchain-ai/langchain/issues/2674
1,660,990,166
2,674
[ "hwchase17", "langchain" ]
I _just_ want to form the GET request URL. It can then be executed either within LangChain or simply returned. I do not want to use a LLM to interpret the JSON response. I've been trying with `OpenAPIEndpointChain` and I can't seem to find a way to exit early without having the LLM try to digest the JSON returned fr...
Which Chain or Agent to Use for Creating GET Requests from Natural Language Queries with One or Many OpenAPI Specifications? Without an LLM interpretation of the API response.
https://api.github.com/repos/langchain-ai/langchain/issues/2672/comments
2
2023-04-10T15:52:09Z
2023-09-10T16:35:26Z
https://github.com/langchain-ai/langchain/issues/2672
1,660,977,208
2,672
[ "hwchase17", "langchain" ]
I'm trying to understand the best ways to design a custom chatbot using langchain. In the chatbot design, I would like to give some guidance to chatbot in the following fashion: - When user inputs their name, always use it to address them. - Ask the user if they are willing to answer a few questions. - If the u...
Question: How to Guide Chatbot?
https://api.github.com/repos/langchain-ai/langchain/issues/2671/comments
1
2023-04-10T15:44:30Z
2023-09-10T16:35:31Z
https://github.com/langchain-ai/langchain/issues/2671
1,660,969,090
2,671
[ "hwchase17", "langchain" ]
Hi, I would like to run a HF model ( https://huggingface.co/chavinlo/gpt4-x-alpaca/ ) without the need to download it, but just pointing a local_dir param as in the diffusers for example. Is this possible? someting like this ... ``` from langchain import PromptTemplate, HuggingFaceHub, LLMChain, OpenAI templat...
huggingfacehub model from local folder?
https://api.github.com/repos/langchain-ai/langchain/issues/2667/comments
11
2023-04-10T13:00:46Z
2023-11-22T19:45:30Z
https://github.com/langchain-ai/langchain/issues/2667
1,660,753,742
2,667
[ "hwchase17", "langchain" ]
I'm generating a bot for the schema at https://beta-demo.netbox.dev/api/schema. I have been able to minify the spec to get the plan string which goes like ``` 1. GET /api/dcim/devices/ to retrieve all devices 2. Filter the devices by status to only include those with an active status. This can be done by adding a ...
plan_str has 2 references to GET keyword which causes the OpenAPI agent to raise value error when an endpoint is not found
https://api.github.com/repos/langchain-ai/langchain/issues/2665/comments
3
2023-04-10T11:30:33Z
2023-08-20T16:15:51Z
https://github.com/langchain-ai/langchain/issues/2665
1,660,655,448
2,665
[ "hwchase17", "langchain" ]
Contrary to `from_texts` which batch computes embeddings through `embed_documents`, the `add_texts` method calls `self.embedding_function` for each document that is beind added. If using `OpenAIEmbeddings`, this means one API call per added document, which can take a long time when there are many documents: https://...
FAISS.add_texts is calling the embedding function without batching
https://api.github.com/repos/langchain-ai/langchain/issues/2660/comments
3
2023-04-10T09:49:10Z
2023-09-10T16:35:38Z
https://github.com/langchain-ai/langchain/issues/2660
1,660,529,222
2,660
[ "hwchase17", "langchain" ]
``` 112 if int(n_tokens) < 0: --> 113 raise RuntimeError(f'Failed to tokenize: text="{text}" n_tokens={n_tokens}') 114 return list(tokens[:n_tokens]) ``` RuntimeError: Failed to tokenize: text="b" Use the following pieces of context to answer the question at the end. If you don't know the answer, jus...
Failed to tokenize: langchain with gpt4all model
https://api.github.com/repos/langchain-ai/langchain/issues/2659/comments
12
2023-04-10T09:43:48Z
2023-09-29T16:08:47Z
https://github.com/langchain-ai/langchain/issues/2659
1,660,524,204
2,659
[ "hwchase17", "langchain" ]
Is there a way to pass in an already instantiated VectorStore into VectorStoreIndexCreator? As far as I checked, the creator accepts the class and initializes the class internally via `from_documents`. But this doesn't allow to use persisted Chroma from the loaded index. I might be misunderstanding the intention, b...
Ability to pass instantiated Chroma into VectorStoreIndexCreator
https://api.github.com/repos/langchain-ai/langchain/issues/2658/comments
2
2023-04-10T07:58:58Z
2023-09-10T16:35:41Z
https://github.com/langchain-ai/langchain/issues/2658
1,660,402,782
2,658
[ "hwchase17", "langchain" ]
I would like to support version 2 of SQLAlchemy.
I would like to support version 2 of SQLAlchemy
https://api.github.com/repos/langchain-ai/langchain/issues/2654/comments
3
2023-04-10T06:27:14Z
2023-09-27T16:09:17Z
https://github.com/langchain-ai/langchain/issues/2654
1,660,312,485
2,654
[ "hwchase17", "langchain" ]
Hi @hwchase17 , I'm using `RetrievalQA` to do question answering on vector store, below are the config I used - llm=ChatOpenAI chatgpt 3.5 model - embeddings = OpenAIEmbeddings - retriever=Pinecone This is one of the messages ``` Given the following extracted parts of a long document and a question, create a...
Good summaries were ignored
https://api.github.com/repos/langchain-ai/langchain/issues/2653/comments
0
2023-04-10T03:55:46Z
2023-04-10T13:05:00Z
https://github.com/langchain-ai/langchain/issues/2653
1,660,190,372
2,653
[ "hwchase17", "langchain" ]
While I'm sure the entire community is very grateful for the pace of change with this library, it's frankly overwhelming to keep up with. Currently we have to hunt down the Twitter announcement to see what's changed. Perhaps it's just me. For your consideration I've included a shell script (courtesy of ChatGPT) and ...
Please add dedicated changelog (sample script and output included)
https://api.github.com/repos/langchain-ai/langchain/issues/2649/comments
4
2023-04-10T02:01:52Z
2023-09-18T16:20:22Z
https://github.com/langchain-ai/langchain/issues/2649
1,660,109,765
2,649
[ "hwchase17", "langchain" ]
As per suggestion [here](https://github.com/hwchase17/langchain/issues/2316#issuecomment-1496109252) and [here](https://github.com/hwchase17/langchain/issues/2316#issuecomment-1500952624), I'm creating a new issue for the development of a RCI (Recursively Criticizes and Improves) agent, previously defined in [Language ...
RCI (Recursively Criticizes and Improves) Agent
https://api.github.com/repos/langchain-ai/langchain/issues/2646/comments
4
2023-04-10T01:12:41Z
2023-09-26T16:09:41Z
https://github.com/langchain-ai/langchain/issues/2646
1,660,080,000
2,646
[ "hwchase17", "langchain" ]
Hi there, getting the following error when attempting to run a `QAWithSourcesChain` using a local GPT4All model. The code works fine with OpenAI but seems to break if I swap in a local LLM model for the response. Embeddings work fine in the VectorStore (using OpenSearch). ```py def query_datastore( query: str,...
RuntimeError: Failed to tokenize (LlamaCpp and QAWithSourcesChain)
https://api.github.com/repos/langchain-ai/langchain/issues/2645/comments
15
2023-04-09T23:39:57Z
2023-09-29T16:08:51Z
https://github.com/langchain-ai/langchain/issues/2645
1,660,039,859
2,645
[ "hwchase17", "langchain" ]
Why langchain output is like the below, when I use LlamaCpp and load vicuna? ``` from langchain.llms import LlamaCpp from langchain import PromptTemplate, LLMChain template = """Question: {question} Answer: Let's think step by step.""" prompt = PromptTemplate(template=template, input_variables=["question"])...
Weird: LlamaCpp prints questions and asnwers that I did not ask!1
https://api.github.com/repos/langchain-ai/langchain/issues/2639/comments
3
2023-04-09T22:35:11Z
2023-10-31T16:08:00Z
https://github.com/langchain-ai/langchain/issues/2639
1,660,024,565
2,639
[ "hwchase17", "langchain" ]
## Problem Langchain currently doesn't support chat format for Anthropic (e.g. being able to use `HumanMessage` and `AIMessage` classes) Currently, when testing the same prompt across both Anthropic and OpenAI chat models, it requires rewriting the same prompt, although they fundamentally use the same `Human:... ...
Unable to reuse Chat Models for Anthropic Claude
https://api.github.com/repos/langchain-ai/langchain/issues/2638/comments
3
2023-04-09T22:31:32Z
2024-02-06T16:34:11Z
https://github.com/langchain-ai/langchain/issues/2638
1,660,023,822
2,638
[ "hwchase17", "langchain" ]
I'm receiving this error when I try to call: `OutputFixingParser.from_llm(parser=parser, llm=ChatOpenAI())` Where parser is a class that I have built to extend BaseOutputParser. I don't think that class can be the problem because of the error I am receiving: ``` File "pydantic/main.py", line 341, in pydantic.m...
Can't instantiate abstract class BaseLanguageModel
https://api.github.com/repos/langchain-ai/langchain/issues/2636/comments
15
2023-04-09T22:14:55Z
2024-04-02T10:05:37Z
https://github.com/langchain-ai/langchain/issues/2636
1,660,020,213
2,636
[ "hwchase17", "langchain" ]
I am using VectorstoreIndexCreator as below , using SageMake JumpStart gpt-j-6b with FAISS . However I get error while creating the index. **1. Code for VectorstoreIndex** ``` from langchain.indexes import VectorstoreIndexCreator index_creator = VectorstoreIndexCreator( vectorstore_cls=FAISS, embeddin...
Using VectorstoreIndexCreator fails for - SageMaker Jumpstart Embedding Model of gpt-j-6b with FAISS and SageMaker Endpoint LLM flan-t5-xl
https://api.github.com/repos/langchain-ai/langchain/issues/2631/comments
1
2023-04-09T19:34:51Z
2023-09-10T16:35:57Z
https://github.com/langchain-ai/langchain/issues/2631
1,659,979,970
2,631
[ "hwchase17", "langchain" ]
Currently when using any chain that has as a llm `LlamaCpp` and a vector store that was created using a `LlamaCppEmbeddings`, it requires to have in memory two models (due to how both objects are created and those two clients are created). I was wondering if there is something currently in progress to change this and r...
Share client between LlamaCpp LLM and LlamaCpp Embedding
https://api.github.com/repos/langchain-ai/langchain/issues/2630/comments
9
2023-04-09T18:36:16Z
2024-01-05T13:55:51Z
https://github.com/langchain-ai/langchain/issues/2630
1,659,964,327
2,630
[ "hwchase17", "langchain" ]
when I save `llm=OpenAI(temperature=0, model_name="gpt-3.5-turbo")`,the json data like this: ```json "llm": { "model_name": "gpt-3.5-turbo", "temperature": 0, "_type": "openai-chat" }, ``` but the _type is not in type assertion list, and raise error: ```bash File ~/miniconda3/envs/...
[BUG]'gpt-3.5-turbo' does not in assertion list
https://api.github.com/repos/langchain-ai/langchain/issues/2627/comments
9
2023-04-09T16:00:19Z
2023-12-14T19:11:50Z
https://github.com/langchain-ai/langchain/issues/2627
1,659,921,912
2,627
[ "hwchase17", "langchain" ]
## What's the issue? Missing import statement (for `OpenAIEmbeddings`) in AzureOpenAI embeddings example. <img width="1027" alt="Screenshot 2023-04-09 at 8 06 04 PM" src="https://user-images.githubusercontent.com/19938474/230779010-e7935543-6ae7-477c-872d-8a5220fc60c9.png"> https://github.com/hwchase17/langc...
Missing import in AzureOpenAI embedding example
https://api.github.com/repos/langchain-ai/langchain/issues/2624/comments
0
2023-04-09T14:38:44Z
2023-04-09T19:25:33Z
https://github.com/langchain-ai/langchain/issues/2624
1,659,897,128
2,624
[ "hwchase17", "langchain" ]
See this replit for a demonstration of what the problem seems to be https://replit.com/@XidaRen/Test-Exec-Problem#main.py See this stack overflow question for my documentation of my explorations https://stackoverflow.com/questions/75970939/python-exec-fails-to-define-function-when-locals-and-globals-are-different ...
Functions defined in PythonREPL aren't accessible to other functions due to Locals != Globals
https://api.github.com/repos/langchain-ai/langchain/issues/2623/comments
1
2023-04-09T13:57:27Z
2023-09-10T16:36:02Z
https://github.com/langchain-ai/langchain/issues/2623
1,659,884,786
2,623
[ "hwchase17", "langchain" ]
https://python.langchain.com/en/latest/modules/agents/how_to_guides.html None of the "How-To Guides" have working links? I get a 404 for all of them.
Missing How-To guides (404)
https://api.github.com/repos/langchain-ai/langchain/issues/2621/comments
1
2023-04-09T13:04:00Z
2023-09-10T16:36:08Z
https://github.com/langchain-ai/langchain/issues/2621
1,659,869,672
2,621
[ "hwchase17", "langchain" ]
I really really love langchain. But you are moving too fast, releasing integration after integration without documenting the existing stuff enough or explaining how to implement real life use cases. Here is what I am failing to do, probably one of the most basic tasks: If my Redis server does not have a specific...
Redis: can not check if index exists and can not create index if it does not
https://api.github.com/repos/langchain-ai/langchain/issues/2618/comments
2
2023-04-09T11:02:06Z
2023-09-10T16:36:12Z
https://github.com/langchain-ai/langchain/issues/2618
1,659,836,683
2,618
[ "hwchase17", "langchain" ]
Let say I have two sentences and title Whenever I ask for the first title it's give me answer but for the second one they say. I sorry do you have any other questions. 😁😀
The embading some time missing the information
https://api.github.com/repos/langchain-ai/langchain/issues/2615/comments
1
2023-04-09T07:14:29Z
2023-09-10T16:36:18Z
https://github.com/langchain-ai/langchain/issues/2615
1,659,778,527
2,615
[ "hwchase17", "langchain" ]
I'm highly skeptical if `ConversationBufferMemory` is actually needed compared to `ConversationBufferWindowMemory`. There are two main issues with it: 1. As usage continues, the list in chat_memory will become ever-increasing. (actually this is common for both at the moment, seems very weired though) 2. When loadin...
Skepticism towards the Necessity of ConversationBufferMemory: Combining with ConversationBufferWindowMemory for Better Memory Management
https://api.github.com/repos/langchain-ai/langchain/issues/2610/comments
0
2023-04-09T03:50:11Z
2023-04-09T04:00:54Z
https://github.com/langchain-ai/langchain/issues/2610
1,659,737,255
2,610
[ "hwchase17", "langchain" ]
I'm trying to use `WeaviateHybridSearchRetriever` in `ConversationalRetrievalChain`, specified `return_source_documents=True`, however it doesn't return the source in meta data. got `KeyError: 'source'` ``` WEAVIATE_URL = "http://localhost:8080" client = weaviate.Client( url=WEAVIATE_URL, ) retriever = Weav...
Weaviate Hybrid Search doesn't return source
https://api.github.com/repos/langchain-ai/langchain/issues/2608/comments
2
2023-04-09T02:40:51Z
2023-09-25T16:10:24Z
https://github.com/langchain-ai/langchain/issues/2608
1,659,722,003
2,608
[ "hwchase17", "langchain" ]
When running the following command there is an error related to the non existence of a module. Command: from langchain.chains.summarize import load_summarize_chain Error: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent cal...
Model not found on Summarization - Following instructions form documentation
https://api.github.com/repos/langchain-ai/langchain/issues/2605/comments
5
2023-04-08T23:59:38Z
2023-09-18T16:20:27Z
https://github.com/langchain-ai/langchain/issues/2605
1,659,681,544
2,605
[ "hwchase17", "langchain" ]
https://github.com/hwchase17/langchain/blame/master/docs/modules/agents/agents/custom_agent.ipynb#L12 It says three then has two points afterwards
No it doesn't?
https://api.github.com/repos/langchain-ai/langchain/issues/2604/comments
1
2023-04-08T21:56:42Z
2023-09-10T16:36:27Z
https://github.com/langchain-ai/langchain/issues/2604
1,659,656,997
2,604
[ "hwchase17", "langchain" ]
The typical way agents decide what tool to use is by putting a description of the tool in a prompt. But what if there are too many tools to do that? You can [do a retrieval step to get a smaller candidate set of tools](https://python.langchain.com/en/latest/modules/agents/agents/custom_agent_with_tool_retrieval.h...
Toolformer
https://api.github.com/repos/langchain-ai/langchain/issues/2603/comments
5
2023-04-08T21:29:31Z
2023-09-27T16:09:28Z
https://github.com/langchain-ai/langchain/issues/2603
1,659,651,195
2,603
[ "hwchase17", "langchain" ]
Many use-cases are companies (in different industries) integrating chatgpt api with calling their own in-house services (via http, etc), and LLMs(ChatGPT) have no knowledge of these services. Just wanted to check current prompts for agents (e.g https://github.com/hwchase17/langchain/blob/master/langchain/agents/conv...
Feature request: conversation agent (chat mode) to support in-house (http) service
https://api.github.com/repos/langchain-ai/langchain/issues/2598/comments
3
2023-04-08T20:12:27Z
2023-09-10T16:36:32Z
https://github.com/langchain-ai/langchain/issues/2598
1,659,633,421
2,598
[ "hwchase17", "langchain" ]
‘This one is right in the middle of the action - the plugin market. It is the Android to OpenAI's iOS. Everyone needs a second option. Another thing people seem to forget is that Langchain can use LLMs that aren't made by OpenAI. If OpenAI goes under, or a great open-source model comes onto the scene, Langchain can s...
CHATGPT has plugin, what will be the impact on Langchain ?
https://api.github.com/repos/langchain-ai/langchain/issues/2596/comments
4
2023-04-08T19:03:55Z
2023-09-18T16:20:33Z
https://github.com/langchain-ai/langchain/issues/2596
1,659,615,836
2,596
[ "hwchase17", "langchain" ]
Right now the langchain chroma vectorstore doesn't allow you to adjust the metadata attribute on the create collection method of the ChromaDB client so you can't adjust the formula for distance calculations. Chroma DB introduced the ability to add metadata to collections to tell the index which distance calculation...
ChromaDB Vectorstore: Customize distance calculations
https://api.github.com/repos/langchain-ai/langchain/issues/2595/comments
3
2023-04-08T19:01:06Z
2023-09-26T16:09:56Z
https://github.com/langchain-ai/langchain/issues/2595
1,659,615,132
2,595
[ "hwchase17", "langchain" ]
I'm trying to use `langchain` to replace current use QDrant directly, in order to benefit from other tools in `langchain`, however I'm stuck. I already have this code that creates QDrant collections on-demand: ```python client.delete_collection(collection_name="articles") client.recreate_collection(...
[Q] How to re-use QDrant collection data that are created separatly with non-default vector name?
https://api.github.com/repos/langchain-ai/langchain/issues/2594/comments
9
2023-04-08T18:37:50Z
2024-07-05T08:46:33Z
https://github.com/langchain-ai/langchain/issues/2594
1,659,608,651
2,594
[ "hwchase17", "langchain" ]
I think the prompt module should be extended to support generating new prompts. This would create a better sandbox for evaluating different prompt templates without writing 20+ variations by hand. The core idea is to call a llm to alter a base prompt template while respecting the input variables according to an instruc...
Feature request: prompt generator to assist in tuning
https://api.github.com/repos/langchain-ai/langchain/issues/2593/comments
1
2023-04-08T17:14:36Z
2023-09-10T16:36:43Z
https://github.com/langchain-ai/langchain/issues/2593
1,659,586,074
2,593
[ "hwchase17", "langchain" ]
Hi, When I run this: from langchain.llms import LlamaCpp from langchain import PromptTemplate, LLMChain template = """Question: {question} Answer: Let's think step by step.""" prompt = PromptTemplate(template=template, input_variables=["question"]) llm = LlamaCpp(model_path="models/gpt4all-lora-quantized.b...
AssertionError in LlamaCpp
https://api.github.com/repos/langchain-ai/langchain/issues/2592/comments
3
2023-04-08T16:59:53Z
2023-09-26T16:10:02Z
https://github.com/langchain-ai/langchain/issues/2592
1,659,582,034
2,592
[ "hwchase17", "langchain" ]
The foundational chain and ChromaDB possess the capacity for persistence. It would be beneficial to make this persistence feature accessible to the higher-level VectorstoreIndexCreator. By doing so, we can repurpose saved indexes, making the service more easily scalable, particularly for handling extensive docu...
Feature Request: Allow VectorStoreIndexCreator to retrieve stored vector indexes
https://api.github.com/repos/langchain-ai/langchain/issues/2591/comments
3
2023-04-08T16:53:19Z
2023-09-28T16:08:46Z
https://github.com/langchain-ai/langchain/issues/2591
1,659,580,116
2,591
[ "hwchase17", "langchain" ]
Good afternoon, I am having a problem when it comes to streaming responses. I am trying to use the example provided by the langchain docs and I can't seem to get it working without editing the package.json file from langchain lol. Here is the code I ran `import * as env from "dotenv" import { OpenAI } from "langc...
Receiving a "node:internal/errors:490" error when running the streaming example code from the langchain docs
https://api.github.com/repos/langchain-ai/langchain/issues/2590/comments
3
2023-04-08T16:24:18Z
2023-09-25T16:10:50Z
https://github.com/langchain-ai/langchain/issues/2590
1,659,572,068
2,590
[ "hwchase17", "langchain" ]
hi, i am trying use FAISS to do similarity_search, but it failed with errs: >>> db.similarity_search("123") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.10/site-packages/langchain/vectorstores/faiss.py", line 207, in similarity_search docs_and_scores =...
FAISS similarity_search not work
https://api.github.com/repos/langchain-ai/langchain/issues/2587/comments
3
2023-04-08T15:57:25Z
2023-09-25T16:10:55Z
https://github.com/langchain-ai/langchain/issues/2587
1,659,564,331
2,587