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"
] | To setup the environment for azure openAI, We may require to setup couple of other values along with api key (refer -https://learn.microsoft.com/en-us/azure/cognitive-services/openai/quickstart?pivots=programming-language-python).
I am not able to find how to integrate this library with the azure api.
What keys/para... | Connect Using Azure OpenAI Resource | https://api.github.com/repos/langchain-ai/langchain/issues/971/comments | 5 | 2023-02-10T13:58:06Z | 2023-02-11T04:23:08Z | https://github.com/langchain-ai/langchain/issues/971 | 1,579,727,075 | 971 |
[
"hwchase17",
"langchain"
] | First of all, langchain ROCKS!
Is there an incremental way to use Embedding to generate a FAISS vector DB if new documents need to be added to the context every week. Or just generate new additional FAISS vector DB each week, use a chain that loads multiple vectorestore at the same time. Currently VectorDBQAWithSour... | Is there an incremental way to use Embedding to generate a FAISS vector DB or load multiple vectorstores at the same time? | https://api.github.com/repos/langchain-ai/langchain/issues/970/comments | 3 | 2023-02-10T13:06:56Z | 2023-09-10T16:45:28Z | https://github.com/langchain-ai/langchain/issues/970 | 1,579,656,014 | 970 |
[
"hwchase17",
"langchain"
] | Hi, thx for sharing this repo!
I have a problem related to using wolfram tools on a server that cannot access the internet, it seems that this tool cannot work on a server with no internet access.
is there any solution to solve this problem? | How to use the third party tools on server without internet access. | https://api.github.com/repos/langchain-ai/langchain/issues/966/comments | 2 | 2023-02-10T07:42:16Z | 2023-09-10T16:45:34Z | https://github.com/langchain-ai/langchain/issues/966 | 1,579,168,305 | 966 |
[
"hwchase17",
"langchain"
] | Running examples in jupyternotebook, mac osx, python 3.8 and got error when trying to import
`from langchain.chains import AnalyzeDocumentChain`
=>
`ImportError: cannot import name 'AnalyzeDocumentChain'`
I upgraded pip from 22.xx to 23 and upgraded langchain via pip and now find
```
Input In [5], in <cel... | ImportError: cannot import name 'AnalyzeDocumentChain', with new error ImportError: cannot import name 'declarative_base' from 'sqlalchemy.orm' after pip --upgrade | https://api.github.com/repos/langchain-ai/langchain/issues/962/comments | 2 | 2023-02-10T03:41:50Z | 2023-02-11T07:12:03Z | https://github.com/langchain-ai/langchain/issues/962 | 1,578,933,676 | 962 |
[
"hwchase17",
"langchain"
] | Hi langchain team,
I'd like to help add `logprobs` and `finish_reason` to the openai generation output. Would it be best to build onto the existing generate method in the `BaseOpenAI` class and `Generation` schema object? https://github.com/hwchase17/langchain/pull/293#pullrequestreview-1212330436 references adding ... | Expanding LLM output: Adding `logprob` and `finish_reason` to `llm.generate()` output | https://api.github.com/repos/langchain-ai/langchain/issues/957/comments | 2 | 2023-02-09T18:43:03Z | 2023-02-14T02:06:30Z | https://github.com/langchain-ai/langchain/issues/957 | 1,578,412,563 | 957 |
[
"hwchase17",
"langchain"
] | It is great to see langchain already support [HyDE](https://langchain.readthedocs.io/en/latest/modules/utils/combine_docs_examples/hyde.html). But in its original paper, once the hypothetical documents are generated, the embedding is computed using [Contriever](https://github.com/facebookresearch/contriever) model as d... | Does langchain support using Contriever as an embedding method? | https://api.github.com/repos/langchain-ai/langchain/issues/954/comments | 6 | 2023-02-09T07:42:14Z | 2024-03-11T23:56:19Z | https://github.com/langchain-ai/langchain/issues/954 | 1,577,398,329 | 954 |
[
"hwchase17",
"langchain"
] | I am trying to test load certain text based PDFs, and for some single page documents the data loader is not catching the tail-end of the PDF. Any suggestions on debugging this? | PDF Loader clipping ending of document | https://api.github.com/repos/langchain-ai/langchain/issues/951/comments | 2 | 2023-02-09T00:41:02Z | 2023-09-10T16:45:39Z | https://github.com/langchain-ai/langchain/issues/951 | 1,577,021,205 | 951 |
[
"hwchase17",
"langchain"
] | I have a function that calls the openai API multiple times. Yesterday the function crashed occasionally with the following error in my logs
> error_code=None error_message='The server had an error while processing your request. Sorry about that!' error_param=None error_type=server_error message='OpenAI API error rec... | Handling "openAI API error received" | https://api.github.com/repos/langchain-ai/langchain/issues/950/comments | 6 | 2023-02-08T23:54:16Z | 2023-09-27T16:14:37Z | https://github.com/langchain-ai/langchain/issues/950 | 1,576,973,505 | 950 |
[
"hwchase17",
"langchain"
] | The documentation center column is quite narrow which causes a lot of unnecessary wrapping on code examples and API reference docs. Example of the qdrant code pictured.

| Doc Legibility - Increase Width | https://api.github.com/repos/langchain-ai/langchain/issues/948/comments | 5 | 2023-02-08T20:17:37Z | 2023-09-18T16:24:51Z | https://github.com/langchain-ai/langchain/issues/948 | 1,576,747,068 | 948 |
[
"hwchase17",
"langchain"
] | When using embeddings, the `total_tokens` count of a callback is wrong, e.g. the following example currently returns `0` even though it shouldn't:
```python
from langchain.callbacks import get_openai_callback
with get_openai_callback() as cb:
embeddings = OpenAIEmbeddings()
embeddings.embed_query("he... | Total token count of openai callback does not count embedding usage | https://api.github.com/repos/langchain-ai/langchain/issues/945/comments | 23 | 2023-02-08T19:50:58Z | 2024-03-19T16:04:30Z | https://github.com/langchain-ai/langchain/issues/945 | 1,576,716,198 | 945 |
[
"hwchase17",
"langchain"
] | This is pretty simple to override but just giving you a heads up that the current sqlalchemy definition does not work with MySQL since it requires a length specified for varchar columns: `VARCHAR requires a length on dialect mysql`
```
class FullLLMCache(Base): # type: ignore
"""SQLite table for full LLM Cach... | SQLAlchemy Cache Issues | https://api.github.com/repos/langchain-ai/langchain/issues/940/comments | 2 | 2023-02-08T13:10:49Z | 2023-09-10T16:45:49Z | https://github.com/langchain-ai/langchain/issues/940 | 1,576,098,324 | 940 |
[
"hwchase17",
"langchain"
] | I am looking to connect this to a smaller local model for offline use. Is this supported, or does it only work with cloud based language models? | Connection to local language model | https://api.github.com/repos/langchain-ai/langchain/issues/936/comments | 3 | 2023-02-08T04:26:20Z | 2023-02-08T15:48:06Z | https://github.com/langchain-ai/langchain/issues/936 | 1,575,446,168 | 936 |
[
"hwchase17",
"langchain"
] | In a freshly installed instance of Docker for Ubuntu (following the instructions at https://docs.docker.com/desktop/install/ubuntu/), the `langchain-server` script fails to run.
The reason is that `docker-compose` is not a valid command following this install process:
https://github.com/hwchase17/langchain/blob/afc... | langchain-server script fails to run on new Docker install | https://api.github.com/repos/langchain-ai/langchain/issues/935/comments | 5 | 2023-02-08T00:20:49Z | 2023-09-27T16:14:42Z | https://github.com/langchain-ai/langchain/issues/935 | 1,575,238,004 | 935 |
[
"hwchase17",
"langchain"
] | Hello ,
I am looking into the docs getting started page. While going through the link in the [page](https://github.com/hwchase17/langchain/blob/master/docs/use_cases/question_answering.md) . I got the broken link. It says the page does not exist. Can you please point me to the link, "[Question Answering Notebook](http... | page does not exist | https://api.github.com/repos/langchain-ai/langchain/issues/933/comments | 2 | 2023-02-07T20:08:23Z | 2023-02-09T17:25:36Z | https://github.com/langchain-ai/langchain/issues/933 | 1,574,954,126 | 933 |
[
"hwchase17",
"langchain"
] | I am loving the vector db integrations, maybe @jasonbosco could help integrate [typesense](https://typesense.org/)? | Add support for typesense vector database | https://api.github.com/repos/langchain-ai/langchain/issues/931/comments | 6 | 2023-02-07T19:01:19Z | 2023-05-24T06:20:49Z | https://github.com/langchain-ai/langchain/issues/931 | 1,574,871,447 | 931 |
[
"hwchase17",
"langchain"
] | > suggested label: documentation imporvement
One of the langchain strong points is its independence "by design" from any LLM provider.
IMMO this is not fully clear in the current documentation. By example, the [getting started page](https://langchain.readthedocs.io/en/latest/modules/llms/getting_started.html#) sta... | better explain in docs that langchain is independent from LLMs providers | https://api.github.com/repos/langchain-ai/langchain/issues/930/comments | 2 | 2023-02-07T18:52:23Z | 2023-09-25T16:19:27Z | https://github.com/langchain-ai/langchain/issues/930 | 1,574,861,430 | 930 |
[
"hwchase17",
"langchain"
] | I'm experimenting how to instantiate tools that wrap custom python functions. See: https://github.com/hwchase17/langchain/issues/832
So I used a `zero-shot-react-description` agent. It's engaging! But how can let the agent "exit" when some application "exception" arise during the ReAct reasoning?
---
In the q... | How to stop a ReAct agent if input is incomplete? | https://api.github.com/repos/langchain-ai/langchain/issues/928/comments | 1 | 2023-02-07T17:46:26Z | 2023-08-24T16:18:41Z | https://github.com/langchain-ai/langchain/issues/928 | 1,574,780,154 | 928 |
[
"hwchase17",
"langchain"
] | If you query a Pinecone index that doesn't contain metadata it will not return the metadata field, this throws an error when used with the `similarity_search` method as retrieval of metadata is hardcoded into the function. Error is:
```
---------------------------------------------------------------------------
Ap... | Pinecone ScoredVector error | https://api.github.com/repos/langchain-ai/langchain/issues/925/comments | 5 | 2023-02-07T10:37:50Z | 2024-03-26T05:02:39Z | https://github.com/langchain-ai/langchain/issues/925 | 1,574,085,906 | 925 |
[
"hwchase17",
"langchain"
] | If a text being tokenizer by tiktoken contains a special token like `<|endoftext|>`, we will see the error:
```
ValueError: Encountered text corresponding to disallowed special token '<|endoftext|>'.
If you want this text to be encoded as a special token, pass it to `allowed_special`, e.g. `allowed_special={'<|end... | Access special token params for tiktoken | https://api.github.com/repos/langchain-ai/langchain/issues/923/comments | 6 | 2023-02-07T08:19:22Z | 2024-06-03T14:20:56Z | https://github.com/langchain-ai/langchain/issues/923 | 1,573,883,186 | 923 |
[
"hwchase17",
"langchain"
] | I was following this template but If you import the root langchain module in streamlit, you will get the following error
```
import langchain
```
```
ConfigError: duplicate validator function "langchain.prompts.base.BasePromptTemplate.validate_variable_names"; if this is intended, set `allow_reuse=True`
```
... | Error importing langchain in streamlit | https://api.github.com/repos/langchain-ai/langchain/issues/922/comments | 3 | 2023-02-07T07:29:09Z | 2023-09-10T16:45:54Z | https://github.com/langchain-ai/langchain/issues/922 | 1,573,819,943 | 922 |
[
"hwchase17",
"langchain"
] | For debugging or other traceability purposes it is sometimes useful to see the final prompt text as sent to the completion model.
It would be good to have a mechanism that logged or otherwise surfaced (e.g. for storing to a database) the final prompt text. | provide visibility into final prompt | https://api.github.com/repos/langchain-ai/langchain/issues/912/comments | 25 | 2023-02-06T20:42:57Z | 2024-04-20T02:59:11Z | https://github.com/langchain-ai/langchain/issues/912 | 1,573,249,347 | 912 |
[
"hwchase17",
"langchain"
] | While the documentation is good to start out with, as there's increasingly more features, there are a couple things that would make it even better.
Some suggestions:
1) Since state_of_the_union.txt is used so often in the documentation, make sure to link it wherever it is mentioned: https://github.com/hwchase17/c... | Cleaning up Documentation | https://api.github.com/repos/langchain-ai/langchain/issues/910/comments | 1 | 2023-02-06T17:32:26Z | 2023-09-10T16:45:59Z | https://github.com/langchain-ai/langchain/issues/910 | 1,572,988,922 | 910 |
[
"hwchase17",
"langchain"
] | Current implementation of pinecone vec db finds the batches using:
```
# set end position of batch
i_end = min(i + batch_size, len(texts))
```
[link](https://github.com/hwchase17/langchain/blob/master/langchain/vectorstores/pinecone.py#L199)
But the following lines then go on to use a mix of `[i : i + batch_s... | Error in Pinecone batch selection logic | https://api.github.com/repos/langchain-ai/langchain/issues/906/comments | 0 | 2023-02-06T07:52:59Z | 2023-02-07T07:35:48Z | https://github.com/langchain-ai/langchain/issues/906 | 1,572,087,382 | 906 |
[
"hwchase17",
"langchain"
] | https://memprompt.com/
| Add MemPrompt | https://api.github.com/repos/langchain-ai/langchain/issues/900/comments | 2 | 2023-02-06T00:38:37Z | 2023-09-10T16:46:06Z | https://github.com/langchain-ai/langchain/issues/900 | 1,571,694,841 | 900 |
[
"hwchase17",
"langchain"
] | Pinecone default environment was recently changed from `us-west1-gcp` to `us-east1-gcp` ([see here](https://docs.pinecone.io/docs/projects#project-environment)), so new users following the [docs here](https://langchain.readthedocs.io/en/latest/modules/utils/combine_docs_examples/vectorstores.html#pinecone) will hit an ... | Pinecone in docs is outdated | https://api.github.com/repos/langchain-ai/langchain/issues/897/comments | 1 | 2023-02-05T18:33:50Z | 2023-02-06T07:51:42Z | https://github.com/langchain-ai/langchain/issues/897 | 1,571,562,491 | 897 |
[
"hwchase17",
"langchain"
] | @hwchase17 it looks like [this commit](https://github.com/hwchase17/langchain/commit/cc7056588694c9e80ad90396f5faa3d573bcc87c) broke the custom prompt template example from the [docs](https://langchain.readthedocs.io/en/latest/modules/prompts/examples/custom_prompt_template.html).
[Colab to reproduce](https://colab.... | Custom Prompt Template Example from Docs can't instantiate abstract class with abstract methods _prompt_type | https://api.github.com/repos/langchain-ai/langchain/issues/893/comments | 0 | 2023-02-05T03:34:02Z | 2023-02-07T04:29:50Z | https://github.com/langchain-ai/langchain/issues/893 | 1,571,220,255 | 893 |
[
"hwchase17",
"langchain"
] | I'm trying to create a chatbot which needs an agent and memory. I'm having issues getting `ConversationBufferWindowMemory`, `ConversationalAgent`, and `ConversationChain` to work together. A minimal version of the code is as follows:
```
memory = ConversationBufferWindowMemory(
k=3, buffer=prev_history... | Issue with input variables in conversational agents with memory | https://api.github.com/repos/langchain-ai/langchain/issues/891/comments | 11 | 2023-02-05T01:34:22Z | 2024-01-26T13:23:16Z | https://github.com/langchain-ai/langchain/issues/891 | 1,571,197,124 | 891 |
[
"hwchase17",
"langchain"
] | null | Agent with multi-line ActionInput only passes in first line | https://api.github.com/repos/langchain-ai/langchain/issues/887/comments | 1 | 2023-02-05T00:53:36Z | 2023-02-07T04:21:49Z | https://github.com/langchain-ai/langchain/issues/887 | 1,571,187,427 | 887 |
[
"hwchase17",
"langchain"
] | They use the OpenAI API so that module can be copied adding `openai.api_base = "https://api.goose.ai/v1"`
Is this something you're interested in adding? Happy do create a PR if so 🙂 | goose.ai support | https://api.github.com/repos/langchain-ai/langchain/issues/875/comments | 0 | 2023-02-03T21:00:14Z | 2023-02-21T18:42:02Z | https://github.com/langchain-ai/langchain/issues/875 | 1,570,440,861 | 875 |
[
"hwchase17",
"langchain"
] | serpapi needed | getting started dependencies | https://api.github.com/repos/langchain-ai/langchain/issues/874/comments | 0 | 2023-02-03T17:33:31Z | 2023-02-07T04:30:04Z | https://github.com/langchain-ai/langchain/issues/874 | 1,570,205,926 | 874 |
[
"hwchase17",
"langchain"
] | I am creating a brain for a chatbot called Genie. I wanted to calculate the price of each chain response to be able to monitor the cost and pivot accordingly. We use different OpenAI models to do different tasks in the chain. I noticed that the `total_tokens` returned from `OpenAICallbackHandler` returns all tokens fro... | An Issue I encountered extending OpenAICallbackHandler to calculate the cost of the chain | https://api.github.com/repos/langchain-ai/langchain/issues/873/comments | 1 | 2023-02-03T14:00:28Z | 2023-08-24T16:18:57Z | https://github.com/langchain-ai/langchain/issues/873 | 1,569,889,168 | 873 |
[
"hwchase17",
"langchain"
] | Hi there
Thanks for creating such a useful library. It's a game-changer for working efficiently with LLMs!
I'm trying to get `CharacterTextSplitter.from_tiktoken_encoder()` to chunk large texts into chunks that are under the token limit for GPT-3.
The problem is that no matter what I set the `chunk_size` to, t... | from_tiktoken_encoder creating over-sized chunks | https://api.github.com/repos/langchain-ai/langchain/issues/872/comments | 6 | 2023-02-03T11:05:57Z | 2023-02-09T14:54:43Z | https://github.com/langchain-ai/langchain/issues/872 | 1,569,664,981 | 872 |
[
"hwchase17",
"langchain"
] | https://github.com/hwchase17/langchain/blob/777aaff84167e92dd1c77e722eec0938b76f95e5/langchain/chains/conversation/base.py#L30
ConversationBufferWindowMemory overwrites buffer with a list instead of just being a plain str. | ConversationBufferWindowMemory overwrites buffer with list | https://api.github.com/repos/langchain-ai/langchain/issues/870/comments | 0 | 2023-02-03T10:34:50Z | 2023-02-07T04:31:32Z | https://github.com/langchain-ai/langchain/issues/870 | 1,569,624,615 | 870 |
[
"hwchase17",
"langchain"
] | Thx for sharing this repo!
I met a problem when I am trying to costumize few-shot prompt template:
I define the prompt set as follow:
```python
_prompt_tabletop_ui = [
{
"goal": "put the yellow block on the yellow bowl",
"plan":
"""
objects = ['yellow block', 'green bloc... | Invalid prompt schema. (type=value_error) | https://api.github.com/repos/langchain-ai/langchain/issues/869/comments | 7 | 2023-02-03T09:32:54Z | 2023-06-18T11:00:23Z | https://github.com/langchain-ai/langchain/issues/869 | 1,569,525,627 | 869 |
[
"hwchase17",
"langchain"
] | I am getting an error when using HuggingFaceInstructEmbeddings.
**Error:**
The error says **Dependencies for InstructorEmbedding not found.**
**Traceback:**
```
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call l... | HuggingFaceInstructEmbeddings not working. | https://api.github.com/repos/langchain-ai/langchain/issues/867/comments | 7 | 2023-02-03T08:10:04Z | 2024-06-11T09:19:36Z | https://github.com/langchain-ai/langchain/issues/867 | 1,569,407,084 | 867 |
[
"hwchase17",
"langchain"
] | A directive that, when applied to chains, takes a restriction sentence like “does not contain profanity” and asks a llm if a chain output fits the restriction + denies or loops back with new context if it does.
Core features:
- ability to guard a chain with a list of restrictions
- option to throw an error or to ... | @guard directive | https://api.github.com/repos/langchain-ai/langchain/issues/860/comments | 3 | 2023-02-03T01:48:55Z | 2023-09-10T16:46:09Z | https://github.com/langchain-ai/langchain/issues/860 | 1,569,068,974 | 860 |
[
"hwchase17",
"langchain"
] | Why can I only create short records when using LangChain?
When I use the API for GPT-3, I can create long sentences.
I want to be able to create long sentences with what I get from LangChain's search tool.
But if I don't have enough tools, I get an error.
I want to know what this tool is.
| I like to write long sentences | https://api.github.com/repos/langchain-ai/langchain/issues/859/comments | 7 | 2023-02-03T01:10:33Z | 2023-11-17T16:08:08Z | https://github.com/langchain-ai/langchain/issues/859 | 1,569,015,421 | 859 |
[
"hwchase17",
"langchain"
] | Appears to be due to missing **kwargs here: https://github.com/hwchase17/langchain/blob/fc0cfd7d1f0d08de474cf6616abb16a7663aba67/langchain/chains/loading.py#L443
As it is, attempting
`load_chain(
"lc://chains/vector-db-qa/stuff/chain.json",
vectorstore=docsearch,
prompt=prompt,
)`
... | Loading lc://chains/vector-db-qa/stuff/chain.json broken in 0.0.76 | https://api.github.com/repos/langchain-ai/langchain/issues/857/comments | 0 | 2023-02-03T00:02:24Z | 2023-02-03T06:07:28Z | https://github.com/langchain-ai/langchain/issues/857 | 1,568,955,979 | 857 |
[
"hwchase17",
"langchain"
] | I am implementing in #854 a helper search api for [searx](https://github.com/searxng/searxng) which is a famous self hosted meta search engine. This will offer the possibility to use search without relying on google or any paid APIs.
I started this issue to get some early feedback | search helper with Searx API | https://api.github.com/repos/langchain-ai/langchain/issues/855/comments | 7 | 2023-02-02T22:11:58Z | 2023-09-21T19:40:13Z | https://github.com/langchain-ai/langchain/issues/855 | 1,568,861,802 | 855 |
[
"hwchase17",
"langchain"
] | The save_local, load_local member functions in vectorstore.faiss seem firstly to need to read/write the index_to_id map as well as the main index file. This would then fully separate the storage concerns between the Docstore and the VectorStore.
As it is now, the index_to_id map is an additional component the user m... | FAISS should save/load its index_to_id map | https://api.github.com/repos/langchain-ai/langchain/issues/853/comments | 2 | 2023-02-02T21:28:10Z | 2023-02-04T10:10:22Z | https://github.com/langchain-ai/langchain/issues/853 | 1,568,808,940 | 853 |
[
"hwchase17",
"langchain"
] | It’s great that llm calls can be easily cached, but the same functionality is lacking for embeddings. | add caching for embeddings | https://api.github.com/repos/langchain-ai/langchain/issues/851/comments | 5 | 2023-02-02T20:38:07Z | 2023-09-19T03:48:04Z | https://github.com/langchain-ai/langchain/issues/851 | 1,568,749,603 | 851 |
[
"hwchase17",
"langchain"
] | https://github.com/hwchase17/langchain/blob/bfabd1d5c0bf536fdd1e743e4db8341e7dfe82a9/langchain/llms/openai.py#L246
You should probably route according to this here: https://github.com/openai/tiktoken/issues/27
:) | Erroneous routing to tiktoken vocab | https://api.github.com/repos/langchain-ai/langchain/issues/843/comments | 1 | 2023-02-02T11:22:45Z | 2023-02-03T21:32:39Z | https://github.com/langchain-ai/langchain/issues/843 | 1,567,856,512 | 843 |
[
"hwchase17",
"langchain"
] | ## Use Case
I have complex objects with inner properties I want to use within the Jinja2 template.
Prior to https://github.com/hwchase17/langchain/pull/148 I believe it was possible. Fairly certain I have an older project with older langchain using this approach. Now when I update langchain I'm not able to do thi... | [Feature Request] Relax template validation to allow for passing objects as inputs with jinja2 | https://api.github.com/repos/langchain-ai/langchain/issues/840/comments | 5 | 2023-02-02T06:45:49Z | 2023-03-25T20:59:28Z | https://github.com/langchain-ai/langchain/issues/840 | 1,567,432,746 | 840 |
[
"hwchase17",
"langchain"
] | Hey, here are some proposals on improvements in ElasticVectorStore. I have forked the project already and made some basic changes to fit ElasticVectorStore to my needs. You can see the commits in here:
https://github.com/hwchase17/langchain/compare/master...yasha-dev1:langchain:master
Still I will have to write unit... | [Feature] Improvements in ElasticVectorStore | https://api.github.com/repos/langchain-ai/langchain/issues/834/comments | 2 | 2023-02-01T23:06:11Z | 2023-09-12T21:30:06Z | https://github.com/langchain-ai/langchain/issues/834 | 1,566,991,789 | 834 |
[
"hwchase17",
"langchain"
] | When using a **refine chain** as part of a **SimpleSequentialChain** it appears the output from the refine chain is truncated and/or not taking the output of the entire refine chain and passing it to the subsequent chain. First, I will show the working code where the refine chain works as anticipated to summarize sever... | Using refine chain for summarization gets truncated when used in SimpleSequentialChain | https://api.github.com/repos/langchain-ai/langchain/issues/833/comments | 0 | 2023-02-01T18:32:20Z | 2023-02-02T00:05:44Z | https://github.com/langchain-ai/langchain/issues/833 | 1,566,604,333 | 833 |
[
"hwchase17",
"langchain"
] | This is not necessarily an issue, but more of a 'how-to' question related to discussion topic https://github.com/hwchase17/langchain/discussions/632.
This the general topic: You would like to create a language chain tool that functions as a custom function (wrapping any custom API). For example, let's say you have a... | Designing a Tool to interface any Python custom function | https://api.github.com/repos/langchain-ai/langchain/issues/832/comments | 20 | 2023-02-01T18:23:14Z | 2024-03-13T19:56:30Z | https://github.com/langchain-ai/langchain/issues/832 | 1,566,593,493 | 832 |
[
"hwchase17",
"langchain"
] | Hi, if we need to pass a long prompt to the openai LLM, what is the general strategy to handle this?
Summarize then pass it as a single prompt that fits inside the window? Or split the long prompt into multiple smaller ones, each send smaller prompt to the openai API, and summarize the combined results from the mul... | How to handle a long prompt? | https://api.github.com/repos/langchain-ai/langchain/issues/831/comments | 2 | 2023-02-01T17:36:28Z | 2023-04-10T04:10:28Z | https://github.com/langchain-ai/langchain/issues/831 | 1,566,530,092 | 831 |
[
"hwchase17",
"langchain"
] | I'm trying to convert the Notion QA example to use ES but I can't seem to get it to work.
Here's the code:
```
parser = argparse.ArgumentParser(description='Ask a question to the notion DB.')
parser.add_argument('question', type=str, help='The question to ask the notion DB')
args = parser.parse_args()
# Load ... | Can't use the ElasticVectorSearch store with the provided notion q-a example | https://api.github.com/repos/langchain-ai/langchain/issues/829/comments | 1 | 2023-02-01T16:26:06Z | 2023-08-24T16:19:07Z | https://github.com/langchain-ai/langchain/issues/829 | 1,566,422,298 | 829 |
[
"hwchase17",
"langchain"
] | a tutorial that slowly adds complexity would be great, looking around in here and the web right now for that. By that I mean going from a simple vector store, to a chain (e.g. qa), to adding memory and chat history, slowly creating a custom env/chain/etc. | tutorial for chat-langchain | https://api.github.com/repos/langchain-ai/langchain/issues/823/comments | 2 | 2023-02-01T00:15:02Z | 2023-02-07T04:31:00Z | https://github.com/langchain-ai/langchain/issues/823 | 1,565,191,131 | 823 |
[
"hwchase17",
"langchain"
] | Tracing works very well with the "official" chains. However, testing the new "Implementing a decorator to make tools "
code - https://github.com/hwchase17/langchain/pull/786 and the tracing , i got the following error
langchain-langchain-backend-1 | INFO: 172.18.0.1:43496 - "POST /chain-runs HTTP/1.1... | langchain-server error when running special tools with decorator | https://api.github.com/repos/langchain-ai/langchain/issues/822/comments | 1 | 2023-01-31T21:42:49Z | 2023-05-02T10:58:06Z | https://github.com/langchain-ai/langchain/issues/822 | 1,565,043,966 | 822 |
[
"hwchase17",
"langchain"
] | Thanks for the amazing open source work!
For certain data-sensitive projects, it may be important to silo the database and its contents (aside from table/column names) from any calls to the LLM. This means the LLM cannot be used for formatting the output of the SQL query. I suppose one way to support this would be t... | Support (optional) direct return on `SQLDatabaseChain` to prevent passing data to LLM | https://api.github.com/repos/langchain-ai/langchain/issues/821/comments | 3 | 2023-01-31T08:28:08Z | 2023-02-03T08:17:22Z | https://github.com/langchain-ai/langchain/issues/821 | 1,563,870,044 | 821 |
[
"hwchase17",
"langchain"
] | It would be great if we had a LLMs wrapper for Forefront AI API. They have a selection of open source LLMs accessible, such as GPT-J and GPT-NeoX. | [LLM] Wrapper for Forefront AI API | https://api.github.com/repos/langchain-ai/langchain/issues/815/comments | 4 | 2023-01-31T06:40:01Z | 2023-09-18T16:24:56Z | https://github.com/langchain-ai/langchain/issues/815 | 1,563,748,590 | 815 |
[
"hwchase17",
"langchain"
] | #Overview
llm math and PAL both use `exec()` and `eval()` which is dangerous, while PAL is more complex and might have to stay that way, llm-math could be made safer by using numexpr rather than `exec()`
I suggest we use something like so:
```python
@tool
def calculator(expr):
"""This tool allows you t... | Exploiting llm-math (and likely PAL) and suggesting and alternative | https://api.github.com/repos/langchain-ai/langchain/issues/814/comments | 2 | 2023-01-31T02:37:23Z | 2023-05-11T16:06:59Z | https://github.com/langchain-ai/langchain/issues/814 | 1,563,517,965 | 814 |
[
"hwchase17",
"langchain"
] | When the LLM returns a leading line break an error is returned Could not parse LLM output from /agents/conversational/base.py
I am using the conversational-react-description agent
This can be reliably replicated by asking "Write three lines with line breaks"
Note the return does not have a space after the initia... | Issues with leading line breaks in conversational agent - possible solution? | https://api.github.com/repos/langchain-ai/langchain/issues/810/comments | 3 | 2023-01-30T19:28:38Z | 2023-02-03T04:24:41Z | https://github.com/langchain-ai/langchain/issues/810 | 1,563,072,969 | 810 |
[
"hwchase17",
"langchain"
] | Using serialised version of vectorDBQA, setting verbose =True results in the 'starting chain/ending chain' messages being printed but not the actual content. I think I have traced it to this line... at this point 'verbose' is True, but inside the combine_docs function verbose becomes False. Having traced it this far I ... | Verbose setting not recognised in serialised vectorDBQA chain | https://api.github.com/repos/langchain-ai/langchain/issues/803/comments | 7 | 2023-01-30T02:32:28Z | 2023-09-18T16:25:01Z | https://github.com/langchain-ai/langchain/issues/803 | 1,561,633,582 | 803 |
[
"hwchase17",
"langchain"
] | Using serialised version of vectorDBQA, setting verbose =True results in the 'starting chain/ending chain' messages being printed but not the actual content. I think I have traced it to this line... at this point 'verbose' is True, but inside the combine_docs function verbose becomes False. Having traced it this far I ... | Verbose not being recognised in serialised vectorDBQA | https://api.github.com/repos/langchain-ai/langchain/issues/802/comments | 0 | 2023-01-30T02:29:21Z | 2023-01-30T02:30:27Z | https://github.com/langchain-ai/langchain/issues/802 | 1,561,630,990 | 802 |
[
"hwchase17",
"langchain"
] | There seems to be an error when running the script using the `ConversationEntityMemory` class. The error message states that a key is missing from the inputs dictionary passed to the agent_chain.run() function. Specifically, the chat_history key is missing. The script is designed to use the ConversationEntityMemory cla... | How can I use ConversationEntityMemory with the conversational-react-description agent? | https://api.github.com/repos/langchain-ai/langchain/issues/801/comments | 2 | 2023-01-30T02:02:14Z | 2023-08-24T16:19:11Z | https://github.com/langchain-ai/langchain/issues/801 | 1,561,605,914 | 801 |
[
"hwchase17",
"langchain"
] | Hi, I see that functionality for saving/loading FAISS index data was recently added in https://github.com/hwchase17/langchain/pull/676
I just tried using local faiss save/load, but having some trouble. My use case is that I want to save some embedding vectors to disk and then rebuild the search index later from the ... | How to use faiss local saving/loading | https://api.github.com/repos/langchain-ai/langchain/issues/789/comments | 13 | 2023-01-28T22:25:37Z | 2023-04-11T23:31:09Z | https://github.com/langchain-ai/langchain/issues/789 | 1,561,035,953 | 789 |
[
"hwchase17",
"langchain"
] | Hi there!
I am wondering if it's possible to use PromptTemplates as values for the `prefix` and `suffix` arguments of `FewShotPromptTemplate`.
Here's an example of what I would like to do. The following works as-is, but I would like it to work the same with the commented lines uncommented.
I would like this ... | prefix and suffix as PromptTemplates in FewShotPromptTemplate | https://api.github.com/repos/langchain-ai/langchain/issues/783/comments | 6 | 2023-01-28T16:57:22Z | 2023-09-18T16:25:06Z | https://github.com/langchain-ai/langchain/issues/783 | 1,560,930,281 | 783 |
[
"hwchase17",
"langchain"
] | I was reviewing the code for Length Based Example Selector and found:
https://github.com/hwchase17/langchain/blob/12dc7f26cca1744c0023792f81645214ffd0773c/langchain/prompts/example_selector/length_based.py#L54
I think this line should be checking if `new_length < 0` instead of `i < 0`.
`i` is the loop variable... | Length Based Example Selector | https://api.github.com/repos/langchain-ai/langchain/issues/762/comments | 0 | 2023-01-27T07:47:32Z | 2023-02-03T06:06:57Z | https://github.com/langchain-ai/langchain/issues/762 | 1,559,317,675 | 762 |
[
"hwchase17",
"langchain"
] | DSP is a framework that provides abstractions and primitives for easily composing language and retrieval models. Furthermore, it proposes an algorithmic approach to prompting LLMs that does away with prompt engineering
https://arxiv.org/pdf/2212.14024.pdf, https://github.com/stanfordnlp/dsp | [Feature Request] Add DSP to langchain | https://api.github.com/repos/langchain-ai/langchain/issues/753/comments | 14 | 2023-01-26T20:48:12Z | 2023-09-28T16:12:39Z | https://github.com/langchain-ai/langchain/issues/753 | 1,558,758,091 | 753 |
[
"hwchase17",
"langchain"
] | That can enable much more diverse applications of langchain.
Basic example.I asked it to download YouTube video using bash terminal.Youtube-dl was not installed.So it tried to install it.The output from apt-get completely spammed context window and broke everything.
Another example.News article questioning.Querying w... | [Feature request] Using embeddings/prompting to summarize large outputs from tools | https://api.github.com/repos/langchain-ai/langchain/issues/752/comments | 1 | 2023-01-26T18:06:34Z | 2023-08-24T16:19:17Z | https://github.com/langchain-ai/langchain/issues/752 | 1,558,553,591 | 752 |
[
"hwchase17",
"langchain"
] | empty | Empty | https://api.github.com/repos/langchain-ai/langchain/issues/751/comments | 0 | 2023-01-26T17:28:01Z | 2023-01-26T17:53:05Z | https://github.com/langchain-ai/langchain/issues/751 | 1,558,505,527 | 751 |
[
"hwchase17",
"langchain"
] | ```
from langchain.chains import LLMChain
from langchain.prompts import PromptTemplate
from langchain.llms import OpenAI
from langchain.chains import LLMChain
from langchain.cache import SQLiteCache
import langchain
langchain.llm_cache=SQLiteCache(".langchain.db")
OpenAI(temperature=0, max_tokens=-1)("hallo")... | BUG with OpenAI(maxToken=-1) when Caching enabled | https://api.github.com/repos/langchain-ai/langchain/issues/747/comments | 2 | 2023-01-26T09:12:28Z | 2023-01-29T08:58:10Z | https://github.com/langchain-ai/langchain/issues/747 | 1,557,822,780 | 747 |
[
"hwchase17",
"langchain"
] | Generate a lot of Text from different perspectives with LLM, and you will find the right answer in it most of the time! Without using DPR/Google, it achieved SoTA on multiple open-domain QA and knowledge-intensive benchmarks! https://arxiv.org/abs/2209.10063 | New Tool for Agents to generate more answers without external Help. | https://api.github.com/repos/langchain-ai/langchain/issues/746/comments | 2 | 2023-01-26T08:07:19Z | 2023-08-24T16:19:21Z | https://github.com/langchain-ai/langchain/issues/746 | 1,557,755,191 | 746 |
[
"hwchase17",
"langchain"
] | How can we do prompt unit tests and chain tests?
Not an easy problem, for complex prompts perhaps needs an LLM trained to recognize when the answers diverge too much from the expected results.
But for classification or constrained answers it could be implemented.
Example:
https://github.com/squidgyai/squidgy-... | [Feature Request] Unit testing | https://api.github.com/repos/langchain-ai/langchain/issues/743/comments | 1 | 2023-01-26T01:28:59Z | 2023-08-24T16:19:27Z | https://github.com/langchain-ai/langchain/issues/743 | 1,557,499,928 | 743 |
[
"hwchase17",
"langchain"
] | A built-in webserver that serves prompts as APIs with FastAPI.
lambdaprompt is similar to langchain prompt templates and implements this easily:
https://github.com/approximatelabs/lambdaprompt
I don't have any experience so can't do a PR now, but if no one else does I will try.
| [Feature Request] Easy webserver with FastAPI | https://api.github.com/repos/langchain-ai/langchain/issues/742/comments | 9 | 2023-01-26T01:20:25Z | 2023-09-27T16:14:57Z | https://github.com/langchain-ai/langchain/issues/742 | 1,557,494,573 | 742 |
[
"hwchase17",
"langchain"
] | @hwchase17 Thanks for sharing this project. I've encountered several challenges in trying to use it and hope you can point me to examples. I haven't found examples in the docs/issues.
1. I'd like to use an LLM already loaded from transformers on a set of text documents saved locally. Any suggestions?
Something l... | how to use a model loaded from HuggingFace transformers? | https://api.github.com/repos/langchain-ai/langchain/issues/737/comments | 9 | 2023-01-25T17:30:28Z | 2023-09-27T16:15:03Z | https://github.com/langchain-ai/langchain/issues/737 | 1,557,028,873 | 737 |
[
"hwchase17",
"langchain"
] | When I run "from langchain.utilities import RequestsWrapper"
I get this:
ImportError: cannot import name 'RequestsWrapper' from 'langchain.utilities' (f:\python39\lib\site-packages\langchain\utilities\__init__.py)
I use windows and installed the latest version of langchain | cannot import name 'RequestsWrapper' from 'langchain.utilities' | https://api.github.com/repos/langchain-ai/langchain/issues/727/comments | 7 | 2023-01-25T02:13:30Z | 2023-09-26T16:17:32Z | https://github.com/langchain-ai/langchain/issues/727 | 1,555,955,618 | 727 |
[
"hwchase17",
"langchain"
] | https://github.com/stanfordnlp/dsp/blob/main/intro.ipynb | Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLP | https://api.github.com/repos/langchain-ai/langchain/issues/726/comments | 5 | 2023-01-25T01:47:21Z | 2023-09-25T16:19:57Z | https://github.com/langchain-ai/langchain/issues/726 | 1,555,936,079 | 726 |
[
"hwchase17",
"langchain"
] | What to filter when using a vector store is highly dependent on the query. Different queries will require different filters. As an example, if we have an index of texts and we ask our agent to answer 'Why do people seek wealth according to Adam Smith?" the retrieved documents should be different than if we asked 'Why ... | Enable LLM to choose the filtering criteria in VectorDBQA | https://api.github.com/repos/langchain-ai/langchain/issues/723/comments | 1 | 2023-01-24T18:16:43Z | 2023-08-24T16:19:31Z | https://github.com/langchain-ai/langchain/issues/723 | 1,555,452,459 | 723 |
[
"hwchase17",
"langchain"
] | I had been planning to write a similar library myself (for encyclopaedic article generation) and was pleasantly surprised when I saw that you guys had beaten me to it.
I'm looking through the code now -- with the intention of contributing code for my specific purposes -- I have a bunch of questions, which I'm docum... | Trying to understand the code; general questions | https://api.github.com/repos/langchain-ai/langchain/issues/721/comments | 1 | 2023-01-24T17:24:11Z | 2023-01-24T17:26:42Z | https://github.com/langchain-ai/langchain/issues/721 | 1,555,375,560 | 721 |
[
"hwchase17",
"langchain"
] | Users may [add_texts](https://github.com/hwchase17/langchain/blob/master/langchain/vectorstores/pinecone.py#L58) and initialize [from_texts](https://github.com/hwchase17/langchain/blob/master/langchain/vectorstores/pinecone.py#L161) to a namespaced Pinecone index. However, there is currently no way to obtain a `Pinecon... | Namespaced pinecone operations cannot be re-used | https://api.github.com/repos/langchain-ai/langchain/issues/718/comments | 0 | 2023-01-24T14:14:53Z | 2023-01-24T15:02:59Z | https://github.com/langchain-ai/langchain/issues/718 | 1,555,066,729 | 718 |
[
"hwchase17",
"langchain"
] | **Context**: I am working on some low-code tooling for langchain and GPT index. As part of this work, I would like to represent langchain classes as JSON, ideally with a JSON Schema to validate it. I know Pydantic's `.json()` and `.schema()` methods aim to fulfill this need.
**Problem**: I expect the following code ... | Langchain classes are not pydantic JSON serializable | https://api.github.com/repos/langchain-ai/langchain/issues/717/comments | 1 | 2023-01-24T14:12:31Z | 2023-01-26T06:24:39Z | https://github.com/langchain-ai/langchain/issues/717 | 1,555,062,335 | 717 |
[
"hwchase17",
"langchain"
] | **Description**:
I installed via pip
`pip install langchain`
Then started to run some of the examples. When I was trying the following (from here https://langchain.readthedocs.io/en/latest/use_cases/question_answering.html):
`from langchain.chains.qa_with_sources import load_qa_with_sources_chain`
I received the f... | [BUG] ImportError: cannot import name 'load_qa_with_sources_chain' from 'langchain.chains.qa_with_sources' | https://api.github.com/repos/langchain-ai/langchain/issues/712/comments | 2 | 2023-01-24T10:04:03Z | 2023-01-24T10:09:51Z | https://github.com/langchain-ai/langchain/issues/712 | 1,554,672,212 | 712 |
[
"hwchase17",
"langchain"
] | agent_chain.run(input="Open this website http://classics.mit.edu//Homer/iliad.1.i.html and summarize it") | handle long responses to urls | https://api.github.com/repos/langchain-ai/langchain/issues/709/comments | 2 | 2023-01-24T06:30:58Z | 2023-09-18T16:25:11Z | https://github.com/langchain-ai/langchain/issues/709 | 1,554,401,520 | 709 |
[
"hwchase17",
"langchain"
] | If you reproduce the agents example in https://langchain.readthedocs.io/en/latest/getting_started/getting_started.html but remove the "serpapi" parameter, the agent gets into an infinite loop with respect to trying actions with tools in which it has already observed the tool is not a valid tool.
A proposed fix is t... | Don't try tools that have already been invalidated in the current run | https://api.github.com/repos/langchain-ai/langchain/issues/702/comments | 2 | 2023-01-23T17:05:47Z | 2023-09-10T16:46:30Z | https://github.com/langchain-ai/langchain/issues/702 | 1,553,450,519 | 702 |
[
"hwchase17",
"langchain"
] | This is a very niche problem, but when you including JSON as one of the samples in your PromptTemplate it breaks the execution.
Code to replicate it:
```python
from langchain.llms import OpenAI
from langchain.chains import ConversationChain
from langchain import PromptTemplate, FewShotPromptTemplate
import js... | When the example is JSON it breaks PromptTemplate | https://api.github.com/repos/langchain-ai/langchain/issues/700/comments | 5 | 2023-01-23T12:21:25Z | 2023-09-28T16:12:44Z | https://github.com/langchain-ai/langchain/issues/700 | 1,553,004,099 | 700 |
[
"hwchase17",
"langchain"
] | null | make it easier to include few shot examples/example selectors in the zero-shot-agent workflow | https://api.github.com/repos/langchain-ai/langchain/issues/695/comments | 1 | 2023-01-22T21:10:13Z | 2023-08-24T16:19:41Z | https://github.com/langchain-ai/langchain/issues/695 | 1,552,286,028 | 695 |
[
"hwchase17",
"langchain"
] | Hello, I love using the stuff chain for my docs/blogs; it gives me better answers, is faster, and is cheaper. However, sometimes some questions lead to token-exceeded errors from OpenAI; I thought maybe in those cases, I could reduce the `K` value and try again.
I ended up writing this for my use case,
```Python
t... | Handling tokens exceeding exception in Stuff Chain | https://api.github.com/repos/langchain-ai/langchain/issues/687/comments | 6 | 2023-01-22T06:46:02Z | 2023-09-27T16:15:13Z | https://github.com/langchain-ai/langchain/issues/687 | 1,552,022,734 | 687 |
[
"hwchase17",
"langchain"
] | null | add streaming to chains | https://api.github.com/repos/langchain-ai/langchain/issues/679/comments | 4 | 2023-01-21T23:31:27Z | 2023-11-16T16:09:12Z | https://github.com/langchain-ai/langchain/issues/679 | 1,551,939,855 | 679 |
[
"hwchase17",
"langchain"
] | https://github.com/hwchase17/langchain/blob/236ae93610a8538d3d0044fc29379c481acc6789/tests/integration_tests/vectorstores/test_faiss.py#L54
This test will fail because `FAISS.from_texts` will assign uuid4s as keys in its docstore, while `expected_docstore` has string numbers as keys. | test_faiss_with_metadatas: key mismatch in assert | https://api.github.com/repos/langchain-ai/langchain/issues/674/comments | 0 | 2023-01-21T16:02:54Z | 2023-01-22T00:08:16Z | https://github.com/langchain-ai/langchain/issues/674 | 1,551,839,786 | 674 |
[
"hwchase17",
"langchain"
] | If the model predicts a completion that begins with a stop sequence, resulting in no output, we'll get a `KeyError`:
```
Traceback (most recent call last):
...
File ".../langchain/llms/openai.py", line 152, in _generate
token_usage[_key] = response["usage"][_key]
KeyError: 'completion_tokens'
```
That... | Ungraceful handling of empty completions (i.e., completion that begins with a stop sequence) | https://api.github.com/repos/langchain-ai/langchain/issues/673/comments | 1 | 2023-01-21T09:33:05Z | 2023-01-24T08:26:27Z | https://github.com/langchain-ai/langchain/issues/673 | 1,551,749,091 | 673 |
[
"hwchase17",
"langchain"
] | I couldn't find the repo for the documentation, so opening this as an issue here.
***
On the [Getting Started page](https://langchain.readthedocs.io/en/latest/modules/prompts/getting_started.html) for prompt templates, I believe the very last example
```python
print(dynamic_prompt.format(adjective=long_string... | Code corrections in readthedocs | https://api.github.com/repos/langchain-ai/langchain/issues/670/comments | 1 | 2023-01-21T00:45:03Z | 2023-01-22T03:48:38Z | https://github.com/langchain-ai/langchain/issues/670 | 1,551,623,549 | 670 |
[
"hwchase17",
"langchain"
] | ### SQLDatabaseChain
At the moment when using the SQLDatabaseChain, if it generates a query that has several arguments it will give a positional argument limit error.
For example here is an sql query generated in the chain.
`SELECT Product Name FROM inventory_table WHERE Expiration Date < date('now') ORDER BY E... | Only one argument allowed for SQLDatabaseChain.run | https://api.github.com/repos/langchain-ai/langchain/issues/669/comments | 1 | 2023-01-21T00:20:17Z | 2023-01-23T17:38:50Z | https://github.com/langchain-ai/langchain/issues/669 | 1,551,613,795 | 669 |
[
"hwchase17",
"langchain"
] | Hi, great lib, great work!
https://langchain.readthedocs.io/en/latest/modules/memory/examples/adding_memory.html
I'm considering to use langchain LLM with memory in a stateless environment, what is the best practice or any example? First thing coming to my mind is to implement a custom memory with something like ... | Memory in stateless environment | https://api.github.com/repos/langchain-ai/langchain/issues/666/comments | 10 | 2023-01-20T16:56:04Z | 2023-10-03T10:04:49Z | https://github.com/langchain-ai/langchain/issues/666 | 1,551,172,156 | 666 |
[
"hwchase17",
"langchain"
] | null | consistent usage of `run`, `__call__`, `predict` | https://api.github.com/repos/langchain-ai/langchain/issues/663/comments | 1 | 2023-01-20T14:46:00Z | 2023-08-24T16:19:48Z | https://github.com/langchain-ai/langchain/issues/663 | 1,550,967,190 | 663 |
[
"hwchase17",
"langchain"
] | When I try to replicate the code from the [documentation - Custom SQLAlchemy Schemas](https://langchain.readthedocs.io/en/latest/modules/llms/examples/llm_caching.html), there seems to be a problem with the table name.
Although the custom schema says __tablename__ = "llm_cache_fulltext", the table that's created seems... | table naming issue with SQLAlchemy | https://api.github.com/repos/langchain-ai/langchain/issues/655/comments | 1 | 2023-01-19T15:38:13Z | 2023-01-19T23:33:46Z | https://github.com/langchain-ai/langchain/issues/655 | 1,549,412,212 | 655 |
[
"hwchase17",
"langchain"
] | Hi! Amazing work :). I was trying to use this library to test a LLM called GPT-JT but I got a timeout error:
> ValueError: Error raised by inference API: Model togethercomputer/GPT-JT-6B-v1 time out
I'm running this in a quite powerful server, and resources shouldn't be an issue. The code is probably not using GPU,... | Missing GPU support? HuggingFace model too slow | https://api.github.com/repos/langchain-ai/langchain/issues/648/comments | 10 | 2023-01-18T16:05:40Z | 2023-09-29T16:10:38Z | https://github.com/langchain-ai/langchain/issues/648 | 1,538,271,346 | 648 |
[
"hwchase17",
"langchain"
] | Hi there!
Just found out about this from the [Dr Alan D. Thompson's Video](https://www.youtube.com/watch?v=wYGbY811oMo&ab_channel=DrAlanD.Thompson) (which was great!)
I havn't been this excited about the status of gpt since chatgpt was dropped
There are so many tools i wish (and starting) to create. 😃
As one ... | [Feature/Project Request] Foss Readme2Repo / GithubGPT | https://api.github.com/repos/langchain-ai/langchain/issues/645/comments | 2 | 2023-01-18T12:45:13Z | 2023-09-12T06:52:17Z | https://github.com/langchain-ai/langchain/issues/645 | 1,537,941,195 | 645 |
[
"hwchase17",
"langchain"
] | Hey Team,
I am running a recursive summarization using MapReduce Chain. I want to calculate cost of running the summarization and for that I want to know about the total token_usage. How can I achieve this functionality? | How to calculate cost of LLMchain? | https://api.github.com/repos/langchain-ai/langchain/issues/644/comments | 4 | 2023-01-18T09:55:04Z | 2023-01-24T09:16:16Z | https://github.com/langchain-ai/langchain/issues/644 | 1,537,706,770 | 644 |
[
"hwchase17",
"langchain"
] | null | standardize stop token and extra kwargs across all llm wrappers | https://api.github.com/repos/langchain-ai/langchain/issues/643/comments | 2 | 2023-01-18T08:17:45Z | 2023-08-24T16:19:57Z | https://github.com/langchain-ai/langchain/issues/643 | 1,537,577,489 | 643 |
[
"hwchase17",
"langchain"
] | I'm getting an openai `RateLimitError` when embedding my chunked texts with `"text-embedding-ada-002"`, which I have rate limited to 8 chunks of <1024 every 15 secs.
> openai.error.RateLimitError: Rate limit reached for default-global-with-image-limits in organization org-xxx on requests per min. Limit: 60.000000 / ... | Rate limit error | https://api.github.com/repos/langchain-ai/langchain/issues/634/comments | 13 | 2023-01-17T07:07:41Z | 2024-07-24T15:06:46Z | https://github.com/langchain-ai/langchain/issues/634 | 1,535,885,020 | 634 |
[
"hwchase17",
"langchain"
] | after: https://github.com/hwchase17/langchain/issues/628
add a method that ensembles too results from the 2 together into a final set. that way it uses two different but complementary approaches to retrieving relevant examples. | ensemble example selector results from diff methods | https://api.github.com/repos/langchain-ai/langchain/issues/630/comments | 1 | 2023-01-16T16:17:06Z | 2023-08-24T16:20:02Z | https://github.com/langchain-ai/langchain/issues/630 | 1,535,184,945 | 630 |
[
"hwchase17",
"langchain"
] | add example selector that picks based on ngram overlap
https://arxiv.org/abs/2212.02437 | add ngram overlap example selector | https://api.github.com/repos/langchain-ai/langchain/issues/628/comments | 1 | 2023-01-16T16:09:49Z | 2023-08-24T16:20:08Z | https://github.com/langchain-ai/langchain/issues/628 | 1,535,169,820 | 628 |
[
"hwchase17",
"langchain"
] | When I run the minimal example provided in the [quickstart](https://langchain.readthedocs.io/en/latest/getting_started/getting_started.html#building-a-language-model-application), I get an error:
```python
from langchain.llms import OpenAI
llm = OpenAI(temperature=0.9)
text = "What would be a good company name a ... | Unrecognized request argument: request_timeout | https://api.github.com/repos/langchain-ai/langchain/issues/626/comments | 2 | 2023-01-16T06:49:59Z | 2023-01-16T08:08:32Z | https://github.com/langchain-ai/langchain/issues/626 | 1,534,391,322 | 626 |
[
"hwchase17",
"langchain"
] | https://langchain.readthedocs.io/en/latest/modules/prompts/examples/custom_prompt_template.html
Link here is missing
<img width="614" alt="Screenshot 2023-01-15 at 9 45 21 PM" src="https://user-images.githubusercontent.com/16283396/212587689-ad2800d4-3a56-463c-85d1-fd7d374bf99c.png">
| Default Prompt Template examples are missing | https://api.github.com/repos/langchain-ai/langchain/issues/625/comments | 1 | 2023-01-16T02:45:44Z | 2023-08-24T16:20:12Z | https://github.com/langchain-ai/langchain/issues/625 | 1,534,178,183 | 625 |
[
"hwchase17",
"langchain"
] | This simple piece of code:
```
from langchain.agents import load_tools, initialize_agent
from langchain.llms import Cohere
llm = Cohere(model="xlarge",temperature=0)
tools = load_tools(["serpapi", "llm-math"], llm=llm)
agent = initialize_agent(tools, llm, agent="zero-shot-react-description", verbose=True)
```
R... | Trying to initialize an agent with Cohere and LLM-requiring tool causes a ValidationError | https://api.github.com/repos/langchain-ai/langchain/issues/617/comments | 3 | 2023-01-14T19:13:50Z | 2023-08-24T16:20:18Z | https://github.com/langchain-ai/langchain/issues/617 | 1,533,437,131 | 617 |
[
"hwchase17",
"langchain"
] | For example here is my python code:
```
search = GoogleSearchAPIWrapper()
tools = [
Tool(
name = "Current Search",
func=search.run,
description="useful for when you need to answer questions about current events or the current state of the world"
),
]
memory = ConversationBu... | Need help to continue same chain over API Request? | https://api.github.com/repos/langchain-ai/langchain/issues/614/comments | 3 | 2023-01-14T13:14:28Z | 2023-09-18T16:25:16Z | https://github.com/langchain-ai/langchain/issues/614 | 1,533,248,871 | 614 |
[
"hwchase17",
"langchain"
] | Consider adding `white-space: break-spaces;` to `<pre>` tags on the docs to improve readability of code snippets, especially since there's usually a lot of text in the prompt to read through. As a side-effect, they will make pages seem longer. But that might not be a major issue. In a bit I can add this in a PR when I ... | [Docs] Wrap text in code snippets to make prompts easier to read | https://api.github.com/repos/langchain-ai/langchain/issues/613/comments | 1 | 2023-01-14T03:19:09Z | 2023-01-14T15:39:30Z | https://github.com/langchain-ai/langchain/issues/613 | 1,533,117,543 | 613 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.