status
stringclasses
1 value
repo_name
stringclasses
31 values
repo_url
stringclasses
31 values
issue_id
int64
1
104k
title
stringlengths
4
369
body
stringlengths
0
254k
issue_url
stringlengths
37
56
pull_url
stringlengths
37
54
before_fix_sha
stringlengths
40
40
after_fix_sha
stringlengths
40
40
report_datetime
timestamp[us, tz=UTC]
language
stringclasses
5 values
commit_datetime
timestamp[us, tz=UTC]
updated_file
stringlengths
4
188
file_content
stringlengths
0
5.12M
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,361
Validation Error importing OpenAPI planner when OpenAI credentials not in environment
### System Info Name: langchain, Version: 0.0.180 Name: openai, Version: 0.27.7 macOS Mojave 10.14.6 ### Who can help? @vowelparrot ### Information - [X] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models ...
https://github.com/langchain-ai/langchain/issues/5361
https://github.com/langchain-ai/langchain/pull/5380
6df90ad9fd1ee6d64e112d8d58f9524ca11b0757
14099f1b93401a68f531fc1a55c50c5872e720fa
2023-05-28T08:18:12Z
python
2023-05-29T13:22:35Z
langchain/agents/agent_toolkits/openapi/planner.py
"""Agent that interacts with OpenAPI APIs via a hierarchical planning approach.""" import json import re from functools import partial from typing import Any, Callable, Dict, List, Optional import yaml from pydantic import Field from langchain.agents.agent import AgentExecutor from langchain.agents.agent_toolkits.ope...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,071
Issue: LLamacpp wrapper slows down the model
### Issue you'd like to raise. Looks like the inference time of the LLamacpp model is a lot slower when using LlamaCpp wrapper (compared to the llama-cpp original wrapper). Here are the results for the same prompt on the RTX 4090 GPU. When using llamacpp-python Llama wrapper directly: ![llamacpp_runtime](ht...
https://github.com/langchain-ai/langchain/issues/5071
https://github.com/langchain-ai/langchain/pull/5344
44b48d95183067bc71942512a97b846f5b1fb4c3
f6615cac41453a9bb3a061a3ffb29327f5e04fb2
2023-05-21T21:49:24Z
python
2023-05-29T13:43:26Z
docs/modules/models/llms/integrations/llamacpp.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Llama-cpp\n", "\n", "[llama-cpp](https://github.com/abetlen/llama-cpp-python) is a Python binding for [llama.cpp](https://github.com/ggerganov/llama.cpp). \n", "It supports [several LLMs](https://github.com/ggerganov/llam...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,224
PALChain loading fails
### System Info langchain==0.0.176 ### Who can help? @hwchase17 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document L...
https://github.com/langchain-ai/langchain/issues/5224
https://github.com/langchain-ai/langchain/pull/5343
f6615cac41453a9bb3a061a3ffb29327f5e04fb2
642ae83d86b28b37605c9a20ca25c667ed461595
2023-05-25T00:58:09Z
python
2023-05-29T13:44:47Z
langchain/chains/loading.py
"""Functionality for loading chains.""" import json from pathlib import Path from typing import Any, Union import yaml from langchain.chains.api.base import APIChain from langchain.chains.base import Chain from langchain.chains.combine_documents.map_reduce import MapReduceDocumentsChain from langchain.chains.combine_...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,316
VertexAIEmbeddings error when passing a list with of length greater than 5.
### System Info google-cloud-aiplatform==1.25.0 langchain==0.0.181 python 3.10 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt ...
https://github.com/langchain-ai/langchain/issues/5316
https://github.com/langchain-ai/langchain/pull/5325
3e164684234d3a51032b737dce2c25ba6cd3ec2d
c09f8e4ddc3be791bd0e8c8385ed1871bdd5d681
2023-05-26T20:31:56Z
python
2023-05-29T13:57:41Z
langchain/embeddings/vertexai.py
"""Wrapper around Google VertexAI embedding models.""" from typing import Dict, List from pydantic import root_validator from langchain.embeddings.base import Embeddings from langchain.llms.vertexai import _VertexAICommon from langchain.utilities.vertexai import raise_vertex_import_error class VertexAIEmbeddings(_V...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,316
VertexAIEmbeddings error when passing a list with of length greater than 5.
### System Info google-cloud-aiplatform==1.25.0 langchain==0.0.181 python 3.10 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt ...
https://github.com/langchain-ai/langchain/issues/5316
https://github.com/langchain-ai/langchain/pull/5325
3e164684234d3a51032b737dce2c25ba6cd3ec2d
c09f8e4ddc3be791bd0e8c8385ed1871bdd5d681
2023-05-26T20:31:56Z
python
2023-05-29T13:57:41Z
tests/integration_tests/embeddings/test_vertexai.py
"""Test Vertex AI API wrapper. In order to run this test, you need to install VertexAI SDK pip install google-cloud-aiplatform>=1.25.0 Your end-user credentials would be used to make the calls (make sure you've run `gcloud auth login` first). """ from langchain.embeddings import VertexAIEmbeddings def test_embeddi...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,257
Github integration
### Feature request Would be amazing to scan and get all the contents from the Github API, such as PRs, Issues and Discussions. ### Motivation this would allows to ask questions on the history of the project, issues that other users might have found, and much more! ### Your contribution Not really a python develop...
https://github.com/langchain-ai/langchain/issues/5257
https://github.com/langchain-ai/langchain/pull/5408
0b3e0dd1d2fb81eeca76b960bb2376bd666608cd
8259f9b7facae95236dd5156e2a14d87a0e1f90c
2023-05-25T16:27:21Z
python
2023-05-30T03:11:21Z
docs/modules/indexes/document_loaders/examples/github.ipynb
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,257
Github integration
### Feature request Would be amazing to scan and get all the contents from the Github API, such as PRs, Issues and Discussions. ### Motivation this would allows to ask questions on the history of the project, issues that other users might have found, and much more! ### Your contribution Not really a python develop...
https://github.com/langchain-ai/langchain/issues/5257
https://github.com/langchain-ai/langchain/pull/5408
0b3e0dd1d2fb81eeca76b960bb2376bd666608cd
8259f9b7facae95236dd5156e2a14d87a0e1f90c
2023-05-25T16:27:21Z
python
2023-05-30T03:11:21Z
langchain/document_loaders/__init__.py
"""All different types of document loaders.""" from langchain.document_loaders.airbyte_json import AirbyteJSONLoader from langchain.document_loaders.apify_dataset import ApifyDatasetLoader from langchain.document_loaders.arxiv import ArxivLoader from langchain.document_loaders.azlyrics import AZLyricsLoader from langc...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,257
Github integration
### Feature request Would be amazing to scan and get all the contents from the Github API, such as PRs, Issues and Discussions. ### Motivation this would allows to ask questions on the history of the project, issues that other users might have found, and much more! ### Your contribution Not really a python develop...
https://github.com/langchain-ai/langchain/issues/5257
https://github.com/langchain-ai/langchain/pull/5408
0b3e0dd1d2fb81eeca76b960bb2376bd666608cd
8259f9b7facae95236dd5156e2a14d87a0e1f90c
2023-05-25T16:27:21Z
python
2023-05-30T03:11:21Z
langchain/document_loaders/github.py
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,257
Github integration
### Feature request Would be amazing to scan and get all the contents from the Github API, such as PRs, Issues and Discussions. ### Motivation this would allows to ask questions on the history of the project, issues that other users might have found, and much more! ### Your contribution Not really a python develop...
https://github.com/langchain-ai/langchain/issues/5257
https://github.com/langchain-ai/langchain/pull/5408
0b3e0dd1d2fb81eeca76b960bb2376bd666608cd
8259f9b7facae95236dd5156e2a14d87a0e1f90c
2023-05-25T16:27:21Z
python
2023-05-30T03:11:21Z
tests/integration_tests/document_loaders/test_github.py
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,257
Github integration
### Feature request Would be amazing to scan and get all the contents from the Github API, such as PRs, Issues and Discussions. ### Motivation this would allows to ask questions on the history of the project, issues that other users might have found, and much more! ### Your contribution Not really a python develop...
https://github.com/langchain-ai/langchain/issues/5257
https://github.com/langchain-ai/langchain/pull/5408
0b3e0dd1d2fb81eeca76b960bb2376bd666608cd
8259f9b7facae95236dd5156e2a14d87a0e1f90c
2023-05-25T16:27:21Z
python
2023-05-30T03:11:21Z
tests/unit_tests/document_loaders/test_github.py
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,337
Add MongoDBAtlasVectorSearch vectorstore
### Feature request MongoDB Atlas is a fully managed DBaaS, powered by the MongoDB database. It also enables Lucene (collocated with the mongod process) for full-text search - this is know as Atlas Search. The PR has to allow Langchain users from using the functionality related to the MongoDB Atlas Vector Search fea...
https://github.com/langchain-ai/langchain/issues/5337
https://github.com/langchain-ai/langchain/pull/5338
c4b502a47051f50c6e24b824d3db622748458d13
a61b7f7e7c76ae8667e40cd29cfe30a3868d7dd8
2023-05-27T11:41:39Z
python
2023-05-30T14:59:01Z
docs/modules/indexes/vectorstores/examples/mongodb_atlas_vector_search.ipynb
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,337
Add MongoDBAtlasVectorSearch vectorstore
### Feature request MongoDB Atlas is a fully managed DBaaS, powered by the MongoDB database. It also enables Lucene (collocated with the mongod process) for full-text search - this is know as Atlas Search. The PR has to allow Langchain users from using the functionality related to the MongoDB Atlas Vector Search fea...
https://github.com/langchain-ai/langchain/issues/5337
https://github.com/langchain-ai/langchain/pull/5338
c4b502a47051f50c6e24b824d3db622748458d13
a61b7f7e7c76ae8667e40cd29cfe30a3868d7dd8
2023-05-27T11:41:39Z
python
2023-05-30T14:59:01Z
langchain/vectorstores/__init__.py
"""Wrappers on top of vector stores.""" from langchain.vectorstores.analyticdb import AnalyticDB from langchain.vectorstores.annoy import Annoy from langchain.vectorstores.atlas import AtlasDB from langchain.vectorstores.base import VectorStore from langchain.vectorstores.chroma import Chroma from langchain.vectorstore...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,337
Add MongoDBAtlasVectorSearch vectorstore
### Feature request MongoDB Atlas is a fully managed DBaaS, powered by the MongoDB database. It also enables Lucene (collocated with the mongod process) for full-text search - this is know as Atlas Search. The PR has to allow Langchain users from using the functionality related to the MongoDB Atlas Vector Search fea...
https://github.com/langchain-ai/langchain/issues/5337
https://github.com/langchain-ai/langchain/pull/5338
c4b502a47051f50c6e24b824d3db622748458d13
a61b7f7e7c76ae8667e40cd29cfe30a3868d7dd8
2023-05-27T11:41:39Z
python
2023-05-30T14:59:01Z
langchain/vectorstores/mongodb_atlas.py
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,337
Add MongoDBAtlasVectorSearch vectorstore
### Feature request MongoDB Atlas is a fully managed DBaaS, powered by the MongoDB database. It also enables Lucene (collocated with the mongod process) for full-text search - this is know as Atlas Search. The PR has to allow Langchain users from using the functionality related to the MongoDB Atlas Vector Search fea...
https://github.com/langchain-ai/langchain/issues/5337
https://github.com/langchain-ai/langchain/pull/5338
c4b502a47051f50c6e24b824d3db622748458d13
a61b7f7e7c76ae8667e40cd29cfe30a3868d7dd8
2023-05-27T11:41:39Z
python
2023-05-30T14:59:01Z
poetry.lock
# This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand. [[package]] name = "absl-py" version = "1.4.0" description = "Abseil Python Common Libraries, see https://github.com/abseil/abseil-py." category = "main" optional = true python-versions = ">=3.6" files = [ {file = "absl-py-1...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,337
Add MongoDBAtlasVectorSearch vectorstore
### Feature request MongoDB Atlas is a fully managed DBaaS, powered by the MongoDB database. It also enables Lucene (collocated with the mongod process) for full-text search - this is know as Atlas Search. The PR has to allow Langchain users from using the functionality related to the MongoDB Atlas Vector Search fea...
https://github.com/langchain-ai/langchain/issues/5337
https://github.com/langchain-ai/langchain/pull/5338
c4b502a47051f50c6e24b824d3db622748458d13
a61b7f7e7c76ae8667e40cd29cfe30a3868d7dd8
2023-05-27T11:41:39Z
python
2023-05-30T14:59:01Z
pyproject.toml
[tool.poetry] name = "langchain" version = "0.0.184" description = "Building applications with LLMs through composability" authors = [] license = "MIT" readme = "README.md" repository = "https://www.github.com/hwchase17/langchain" [tool.poetry.scripts] langchain-server = "langchain.server:main" langchain = "langchain....
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,337
Add MongoDBAtlasVectorSearch vectorstore
### Feature request MongoDB Atlas is a fully managed DBaaS, powered by the MongoDB database. It also enables Lucene (collocated with the mongod process) for full-text search - this is know as Atlas Search. The PR has to allow Langchain users from using the functionality related to the MongoDB Atlas Vector Search fea...
https://github.com/langchain-ai/langchain/issues/5337
https://github.com/langchain-ai/langchain/pull/5338
c4b502a47051f50c6e24b824d3db622748458d13
a61b7f7e7c76ae8667e40cd29cfe30a3868d7dd8
2023-05-27T11:41:39Z
python
2023-05-30T14:59:01Z
tests/integration_tests/.env.example
# openai # your api key from https://platform.openai.com/account/api-keys OPENAI_API_KEY= # pinecone # your api key from left menu "API Keys" in https://app.pinecone.io PINECONE_API_KEY=your_pinecone_api_key_here # your pinecone environment from left menu "API Keys" in https://app.pinecone.io PINECONE_ENVIRONMENT=us-w...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,337
Add MongoDBAtlasVectorSearch vectorstore
### Feature request MongoDB Atlas is a fully managed DBaaS, powered by the MongoDB database. It also enables Lucene (collocated with the mongod process) for full-text search - this is know as Atlas Search. The PR has to allow Langchain users from using the functionality related to the MongoDB Atlas Vector Search fea...
https://github.com/langchain-ai/langchain/issues/5337
https://github.com/langchain-ai/langchain/pull/5338
c4b502a47051f50c6e24b824d3db622748458d13
a61b7f7e7c76ae8667e40cd29cfe30a3868d7dd8
2023-05-27T11:41:39Z
python
2023-05-30T14:59:01Z
tests/integration_tests/vectorstores/test_mongodb_atlas.py
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
3,605
Embeddings normalization and similarity metric
I am new to using Langchain and attempting to make it work with a locally running LLM (Alpaca) and Embeddings model (Sentence Transformer). When configuring the sentence transformer model with `HuggingFaceEmbeddings` no arguments can be passed to the encode method of the model, specifically `normalize_embeddings=True`....
https://github.com/langchain-ai/langchain/issues/3605
https://github.com/langchain-ai/langchain/pull/5450
e09afb4b4445c99bebabca4b2beb150ba3a37c5c
c1807d84086c92d1aea2eb7be181204e72ae10d0
2023-04-26T18:02:20Z
python
2023-05-30T18:57:04Z
langchain/embeddings/huggingface.py
"""Wrapper around HuggingFace embedding models.""" from typing import Any, Dict, List, Optional from pydantic import BaseModel, Extra, Field from langchain.embeddings.base import Embeddings DEFAULT_MODEL_NAME = "sentence-transformers/all-mpnet-base-v2" DEFAULT_INSTRUCT_MODEL = "hkunlp/instructor-large" DEFAULT_EMBED...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
3,605
Embeddings normalization and similarity metric
I am new to using Langchain and attempting to make it work with a locally running LLM (Alpaca) and Embeddings model (Sentence Transformer). When configuring the sentence transformer model with `HuggingFaceEmbeddings` no arguments can be passed to the encode method of the model, specifically `normalize_embeddings=True`....
https://github.com/langchain-ai/langchain/issues/3605
https://github.com/langchain-ai/langchain/pull/5450
e09afb4b4445c99bebabca4b2beb150ba3a37c5c
c1807d84086c92d1aea2eb7be181204e72ae10d0
2023-04-26T18:02:20Z
python
2023-05-30T18:57:04Z
tests/integration_tests/embeddings/test_huggingface.py
"""Test huggingface embeddings.""" from langchain.embeddings.huggingface import ( HuggingFaceEmbeddings, HuggingFaceInstructEmbeddings, ) def test_huggingface_embedding_documents() -> None: """Test huggingface embeddings.""" documents = ["foo bar"] embedding = HuggingFaceEmbeddings() output =...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,423
SQLDatabaseToolkit doesn't work well with Postgresql, it will truncate the last double quotation marks in the SQL
### System Info Langchain: 0.0.184 Python: 3.10.9 Platform: Windows 10 with Jupyter lab ### Who can help? @vowelparrot ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates...
https://github.com/langchain-ai/langchain/issues/5423
https://github.com/langchain-ai/langchain/pull/5432
c1807d84086c92d1aea2eb7be181204e72ae10d0
1d861dc37a63a41ae2e0983f2ee418efde968ce3
2023-05-30T04:02:36Z
python
2023-05-30T19:58:47Z
langchain/agents/mrkl/output_parser.py
import re from typing import Union from langchain.agents.agent import AgentOutputParser from langchain.agents.mrkl.prompt import FORMAT_INSTRUCTIONS from langchain.schema import AgentAction, AgentFinish, OutputParserException FINAL_ANSWER_ACTION = "Final Answer:" class MRKLOutputParser(AgentOutputParser): def g...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,423
SQLDatabaseToolkit doesn't work well with Postgresql, it will truncate the last double quotation marks in the SQL
### System Info Langchain: 0.0.184 Python: 3.10.9 Platform: Windows 10 with Jupyter lab ### Who can help? @vowelparrot ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates...
https://github.com/langchain-ai/langchain/issues/5423
https://github.com/langchain-ai/langchain/pull/5432
c1807d84086c92d1aea2eb7be181204e72ae10d0
1d861dc37a63a41ae2e0983f2ee418efde968ce3
2023-05-30T04:02:36Z
python
2023-05-30T19:58:47Z
tests/unit_tests/agents/test_mrkl.py
"""Test MRKL functionality.""" from typing import Tuple import pytest from langchain.agents.mrkl.base import ZeroShotAgent from langchain.agents.mrkl.output_parser import MRKLOutputParser from langchain.agents.mrkl.prompt import FORMAT_INSTRUCTIONS, PREFIX, SUFFIX from langchain.agents.tools import Tool from langcha...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,465
Google BigQuery Loader doesn't take credentials
### Feature request I would like to be able to provide credentials to the bigquery.client object ### Motivation I cannot access protected datasets without use of a service account or other credentials ### Your contribution I will submit a PR.
https://github.com/langchain-ai/langchain/issues/5465
https://github.com/langchain-ai/langchain/pull/5466
eab4b4ccd7e1ca4dcfdf4c400250494e4503fcb1
199cc700a344a2b15dff3a8924746a5ceb1aad7e
2023-05-30T21:18:13Z
python
2023-05-30T23:25:22Z
langchain/document_loaders/bigquery.py
from typing import List, Optional from langchain.docstore.document import Document from langchain.document_loaders.base import BaseLoader class BigQueryLoader(BaseLoader): """Loads a query result from BigQuery into a list of documents. Each document represents one row of the result. The `page_content_column...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,465
Google BigQuery Loader doesn't take credentials
### Feature request I would like to be able to provide credentials to the bigquery.client object ### Motivation I cannot access protected datasets without use of a service account or other credentials ### Your contribution I will submit a PR.
https://github.com/langchain-ai/langchain/issues/5465
https://github.com/langchain-ai/langchain/pull/5466
eab4b4ccd7e1ca4dcfdf4c400250494e4503fcb1
199cc700a344a2b15dff3a8924746a5ceb1aad7e
2023-05-30T21:18:13Z
python
2023-05-30T23:25:22Z
poetry.lock
# This file is automatically @generated by Poetry 1.4.1 and should not be changed by hand. [[package]] name = "absl-py" version = "1.4.0" description = "Abseil Python Common Libraries, see https://github.com/abseil/abseil-py." category = "main" optional = true python-versions = ">=3.6" files = [ {file = "absl-py-1...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,465
Google BigQuery Loader doesn't take credentials
### Feature request I would like to be able to provide credentials to the bigquery.client object ### Motivation I cannot access protected datasets without use of a service account or other credentials ### Your contribution I will submit a PR.
https://github.com/langchain-ai/langchain/issues/5465
https://github.com/langchain-ai/langchain/pull/5466
eab4b4ccd7e1ca4dcfdf4c400250494e4503fcb1
199cc700a344a2b15dff3a8924746a5ceb1aad7e
2023-05-30T21:18:13Z
python
2023-05-30T23:25:22Z
pyproject.toml
[tool.poetry] name = "langchain" version = "0.0.186" description = "Building applications with LLMs through composability" authors = [] license = "MIT" readme = "README.md" repository = "https://www.github.com/hwchase17/langchain" [tool.poetry.scripts] langchain-server = "langchain.server:main" langchain = "langchain....
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,582
Chroma.update_document bug
### System Info update_document only embeds a single document, but the single page_content string is cast to a list before embedding, resulting in a per-character embedding not a per-document embedding. https://github.com/hwchase17/langchain/blob/4c572ffe959957b515528a9036b374f56cef027f/langchain/vectorstores/chrom...
https://github.com/langchain-ai/langchain/issues/5582
https://github.com/langchain-ai/langchain/pull/5584
3c6fa9126aa6422084e8c064eda06292d40ac517
c5a7a85a4e6cd307f83b2e455d466722d75940b2
2023-06-01T23:13:30Z
python
2023-06-02T18:12:48Z
langchain/vectorstores/chroma.py
"""Wrapper around ChromaDB embeddings platform.""" from __future__ import annotations import logging import uuid from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Tuple, Type import numpy as np from langchain.docstore.document import Document from langchain.embeddings.base import Embeddings from...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,582
Chroma.update_document bug
### System Info update_document only embeds a single document, but the single page_content string is cast to a list before embedding, resulting in a per-character embedding not a per-document embedding. https://github.com/hwchase17/langchain/blob/4c572ffe959957b515528a9036b374f56cef027f/langchain/vectorstores/chrom...
https://github.com/langchain-ai/langchain/issues/5582
https://github.com/langchain-ai/langchain/pull/5584
3c6fa9126aa6422084e8c064eda06292d40ac517
c5a7a85a4e6cd307f83b2e455d466722d75940b2
2023-06-01T23:13:30Z
python
2023-06-02T18:12:48Z
tests/integration_tests/vectorstores/test_chroma.py
"""Test Chroma functionality.""" import pytest from langchain.docstore.document import Document from langchain.vectorstores import Chroma from tests.integration_tests.vectorstores.fake_embeddings import FakeEmbeddings def test_chroma() -> None: """Test end to end construction and search.""" texts = ["foo", "...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,623
cannot import name 'FigmaFileLoader'
### System Info langchain==0.0.189 os:windows11 python=3.10.11 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors ...
https://github.com/langchain-ai/langchain/issues/5623
https://github.com/langchain-ai/langchain/pull/5636
20ec1173f40a13cba73d79cc0efa4653d2489d65
9a7488a5ce65aaf727464f02a10811719b517f11
2023-06-02T16:39:41Z
python
2023-06-02T21:58:41Z
langchain/document_loaders/__init__.py
"""All different types of document loaders.""" from langchain.document_loaders.airbyte_json import AirbyteJSONLoader from langchain.document_loaders.apify_dataset import ApifyDatasetLoader from langchain.document_loaders.arxiv import ArxivLoader from langchain.document_loaders.azlyrics import AZLyricsLoader from langc...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,627
DOC: repetitive parts in Modules pages
### Issue with current documentation: Pages in Modules: Models, Prompts, Memory, ... They all have repeated parts. See a picture. ![image](https://github.com/hwchase17/langchain/assets/2256422/05514908-87b5-453a-9795-8304612f42bf) ### Idea or request for content: The whole "Go Deeper" section can be remo...
https://github.com/langchain-ai/langchain/issues/5627
https://github.com/langchain-ai/langchain/pull/5116
bc875a9df16d17db531f9e363c18ed8b5ebbc047
95c6ed0568e808626ffb2ee6490b770a4ac9c508
2023-06-02T18:24:00Z
python
2023-06-03T21:44:32Z
docs/modules/agents.rst
Agents ========================== .. note:: `Conceptual Guide <https://docs.langchain.com/docs/components/agents>`_ Some applications will require not just a predetermined chain of calls to LLMs/other tools, but potentially an unknown chain that depends on the user's input. In these types of chains, there is a “a...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,627
DOC: repetitive parts in Modules pages
### Issue with current documentation: Pages in Modules: Models, Prompts, Memory, ... They all have repeated parts. See a picture. ![image](https://github.com/hwchase17/langchain/assets/2256422/05514908-87b5-453a-9795-8304612f42bf) ### Idea or request for content: The whole "Go Deeper" section can be remo...
https://github.com/langchain-ai/langchain/issues/5627
https://github.com/langchain-ai/langchain/pull/5116
bc875a9df16d17db531f9e363c18ed8b5ebbc047
95c6ed0568e808626ffb2ee6490b770a4ac9c508
2023-06-02T18:24:00Z
python
2023-06-03T21:44:32Z
docs/modules/chains.rst
Chains ========================== .. note:: `Conceptual Guide <https://docs.langchain.com/docs/components/chains>`_ Using an LLM in isolation is fine for some simple applications, but many more complex ones require chaining LLMs - either with each other or with other experts. LangChain provides a standard interfa...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,627
DOC: repetitive parts in Modules pages
### Issue with current documentation: Pages in Modules: Models, Prompts, Memory, ... They all have repeated parts. See a picture. ![image](https://github.com/hwchase17/langchain/assets/2256422/05514908-87b5-453a-9795-8304612f42bf) ### Idea or request for content: The whole "Go Deeper" section can be remo...
https://github.com/langchain-ai/langchain/issues/5627
https://github.com/langchain-ai/langchain/pull/5116
bc875a9df16d17db531f9e363c18ed8b5ebbc047
95c6ed0568e808626ffb2ee6490b770a4ac9c508
2023-06-02T18:24:00Z
python
2023-06-03T21:44:32Z
docs/modules/indexes.rst
Indexes ========================== .. note:: `Conceptual Guide <https://docs.langchain.com/docs/components/indexing>`_ Indexes refer to ways to structure documents so that LLMs can best interact with them. This module contains utility functions for working with documents, different types of indexes, and then exam...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,627
DOC: repetitive parts in Modules pages
### Issue with current documentation: Pages in Modules: Models, Prompts, Memory, ... They all have repeated parts. See a picture. ![image](https://github.com/hwchase17/langchain/assets/2256422/05514908-87b5-453a-9795-8304612f42bf) ### Idea or request for content: The whole "Go Deeper" section can be remo...
https://github.com/langchain-ai/langchain/issues/5627
https://github.com/langchain-ai/langchain/pull/5116
bc875a9df16d17db531f9e363c18ed8b5ebbc047
95c6ed0568e808626ffb2ee6490b770a4ac9c508
2023-06-02T18:24:00Z
python
2023-06-03T21:44:32Z
docs/modules/memory.rst
Memory ========================== .. note:: `Conceptual Guide <https://docs.langchain.com/docs/components/memory>`_ By default, Chains and Agents are stateless, meaning that they treat each incoming query independently (as are the underlying LLMs and chat models). In some applications (chatbots being a GREAT exam...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,627
DOC: repetitive parts in Modules pages
### Issue with current documentation: Pages in Modules: Models, Prompts, Memory, ... They all have repeated parts. See a picture. ![image](https://github.com/hwchase17/langchain/assets/2256422/05514908-87b5-453a-9795-8304612f42bf) ### Idea or request for content: The whole "Go Deeper" section can be remo...
https://github.com/langchain-ai/langchain/issues/5627
https://github.com/langchain-ai/langchain/pull/5116
bc875a9df16d17db531f9e363c18ed8b5ebbc047
95c6ed0568e808626ffb2ee6490b770a4ac9c508
2023-06-02T18:24:00Z
python
2023-06-03T21:44:32Z
docs/modules/models.rst
Models ========================== .. note:: `Conceptual Guide <https://docs.langchain.com/docs/components/models>`_ This section of the documentation deals with different types of models that are used in LangChain. On this page we will go over the model types at a high level, but we have individual pages for each...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,627
DOC: repetitive parts in Modules pages
### Issue with current documentation: Pages in Modules: Models, Prompts, Memory, ... They all have repeated parts. See a picture. ![image](https://github.com/hwchase17/langchain/assets/2256422/05514908-87b5-453a-9795-8304612f42bf) ### Idea or request for content: The whole "Go Deeper" section can be remo...
https://github.com/langchain-ai/langchain/issues/5627
https://github.com/langchain-ai/langchain/pull/5116
bc875a9df16d17db531f9e363c18ed8b5ebbc047
95c6ed0568e808626ffb2ee6490b770a4ac9c508
2023-06-02T18:24:00Z
python
2023-06-03T21:44:32Z
docs/modules/prompts.rst
Prompts ========================== .. note:: `Conceptual Guide <https://docs.langchain.com/docs/components/prompts>`_ The new way of programming models is through prompts. A "prompt" refers to the input to the model. This input is rarely hard coded, but rather is often constructed from multiple components. A Prom...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,627
DOC: repetitive parts in Modules pages
### Issue with current documentation: Pages in Modules: Models, Prompts, Memory, ... They all have repeated parts. See a picture. ![image](https://github.com/hwchase17/langchain/assets/2256422/05514908-87b5-453a-9795-8304612f42bf) ### Idea or request for content: The whole "Go Deeper" section can be remo...
https://github.com/langchain-ai/langchain/issues/5627
https://github.com/langchain-ai/langchain/pull/5116
bc875a9df16d17db531f9e363c18ed8b5ebbc047
95c6ed0568e808626ffb2ee6490b770a4ac9c508
2023-06-02T18:24:00Z
python
2023-06-03T21:44:32Z
docs/modules/prompts/chat_prompt_template.ipynb
{ "cells": [ { "attachments": {}, "cell_type": "markdown", "id": "6488fdaf", "metadata": {}, "source": [ "# Chat Prompt Template\n", "\n", "[Chat Models](../models/chat.rst) takes a list of chat messages as input - this list commonly referred to as a prompt.\n", "These chat messages di...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,191
Support personal access token (PAT) in ConfluenceLoader
### Issue you'd like to raise. The [Atlassian API](https://atlassian-python-api.readthedocs.io/) (including Confluence) supports just passing a PAT (as token=<PAT>) to authenticate as a user, unfortunately the LangChain abstraction doesn't. ### Suggestion: Add an optional "token" parameter to ConfluenceLoader...
https://github.com/langchain-ai/langchain/issues/5191
https://github.com/langchain-ai/langchain/pull/5385
b81f98b8a66999117246fbc134fc09d64a04e230
ae2cf1f598360e1fc83839fdcd363378d663c936
2023-05-24T11:15:54Z
python
2023-06-03T21:57:49Z
docs/modules/indexes/document_loaders/examples/confluence.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Confluence\n", "\n", ">[Confluence](https://www.atlassian.com/software/confluence) is a wiki collaboration platform that saves and organizes all of the project-related material. `Confluence` is a knowledge base that primarily...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,191
Support personal access token (PAT) in ConfluenceLoader
### Issue you'd like to raise. The [Atlassian API](https://atlassian-python-api.readthedocs.io/) (including Confluence) supports just passing a PAT (as token=<PAT>) to authenticate as a user, unfortunately the LangChain abstraction doesn't. ### Suggestion: Add an optional "token" parameter to ConfluenceLoader...
https://github.com/langchain-ai/langchain/issues/5191
https://github.com/langchain-ai/langchain/pull/5385
b81f98b8a66999117246fbc134fc09d64a04e230
ae2cf1f598360e1fc83839fdcd363378d663c936
2023-05-24T11:15:54Z
python
2023-06-03T21:57:49Z
langchain/document_loaders/confluence.py
"""Load Data from a Confluence Space""" import logging from io import BytesIO from typing import Any, Callable, List, Optional, Union from tenacity import ( before_sleep_log, retry, stop_after_attempt, wait_exponential, ) from langchain.docstore.document import Document from langchain.document_loaders...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,400
Add the ability to pass the prompt through to Executor Agents for enrichment during PlanAndExecute
### Feature request Add the ability to pass the original prompt through to the ExecutorAgent so that the original explicit context is not lost during a PlanAndExecute run. ### Motivation PlanAndExecute agents can create a plan of steps dependent on context given in the original prompt. However, this context is lost ...
https://github.com/langchain-ai/langchain/issues/5400
https://github.com/langchain-ai/langchain/pull/5401
ae2cf1f598360e1fc83839fdcd363378d663c936
1f4abb265a9fd6c520835c3bebe8243b077495b5
2023-05-29T13:19:30Z
python
2023-06-03T21:59:09Z
langchain/experimental/plan_and_execute/agent_executor.py
from typing import Any, Dict, List, Optional from pydantic import Field from langchain.callbacks.manager import CallbackManagerForChainRun from langchain.chains.base import Chain from langchain.experimental.plan_and_execute.executors.base import BaseExecutor from langchain.experimental.plan_and_execute.planners.base ...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,400
Add the ability to pass the prompt through to Executor Agents for enrichment during PlanAndExecute
### Feature request Add the ability to pass the original prompt through to the ExecutorAgent so that the original explicit context is not lost during a PlanAndExecute run. ### Motivation PlanAndExecute agents can create a plan of steps dependent on context given in the original prompt. However, this context is lost ...
https://github.com/langchain-ai/langchain/issues/5400
https://github.com/langchain-ai/langchain/pull/5401
ae2cf1f598360e1fc83839fdcd363378d663c936
1f4abb265a9fd6c520835c3bebe8243b077495b5
2023-05-29T13:19:30Z
python
2023-06-03T21:59:09Z
langchain/experimental/plan_and_execute/executors/agent_executor.py
from typing import List from langchain.agents.agent import AgentExecutor from langchain.agents.structured_chat.base import StructuredChatAgent from langchain.base_language import BaseLanguageModel from langchain.experimental.plan_and_execute.executors.base import ChainExecutor from langchain.tools import BaseTool HUM...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,433
FinalStreamingStdOutCallbackHandler not working with ChatOpenAI LLM
### System Info Hi :) I tested the new callback stream handler `FinalStreamingStdOutCallbackHandler` and noticed an issue with it. I copied the code from the documentation and made just one change - use `ChatOpenAI` instead of `OpenAI` ### Who can help? @hwchase17 ### Information - [X] The official example no...
https://github.com/langchain-ai/langchain/issues/5433
https://github.com/langchain-ai/langchain/pull/5497
1f4abb265a9fd6c520835c3bebe8243b077495b5
44ad9628c9828e220540dd77680611741a6ed087
2023-05-30T10:51:06Z
python
2023-06-03T22:05:58Z
docs/modules/agents/streaming_stdout_final_only.ipynb
{ "cells": [ { "cell_type": "markdown", "id": "23234b50-e6c6-4c87-9f97-259c15f36894", "metadata": { "tags": [] }, "source": [ "# Only streaming final agent output" ] }, { "cell_type": "markdown", "id": "29dd6333-307c-43df-b848-65001c01733b", "metadata": {}, "source": [ "...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,433
FinalStreamingStdOutCallbackHandler not working with ChatOpenAI LLM
### System Info Hi :) I tested the new callback stream handler `FinalStreamingStdOutCallbackHandler` and noticed an issue with it. I copied the code from the documentation and made just one change - use `ChatOpenAI` instead of `OpenAI` ### Who can help? @hwchase17 ### Information - [X] The official example no...
https://github.com/langchain-ai/langchain/issues/5433
https://github.com/langchain-ai/langchain/pull/5497
1f4abb265a9fd6c520835c3bebe8243b077495b5
44ad9628c9828e220540dd77680611741a6ed087
2023-05-30T10:51:06Z
python
2023-06-03T22:05:58Z
langchain/callbacks/streaming_stdout_final_only.py
"""Callback Handler streams to stdout on new llm token.""" import sys from typing import Any, Dict, List, Optional from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler DEFAULT_ANSWER_PREFIX_TOKENS = ["\nFinal", " Answer", ":"] class FinalStreamingStdOutCallbackHandler(StreamingStdOutCallb...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,545
Issue: Improve Error Messaging When APOC Procedures Fail in Neo4jGraph
### Issue you'd like to raise. In the current implementation, when an APOC procedure fails, a generic error message is raised stating: "Could not use APOC procedures. Please install the APOC plugin in Neo4j." This message can lead to user confusion as it suggests the APOC plugin is not installed when in reality it may...
https://github.com/langchain-ai/langchain/issues/5545
https://github.com/langchain-ai/langchain/pull/5547
33ea606f455f195d74f09ac654e03da8850ecb9b
3e45b8306555a48b5838ed7dd33b1a4c615bdd18
2023-06-01T08:04:16Z
python
2023-06-03T23:56:39Z
langchain/graphs/neo4j_graph.py
from typing import Any, Dict, List node_properties_query = """ CALL apoc.meta.data() YIELD label, other, elementType, type, property WHERE NOT type = "RELATIONSHIP" AND elementType = "node" WITH label AS nodeLabels, collect({property:property, type:type}) AS properties RETURN {labels: nodeLabels, properties: propertie...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,651
AttributeError: 'LLModel' object has no attribute 'model_type' (gpt4all)
### System Info run on docker image with python:3.11.3-bullseye in MAC m1 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Tem...
https://github.com/langchain-ai/langchain/issues/5651
https://github.com/langchain-ai/langchain/pull/5657
6a3ceaa3771a725046af3c02cf4c15a3e18ec54a
8fea0529c1be9c9f5308a9b5a51f8381067a269a
2023-06-03T10:37:42Z
python
2023-06-04T14:21:16Z
langchain/llms/gpt4all.py
"""Wrapper for the GPT4All model.""" from functools import partial from typing import Any, Dict, List, Mapping, Optional, Set from pydantic import Extra, Field, root_validator from langchain.callbacks.manager import CallbackManagerForLLMRun from langchain.llms.base import LLM from langchain.llms.utils import enforce_...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,638
DOC: "Amazon Bedrock" is not sorted in Integrations section of nav
### Issue with current documentation: In the left nav of the docs, "Amazon Bedrock" is alphabetized after "Beam integration for langchain" and before "Cerebrium AI", not with the rest of the A-named integrations. <img width="254" alt="image" src="https://github.com/hwchase17/langchain/assets/93281816/20836ca0-3946-...
https://github.com/langchain-ai/langchain/issues/5638
https://github.com/langchain-ai/langchain/pull/5639
6e25e650859fc86365252e0bdf8fd2223e5dec1c
6c11f940132a26d7dc967d213d23d093ddb90b14
2023-06-02T23:41:12Z
python
2023-06-04T21:39:25Z
docs/integrations/bedrock.md
# Amazon Bedrock >[Amazon Bedrock](https://aws.amazon.com/bedrock/) is a fully managed service that makes FMs from leading AI startups and Amazon available via an API, so you can choose from a wide range of FMs to find the model that is best suited for your use case. ## Installation and Setup ```bash pip install bot...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,638
DOC: "Amazon Bedrock" is not sorted in Integrations section of nav
### Issue with current documentation: In the left nav of the docs, "Amazon Bedrock" is alphabetized after "Beam integration for langchain" and before "Cerebrium AI", not with the rest of the A-named integrations. <img width="254" alt="image" src="https://github.com/hwchase17/langchain/assets/93281816/20836ca0-3946-...
https://github.com/langchain-ai/langchain/issues/5638
https://github.com/langchain-ai/langchain/pull/5639
6e25e650859fc86365252e0bdf8fd2223e5dec1c
6c11f940132a26d7dc967d213d23d093ddb90b14
2023-06-02T23:41:12Z
python
2023-06-04T21:39:25Z
docs/modules/models/llms/integrations/bedrock.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Amazon Bedrock" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "[Amazon Bedrock](https://aws.amazon.com/bedrock/) is a fully managed service that makes FMs from leading AI startups and Amazon availabl...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,601
OutputParsers currently allows model to hallucinate the output of an action
### System Info The MRKL and chat output parsers currently will allow an LLM response to generate a valid action, as well as hallucinate a "final answer" based on that response. [Logic](https://github.com/hwchase17/langchain/blob/master/langchain/agents/chat/output_parser.py#L15) This is because the parser is ...
https://github.com/langchain-ai/langchain/issues/5601
https://github.com/langchain-ai/langchain/pull/5609
c112d7334d6cac3296b877250d3f575fbfd46da2
26ec845921425d99f222b6d21bd58eda36b2f49b
2023-06-02T08:01:50Z
python
2023-06-04T21:40:49Z
langchain/agents/chat/output_parser.py
import json from typing import Union from langchain.agents.agent import AgentOutputParser from langchain.agents.chat.prompt import FORMAT_INSTRUCTIONS from langchain.schema import AgentAction, AgentFinish, OutputParserException FINAL_ANSWER_ACTION = "Final Answer:" class ChatOutputParser(AgentOutputParser): def...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,601
OutputParsers currently allows model to hallucinate the output of an action
### System Info The MRKL and chat output parsers currently will allow an LLM response to generate a valid action, as well as hallucinate a "final answer" based on that response. [Logic](https://github.com/hwchase17/langchain/blob/master/langchain/agents/chat/output_parser.py#L15) This is because the parser is ...
https://github.com/langchain-ai/langchain/issues/5601
https://github.com/langchain-ai/langchain/pull/5609
c112d7334d6cac3296b877250d3f575fbfd46da2
26ec845921425d99f222b6d21bd58eda36b2f49b
2023-06-02T08:01:50Z
python
2023-06-04T21:40:49Z
langchain/agents/mrkl/output_parser.py
import re from typing import Union from langchain.agents.agent import AgentOutputParser from langchain.agents.mrkl.prompt import FORMAT_INSTRUCTIONS from langchain.schema import AgentAction, AgentFinish, OutputParserException FINAL_ANSWER_ACTION = "Final Answer:" class MRKLOutputParser(AgentOutputParser): def g...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,601
OutputParsers currently allows model to hallucinate the output of an action
### System Info The MRKL and chat output parsers currently will allow an LLM response to generate a valid action, as well as hallucinate a "final answer" based on that response. [Logic](https://github.com/hwchase17/langchain/blob/master/langchain/agents/chat/output_parser.py#L15) This is because the parser is ...
https://github.com/langchain-ai/langchain/issues/5601
https://github.com/langchain-ai/langchain/pull/5609
c112d7334d6cac3296b877250d3f575fbfd46da2
26ec845921425d99f222b6d21bd58eda36b2f49b
2023-06-02T08:01:50Z
python
2023-06-04T21:40:49Z
tests/unit_tests/agents/test_mrkl.py
"""Test MRKL functionality.""" from typing import Tuple import pytest from langchain.agents.mrkl.base import ZeroShotAgent from langchain.agents.mrkl.output_parser import MRKLOutputParser from langchain.agents.mrkl.prompt import FORMAT_INSTRUCTIONS, PREFIX, SUFFIX from langchain.agents.tools import Tool from langcha...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,720
AttributeError: 'GPT4All' object has no attribute 'model_type' (langchain 0.0.190)
### System Info Hi, this is related to #5651 but (on my machine ;) ) the issue is still there. ## Versions * Intel Mac with latest OSX * Python 3.11.2 * langchain 0.0.190, includes fix for #5651 * ggml-mpt-7b-instruct.bin, downloaded at June 5th from https://gpt4all.io/models/ggml-mpt-7b-instruct.bin ##...
https://github.com/langchain-ai/langchain/issues/5720
https://github.com/langchain-ai/langchain/pull/5743
d0d89d39efb5f292f72e70973f3b70c4ca095047
74f8e603d942ca22ed07bf0ea23a57ed67b36b2c
2023-06-05T09:44:08Z
python
2023-06-05T19:45:29Z
langchain/llms/gpt4all.py
"""Wrapper for the GPT4All model.""" from functools import partial from typing import Any, Dict, List, Mapping, Optional, Set from pydantic import Extra, Field, root_validator from langchain.callbacks.manager import CallbackManagerForLLMRun from langchain.llms.base import LLM from langchain.llms.utils import enforce_...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,699
Sitemap filters not working due to lack of stripping whitespace and newlines
https://github.com/hwchase17/langchain/blob/8d9e9e013ccfe72d839dcfa37a3f17c340a47a88/langchain/document_loaders/sitemap.py#L83 if ``` <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <url> <loc> https://tatum.com/ </loc> ...
https://github.com/langchain-ai/langchain/issues/5699
https://github.com/langchain-ai/langchain/pull/5728
98dd6d068a67c2ac1c14785ea189c2e4c8882bf5
2dcda8a8aca4c427ff5716e6ac37ab0c24a7f2e5
2023-06-04T22:49:54Z
python
2023-06-05T23:33:55Z
langchain/document_loaders/sitemap.py
"""Loader that fetches a sitemap and loads those URLs.""" import itertools import re from typing import Any, Callable, Generator, Iterable, List, Optional from langchain.document_loaders.web_base import WebBaseLoader from langchain.schema import Document def _default_parsing_function(content: Any) -> str: return...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,614
MarkdownTextSplitter: multiple repeat at position 4 (line 3, column 2)
### System Info langchain 0.0.188 python 3.8.10 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors ...
https://github.com/langchain-ai/langchain/issues/5614
https://github.com/langchain-ai/langchain/pull/5625
25487fa5ee38710d2f0edd0672fdd83557b3d0da
d5b160821641df77df447e6dfce21b58fbb13d75
2023-06-02T12:20:41Z
python
2023-06-05T23:40:26Z
langchain/text_splitter.py
"""Functionality for splitting text.""" from __future__ import annotations import copy import logging import re from abc import ABC, abstractmethod from dataclasses import dataclass from enum import Enum from typing import ( AbstractSet, Any, Callable, Collection, Iterable, List, Literal, ...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,614
MarkdownTextSplitter: multiple repeat at position 4 (line 3, column 2)
### System Info langchain 0.0.188 python 3.8.10 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors ...
https://github.com/langchain-ai/langchain/issues/5614
https://github.com/langchain-ai/langchain/pull/5625
25487fa5ee38710d2f0edd0672fdd83557b3d0da
d5b160821641df77df447e6dfce21b58fbb13d75
2023-06-02T12:20:41Z
python
2023-06-05T23:40:26Z
tests/unit_tests/test_text_splitter.py
"""Test text splitting functionality.""" import pytest from langchain.docstore.document import Document from langchain.text_splitter import ( CharacterTextSplitter, Language, PythonCodeTextSplitter, RecursiveCharacterTextSplitter, ) FAKE_PYTHON_TEXT = """ class Foo: def bar(): def foo(): def t...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,535
Add Tigris vectorstore for vector search
### Feature request Support Tigris as a vector search backend ### Motivation Tigris is a Serverless NoSQL Database and Search Platform and have their [vector search](https://www.tigrisdata.com/docs/concepts/vector-search/python/) product. It will be great option for users to use an integrated database and search pro...
https://github.com/langchain-ai/langchain/issues/5535
https://github.com/langchain-ai/langchain/pull/5703
38dabdbb3a900ae60e4b503cd48c26903b2d4673
233b52735e77121849b0fc9f8eaf6170222f0ac7
2023-06-01T03:18:00Z
python
2023-06-06T03:39:16Z
docs/modules/indexes/vectorstores/examples/tigris.ipynb
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,535
Add Tigris vectorstore for vector search
### Feature request Support Tigris as a vector search backend ### Motivation Tigris is a Serverless NoSQL Database and Search Platform and have their [vector search](https://www.tigrisdata.com/docs/concepts/vector-search/python/) product. It will be great option for users to use an integrated database and search pro...
https://github.com/langchain-ai/langchain/issues/5535
https://github.com/langchain-ai/langchain/pull/5703
38dabdbb3a900ae60e4b503cd48c26903b2d4673
233b52735e77121849b0fc9f8eaf6170222f0ac7
2023-06-01T03:18:00Z
python
2023-06-06T03:39:16Z
langchain/vectorstores/__init__.py
"""Wrappers on top of vector stores.""" from langchain.vectorstores.analyticdb import AnalyticDB from langchain.vectorstores.annoy import Annoy from langchain.vectorstores.atlas import AtlasDB from langchain.vectorstores.base import VectorStore from langchain.vectorstores.chroma import Chroma from langchain.vectorstore...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,535
Add Tigris vectorstore for vector search
### Feature request Support Tigris as a vector search backend ### Motivation Tigris is a Serverless NoSQL Database and Search Platform and have their [vector search](https://www.tigrisdata.com/docs/concepts/vector-search/python/) product. It will be great option for users to use an integrated database and search pro...
https://github.com/langchain-ai/langchain/issues/5535
https://github.com/langchain-ai/langchain/pull/5703
38dabdbb3a900ae60e4b503cd48c26903b2d4673
233b52735e77121849b0fc9f8eaf6170222f0ac7
2023-06-01T03:18:00Z
python
2023-06-06T03:39:16Z
langchain/vectorstores/tigris.py
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,535
Add Tigris vectorstore for vector search
### Feature request Support Tigris as a vector search backend ### Motivation Tigris is a Serverless NoSQL Database and Search Platform and have their [vector search](https://www.tigrisdata.com/docs/concepts/vector-search/python/) product. It will be great option for users to use an integrated database and search pro...
https://github.com/langchain-ai/langchain/issues/5535
https://github.com/langchain-ai/langchain/pull/5703
38dabdbb3a900ae60e4b503cd48c26903b2d4673
233b52735e77121849b0fc9f8eaf6170222f0ac7
2023-06-01T03:18:00Z
python
2023-06-06T03:39:16Z
poetry.lock
# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. [[package]] name = "absl-py" version = "1.4.0" description = "Abseil Python Common Libraries, see https://github.com/abseil/abseil-py." optional = true python-versions = ">=3.6" files = [ {file = "absl-py-1.4.0.tar.gz", hash...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,535
Add Tigris vectorstore for vector search
### Feature request Support Tigris as a vector search backend ### Motivation Tigris is a Serverless NoSQL Database and Search Platform and have their [vector search](https://www.tigrisdata.com/docs/concepts/vector-search/python/) product. It will be great option for users to use an integrated database and search pro...
https://github.com/langchain-ai/langchain/issues/5535
https://github.com/langchain-ai/langchain/pull/5703
38dabdbb3a900ae60e4b503cd48c26903b2d4673
233b52735e77121849b0fc9f8eaf6170222f0ac7
2023-06-01T03:18:00Z
python
2023-06-06T03:39:16Z
pyproject.toml
[tool.poetry] name = "langchain" version = "0.0.190" description = "Building applications with LLMs through composability" authors = [] license = "MIT" readme = "README.md" repository = "https://www.github.com/hwchase17/langchain" [tool.poetry.scripts] langchain-server = "langchain.server:main" langchain = "langchain....
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,822
skip openai params when embedding
### System Info langchain@0.0.192 I upgrade my langchain lib by execute pip install -U langchain, and the verion is 0.0.192。But i found that openai.api_base not working. I use azure openai service as openai backend, the openai.api_base is very import for me. I hava compared tag/0.0.192 and tag/0.0.191, and figure out...
https://github.com/langchain-ai/langchain/issues/5822
https://github.com/langchain-ai/langchain/pull/5821
b3ae6bcd3f42ec85ee65eb29c922ab22a17a0210
5a207cce8f026e32c93bf271f80b73570d4b2844
2023-06-07T08:36:23Z
python
2023-06-07T14:32:57Z
langchain/embeddings/openai.py
"""Wrapper around OpenAI embedding models.""" from __future__ import annotations import logging from typing import ( Any, Callable, Dict, List, Literal, Optional, Sequence, Set, Tuple, Union, ) import numpy as np from pydantic import BaseModel, Extra, root_validator from tenaci...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
3,983
RetrievalQA & RetrievalQAWithSourcesChain chains cannot be serialized/saved or loaded
`VectorDBQA` is being deprecated in favour of `RetrievalQA` & similarly, `VectorDBQAWithSourcesChain` is being deprecated for `RetrievalQAWithSourcesChain`. Currently, `VectorDBQA` & `VectorDBQAWithSourcesChain` chains can be serialized using `vec_chain.save(...)` because they have `_chain_type` property - https://...
https://github.com/langchain-ai/langchain/issues/3983
https://github.com/langchain-ai/langchain/pull/5818
b93638ef1ef683dfbb46e8e7654e96325324a98c
5518f24ec38654510bada81025fe4e96c26556a7
2023-05-02T16:17:48Z
python
2023-06-08T04:07:13Z
langchain/chains/loading.py
"""Functionality for loading chains.""" import json from pathlib import Path from typing import Any, Union import yaml from langchain.chains.api.base import APIChain from langchain.chains.base import Chain from langchain.chains.combine_documents.map_reduce import MapReduceDocumentsChain from langchain.chains.combine_...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
3,983
RetrievalQA & RetrievalQAWithSourcesChain chains cannot be serialized/saved or loaded
`VectorDBQA` is being deprecated in favour of `RetrievalQA` & similarly, `VectorDBQAWithSourcesChain` is being deprecated for `RetrievalQAWithSourcesChain`. Currently, `VectorDBQA` & `VectorDBQAWithSourcesChain` chains can be serialized using `vec_chain.save(...)` because they have `_chain_type` property - https://...
https://github.com/langchain-ai/langchain/issues/3983
https://github.com/langchain-ai/langchain/pull/5818
b93638ef1ef683dfbb46e8e7654e96325324a98c
5518f24ec38654510bada81025fe4e96c26556a7
2023-05-02T16:17:48Z
python
2023-06-08T04:07:13Z
langchain/chains/retrieval_qa/base.py
"""Chain for question-answering against a vector database.""" from __future__ import annotations import warnings from abc import abstractmethod from typing import Any, Dict, List, Optional from pydantic import Extra, Field, root_validator from langchain.base_language import BaseLanguageModel from langchain.callbacks...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
3,983
RetrievalQA & RetrievalQAWithSourcesChain chains cannot be serialized/saved or loaded
`VectorDBQA` is being deprecated in favour of `RetrievalQA` & similarly, `VectorDBQAWithSourcesChain` is being deprecated for `RetrievalQAWithSourcesChain`. Currently, `VectorDBQA` & `VectorDBQAWithSourcesChain` chains can be serialized using `vec_chain.save(...)` because they have `_chain_type` property - https://...
https://github.com/langchain-ai/langchain/issues/3983
https://github.com/langchain-ai/langchain/pull/5818
b93638ef1ef683dfbb46e8e7654e96325324a98c
5518f24ec38654510bada81025fe4e96c26556a7
2023-05-02T16:17:48Z
python
2023-06-08T04:07:13Z
tests/integration_tests/chains/test_retrieval_qa.py
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,713
Inference parameters for Bedrock titan models not working
### System Info LangChain version 0.0.190 Python 3.9 ### Who can help? @seanpmorgan @3coins ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] O...
https://github.com/langchain-ai/langchain/issues/5713
https://github.com/langchain-ai/langchain/pull/5896
767fa91eae3455050d85a594fededddff3311dbe
a6ebffb69504576a805f3b9f09732ad344751b89
2023-06-05T06:48:57Z
python
2023-06-08T21:16:01Z
langchain/llms/bedrock.py
import json from typing import Any, Dict, List, Mapping, Optional from pydantic import Extra, root_validator from langchain.callbacks.manager import CallbackManagerForLLMRun from langchain.llms.base import LLM from langchain.llms.utils import enforce_stop_tokens class LLMInputOutputAdapter: """Adapter class to ...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,889
When inialztion VertexAI() all passed parameters got ignored
### System Info langchain=0.0.194 python=3.11.3 ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Outpu...
https://github.com/langchain-ai/langchain/issues/5889
https://github.com/langchain-ai/langchain/pull/5891
63fcf41bea5222f64b1c9a822f08cec9e55aa619
0eb1bc1a0245547316fe96ac8f86b0e67acb524f
2023-06-08T16:06:31Z
python
2023-06-09T06:15:22Z
langchain/llms/vertexai.py
"""Wrapper around Google VertexAI models.""" from typing import TYPE_CHECKING, Any, Dict, List, Optional from pydantic import BaseModel, root_validator from langchain.callbacks.manager import CallbackManagerForLLMRun from langchain.llms.base import LLM from langchain.llms.utils import enforce_stop_tokens from langcha...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,889
When inialztion VertexAI() all passed parameters got ignored
### System Info langchain=0.0.194 python=3.11.3 ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Outpu...
https://github.com/langchain-ai/langchain/issues/5889
https://github.com/langchain-ai/langchain/pull/5891
63fcf41bea5222f64b1c9a822f08cec9e55aa619
0eb1bc1a0245547316fe96ac8f86b0e67acb524f
2023-06-08T16:06:31Z
python
2023-06-09T06:15:22Z
langchain/utilities/vertexai.py
"""Utilities to init Vertex AI.""" from typing import TYPE_CHECKING, Optional if TYPE_CHECKING: from google.auth.credentials import Credentials def raise_vertex_import_error() -> None: """Raise ImportError related to Vertex SDK being not available. Raises: ImportError: an ImportError that mentio...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,835
Support for the AWS endpoint URL in the DynamoDBChatMessageHistory
### Feature request I propose having the possibility of specifying the endpoint URL to AWS in the DynamoDBChatMessageHistory, so that it is possible to target not only the AWS cloud services, but also a local installation. ### Motivation Specifying the endpoint URL, which is normally not done when addressing ...
https://github.com/langchain-ai/langchain/issues/5835
https://github.com/langchain-ai/langchain/pull/5836
0eb1bc1a0245547316fe96ac8f86b0e67acb524f
db7ef635c0e061fcbab2f608ccc60af15fc5585d
2023-06-07T14:01:56Z
python
2023-06-09T06:21:11Z
docs/modules/memory/examples/dynamodb_chat_message_history.ipynb
{ "cells": [ { "cell_type": "markdown", "id": "91c6a7ef", "metadata": {}, "source": [ "# Dynamodb Chat Message History\n", "\n", "This notebook goes over how to use Dynamodb to store chat message history." ] }, { "cell_type": "markdown", "id": "3f608be0", "metadata": {}, "s...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,835
Support for the AWS endpoint URL in the DynamoDBChatMessageHistory
### Feature request I propose having the possibility of specifying the endpoint URL to AWS in the DynamoDBChatMessageHistory, so that it is possible to target not only the AWS cloud services, but also a local installation. ### Motivation Specifying the endpoint URL, which is normally not done when addressing ...
https://github.com/langchain-ai/langchain/issues/5835
https://github.com/langchain-ai/langchain/pull/5836
0eb1bc1a0245547316fe96ac8f86b0e67acb524f
db7ef635c0e061fcbab2f608ccc60af15fc5585d
2023-06-07T14:01:56Z
python
2023-06-09T06:21:11Z
langchain/memory/chat_message_histories/dynamodb.py
import logging from typing import List from langchain.schema import ( BaseChatMessageHistory, BaseMessage, _message_to_dict, messages_from_dict, messages_to_dict, ) logger = logging.getLogger(__name__) class DynamoDBChatMessageHistory(BaseChatMessageHistory): """Chat message history that sto...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,027
ArxivAPIWrapper
The documentation says: > It limits the Document content by doc_content_chars_max. > Set doc_content_chars_max=None if you don't want to limit the content size. But the claim type of int prevents this to be set as None: https://github.com/hwchase17/langchain/blob/289e9aeb9d122d689d68b2e77236ce3dfcd606a7...
https://github.com/langchain-ai/langchain/issues/6027
https://github.com/langchain-ai/langchain/pull/6063
a9b97aa6f4f0039804014192345f93612fef93be
b01cf0dd54bf078e348471a038842b82db370d66
2023-06-12T05:30:46Z
python
2023-06-16T05:16:42Z
langchain/utilities/arxiv.py
"""Util that calls Arxiv.""" import logging import os from typing import Any, Dict, List from pydantic import BaseModel, Extra, root_validator from langchain.schema import Document logger = logging.getLogger(__name__) class ArxivAPIWrapper(BaseModel): """Wrapper around ArxivAPI. To use, you should have th...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,027
ArxivAPIWrapper
The documentation says: > It limits the Document content by doc_content_chars_max. > Set doc_content_chars_max=None if you don't want to limit the content size. But the claim type of int prevents this to be set as None: https://github.com/hwchase17/langchain/blob/289e9aeb9d122d689d68b2e77236ce3dfcd606a7...
https://github.com/langchain-ai/langchain/issues/6027
https://github.com/langchain-ai/langchain/pull/6063
a9b97aa6f4f0039804014192345f93612fef93be
b01cf0dd54bf078e348471a038842b82db370d66
2023-06-12T05:30:46Z
python
2023-06-16T05:16:42Z
tests/integration_tests/utilities/test_arxiv.py
"""Integration test for Arxiv API Wrapper.""" from typing import Any, List import pytest from langchain.agents.load_tools import load_tools from langchain.schema import Document from langchain.tools.base import BaseTool from langchain.utilities import ArxivAPIWrapper @pytest.fixture def api_client() -> ArxivAPIWrap...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,282
LLMRequestsChain not enforcing headers when making http requests
### System Info LangChain version 0.0.201 ### Who can help? @hwchase17 @agola ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - ...
https://github.com/langchain-ai/langchain/issues/6282
https://github.com/langchain-ai/langchain/pull/6283
23cdebddc446d14b22003819fbe66884b600c998
9ca11c06b73f225ff431500e174bf21fa8eb9a33
2023-06-16T12:44:22Z
python
2023-06-16T23:21:01Z
langchain/chains/llm_requests.py
"""Chain that hits a URL and then uses an LLM to parse results.""" from __future__ import annotations from typing import Any, Dict, List, Optional from pydantic import Extra, Field, root_validator from langchain.callbacks.manager import CallbackManagerForChainRun from langchain.chains import LLMChain from langchain....
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,039
Make modelname_to_contextsize as a staticmethod to use it without create an object
### Feature request Make [modelname_to_contextsize](https://github.com/hwchase17/langchain/blob/289e9aeb9d122d689d68b2e77236ce3dfcd606a7/langchain/llms/openai.py#L503) as staticmethod to use it without create an object. ### Motivation While using ChatOpenAI or AzureChatOpenAI, to use modelname_to_contextsize w...
https://github.com/langchain-ai/langchain/issues/6039
https://github.com/langchain-ai/langchain/pull/6040
427551eabf32e0c9fa4428dcfad5fed86f99bbdf
cdd1d78bf2a383972af15921611a06e7efe53f93
2023-06-12T10:23:07Z
python
2023-06-17T16:13:08Z
langchain/llms/openai.py
"""Wrapper around OpenAI APIs.""" from __future__ import annotations import logging import sys import warnings from typing import ( AbstractSet, Any, Callable, Collection, Dict, Generator, List, Literal, Mapping, Optional, Set, Tuple, Union, ) from pydantic import E...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
2,698
Permission Error with PDF loader
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...
https://github.com/langchain-ai/langchain/issues/2698
https://github.com/langchain-ai/langchain/pull/6170
4fc7939848a600064dc20b44e86c19e2cfa01491
5be465bd86f940cf831e3a4d2841d92ce8699ffb
2023-04-11T06:17:16Z
python
2023-06-18T23:39:57Z
langchain/document_loaders/pdf.py
"""Loader that loads PDF files.""" import json import logging import os import tempfile import time from abc import ABC from io import StringIO from pathlib import Path from typing import Any, Iterator, List, Mapping, Optional from urllib.parse import urlparse import requests from langchain.docstore.document import D...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,225
OpenAI functions dont work with async streaming...
### System Info Version: 0.0.200 ### Who can help? @hwchase17 , @agola11 - I have a PR ready ... creating an issue so I can pair it ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Pro...
https://github.com/langchain-ai/langchain/issues/6225
https://github.com/langchain-ai/langchain/pull/6226
ea6a5b03e077526896071da80530bebb94eb390b
e2f36ee6082506049419875fa4a374f8fa2a88fe
2023-06-15T13:22:11Z
python
2023-06-19T00:05:16Z
langchain/chat_models/openai.py
"""OpenAI chat wrapper.""" from __future__ import annotations import logging import sys from typing import ( TYPE_CHECKING, Any, Callable, Dict, List, Mapping, Optional, Tuple, Union, ) from pydantic import Field, root_validator from tenacity import ( before_sleep_log, retr...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,807
Issue: Integration tests fail for faiss vector store
### Issue you'd like to raise. Integration tests for faiss vector store fail when run. It appears that the tests are not in sync with the module implementation. command: poetry run pytest tests/integration_tests/vectorstores/test_faiss.py Results summary: ===================================================...
https://github.com/langchain-ai/langchain/issues/5807
https://github.com/langchain-ai/langchain/pull/6281
ddd518a161f85a89f5c2dc0b8f262aba11cb3869
6aa7b04f7978e3783e386fd6714d9e1d44b3f5a2
2023-06-07T03:49:08Z
python
2023-06-19T00:25:49Z
tests/integration_tests/vectorstores/test_faiss.py
"""Test FAISS functionality.""" import datetime import math import tempfile import pytest from langchain.docstore.document import Document from langchain.docstore.in_memory import InMemoryDocstore from langchain.docstore.wikipedia import Wikipedia from langchain.vectorstores.faiss import FAISS from tests.integration_...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,131
Azure Cognitive Search Vector Store doesn't apply search_kwargs when performing queries
### System Info Langchain 0.0.199 Python 3.10.11 Windows 11 (but will occur on any platform. ### Who can help? @hwchase17 @ruoccofabrizio ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Promp...
https://github.com/langchain-ai/langchain/issues/6131
https://github.com/langchain-ai/langchain/pull/6132
395a2a3724507bafc7afe9e04ecbae60a7c66c7e
22862043543e55fa0467c739714230eae3425512
2023-06-14T02:08:49Z
python
2023-06-19T00:39:06Z
langchain/vectorstores/azuresearch.py
"""Wrapper around Azure Cognitive Search.""" from __future__ import annotations import base64 import json import logging import uuid from typing import ( TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, ) import numpy as np from pydantic import BaseModel, ...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
1,829
UnstructuredURLLoader Error 403
**Issue:** When trying to read data from some URLs, I get a 403 error during load. I assume this is due to the web-server not allowing all user agents. **Expected behavior:** It would be great if I could specify a user agent (e.g. standard browsers like Mozilla, maybe also Google bots) for making the URL requests. ...
https://github.com/langchain-ai/langchain/issues/1829
https://github.com/langchain-ai/langchain/pull/6246
ca7a44d0242f2de4bbbb3b78942dcb6309487662
92f05a67a44c5d2a7a60280d7083cb96f3685371
2023-03-20T21:26:40Z
python
2023-06-19T00:47:00Z
docs/extras/modules/data_connection/document_loaders/integrations/url.ipynb
{ "cells": [ { "cell_type": "markdown", "id": "2dfc4698", "metadata": {}, "source": [ "# URL\n", "\n", "This covers how to load HTML documents from a list of URLs into a document format that we can use downstream." ] }, { "cell_type": "code", "execution_count": 1, "id": "16c36...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,079
Issue: Can't load a public webpage
### I want to load in the webpage below. Hi, Trying to extract some webpage using webbaseloader: """ loader = WebBaseLoader("https://researchadmin.asu.edu/) data = loader.load() """ But gives the following error: SSLError: HTTPSConnectionPool(host='researchadmin.asu.edu', port=443): Max retries exceeded with ...
https://github.com/langchain-ai/langchain/issues/6079
https://github.com/langchain-ai/langchain/pull/6248
92f05a67a44c5d2a7a60280d7083cb96f3685371
ba90e3c990d21128c67a0ca07e3261a38e579853
2023-06-13T05:40:52Z
python
2023-06-19T00:47:10Z
docs/extras/modules/data_connection/document_loaders/integrations/web_base.ipynb
{ "cells": [ { "cell_type": "markdown", "id": "bf920da0", "metadata": {}, "source": [ "# WebBaseLoader\n", "\n", "This covers how to use `WebBaseLoader` to load all text from `HTML` webpages into a document format that we can use downstream. For more custom logic for loading webpages look at ...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,483
[SSL: CERTIFICATE_VERIFY_FAILED] while load from SitemapLoader
### System Info langchain: 0.0.181 platform: windows python: 3.11.3 ### Who can help? @eyurtsev ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Pr...
https://github.com/langchain-ai/langchain/issues/5483
https://github.com/langchain-ai/langchain/pull/6256
10bff4ecc420317a86043a8f0287363618be77e6
b2b9ded12facf3ae205eb4b1cbb455eca6af8977
2023-05-31T07:52:33Z
python
2023-06-19T01:34:18Z
langchain/document_loaders/web_base.py
"""Web base loader class.""" import asyncio import logging import warnings from typing import Any, Dict, List, Optional, Union import aiohttp import requests from langchain.docstore.document import Document from langchain.document_loaders.base import BaseLoader logger = logging.getLogger(__name__) default_header_te...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,431
ChatPromptTemplate with partial variables is giving validation error
### System Info langchain-0.0.205, python3.10 ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Par...
https://github.com/langchain-ai/langchain/issues/6431
https://github.com/langchain-ai/langchain/pull/6456
02c0a1e77eb9636850c8c29da33885a32b4cc2eb
6efd5fa2b9d46c7b4db6ad638097f010b745f0cc
2023-06-19T16:15:49Z
python
2023-06-20T05:08:15Z
langchain/prompts/chat.py
"""Chat prompt template.""" from __future__ import annotations from abc import ABC, abstractmethod from pathlib import Path from typing import Any, Callable, List, Sequence, Tuple, Type, TypeVar, Union from pydantic import Field, root_validator from langchain.load.serializable import Serializable from langchain.memo...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,431
ChatPromptTemplate with partial variables is giving validation error
### System Info langchain-0.0.205, python3.10 ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Par...
https://github.com/langchain-ai/langchain/issues/6431
https://github.com/langchain-ai/langchain/pull/6456
02c0a1e77eb9636850c8c29da33885a32b4cc2eb
6efd5fa2b9d46c7b4db6ad638097f010b745f0cc
2023-06-19T16:15:49Z
python
2023-06-20T05:08:15Z
tests/unit_tests/prompts/test_chat.py
from pathlib import Path from typing import List import pytest from langchain.prompts import PromptTemplate from langchain.prompts.chat import ( AIMessagePromptTemplate, BaseMessagePromptTemplate, ChatMessagePromptTemplate, ChatPromptTemplate, ChatPromptValue, HumanMessagePromptTemplate, S...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,380
Neo4J schema not inferred correctly by Neo4JGraph Object
### System Info langchain=0.0.2 ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loa...
https://github.com/langchain-ai/langchain/issues/6380
https://github.com/langchain-ai/langchain/pull/6381
b0d80c4b3e128f27bd1b9df48ed4afbe17950fec
22601b0b6323e6465f78ca9bc16152062a2b65ba
2023-06-18T19:19:04Z
python
2023-06-20T05:48:35Z
langchain/graphs/neo4j_graph.py
from typing import Any, Dict, List node_properties_query = """ CALL apoc.meta.data() YIELD label, other, elementType, type, property WHERE NOT type = "RELATIONSHIP" AND elementType = "node" WITH label AS nodeLabels, collect({property:property, type:type}) AS properties RETURN {labels: nodeLabels, properties: propertie...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,380
Neo4J schema not inferred correctly by Neo4JGraph Object
### System Info langchain=0.0.2 ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loa...
https://github.com/langchain-ai/langchain/issues/6380
https://github.com/langchain-ai/langchain/pull/6381
b0d80c4b3e128f27bd1b9df48ed4afbe17950fec
22601b0b6323e6465f78ca9bc16152062a2b65ba
2023-06-18T19:19:04Z
python
2023-06-20T05:48:35Z
tests/integration_tests/chains/test_graph_database.py
"""Test Graph Database Chain.""" import os from langchain.chains.graph_qa.cypher import GraphCypherQAChain from langchain.chains.loading import load_chain from langchain.graphs import Neo4jGraph from langchain.llms.openai import OpenAI def test_connect_neo4j() -> None: """Test that Neo4j database is correctly in...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,234
Gmail toolkit cannot handle sending email to one person correctly
### System Info Gmail toolkit cannot handle sending email to one person correctly - if I want to send email to one person it doesn't consider that `action_input` should look like: ``` { ... to: ["email@gmail.com"] ... } ``` Instead it look like: ``` { ... to: "email@gmail.com" ...
https://github.com/langchain-ai/langchain/issues/6234
https://github.com/langchain-ai/langchain/pull/6242
94c789925798053c08ad8cc262b23f2683abd4d2
5d149e4d50325d2821263e59bac667f781c48f7a
2023-06-15T15:30:50Z
python
2023-06-21T08:25:49Z
langchain/tools/gmail/send_message.py
"""Send Gmail messages.""" import base64 from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from typing import Any, Dict, List, Optional from pydantic import BaseModel, Field from langchain.callbacks.manager import ( AsyncCallbackManagerForToolRun, CallbackManagerForToolRun, )...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,118
Issue: Update OpenAI model token mapping to reflect new API update 2023-06-13
### Issue you'd like to raise. The blog post here https://openai.com/blog/function-calling-and-other-api-updates specifies > - new 16k context version of gpt-3.5-turbo (vs the standard 4k version) The `langchain/llms/openai.py` `model_token_mapping` should be changed to reflect this. ### Suggestion: Add `...
https://github.com/langchain-ai/langchain/issues/6118
https://github.com/langchain-ai/langchain/pull/6122
5d149e4d50325d2821263e59bac667f781c48f7a
e0f468f6c1f7f07bb3987f0887d53ce9af92bb29
2023-06-13T21:22:21Z
python
2023-06-21T08:37:16Z
langchain/llms/openai.py
"""Wrapper around OpenAI APIs.""" from __future__ import annotations import logging import sys import warnings from typing import ( AbstractSet, Any, Callable, Collection, Dict, Generator, List, Literal, Mapping, Optional, Set, Tuple, Union, ) from pydantic import F...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,456
Tools: Inconsistent callbacks/run_manager parameter
### System Info MacOS Ventura 13.3.1 (a) python = "^3.9" langchain = "0.0.185" ### Who can help? @agola11 @vowelparrot ### Related Components - Agents / Agent Executors - Tools / Toolkits - Callbacks/Tracing ### Reproduction I want to use the CallbackManager to save some info within a tool. So,...
https://github.com/langchain-ai/langchain/issues/5456
https://github.com/langchain-ai/langchain/pull/6483
b4fe7f3a0995cc6a0111a7e71347eddf2d61f132
980c8651743b653f994ad6b97a27b0fa31ee92b4
2023-05-30T17:09:02Z
python
2023-06-23T08:48:27Z
langchain/tools/base.py
"""Base implementation for tools or skills.""" from __future__ import annotations import warnings from abc import ABC, abstractmethod from inspect import signature from typing import Any, Awaitable, Callable, Dict, Optional, Tuple, Type, Union from pydantic import ( BaseModel, Extra, Field, create_mod...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
5,456
Tools: Inconsistent callbacks/run_manager parameter
### System Info MacOS Ventura 13.3.1 (a) python = "^3.9" langchain = "0.0.185" ### Who can help? @agola11 @vowelparrot ### Related Components - Agents / Agent Executors - Tools / Toolkits - Callbacks/Tracing ### Reproduction I want to use the CallbackManager to save some info within a tool. So,...
https://github.com/langchain-ai/langchain/issues/5456
https://github.com/langchain-ai/langchain/pull/6483
b4fe7f3a0995cc6a0111a7e71347eddf2d61f132
980c8651743b653f994ad6b97a27b0fa31ee92b4
2023-05-30T17:09:02Z
python
2023-06-23T08:48:27Z
tests/unit_tests/tools/test_base.py
"""Test the base tool implementation.""" import json from datetime import datetime from enum import Enum from functools import partial from typing import Any, Optional, Type, Union import pytest from pydantic import BaseModel from langchain.agents.tools import Tool, tool from langchain.callbacks.manager import ( ...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,610
ChatVertexAI Error: _ChatSessionBase.send_message() got an unexpected keyword argument 'context'
### System Info langchain version: 0.0.209 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ]...
https://github.com/langchain-ai/langchain/issues/6610
https://github.com/langchain-ai/langchain/pull/6652
c2b25c17c5c8d35a7297f665f2327b9671855898
9e52134d30203a9125532621abcd5a102e3f2bfb
2023-06-22T20:56:38Z
python
2023-06-23T20:38:21Z
langchain/chat_models/vertexai.py
"""Wrapper around Google VertexAI chat-based models.""" from dataclasses import dataclass, field from typing import Any, Dict, List, Optional from pydantic import root_validator from langchain.callbacks.manager import ( AsyncCallbackManagerForLLMRun, CallbackManagerForLLMRun, ) from langchain.chat_models.base...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,582
Typo
### System Info latest version ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Lo...
https://github.com/langchain-ai/langchain/issues/6582
https://github.com/langchain-ai/langchain/pull/6595
f6fdabd20b3b14f8728f8c74d9711322400f9369
ba256b23f241e1669536f7e70c6365ceba7a9cfa
2023-06-22T09:34:08Z
python
2023-06-23T21:56:54Z
langchain/vectorstores/weaviate.py
"""Wrapper around weaviate vector database.""" from __future__ import annotations import datetime from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type from uuid import uuid4 import numpy as np from langchain.docstore.document import Document from langchain.embeddings.base import Embeddings f...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,472
DOC: Incorrect type for tags parameter in MLflow callback
### Issue with current documentation: In the documentation the tag type is string, but in the code it's a dictionary. The proposed fix is to change the following two lines "tags (str):" to "tags (dict):". https://github.com/hwchase17/langchain/blob/7414e9d19603c962063dd337cdcf3c3168d4b8be/langchain/callbacks/mlf...
https://github.com/langchain-ai/langchain/issues/6472
https://github.com/langchain-ai/langchain/pull/6473
9187d2f3a97abc6d89daea9b5abfa652a425e1de
fe941cb54a80976bfc7575ce59a518ae428801ee
2023-06-20T09:57:57Z
python
2023-06-26T09:12:23Z
langchain/callbacks/mlflow_callback.py
import random import string import tempfile import traceback from copy import deepcopy from pathlib import Path from typing import Any, Dict, List, Optional, Union from langchain.callbacks.base import BaseCallbackHandler from langchain.callbacks.utils import ( BaseMetadataCallbackHandler, flatten_dict, has...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,756
Recent tags change causes AttributeError: 'str' object has no attribute 'value' on initialize_agent call
### System Info - Langchain: 0.0.215 - Platform: ubuntu - Python 3.10.12 ### Who can help? @vowelparrot https://github.com/hwchase17/langchain/blob/d84a3bcf7ab3edf8fe1d49083e066d51c9b5f621/langchain/agents/initialize.py#L54 ### Information - [ ] The official example notebooks/scripts - [ ] My own modifie...
https://github.com/langchain-ai/langchain/issues/6756
https://github.com/langchain-ai/langchain/pull/6765
ba622764cb7ccf4667878289f959857348ef8c19
6d30acffcbea5807835839585132d3946bb81661
2023-06-26T11:00:29Z
python
2023-06-26T16:28:11Z
langchain/agents/initialize.py
"""Load agent.""" from typing import Any, Optional, Sequence from langchain.agents.agent import AgentExecutor from langchain.agents.agent_types import AgentType from langchain.agents.loading import AGENT_TO_CLASS, load_agent from langchain.base_language import BaseLanguageModel from langchain.callbacks.base import Bas...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,756
Recent tags change causes AttributeError: 'str' object has no attribute 'value' on initialize_agent call
### System Info - Langchain: 0.0.215 - Platform: ubuntu - Python 3.10.12 ### Who can help? @vowelparrot https://github.com/hwchase17/langchain/blob/d84a3bcf7ab3edf8fe1d49083e066d51c9b5f621/langchain/agents/initialize.py#L54 ### Information - [ ] The official example notebooks/scripts - [ ] My own modifie...
https://github.com/langchain-ai/langchain/issues/6756
https://github.com/langchain-ai/langchain/pull/6765
ba622764cb7ccf4667878289f959857348ef8c19
6d30acffcbea5807835839585132d3946bb81661
2023-06-26T11:00:29Z
python
2023-06-26T16:28:11Z
tests/unit_tests/agents/test_initialize.py
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
4,833
Arbitrary code execution in JiraAPIWrapper
### System Info LangChain version:0.0.171 windows 10 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selector...
https://github.com/langchain-ai/langchain/issues/4833
https://github.com/langchain-ai/langchain/pull/6992
61938a02a1e76fa6c6e8203c98a9344a179c810d
a2f191a32229256dd41deadf97786fe41ce04cbb
2023-05-17T04:11:40Z
python
2023-07-05T19:56:01Z
langchain/tools/jira/prompt.py
# flake8: noqa JIRA_ISSUE_CREATE_PROMPT = """ This tool is a wrapper around atlassian-python-api's Jira issue_create API, useful when you need to create a Jira issue. The input to this tool is a dictionary specifying the fields of the Jira issue, and will be passed into atlassian-python-api's Jira `issue_creat...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
4,833
Arbitrary code execution in JiraAPIWrapper
### System Info LangChain version:0.0.171 windows 10 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selector...
https://github.com/langchain-ai/langchain/issues/4833
https://github.com/langchain-ai/langchain/pull/6992
61938a02a1e76fa6c6e8203c98a9344a179c810d
a2f191a32229256dd41deadf97786fe41ce04cbb
2023-05-17T04:11:40Z
python
2023-07-05T19:56:01Z
langchain/utilities/jira.py
"""Util that calls Jira.""" from typing import Any, Dict, List, Optional from pydantic import BaseModel, Extra, root_validator from langchain.tools.jira.prompt import ( JIRA_CATCH_ALL_PROMPT, JIRA_CONFLUENCE_PAGE_CREATE_PROMPT, JIRA_GET_ALL_PROJECTS_PROMPT, JIRA_ISSUE_CREATE_PROMPT, JIRA_JQL_PROMP...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
4,833
Arbitrary code execution in JiraAPIWrapper
### System Info LangChain version:0.0.171 windows 10 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selector...
https://github.com/langchain-ai/langchain/issues/4833
https://github.com/langchain-ai/langchain/pull/6992
61938a02a1e76fa6c6e8203c98a9344a179c810d
a2f191a32229256dd41deadf97786fe41ce04cbb
2023-05-17T04:11:40Z
python
2023-07-05T19:56:01Z
tests/integration_tests/utilities/test_jira_api.py
"""Integration test for JIRA API Wrapper.""" from langchain.utilities.jira import JiraAPIWrapper def test_search() -> None: """Test for Searching issues on JIRA""" jql = "project = TP" jira = JiraAPIWrapper() output = jira.run("jql", jql) assert "issues" in output def test_getprojects() -> None:...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,365
PromptLayerChatOpenAI does not support the newest function calling feature
### System Info Python Version: 3.11 Langchain Version: 0.0.209 ### Who can help? @hwchase17 @agola11 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates...
https://github.com/langchain-ai/langchain/issues/6365
https://github.com/langchain-ai/langchain/pull/6366
e0cb3ea90c1f8ec26957ffca65c6e451d444c69d
09acbb84101bc6df373ca5a1d6c8d212bd3f577f
2023-06-18T13:00:32Z
python
2023-07-06T17:16:04Z
langchain/chat_models/promptlayer_openai.py
"""PromptLayer wrapper.""" import datetime from typing import Any, List, Mapping, Optional from langchain.callbacks.manager import ( AsyncCallbackManagerForLLMRun, CallbackManagerForLLMRun, ) from langchain.chat_models import ChatOpenAI from langchain.schema import ChatResult from langchain.schema.messages imp...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
7,283
anthropic_version = packaging.version.parse(version("anthropic")) AttributeError: module 'packaging' has no attribute 'version'
### System Info When I initialise ChatAnthropic(), it got the error: anthropic_version = packaging.version.parse(version("anthropic")) AttributeError: module 'packaging' has no attribute 'version' ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [ ] My own mo...
https://github.com/langchain-ai/langchain/issues/7283
https://github.com/langchain-ai/langchain/pull/7306
d642609a23219b1037f84492c2bc56777e90397a
bac56618b43912acf4970d72d2497507eb14ceb1
2023-07-06T15:35:39Z
python
2023-07-06T23:35:42Z
langchain/llms/anthropic.py
"""Wrapper around Anthropic APIs.""" import re import warnings from importlib.metadata import version from typing import Any, Callable, Dict, Generator, List, Mapping, Optional import packaging from pydantic import BaseModel, root_validator from langchain.callbacks.manager import ( AsyncCallbackManagerForLLMRun, ...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
7,472
Pinecone: Support starter tier
### Feature request Adapt the pinecone vectorstore to support upcoming starter tier. The changes are related to removing namespaces and `delete by metadata` feature. ### Motivation Indexes in upcoming Pinecone V4 won't support: * namespaces * `configure_index()` * delete by metadata * `describe_index()` ...
https://github.com/langchain-ai/langchain/issues/7472
https://github.com/langchain-ai/langchain/pull/7473
5debd5043e61d29efea661c20818b48a0f39e5a6
9d13dcd17c2dfab8f087bcc37e99f1181dfe5c63
2023-07-10T10:19:16Z
python
2023-07-10T15:39:47Z
langchain/vectorstores/pinecone.py
"""Wrapper around Pinecone vector database.""" from __future__ import annotations import logging import uuid from typing import Any, Callable, Iterable, List, Optional, Tuple import numpy as np from langchain.docstore.document import Document from langchain.embeddings.base import Embeddings from langchain.vectorstor...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
7,472
Pinecone: Support starter tier
### Feature request Adapt the pinecone vectorstore to support upcoming starter tier. The changes are related to removing namespaces and `delete by metadata` feature. ### Motivation Indexes in upcoming Pinecone V4 won't support: * namespaces * `configure_index()` * delete by metadata * `describe_index()` ...
https://github.com/langchain-ai/langchain/issues/7472
https://github.com/langchain-ai/langchain/pull/7473
5debd5043e61d29efea661c20818b48a0f39e5a6
9d13dcd17c2dfab8f087bcc37e99f1181dfe5c63
2023-07-10T10:19:16Z
python
2023-07-10T15:39:47Z
tests/integration_tests/vectorstores/test_pinecone.py
import importlib import os import uuid from typing import List import pinecone import pytest from langchain.docstore.document import Document from langchain.embeddings import OpenAIEmbeddings from langchain.vectorstores.pinecone import Pinecone index_name = "langchain-test-index" # name of the index namespace_name ...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
7,569
Issue: Document loader for Notion DB doesn't supports some properties
### Issue you'd like to raise. Current version of document loader for Notion DB doesn't supports following properties for metadata - `unique_id` - https://www.notion.so/help/unique-id - `status` - https://www.notion.so/help/guides/status-property-gives-clarity-on-tasks - `people` - useful property when y...
https://github.com/langchain-ai/langchain/issues/7569
https://github.com/langchain-ai/langchain/pull/7570
5f17c57174c88e8c00bd71216dcf44b14fee7aaf
3f7213586e5fc5222fe6b6c889aa50776cd1c988
2023-07-12T00:02:03Z
python
2023-07-12T07:34:54Z
langchain/document_loaders/notiondb.py
"""Notion DB loader for langchain""" from typing import Any, Dict, List, Optional import requests from langchain.docstore.document import Document from langchain.document_loaders.base import BaseLoader NOTION_BASE_URL = "https://api.notion.com/v1" DATABASE_URL = NOTION_BASE_URL + "/databases/{database_id}/query" PA...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
7,571
AmazonKendraRetriever "Could not load credentials" error in latest release
### System Info LangChain version: 0.0.229 Platform: AWS Lambda execution Python version: 3.9 I get the following error when creating the AmazonKendraRetriever using LangChain version 0.0.229. Code to create retriever: `retriever = AmazonKendraRetriever(index_id=kendra_index)` Error: ```[ERROR] Validat...
https://github.com/langchain-ai/langchain/issues/7571
https://github.com/langchain-ai/langchain/pull/7629
0e1d7a27c62b15fba6bcafc5f8ac996d57e0b1d3
f11d845dee355709b41dec36dcc7c74f7b90c7ec
2023-07-12T00:16:40Z
python
2023-07-13T03:47:35Z
langchain/retrievers/kendra.py
import re from typing import Any, Dict, List, Literal, Optional from pydantic import BaseModel, Extra, root_validator from langchain.callbacks.manager import ( AsyncCallbackManagerForRetrieverRun, CallbackManagerForRetrieverRun, ) from langchain.docstore.document import Document from langchain.schema import B...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,370
Sliding window of intermediate actions for agents
### Feature request Allow tweaking with the history window / intermediate actions that are being sent to the LLM: * Send a sliding window if N last actions * Only send a specific snapshot (can be useful for code generation tasks - for example where the agent needs to perfect the code until it works). ### Motivation...
https://github.com/langchain-ai/langchain/issues/6370
https://github.com/langchain-ai/langchain/pull/6476
92ef77da3523f051cf17a854b2e5c2c767bbf64f
a8bbfb2da3f8c28869b12c8a9bb21209b0d03089
2023-06-18T15:56:26Z
python
2023-07-13T06:09:25Z
langchain/agents/agent.py
"""Chain that takes in an input and produces an action and action input.""" from __future__ import annotations import asyncio import json import logging import time from abc import abstractmethod from pathlib import Path from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import yaml from p...
closed
langchain-ai/langchain
https://github.com/langchain-ai/langchain
6,768
Can't use memory for an internal LLMChain inside a SequentialChain
### System Info Langchain 0.0.214 Python 3.11.1 ### Who can help? @hwchase17 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers -...
https://github.com/langchain-ai/langchain/issues/6768
https://github.com/langchain-ai/langchain/pull/6769
488d2d5da95a2bacdca3d1623d862ac5ab28d59e
f307ca094b0d175d71ac424eba3d9f7ef5fc44f1
2023-06-26T16:09:11Z
python
2023-07-13T06:47:44Z
langchain/chains/sequential.py
"""Chain pipeline where the outputs of one step feed directly into next.""" from typing import Any, Dict, List, Optional from pydantic import Extra, root_validator from langchain.callbacks.manager import ( AsyncCallbackManagerForChainRun, CallbackManagerForChainRun, ) from langchain.chains.base import Chain f...