url
stringlengths 63
64
| repository_url
stringclasses 1
value | labels_url
stringlengths 77
78
| comments_url
stringlengths 72
73
| events_url
stringlengths 70
71
| html_url
stringlengths 51
54
| id
int64 1.73B
2.09B
| node_id
stringlengths 18
19
| number
int64 5.23k
16.2k
| title
stringlengths 1
385
| user
dict | labels
list | state
stringclasses 2
values | locked
bool 2
classes | assignee
dict | assignees
list | milestone
null | comments
int64 0
56
| created_at
timestamp[s] | updated_at
timestamp[s] | closed_at
timestamp[s] | author_association
stringclasses 3
values | active_lock_reason
null | body
stringlengths 1
55.4k
⌀ | reactions
dict | timeline_url
stringlengths 72
73
| performed_via_github_app
null | state_reason
stringclasses 3
values | draft
bool 2
classes | pull_request
dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/langchain-ai/langchain/issues/15232
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15232/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15232/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15232/events
|
https://github.com/langchain-ai/langchain/issues/15232
| 2,057,799,134
|
I_kwDOIPDwls56p4Xe
| 15,232
|
HuggingFace Chat Wrapper - issue with HuggingFaceHub
|
{
"login": "netranga",
"id": 22332131,
"node_id": "MDQ6VXNlcjIyMzMyMTMx",
"avatar_url": "https://avatars.githubusercontent.com/u/22332131?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/netranga",
"html_url": "https://github.com/netranga",
"followers_url": "https://api.github.com/users/netranga/followers",
"following_url": "https://api.github.com/users/netranga/following{/other_user}",
"gists_url": "https://api.github.com/users/netranga/gists{/gist_id}",
"starred_url": "https://api.github.com/users/netranga/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/netranga/subscriptions",
"organizations_url": "https://api.github.com/users/netranga/orgs",
"repos_url": "https://api.github.com/users/netranga/repos",
"events_url": "https://api.github.com/users/netranga/events{/privacy}",
"received_events_url": "https://api.github.com/users/netranga/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 3
| 2023-12-27T21:52:37
| 2023-12-27T22:02:49
| null |
NONE
| null |
### Issue with current documentation:
I am currently following the document to use a hugigngface LLM as a chat model: https://python.langchain.com/docs/integrations/chat/huggingface
I have setup my Huggingface API and am using Option 3 (HuggingFaceHub) to instantiate an LLM.
After running this line: chat_model._to_chat_prompt(messages)
I get the following error: ValueError: last message must be a HumanMessage
I am running the code the exactly the same as the documentation, including using the HuggingFaceH4/zephyr-7b-beta model.
Any help in resolving this issue is much appreciated.
### Idea or request for content:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15232/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15232/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15231
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15231/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15231/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15231/events
|
https://github.com/langchain-ai/langchain/pull/15231
| 2,057,770,780
|
PR_kwDOIPDwls5i2bQy
| 15,231
|
refactored `output_parsers`
|
{
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 3
| 2023-12-27T21:01:42
| 2024-01-02T17:44:01
| 2024-01-02T17:44:00
|
COLLABORATOR
| null |
Several output parsers belong to the `langchain_community` package.
- Created `langchain_community.output_parsers` namespace
- Moved several parsers to community package
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15231/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15231/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15231",
"html_url": "https://github.com/langchain-ai/langchain/pull/15231",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15231.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15231.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15230
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15230/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15230/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15230/events
|
https://github.com/langchain-ai/langchain/pull/15230
| 2,057,748,205
|
PR_kwDOIPDwls5i2Wcw
| 15,230
|
ModelIO revamp
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-27T20:23:58
| 2023-12-28T21:51:00
| 2023-12-28T21:50:59
|
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15230/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15230/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15230",
"html_url": "https://github.com/langchain-ai/langchain/pull/15230",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15230.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15230.patch",
"merged_at": "2023-12-28T21:50:59"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15229
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15229/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15229/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15229/events
|
https://github.com/langchain-ai/langchain/pull/15229
| 2,057,706,512
|
PR_kwDOIPDwls5i2Njp
| 15,229
|
Add .pick and .assign methods to Runnable
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6134259614,
"node_id": "LA_kwDOIPDwls8AAAABbaFfng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20lcel",
"name": "area: lcel",
"color": "38B1E8",
"default": false,
"description": ""
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 3
| 2023-12-27T19:24:00
| 2023-12-27T21:35:35
| 2023-12-27T21:35:34
|
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15229/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15229/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15229",
"html_url": "https://github.com/langchain-ai/langchain/pull/15229",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15229.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15229.patch",
"merged_at": "2023-12-27T21:35:34"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15228
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15228/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15228/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15228/events
|
https://github.com/langchain-ai/langchain/issues/15228
| 2,057,694,401
|
I_kwDOIPDwls56pezB
| 15,228
|
TypeError: _ChatSessionBase.send_message() got an unexpected keyword argument 'candidate_count'
|
{
"login": "dianz17",
"id": 62165241,
"node_id": "MDQ6VXNlcjYyMTY1MjQx",
"avatar_url": "https://avatars.githubusercontent.com/u/62165241?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dianz17",
"html_url": "https://github.com/dianz17",
"followers_url": "https://api.github.com/users/dianz17/followers",
"following_url": "https://api.github.com/users/dianz17/following{/other_user}",
"gists_url": "https://api.github.com/users/dianz17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dianz17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dianz17/subscriptions",
"organizations_url": "https://api.github.com/users/dianz17/orgs",
"repos_url": "https://api.github.com/users/dianz17/repos",
"events_url": "https://api.github.com/users/dianz17/events{/privacy}",
"received_events_url": "https://api.github.com/users/dianz17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-27T19:07:13
| 2023-12-27T19:12:44
| null |
NONE
| null |
### Issue you'd like to raise.
@dosu-bot Currently im experiencing an old bug that was supposed to be fixed patches ago.
```
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/flask/app.py", line 1455, in wsgi_app
response = self.full_dispatch_request()
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/flask/app.py", line 869, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/flask/app.py", line 867, in full_dispatch_request
rv = self.dispatch_request()
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/flask/app.py", line 852, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/functions_framework/__init__.py", line 134, in view_func
return function(request._get_current_object())
File "/workspace/main.py", line 109, in entry_point_http
faq_response = chain.invoke(inputs)
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 1510, in invoke
input = step.invoke(
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 160, in invoke
self.generate_prompt(
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 491, in generate_prompt
return self.generate(prompt_messages, stop=stop, callbacks=callbacks, **kwargs)
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 378, in generate
raise e
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 368, in generate
self._generate_with_cache(
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 524, in _generate_with_cache
return self._generate(
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/langchain/chat_models/vertexai.py", line 187, in _generate
response = chat.send_message(question.content, **msg_params)
TypeError: _ChatSessionBase.send_message() got an unexpected keyword argument 'candidate_count'
```
My current version is 0.0.348 and im trying to create a Cloud Function. Here is my code:
```
from google.cloud import bigquery, storage
from langchain.chains.conversation.memory import ConversationBufferWindowMemory
from langchain.chains.query_constructor.base import AttributeInfo
from langchain.chat_models import ChatVertexAI
from langchain.document_loaders import PyPDFLoader
from langchain.document_loaders.csv_loader import CSVLoader
from langchain.memory import ConversationSummaryBufferMemory
from langchain.schema.runnable import RunnablePassthrough, RunnableLambda
from operator import itemgetter
from langchain.schema.output_parser import StrOutputParser
from langchain.callbacks.tracers import ConsoleCallbackHandler
from langchain.embeddings import VertexAIEmbeddings
from langchain.llms import VertexAI
from langchain.prompts import PromptTemplate, ChatPromptTemplate
from langchain.retrievers import BM25Retriever, EnsembleRetriever, ContextualCompressionRetriever
from langchain.retrievers.merger_retriever import MergerRetriever
from langchain.document_transformers import EmbeddingsRedundantFilter
from langchain.retrievers.document_compressors import DocumentCompressorPipeline
from langchain.retrievers.document_compressors import LLMChainExtractor
from langchain.schema import Document
from langchain.schema import StrOutputParser
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.vectorstores import Chroma
import google.cloud.storage
from langchain.agents.format_scratchpad import format_log_to_str
from langchain.prompts import StringPromptTemplate
from typing import List, Union
from langchain.prompts import StringPromptTemplate
from langchain.schema import AgentAction, AgentFinish, OutputParserException
from langchain.vectorstores import MatchingEngine
import re
import io
import ipywidgets as widgets
import json
import langchain
import math
import os
import pandas as pd
import time
import logging
from faq_redpro_prompt import template_faq
from faq_redpro_fewshot import few_shot_faq
PROJECT_ID_ME = os.environ.get("PROJECT_ID_ME")
ME_REGION = os.environ.get("ME_REGION")
ME_BUCKET_FAQ = os.environ.get("ME_BUCKET_FAQ")
ME_INDEX_ID_FAQ = os.environ.get("ME_INDEX_ID_FAQ")
ME_INDEX_ENDPOINT_ID_FAQ = os.environ.get("ME_INDEX_ENDPOINT_ID_FAQ")
def entry_point_http(request):
request_json = request.get_json()
# Extraer la entrada del parámetro enviado por Dialogflow CX
user_query = request_json.get('sessionInfo', {}).get('parameters', {}).get('user_query')
#Modelos
llm = VertexAI(
model_name = "text-bison",
temperature = 0.1 #Prueba
)
chat = ChatVertexAI(
model_name = "chat-bison@001",
temperature = 0.4,
top_p = 0.8,
top_k = 40,
max_output_tokens = 500
)
embeddings = VertexAIEmbeddings(model_name="textembedding-gecko-multilingual@001")
me_faqs = MatchingEngine.from_components(
project_id=PROJECT_ID_ME,
region=ME_REGION,
gcs_bucket_name=ME_BUCKET_FAQ,
embedding=embeddings,
index_id=ME_INDEX_ID_FAQ,
endpoint_id=ME_INDEX_ENDPOINT_ID_FAQ,
)
me_retriever = me_faqs.as_retriever(
search_type="similarity",
search_kwargs={
"k": 2,
},
)
faq_prompt = PromptTemplate(
template=template_faq,
input_variables=["context", "question", "few_shot_faq"]
)
chain = (
RunnablePassthrough.assign(
context=itemgetter("question") | me_retriever,
question=itemgetter("question"),
few_shot_faq=itemgetter("few_shot_faq"),
)
| faq_prompt
| chat
| StrOutputParser()
)
inputs = {"question": user_query, "few_shot_faq": few_shot_faq}
faq_response = chain.invoke(inputs)
print(f'LangChain response: {faq_response}')
formatted_results = format_response(faq_response)
response["fulfillment_response"]["messages"][0]["text"]["text"][0] = formatted_results
return (response, 200, headers)
def format_response(results):
answer = results['answer']
sources = results.get('sources', '')
if sources != '':
source_uri = sources
else:
source_documents = results.get('source_documents', '')
if source_documents != '':
source_uri = results['source_documents'][0].metadata['source']
else:
source_uri = 'Não encontrei uma fonte para essa pergunta.'
formatted_response = f"{answer}\nSources: {source_uri}"
return formatted_response
```
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15228/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15228/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15227
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15227/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15227/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15227/events
|
https://github.com/langchain-ai/langchain/issues/15227
| 2,057,681,667
|
I_kwDOIPDwls56pbsD
| 15,227
|
Issue: issue with pdfplumber
|
{
"login": "deepak-habilelabs",
"id": 137885024,
"node_id": "U_kgDOCDf1YA",
"avatar_url": "https://avatars.githubusercontent.com/u/137885024?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/deepak-habilelabs",
"html_url": "https://github.com/deepak-habilelabs",
"followers_url": "https://api.github.com/users/deepak-habilelabs/followers",
"following_url": "https://api.github.com/users/deepak-habilelabs/following{/other_user}",
"gists_url": "https://api.github.com/users/deepak-habilelabs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/deepak-habilelabs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deepak-habilelabs/subscriptions",
"organizations_url": "https://api.github.com/users/deepak-habilelabs/orgs",
"repos_url": "https://api.github.com/users/deepak-habilelabs/repos",
"events_url": "https://api.github.com/users/deepak-habilelabs/events{/privacy}",
"received_events_url": "https://api.github.com/users/deepak-habilelabs/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false
| null |
[] | null | 6
| 2023-12-27T18:50:09
| 2023-12-28T06:42:13
| null |
NONE
| null |
### Issue you'd like to raise.
from langchain.document_loaders.parsers.pdf import PDFPlumberParser
def generate_embeddings(config: dict = None, urls = None, file_path = None, persist_directory=None):
if file_path:
parser = PDFPlumberParser()
data = parser.load(file_path)
processed_data = parser.process(data)
print(processed_data,"processed_data is-----------------llllllllllllllllllllllllllllll")
#below is the error i'm getting
data = parser.load(file_path)
AttributeError: 'PDFPlumberParser' object has no attribute 'load'
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15227/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15227/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15226
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15226/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15226/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15226/events
|
https://github.com/langchain-ai/langchain/pull/15226
| 2,057,675,477
|
PR_kwDOIPDwls5i2G6F
| 15,226
|
Implement nicer runnable seq constructor, Propagate name through Runn…
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-27T18:41:39
| 2023-12-27T19:24:33
| 2023-12-27T19:24:32
|
COLLABORATOR
| null |
…ableBinding
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15226/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15226/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15226",
"html_url": "https://github.com/langchain-ai/langchain/pull/15226",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15226.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15226.patch",
"merged_at": "2023-12-27T19:24:32"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15223
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15223/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15223/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15223/events
|
https://github.com/langchain-ai/langchain/pull/15223
| 2,057,606,755
|
PR_kwDOIPDwls5i14Jy
| 15,223
|
core + community: Added ANN override to VectorStore [new feature]
|
{
"login": "devinbost",
"id": 7418031,
"node_id": "MDQ6VXNlcjc0MTgwMzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/7418031?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/devinbost",
"html_url": "https://github.com/devinbost",
"followers_url": "https://api.github.com/users/devinbost/followers",
"following_url": "https://api.github.com/users/devinbost/following{/other_user}",
"gists_url": "https://api.github.com/users/devinbost/gists{/gist_id}",
"starred_url": "https://api.github.com/users/devinbost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devinbost/subscriptions",
"organizations_url": "https://api.github.com/users/devinbost/orgs",
"repos_url": "https://api.github.com/users/devinbost/repos",
"events_url": "https://api.github.com/users/devinbost/events{/privacy}",
"received_events_url": "https://api.github.com/users/devinbost/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 4
| 2023-12-27T17:14:55
| 2023-12-28T13:36:58
| 2023-12-28T13:33:54
|
NONE
| null |
Addresses: https://github.com/langchain-ai/langchain/issues/15221
(Most of the context of this PR exists on that issue.)
Adds this method to VectorStore:
```
@abstractmethod
def similarity_search_with_override(
self, query: str, search_override: str, k: int = 4, **kwargs: Any
) -> List[Document]:
"""Return docs most similar to query."""
```
Updates _get_relevant_documents() on VectorStore to include search_override, like this:
```
elif self.search_type == "similarity_with_override":
docs = self.vectorstore.similarity_search_with_override(query, self.search_override, **self.search_kwargs)
```
Also adds the corresponding method to AstraDB (as an example):
```
def similarity_search_with_override(
self,
query: str,
search_override: str,
k: int = 4,
filter: Optional[Dict[str, str]] = None,
**kwargs: Any,
) -> List[Document]:
embedding_vector = self.embedding.embed_query(search_override)
return self.similarity_search_by_vector(
embedding_vector,
k,
filter=filter,
)
```
When I try to run the tests from root, I get:
```
% poetry install --with test
Installing dependencies from lock file
No dependencies to install or update
% make test
make: *** No rule to make target `test'. Stop.
```
When I try to run the tests from core, I get:
```
% make test
poetry run pytest tests/unit_tests/
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --snapshot-warn-unused
inifile: /Users/devin.bost/proj/repos/langchain/libs/core/pyproject.toml
rootdir: /Users/devin.bost/proj/repos/langchain/libs/core
make: *** [test] Error 4
```
I tried the steps in the [guide](https://python.langchain.com/docs/contributing/testing), but I'm still not getting tests to run. Some guidance would be much appreciated.
I'd also appreciate some guidance on how I might test this new functionality in LCEL.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15223/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15223/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15223",
"html_url": "https://github.com/langchain-ai/langchain/pull/15223",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15223.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15223.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15222
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15222/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15222/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15222/events
|
https://github.com/langchain-ai/langchain/issues/15222
| 2,057,600,249
|
I_kwDOIPDwls56pHz5
| 15,222
|
support gemini on vertexai
|
{
"login": "arian81",
"id": 35879206,
"node_id": "MDQ6VXNlcjM1ODc5MjA2",
"avatar_url": "https://avatars.githubusercontent.com/u/35879206?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arian81",
"html_url": "https://github.com/arian81",
"followers_url": "https://api.github.com/users/arian81/followers",
"following_url": "https://api.github.com/users/arian81/following{/other_user}",
"gists_url": "https://api.github.com/users/arian81/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arian81/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arian81/subscriptions",
"organizations_url": "https://api.github.com/users/arian81/orgs",
"repos_url": "https://api.github.com/users/arian81/repos",
"events_url": "https://api.github.com/users/arian81/events{/privacy}",
"received_events_url": "https://api.github.com/users/arian81/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 9
| 2023-12-27T17:07:05
| 2024-01-17T12:43:47
| null |
NONE
| null |
### Feature request
As per documentation there's a package for Gemini support but this only works for Gemini API and doesn't work with Vertexai.
https://python.langchain.com/docs/integrations/platforms/google
However in the vertexai docs gemini is mentioned (for some reason gemini ultra ? ) even though when tried with geimini-pro (gemini-ultra is not out yet unless Langchain folks have connections at Google :) ) it's throwing an error indicating that model doesn't exist.
https://python.langchain.com/docs/integrations/llms/google_vertex_ai_palm#multimodality
Unknown model publishers/google/models/gemini-pro-vision; {'gs://google-cloud-aiplatform/schema/predict/instance/chat_generation_1.0.0.yaml': <class 'vertexai.language_models.ChatModel'>} (type=value_error)
### Motivation
gemini has been out for a while and seemingly should be supported by langchain as they already made a whole package for it.
### Your contribution
I would be willing to make a pr but I'm not even sure what's the issue since the docs supposedly mention that it should be already supported.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15222/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15222/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15221
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15221/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15221/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15221/events
|
https://github.com/langchain-ai/langchain/issues/15221
| 2,057,589,837
|
I_kwDOIPDwls56pFRN
| 15,221
|
Enable manual override of vector search query for controlled RAG
|
{
"login": "devinbost",
"id": 7418031,
"node_id": "MDQ6VXNlcjc0MTgwMzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/7418031?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/devinbost",
"html_url": "https://github.com/devinbost",
"followers_url": "https://api.github.com/users/devinbost/followers",
"following_url": "https://api.github.com/users/devinbost/following{/other_user}",
"gists_url": "https://api.github.com/users/devinbost/gists{/gist_id}",
"starred_url": "https://api.github.com/users/devinbost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devinbost/subscriptions",
"organizations_url": "https://api.github.com/users/devinbost/orgs",
"repos_url": "https://api.github.com/users/devinbost/repos",
"events_url": "https://api.github.com/users/devinbost/events{/privacy}",
"received_events_url": "https://api.github.com/users/devinbost/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-27T16:54:54
| 2023-12-27T16:57:11
| null |
NONE
| null |
### Feature request
I need a mechanism to allow more control over the ANN search performed for a given RAG chain. Consider the initial example:
```
retriever = vectorstore.as_retriever()
template = """You're a helpful assistant who is great at code generation. Don't give me any explanation or summary. I'll give you some examples that may or may not be relevant, and I want you to use the examples to write code that solves the provided problem. Return only the code that solves the problem.
PROBLEM:
{problem}
EXAMPLES:
{context}
ANSWER:
"""
prompt = ChatPromptTemplate.from_template(template)
model = ChatOpenAI()
chain = (
{"context": retriever, "problem": RunnablePassthrough()}
| prompt
| model
| StrOutputParser()
)
chain.invoke("Generate an example Python method that uses LCEL to write a CQL query")
```
This approach assumes that the question will be used for creating the embedding. However, consider something like this:
```
retriever = vectorstore.as_retriever(ann_query="LCEL, AstraDB, CQL")
```
In this situation, when the retriever is invoked to embed the query, instead of performing vector search on the embedding of the very wordy
> "Generate an example Python method that uses LCEL to write a CQL query"
I want vector search to perform ANN on:
> "LCEL, AstraDB, CQL"
so that I have a greater likelihood of having the right docs stuffed into the prompt for the LLM to solve the problem, which was:
> Generate an example Python method that uses LCEL to write a CQL query
### Motivation
RAG results can be poor when the human input is very wordy or contains more info (for the LLM) than we want the vector store to search for. We need a mechanism to allow separation between the vector search query and the LLM query.
### Your contribution
I will create a PR.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15221/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15221/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15220
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15220/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15220/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15220/events
|
https://github.com/langchain-ai/langchain/issues/15220
| 2,057,579,438
|
I_kwDOIPDwls56pCuu
| 15,220
|
Langchain agent not executing properly in Celery worker running as Docker container
|
{
"login": "vikasr111",
"id": 5301813,
"node_id": "MDQ6VXNlcjUzMDE4MTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/5301813?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vikasr111",
"html_url": "https://github.com/vikasr111",
"followers_url": "https://api.github.com/users/vikasr111/followers",
"following_url": "https://api.github.com/users/vikasr111/following{/other_user}",
"gists_url": "https://api.github.com/users/vikasr111/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vikasr111/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vikasr111/subscriptions",
"organizations_url": "https://api.github.com/users/vikasr111/orgs",
"repos_url": "https://api.github.com/users/vikasr111/repos",
"events_url": "https://api.github.com/users/vikasr111/events{/privacy}",
"received_events_url": "https://api.github.com/users/vikasr111/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false
| null |
[] | null | 5
| 2023-12-27T16:42:21
| 2024-01-02T19:26:40
| 2024-01-02T19:26:40
|
NONE
| null |
### System Info
Langchain version: 0.0.341
OpenAI version: 1.3.5
Model: gpt-4-1106-preview
Python version:3.10.13
Platform: Celery worker in Docker Container
### Who can help?
@eyurtsev @hwchase17 @ag
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I am working on implementing LangChain Agents in my Python project I am running this project using docker compose. In my project I am using Celery worker and have multiple worker services which executes from the queue. The entire setup is working fine and all celery tasks are executed as expected.
One of these workers in agent worker where I have configured LangChain Agent. I have created a function where I am loading tools, initializing agent and passing agent input. Here's the full code of my **agent module**:
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15220/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15220/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15219
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15219/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15219/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15219/events
|
https://github.com/langchain-ai/langchain/pull/15219
| 2,057,569,678
|
PR_kwDOIPDwls5i1wKa
| 15,219
|
Add `rag-conversation-cohere` template
|
{
"login": "samuelpath",
"id": 6030745,
"node_id": "MDQ6VXNlcjYwMzA3NDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/6030745?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/samuelpath",
"html_url": "https://github.com/samuelpath",
"followers_url": "https://api.github.com/users/samuelpath/followers",
"following_url": "https://api.github.com/users/samuelpath/following{/other_user}",
"gists_url": "https://api.github.com/users/samuelpath/gists{/gist_id}",
"starred_url": "https://api.github.com/users/samuelpath/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/samuelpath/subscriptions",
"organizations_url": "https://api.github.com/users/samuelpath/orgs",
"repos_url": "https://api.github.com/users/samuelpath/repos",
"events_url": "https://api.github.com/users/samuelpath/events{/privacy}",
"received_events_url": "https://api.github.com/users/samuelpath/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6154420538,
"node_id": "LA_kwDOIPDwls8AAAABbtUBOg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/template",
"name": "template",
"color": "145FB1",
"default": false,
"description": ""
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
open
| false
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 4
| 2023-12-27T16:30:50
| 2024-01-08T21:16:01
| null |
CONTRIBUTOR
| null |
- **Description:** Following a private discussion with @rlancemartin and @SandraKublik, this PR adds a new template for RAG Conversation using Cohere Embed v3 and Cohere Chat.
This template is very similar to the [Rag Conversation template](https://github.com/langchain-ai/langchain/tree/master/templates/rag-conversation) which uses OpenAI's API instead for the embeddings and chat endpoints.
I have tested it locally and it works as expected.
If this PR gets merged, we may want to rename the Rag Conversation template to specify that OpenAI is used for the embeddings and chat (for instance to something like: `rag-conversation-openai`).
- **Issue:** N/A
- **Dependencies:** No dependencies added for this change.
- **Twitter handle:** [@smlpth](https://twitter.com/smlpth)
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15219/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15219/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15219",
"html_url": "https://github.com/langchain-ai/langchain/pull/15219",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15219.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15219.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15218
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15218/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15218/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15218/events
|
https://github.com/langchain-ai/langchain/pull/15218
| 2,057,552,962
|
PR_kwDOIPDwls5i1sXh
| 15,218
|
google-vertexai: added langchain_google_vertexai package
|
{
"login": "lkuligin",
"id": 11026406,
"node_id": "MDQ6VXNlcjExMDI2NDA2",
"avatar_url": "https://avatars.githubusercontent.com/u/11026406?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lkuligin",
"html_url": "https://github.com/lkuligin",
"followers_url": "https://api.github.com/users/lkuligin/followers",
"following_url": "https://api.github.com/users/lkuligin/following{/other_user}",
"gists_url": "https://api.github.com/users/lkuligin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lkuligin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lkuligin/subscriptions",
"organizations_url": "https://api.github.com/users/lkuligin/orgs",
"repos_url": "https://api.github.com/users/lkuligin/repos",
"events_url": "https://api.github.com/users/lkuligin/events{/privacy}",
"received_events_url": "https://api.github.com/users/lkuligin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
},
{
"id": 6348691034,
"node_id": "LA_kwDOIPDwls8AAAABemlWWg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner",
"name": "partner",
"color": "ededed",
"default": false,
"description": null
}
] |
closed
| false
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1
| 2023-12-27T16:19:24
| 2024-01-05T18:44:11
| 2024-01-05T18:44:11
|
CONTRIBUTOR
| null |
added langchain_google_vertexai package
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15218/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15218/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15218",
"html_url": "https://github.com/langchain-ai/langchain/pull/15218",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15218.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15218.patch",
"merged_at": "2024-01-05T18:44:11"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15216
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15216/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15216/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15216/events
|
https://github.com/langchain-ai/langchain/pull/15216
| 2,057,478,558
|
PR_kwDOIPDwls5i1cFu
| 15,216
|
Add `rag-pinecone-cohere-embed-rerank` template
|
{
"login": "samuelpath",
"id": 6030745,
"node_id": "MDQ6VXNlcjYwMzA3NDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/6030745?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/samuelpath",
"html_url": "https://github.com/samuelpath",
"followers_url": "https://api.github.com/users/samuelpath/followers",
"following_url": "https://api.github.com/users/samuelpath/following{/other_user}",
"gists_url": "https://api.github.com/users/samuelpath/gists{/gist_id}",
"starred_url": "https://api.github.com/users/samuelpath/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/samuelpath/subscriptions",
"organizations_url": "https://api.github.com/users/samuelpath/orgs",
"repos_url": "https://api.github.com/users/samuelpath/repos",
"events_url": "https://api.github.com/users/samuelpath/events{/privacy}",
"received_events_url": "https://api.github.com/users/samuelpath/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
},
{
"id": 6154420538,
"node_id": "LA_kwDOIPDwls8AAAABbtUBOg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/template",
"name": "template",
"color": "145FB1",
"default": false,
"description": ""
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
open
| false
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1
| 2023-12-27T15:05:03
| 2024-01-02T12:35:51
| null |
CONTRIBUTOR
| null |
- **Description:** Following a private discussion with @rlancemartin and @SandraKublik, this PR adds a new template using:
- Cohere Embed v3
- Cohere Chat
- Cohere Re-Rank
This template is very similar to the [Rag Pinecone Rerank template](https://github.com/langchain-ai/langchain/blob/master/templates/rag-pinecone-rerank) which uses OpenAI's API instead for the embeddings and chat endpoints.
I have tested it locally and it works as expected.
If this PR gets merged, we may want to rename the Rag Pinecone Rerank template to specify that OpenAI is used for the embeddings and chat (for instance to something like: `rag-pinecone-openai-embed-rerank`).
- **Issue:** N/A
- **Dependencies:** No dependencies added for this change.
- **Twitter handle:** [@smlpth](https://twitter.com/smlpth)
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15216/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15216/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15216",
"html_url": "https://github.com/langchain-ai/langchain/pull/15216",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15216.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15216.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15214
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15214/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15214/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15214/events
|
https://github.com/langchain-ai/langchain/issues/15214
| 2,057,373,883
|
I_kwDOIPDwls56oQi7
| 15,214
|
how to create a custom chat model
|
{
"login": "FrancescoSaverioZuppichini",
"id": 15908060,
"node_id": "MDQ6VXNlcjE1OTA4MDYw",
"avatar_url": "https://avatars.githubusercontent.com/u/15908060?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/FrancescoSaverioZuppichini",
"html_url": "https://github.com/FrancescoSaverioZuppichini",
"followers_url": "https://api.github.com/users/FrancescoSaverioZuppichini/followers",
"following_url": "https://api.github.com/users/FrancescoSaverioZuppichini/following{/other_user}",
"gists_url": "https://api.github.com/users/FrancescoSaverioZuppichini/gists{/gist_id}",
"starred_url": "https://api.github.com/users/FrancescoSaverioZuppichini/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FrancescoSaverioZuppichini/subscriptions",
"organizations_url": "https://api.github.com/users/FrancescoSaverioZuppichini/orgs",
"repos_url": "https://api.github.com/users/FrancescoSaverioZuppichini/repos",
"events_url": "https://api.github.com/users/FrancescoSaverioZuppichini/events{/privacy}",
"received_events_url": "https://api.github.com/users/FrancescoSaverioZuppichini/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 2
| 2023-12-27T13:27:25
| 2023-12-27T13:29:31
| null |
NONE
| null |
### Issue with current documentation:
Like title, haven't found anything in the doc - docubot please help
### Idea or request for content:
having a proper document could help
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15214/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15214/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15213
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15213/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15213/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15213/events
|
https://github.com/langchain-ai/langchain/issues/15213
| 2,057,338,192
|
I_kwDOIPDwls56oH1Q
| 15,213
|
How to query with new variables in LCEL mode?
|
{
"login": "xiechengmude",
"id": 128944251,
"node_id": "U_kgDOB6-Iew",
"avatar_url": "https://avatars.githubusercontent.com/u/128944251?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xiechengmude",
"html_url": "https://github.com/xiechengmude",
"followers_url": "https://api.github.com/users/xiechengmude/followers",
"following_url": "https://api.github.com/users/xiechengmude/following{/other_user}",
"gists_url": "https://api.github.com/users/xiechengmude/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xiechengmude/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xiechengmude/subscriptions",
"organizations_url": "https://api.github.com/users/xiechengmude/orgs",
"repos_url": "https://api.github.com/users/xiechengmude/repos",
"events_url": "https://api.github.com/users/xiechengmude/events{/privacy}",
"received_events_url": "https://api.github.com/users/xiechengmude/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 6134259614,
"node_id": "LA_kwDOIPDwls8AAAABbaFfng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20lcel",
"name": "area: lcel",
"color": "38B1E8",
"default": false,
"description": ""
}
] |
open
| false
| null |
[] | null | 3
| 2023-12-27T12:51:07
| 2023-12-27T15:29:26
| null |
NONE
| null |
### System Info

I am plannign to add new param like "affeciton"
How could I set the query databody to fill up the params here?( Langserve setup !)

### Who can help?
_No response_
### 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 Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
How to handle the input variables in LCEL mode?
### Expected behavior
get the right place I put in when I new a variables in the prompt.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15213/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15213/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15212
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15212/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15212/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15212/events
|
https://github.com/langchain-ai/langchain/pull/15212
| 2,057,330,403
|
PR_kwDOIPDwls5i074W
| 15,212
|
community: avoid KeyError when language not in LANGUAGE_SEGMENTERS
|
{
"login": "dzlab",
"id": 1645304,
"node_id": "MDQ6VXNlcjE2NDUzMDQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/1645304?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dzlab",
"html_url": "https://github.com/dzlab",
"followers_url": "https://api.github.com/users/dzlab/followers",
"following_url": "https://api.github.com/users/dzlab/following{/other_user}",
"gists_url": "https://api.github.com/users/dzlab/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dzlab/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dzlab/subscriptions",
"organizations_url": "https://api.github.com/users/dzlab/orgs",
"repos_url": "https://api.github.com/users/dzlab/repos",
"events_url": "https://api.github.com/users/dzlab/events{/privacy}",
"received_events_url": "https://api.github.com/users/dzlab/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
open
| false
| null |
[] | null | 5
| 2023-12-27T12:42:43
| 2024-01-05T23:25:28
| null |
NONE
| null |
**Description:**
Handle unsupported languages in same way as when none is provided
**Issue:**
The following line will throw a KeyError if the language is not supported.
```python
self.Segmenter = LANGUAGE_SEGMENTERS[language]
```
E.g. when using `Language.CPP` we would get `KeyError: <Language.CPP: 'cpp'>`
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15212/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15212/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15212",
"html_url": "https://github.com/langchain-ai/langchain/pull/15212",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15212.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15212.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15211
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15211/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15211/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15211/events
|
https://github.com/langchain-ai/langchain/pull/15211
| 2,057,278,794
|
PR_kwDOIPDwls5i0wwU
| 15,211
|
community: Redis chat history with token limit
|
{
"login": "thathan",
"id": 23573672,
"node_id": "MDQ6VXNlcjIzNTczNjcy",
"avatar_url": "https://avatars.githubusercontent.com/u/23573672?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thathan",
"html_url": "https://github.com/thathan",
"followers_url": "https://api.github.com/users/thathan/followers",
"following_url": "https://api.github.com/users/thathan/following{/other_user}",
"gists_url": "https://api.github.com/users/thathan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thathan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thathan/subscriptions",
"organizations_url": "https://api.github.com/users/thathan/orgs",
"repos_url": "https://api.github.com/users/thathan/repos",
"events_url": "https://api.github.com/users/thathan/events{/privacy}",
"received_events_url": "https://api.github.com/users/thathan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 5955630415,
"node_id": "LA_kwDOIPDwls8AAAABYvu1Tw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis",
"name": "integration: redis",
"color": "F9D0C4",
"default": false,
"description": "Any integration that uses Redis"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
open
| false
| null |
[] | null | 6
| 2023-12-27T11:47:26
| 2024-01-04T15:18:18
| null |
NONE
| null |
- **Description:** added new class for redis chat message history with a token limit
- **Dependencies:** None
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15211/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15211/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15211",
"html_url": "https://github.com/langchain-ai/langchain/pull/15211",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15211.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15211.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15210
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15210/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15210/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15210/events
|
https://github.com/langchain-ai/langchain/issues/15210
| 2,057,277,681
|
I_kwDOIPDwls56n5Dx
| 15,210
|
Error using ConversationalRetrievalChain.from_llm: "document_variable_name context was not found in llm_chain input_variables: [] (type=value_error)"
|
{
"login": "polooner",
"id": 114031148,
"node_id": "U_kgDOBsv6LA",
"avatar_url": "https://avatars.githubusercontent.com/u/114031148?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/polooner",
"html_url": "https://github.com/polooner",
"followers_url": "https://api.github.com/users/polooner/followers",
"following_url": "https://api.github.com/users/polooner/following{/other_user}",
"gists_url": "https://api.github.com/users/polooner/gists{/gist_id}",
"starred_url": "https://api.github.com/users/polooner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/polooner/subscriptions",
"organizations_url": "https://api.github.com/users/polooner/orgs",
"repos_url": "https://api.github.com/users/polooner/repos",
"events_url": "https://api.github.com/users/polooner/events{/privacy}",
"received_events_url": "https://api.github.com/users/polooner/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-27T11:46:08
| 2023-12-27T11:55:50
| null |
NONE
| null |
### System Info
MacOS, M1 Pro
### Who can help?
@hwchase17 @agola11
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [X] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Run the following code:
```
import os
from dotenv import load_dotenv
from langchain.chains import ConversationalRetrievalChain
from langchain.prompts.chat import (
ChatPromptTemplate,
HumanMessagePromptTemplate,
SystemMessagePromptTemplate,
)
from langchain.chat_models import ChatOllama
from langchain.vectorstores import FAISS
from langchain.document_loaders import PyPDFLoader
from langchain.embeddings.openai import OpenAIEmbeddings
load_dotenv()
messages = [
SystemMessagePromptTemplate.from_template(
"You are a truthful, accurate AI agent that responds to the user's questions, given an AI paper by Apple."
),
HumanMessagePromptTemplate.from_template("What is the paper about, in summary?"),
]
qa_prompt = ChatPromptTemplate.from_messages(messages)
chat_model = ChatOllama(
model="mistral",
)
loader = PyPDFLoader("./llm_in_a_flash_apple.pdf")
pages = loader.load_and_split()
embeddings = OpenAIEmbeddings(api_key=os.getenv("OPENAI_API_KEY"))
print(pages[0])
db = None
if not os.path.exists("./faiss_index"):
db = FAISS.from_documents(pages, embeddings)
db.save_local("./faiss_index")
else:
db = FAISS.load_local("faiss_index", embeddings)
query = "What is the paper about?"
docs = db.similarity_search_with_score(query)
print(docs[0])
ConversationalRetrievalChain.from_llm(
llm=chat_model,
retriever=db.as_retriever(search_type="similarity", search_kwargs={"k": 0.8}),
verbose=True,
combine_docs_chain_kwargs={"prompt": qa_prompt},
return_source_documents=True,
)
```
additional files here: https://github.com/polooner/chatpdf/blob/main/main.py
### Expected behavior
An answer from the Chat Model
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15210/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15210/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15209
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15209/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15209/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15209/events
|
https://github.com/langchain-ai/langchain/pull/15209
| 2,057,237,873
|
PR_kwDOIPDwls5i0nrp
| 15,209
|
Add missing comment char "#" before Load in chain.py for the rag-pinecone-rerank template
|
{
"login": "samuelpath",
"id": 6030745,
"node_id": "MDQ6VXNlcjYwMzA3NDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/6030745?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/samuelpath",
"html_url": "https://github.com/samuelpath",
"followers_url": "https://api.github.com/users/samuelpath/followers",
"following_url": "https://api.github.com/users/samuelpath/following{/other_user}",
"gists_url": "https://api.github.com/users/samuelpath/gists{/gist_id}",
"starred_url": "https://api.github.com/users/samuelpath/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/samuelpath/subscriptions",
"organizations_url": "https://api.github.com/users/samuelpath/orgs",
"repos_url": "https://api.github.com/users/samuelpath/repos",
"events_url": "https://api.github.com/users/samuelpath/events{/privacy}",
"received_events_url": "https://api.github.com/users/samuelpath/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
},
{
"id": 6154420538,
"node_id": "LA_kwDOIPDwls8AAAABbtUBOg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/template",
"name": "template",
"color": "145FB1",
"default": false,
"description": ""
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1
| 2023-12-27T11:08:55
| 2024-01-01T22:01:07
| 2024-01-01T22:01:07
|
CONTRIBUTOR
| null |
Without this additional `#`, one needs to add it manually after uncommenting the section.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15209/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15209/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15209",
"html_url": "https://github.com/langchain-ai/langchain/pull/15209",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15209.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15209.patch",
"merged_at": "2024-01-01T22:01:07"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15207
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15207/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15207/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15207/events
|
https://github.com/langchain-ai/langchain/pull/15207
| 2,057,191,617
|
PR_kwDOIPDwls5i0djV
| 15,207
|
community: Fix Baichuan Chat.
|
{
"login": "baichuan-assistant",
"id": 139942740,
"node_id": "U_kgDOCFdbVA",
"avatar_url": "https://avatars.githubusercontent.com/u/139942740?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baichuan-assistant",
"html_url": "https://github.com/baichuan-assistant",
"followers_url": "https://api.github.com/users/baichuan-assistant/followers",
"following_url": "https://api.github.com/users/baichuan-assistant/following{/other_user}",
"gists_url": "https://api.github.com/users/baichuan-assistant/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baichuan-assistant/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baichuan-assistant/subscriptions",
"organizations_url": "https://api.github.com/users/baichuan-assistant/orgs",
"repos_url": "https://api.github.com/users/baichuan-assistant/repos",
"events_url": "https://api.github.com/users/baichuan-assistant/events{/privacy}",
"received_events_url": "https://api.github.com/users/baichuan-assistant/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
open
| false
| null |
[] | null | 7
| 2023-12-27T10:22:39
| 2024-01-11T04:09:55
| null |
NONE
| null |
- **Description:** Baichuan Chat (with both Baichuan-Turbo and Baichuan-Turbo-192K models) has updated their APIs. There are breaking changes. For example, BAICHUAN_SECRET_KEY is removed in the latest API but is still required in Langchain. Baichuan's Langchain integration needs to be updated to the latest version.
- **Issue:** #15206
- **Dependencies:** None,
- **Twitter handle:** None
@hwchase17.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15207/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15207/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15207",
"html_url": "https://github.com/langchain-ai/langchain/pull/15207",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15207.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15207.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15206
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15206/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15206/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15206/events
|
https://github.com/langchain-ai/langchain/issues/15206
| 2,057,190,266
|
I_kwDOIPDwls56njt6
| 15,206
|
Fix Baichuan's integration and introduce Baichuan-Turbo-192K API.
|
{
"login": "baichuan-assistant",
"id": 139942740,
"node_id": "U_kgDOCFdbVA",
"avatar_url": "https://avatars.githubusercontent.com/u/139942740?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baichuan-assistant",
"html_url": "https://github.com/baichuan-assistant",
"followers_url": "https://api.github.com/users/baichuan-assistant/followers",
"following_url": "https://api.github.com/users/baichuan-assistant/following{/other_user}",
"gists_url": "https://api.github.com/users/baichuan-assistant/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baichuan-assistant/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baichuan-assistant/subscriptions",
"organizations_url": "https://api.github.com/users/baichuan-assistant/orgs",
"repos_url": "https://api.github.com/users/baichuan-assistant/repos",
"events_url": "https://api.github.com/users/baichuan-assistant/events{/privacy}",
"received_events_url": "https://api.github.com/users/baichuan-assistant/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-27T10:21:21
| 2023-12-27T10:29:44
| null |
NONE
| null |
### System Info
Baichuan Chat (with both Baichuan-Turbo and Baichuan-Turbo-192K models) has updated their APIs. There are breaking changes. For example, BAICHUAN_SECRET_KEY is removed in the latest API but is still required in Langchain. Baichuan's Langchain integration needs to be updated to the latest version.
Also we have released out new Baichuan-Turbo-192K API. We are adding support for this.
### 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
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
https://python.langchain.com/docs/integrations/chat/baichuan
SECRET_KEY has been deprecated.
### Expected behavior
Baichuan Chat works normally.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15206/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15206/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15205
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15205/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15205/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15205/events
|
https://github.com/langchain-ai/langchain/issues/15205
| 2,057,189,374
|
I_kwDOIPDwls56njf-
| 15,205
|
Issue: Streaming Response contains the rephrased question in ConversationalRetrievalChain
|
{
"login": "summer1704",
"id": 48026561,
"node_id": "MDQ6VXNlcjQ4MDI2NTYx",
"avatar_url": "https://avatars.githubusercontent.com/u/48026561?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/summer1704",
"html_url": "https://github.com/summer1704",
"followers_url": "https://api.github.com/users/summer1704/followers",
"following_url": "https://api.github.com/users/summer1704/following{/other_user}",
"gists_url": "https://api.github.com/users/summer1704/gists{/gist_id}",
"starred_url": "https://api.github.com/users/summer1704/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/summer1704/subscriptions",
"organizations_url": "https://api.github.com/users/summer1704/orgs",
"repos_url": "https://api.github.com/users/summer1704/repos",
"events_url": "https://api.github.com/users/summer1704/events{/privacy}",
"received_events_url": "https://api.github.com/users/summer1704/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 3
| 2023-12-27T10:20:47
| 2023-12-27T10:59:28
| null |
NONE
| null |
### Issue you'd like to raise.
I am using ConversationalRetrievalChain
with a callback handler for streaming responses back.
> qa_chain =ConversationalRetrievalChain.from_llm(
llm=chat,
retriever=MyVectorStoreRetriever(
vectorstore=vectordb,
search_type="similarity_score_threshold",
search_kwargs={"score_threshold": SIMILARITY_THRESHOLD, "k": 1},
),
return_source_documents=True,
rephrase_question=False,
return_generated_question=False,
)
> response = qa_chain(
{
"question": user_input,
"chat_history": chat_history,
},
callbacks=[stream_handler],
)
```
class StreamHandler(BaseCallbackHandler):
def __init__(self):
self.text = ""
def on_llm_new_token(self, token: str, **kwargs: Any):
# Initialize old_text
old_text = self.text
print("old text ", old_text)
# Check if the token is not part of the prompts before adding it to the queue
print("token is", token)
if token is not None and token != "":
self.text += token
# Calculate the new content since the last emission
new_content = self.text[len(old_text) :]
socketio.emit("update_response", {"response": new_content})
```
I have provided the value of rephrase_question and return_generated_question False.
Even after that the streaming response contains the rephrased question.
But the final response from the LLM does not contain this rephrased question.
what could be the reason, please provide an appropriate solution.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15205/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15205/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15204
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15204/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15204/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15204/events
|
https://github.com/langchain-ai/langchain/issues/15204
| 2,057,179,711
|
I_kwDOIPDwls56nhI_
| 15,204
|
Pydantic forward ref issue when creating using LlamaCpp with grammar
|
{
"login": "DavideWalder",
"id": 58290976,
"node_id": "MDQ6VXNlcjU4MjkwOTc2",
"avatar_url": "https://avatars.githubusercontent.com/u/58290976?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DavideWalder",
"html_url": "https://github.com/DavideWalder",
"followers_url": "https://api.github.com/users/DavideWalder/followers",
"following_url": "https://api.github.com/users/DavideWalder/following{/other_user}",
"gists_url": "https://api.github.com/users/DavideWalder/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DavideWalder/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DavideWalder/subscriptions",
"organizations_url": "https://api.github.com/users/DavideWalder/orgs",
"repos_url": "https://api.github.com/users/DavideWalder/repos",
"events_url": "https://api.github.com/users/DavideWalder/events{/privacy}",
"received_events_url": "https://api.github.com/users/DavideWalder/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-27T10:11:11
| 2023-12-27T10:13:28
| null |
NONE
| null |
### System Info
OS: MacOS Sonoma
Python: 3.11.6
LangChain: 0.0.352
llama-cpp-python = 0.2.25
pydantic: 1.10.13 (I know that it is not the latest version, but version 1 is still officially supported)
### Who can help?
@hwchase17
@agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
When trying to use LlamaCpp in conjunction with grammar, I get an error from pydantic. The following code snipped was adapted from the [docs](https://python.langchain.com/docs/integrations/llms/llamacpp#grammars): so that a `LlamaGrammar` is passed, instead of the path to the grammar file.
```python
from langchain.callbacks.manager import CallbackManager
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain_community.llms.llamacpp import LlamaCpp
from llama_cpp.llama_grammar import LlamaGrammar
from pydantic import BaseModel
class SomeSchema(BaseModel):
some_field: str
LlamaCpp(
model_path="some model",
callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]),
verbose=True,
grammar=LlamaGrammar.from_json_schema(SomeSchema.schema_json()),
)
# Fails with:
# pydantic.errors.ConfigError: field "grammar" not yet prepared so type is still a ForwardRef, you might need to call LlamaCpp.update_forward_refs().
```
The following works though (and the grammar object is used properly:
```python
from langchain.callbacks.manager import CallbackManager
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain_community.llms.llamacpp import LlamaCpp
from llama_cpp.llama_grammar import LlamaGrammar
from pydantic import BaseModel
class SomeSchema(BaseModel):
some_field: str
model = LlamaCpp(
model_path="some model",
callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]),
verbose=True,
)
model.grammar = LlamaGrammar.from_json_schema(SomeSchema.schema_json())
```
### Expected behavior
It should be possible to pass a `LlamaGrammar` object in the `__init__` of `LlamaCpp`, as per its [definition](https://github.com/langchain-ai/langchain/blob/f36ef0739dbb548cabdb4453e6819fc3d826414f/libs/community/langchain_community/llms/llamacpp.py#L129)
I had a quick look at the pydantic [documentation regarding this problem](https://docs.pydantic.dev/1.10/usage/postponed_annotations/), but I couldn't find the postponed annotation in question.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15204/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15204/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15203
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15203/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15203/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15203/events
|
https://github.com/langchain-ai/langchain/issues/15203
| 2,057,154,943
|
I_kwDOIPDwls56nbF_
| 15,203
|
Issue: Identical Content in Two Files
|
{
"login": "Fei-Wang",
"id": 11441526,
"node_id": "MDQ6VXNlcjExNDQxNTI2",
"avatar_url": "https://avatars.githubusercontent.com/u/11441526?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Fei-Wang",
"html_url": "https://github.com/Fei-Wang",
"followers_url": "https://api.github.com/users/Fei-Wang/followers",
"following_url": "https://api.github.com/users/Fei-Wang/following{/other_user}",
"gists_url": "https://api.github.com/users/Fei-Wang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Fei-Wang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Fei-Wang/subscriptions",
"organizations_url": "https://api.github.com/users/Fei-Wang/orgs",
"repos_url": "https://api.github.com/users/Fei-Wang/repos",
"events_url": "https://api.github.com/users/Fei-Wang/events{/privacy}",
"received_events_url": "https://api.github.com/users/Fei-Wang/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-27T09:49:59
| 2023-12-27T09:56:42
| null |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
https://github.com/langchain-ai/langchain/blob/master/libs/community/langchain_community/tools/render.py
https://github.com/langchain-ai/langchain/blob/master/libs/community/langchain_community/tools/convert_to_openai.py
For backward compatibility purposes, should we proceed with a direct import?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15203/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15203/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15202
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15202/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15202/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15202/events
|
https://github.com/langchain-ai/langchain/pull/15202
| 2,057,131,999
|
PR_kwDOIPDwls5i0QaH
| 15,202
|
Fix typo
|
{
"login": "samuelpath",
"id": 6030745,
"node_id": "MDQ6VXNlcjYwMzA3NDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/6030745?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/samuelpath",
"html_url": "https://github.com/samuelpath",
"followers_url": "https://api.github.com/users/samuelpath/followers",
"following_url": "https://api.github.com/users/samuelpath/following{/other_user}",
"gists_url": "https://api.github.com/users/samuelpath/gists{/gist_id}",
"starred_url": "https://api.github.com/users/samuelpath/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/samuelpath/subscriptions",
"organizations_url": "https://api.github.com/users/samuelpath/orgs",
"repos_url": "https://api.github.com/users/samuelpath/repos",
"events_url": "https://api.github.com/users/samuelpath/events{/privacy}",
"received_events_url": "https://api.github.com/users/samuelpath/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6154420538,
"node_id": "LA_kwDOIPDwls8AAAABbtUBOg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/template",
"name": "template",
"color": "145FB1",
"default": false,
"description": ""
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1
| 2023-12-27T09:27:19
| 2023-12-28T16:24:42
| 2023-12-28T16:24:42
|
CONTRIBUTOR
| null |
Small typo fix in the templates docs: `languge` -> `language`
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15202/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15202/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15202",
"html_url": "https://github.com/langchain-ai/langchain/pull/15202",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15202.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15202.patch",
"merged_at": "2023-12-28T16:24:42"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15199
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15199/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15199/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15199/events
|
https://github.com/langchain-ai/langchain/issues/15199
| 2,057,093,818
|
I_kwDOIPDwls56nMK6
| 15,199
|
"Could not parse LLM output" when using QianfanChatEndpoint in agent.
|
{
"login": "ET-yzk",
"id": 59281333,
"node_id": "MDQ6VXNlcjU5MjgxMzMz",
"avatar_url": "https://avatars.githubusercontent.com/u/59281333?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ET-yzk",
"html_url": "https://github.com/ET-yzk",
"followers_url": "https://api.github.com/users/ET-yzk/followers",
"following_url": "https://api.github.com/users/ET-yzk/following{/other_user}",
"gists_url": "https://api.github.com/users/ET-yzk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ET-yzk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ET-yzk/subscriptions",
"organizations_url": "https://api.github.com/users/ET-yzk/orgs",
"repos_url": "https://api.github.com/users/ET-yzk/repos",
"events_url": "https://api.github.com/users/ET-yzk/events{/privacy}",
"received_events_url": "https://api.github.com/users/ET-yzk/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 2
| 2023-12-27T08:49:02
| 2023-12-28T17:28:50
| null |
NONE
| null |
### System Info
langchian=0.0.352
qianfan=0.2.4
When I tried the usage of agent in this [video](https://learn.deeplearning.ai/langchain/lesson/7/agents), I changed the model in it from ChatGpt-3.5-turbo to ERNIE-Bot, and the output of agent showed the following error:
```bash
> Entering new AgentExecutor chain...
Could not parse LLM output: xxxxxxxxx
Observation: Invalid or incomplete response
Thought: Could not parse LLM output: xxxxx
Observation: Invalid or incomplete response
...
```
And, ERNIE-Bot can't call (llm-math) tool correctly.
I wonder if the problem is a lack of capability in the qianfan model itself, or if there is a problem in the qianfan code.
Or is there something wrong with my usage or other issues?
### Who can help?
@danielhjz
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
**my code**
```python
llm = QianfanChatEndpoint(
temperature=0.000001,
model='ERNIE-Bot'
)
tools = load_tools(
["llm-math", "wikipedia"],
llm=llm
)
agent = initialize_agent(
tools,
llm,
agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,
handle_parsing_errors=True,
verbose=True
)
agent("300的1/4是多少?")
```
**code in the video**
```python
# code in the video
llm = ChatOpenAI(
temperature=0
)
tools = load_tools(
["llm-math", "wikipedia"],
llm=llm
)
agent = initialize_agent(
tools,
llm,
agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,
handle_parsing_errors=True,
verbose=True
)
agent("What is the 25% of 300?")
```
### Expected behavior
**Run by ChatOpenAI(temperature=0)**
````bash
> Entering new AgentExecutor chain...
Thought: We need to calculate 25% of 300, which means we need to multiply 300 by 0.25.
Action:
```
{
"action": "Calculator",
"action_input": "300*0.25"
}
```
Observation: Answer: 75.0
Thought:The calculator tool returned the answer 75.0, which is correct.
Final Answer: 25% of 300 is 75.0.
> Finished chain.
{'input': 'What is the 25% of 300?', 'output': '25% of 300 is 75.0.'}
````
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15199/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15199/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15198
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15198/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15198/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15198/events
|
https://github.com/langchain-ai/langchain/pull/15198
| 2,057,089,303
|
PR_kwDOIPDwls5i0HJL
| 15,198
|
community: Fix inconsistent initialization for ChatTongyi
|
{
"login": "XinhhD",
"id": 33118163,
"node_id": "MDQ6VXNlcjMzMTE4MTYz",
"avatar_url": "https://avatars.githubusercontent.com/u/33118163?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/XinhhD",
"html_url": "https://github.com/XinhhD",
"followers_url": "https://api.github.com/users/XinhhD/followers",
"following_url": "https://api.github.com/users/XinhhD/following{/other_user}",
"gists_url": "https://api.github.com/users/XinhhD/gists{/gist_id}",
"starred_url": "https://api.github.com/users/XinhhD/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/XinhhD/subscriptions",
"organizations_url": "https://api.github.com/users/XinhhD/orgs",
"repos_url": "https://api.github.com/users/XinhhD/repos",
"events_url": "https://api.github.com/users/XinhhD/events{/privacy}",
"received_events_url": "https://api.github.com/users/XinhhD/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 3
| 2023-12-27T08:44:15
| 2024-01-02T08:04:57
| 2024-01-01T22:32:16
|
NONE
| null |
## Description:
When using ChatTongyi, specifying the "model_name" parameter does not take effect (only the "model" parameter works). This inconsistency with other chat models can lead to unexpected model calls.
### Demonstration:
```Python
In[1]: DASHSCOPE_API_KEY = "sk-xxx"
In[2]: from langchain.chat_models.tongyi import ChatTongyi
In[3]: tongyi_model = ChatTongyi(model_name="qwen-plus",dashscope_api_key=DASHSCOPE_API_KEY)
In[4]: tongyi_model.model_name
Out[5]: 'qwen-turbo' # expected 'qwen-plus'
```
However, other chat models like ChatOpenAI can be assigned using the "model_name" parameter, which makes the behavior of the ChatTongyi model inconsistent.
```python
In[6]: from langchain.chat_models import ChatOpenAI
In[7]: open_ai_model = ChatOpenAI(openai_api_key="sk-xxx", model_name="gpt-4")
In[8]: open_ai_model.model_name
Out[9]: 'gpt-4'
```
## How to fix:
Set pydantic configuration `allow_population_by_field_name=True`
@baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15198/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15198/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15198",
"html_url": "https://github.com/langchain-ai/langchain/pull/15198",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15198.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15198.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15197
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15197/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15197/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15197/events
|
https://github.com/langchain-ai/langchain/pull/15197
| 2,057,018,617
|
PR_kwDOIPDwls5iz35R
| 15,197
|
Patch: improve openai functions call parser compatibility
|
{
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
] | null | 3
| 2023-12-27T07:28:57
| 2023-12-28T23:37:30
| 2023-12-28T23:06:27
|
CONTRIBUTOR
| null |
```shell
Python 3.11.6 (main, Nov 2 2023, 04:39:43) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> s = {'name': 'gc', 'arguments': '{"prompt":"hi\nbob."}'}
>>> import json
>>> json.loads(s['arguments'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/homebrew/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Invalid control character at: line 1 column 14 (char 13)
>>> json.loads(s['arguments'].replace('\n', '\\n'))
{'prompt': 'hi\nbob.'}
>>>
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15197/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15197/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15197",
"html_url": "https://github.com/langchain-ai/langchain/pull/15197",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15197.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15197.patch",
"merged_at": "2023-12-28T23:06:27"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15196
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15196/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15196/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15196/events
|
https://github.com/langchain-ai/langchain/pull/15196
| 2,056,993,448
|
PR_kwDOIPDwls5izyj-
| 15,196
|
Fixed minor type in self_query.ipynb
|
{
"login": "aqibamir",
"id": 73932489,
"node_id": "MDQ6VXNlcjczOTMyNDg5",
"avatar_url": "https://avatars.githubusercontent.com/u/73932489?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/aqibamir",
"html_url": "https://github.com/aqibamir",
"followers_url": "https://api.github.com/users/aqibamir/followers",
"following_url": "https://api.github.com/users/aqibamir/following{/other_user}",
"gists_url": "https://api.github.com/users/aqibamir/gists{/gist_id}",
"starred_url": "https://api.github.com/users/aqibamir/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aqibamir/subscriptions",
"organizations_url": "https://api.github.com/users/aqibamir/orgs",
"repos_url": "https://api.github.com/users/aqibamir/repos",
"events_url": "https://api.github.com/users/aqibamir/events{/privacy}",
"received_events_url": "https://api.github.com/users/aqibamir/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-27T06:59:20
| 2024-01-02T23:34:10
| 2024-01-02T23:34:10
|
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15196/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15196/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15196",
"html_url": "https://github.com/langchain-ai/langchain/pull/15196",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15196.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15196.patch",
"merged_at": "2024-01-02T23:34:10"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15195
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15195/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15195/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15195/events
|
https://github.com/langchain-ai/langchain/issues/15195
| 2,056,910,699
|
I_kwDOIPDwls56mfdr
| 15,195
|
Issue: lcel langserve with_fallbacks streaming
|
{
"login": "rere950303",
"id": 78265252,
"node_id": "MDQ6VXNlcjc4MjY1MjUy",
"avatar_url": "https://avatars.githubusercontent.com/u/78265252?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rere950303",
"html_url": "https://github.com/rere950303",
"followers_url": "https://api.github.com/users/rere950303/followers",
"following_url": "https://api.github.com/users/rere950303/following{/other_user}",
"gists_url": "https://api.github.com/users/rere950303/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rere950303/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rere950303/subscriptions",
"organizations_url": "https://api.github.com/users/rere950303/orgs",
"repos_url": "https://api.github.com/users/rere950303/repos",
"events_url": "https://api.github.com/users/rere950303/events{/privacy}",
"received_events_url": "https://api.github.com/users/rere950303/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
}
] |
open
| false
| null |
[] | null | 2
| 2023-12-27T04:53:43
| 2024-01-13T07:00:58
| null |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
```python
conversational_qa_chain = (
_inputs | _context | ConfigurableTokenLimitProcessor(model="gpt_35_turbo").configurable_fields(
model=ConfigurableFieldSingleOption(
id="model",
name="model",
options={
"gpt_35_turbo": "gpt_35_turbo",
"gpt_35_turbo_1106": "gpt_35_turbo_1106",
"gpt_4_1106_preview": "gpt_4_1106_preview",
"gpt_4_32k": "gpt_4_32k"
},
default="gpt_35_turbo",
)
) | ANSWER_PROMPT | llm | StrOutputParser()
)
```
```python
chain = conversational_qa_chain.with_types(input_type=ChatHistory).with_fallbacks([RunnableLambda(when_all_is_lost)])
```
```python
add_routes(app,
chain,
enable_feedback_endpoint=True,
path="/test",
config_keys=["llm", "collection_name", "model", "configurable"]
)
```
It's a code developed with langserve, but if i send a request to `/test/stream` using playground, unlike before adding the `with_fallbacks` function, the response is not exposed on the screen by token, but all the responses are shown on the screen at once, what's the reason?
### Suggestion:
Even if i add `with_fallbacks`, it should be streamed on the screen for each token.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15195/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15195/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15193
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15193/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15193/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15193/events
|
https://github.com/langchain-ai/langchain/issues/15193
| 2,056,898,273
|
I_kwDOIPDwls56mcbh
| 15,193
|
Issue: <Please tell me how to combine Routing and RAG in a chain.>
|
{
"login": "kaeruko",
"id": 4452841,
"node_id": "MDQ6VXNlcjQ0NTI4NDE=",
"avatar_url": "https://avatars.githubusercontent.com/u/4452841?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kaeruko",
"html_url": "https://github.com/kaeruko",
"followers_url": "https://api.github.com/users/kaeruko/followers",
"following_url": "https://api.github.com/users/kaeruko/following{/other_user}",
"gists_url": "https://api.github.com/users/kaeruko/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kaeruko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kaeruko/subscriptions",
"organizations_url": "https://api.github.com/users/kaeruko/orgs",
"repos_url": "https://api.github.com/users/kaeruko/repos",
"events_url": "https://api.github.com/users/kaeruko/events{/privacy}",
"received_events_url": "https://api.github.com/users/kaeruko/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 5
| 2023-12-27T04:29:43
| 2024-01-09T03:06:19
| null |
NONE
| null |
### Issue you'd like to raise.
I apologize for the naive question.it's not about an error or a bug.
I'm trying to implement routing by following the guide here: https://python.langchain.com/docs/modules/chains/foundational/router
However, I can't figure out how to use RAG.
I tried changing the last code in the guide like this.
```python
final_chain = (
RunnablePassthrough.assign(topic=itemgetter("input") | classifier_chain)
| prompt_branch
| ChatOpenAI()
| StrOutputParser()
)
```
```python
final_chain = (
{
"context": retriever,
"topic": itemgetter("input") | classifier_chain,
}
| prompt_branch
| llm
| StrOutputParser()
)
```
But I get the following error:
```shell
File "/Users/user/Library/Python/3.9/lib/python/site-packages/tiktoken/core.py", line 116, in encode
if match := _special_token_regex(disallowed_special).search(text):
TypeError: expected string or buffer
```
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15193/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15193/timeline
| null |
reopened
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15192
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15192/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15192/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15192/events
|
https://github.com/langchain-ai/langchain/issues/15192
| 2,056,881,303
|
I_kwDOIPDwls56mYSX
| 15,192
|
Issue: <CSVLoader can't load>
|
{
"login": "AidPaike",
"id": 54123523,
"node_id": "MDQ6VXNlcjU0MTIzNTIz",
"avatar_url": "https://avatars.githubusercontent.com/u/54123523?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/AidPaike",
"html_url": "https://github.com/AidPaike",
"followers_url": "https://api.github.com/users/AidPaike/followers",
"following_url": "https://api.github.com/users/AidPaike/following{/other_user}",
"gists_url": "https://api.github.com/users/AidPaike/gists{/gist_id}",
"starred_url": "https://api.github.com/users/AidPaike/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AidPaike/subscriptions",
"organizations_url": "https://api.github.com/users/AidPaike/orgs",
"repos_url": "https://api.github.com/users/AidPaike/repos",
"events_url": "https://api.github.com/users/AidPaike/events{/privacy}",
"received_events_url": "https://api.github.com/users/AidPaike/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false
| null |
[] | null | 5
| 2023-12-27T03:54:38
| 2024-01-09T09:47:57
| 2024-01-08T04:10:00
|
NONE
| null |
### Issue you'd like to raise.
why CSVLoader can't load? error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[25], line 1
----> 1 from langchain.document_loaders.csv_loader import CSVLoader
3 loader = CSVLoader(file_path='./data/bugreport.csv', csv_args={
4 'delimiter': ',',
5 'quotechar': '"',
6 'fieldnames': ["URL","Resolved","Backport_of","Submitted","Status","CPU","Priority","Sub_Component","Updated","Fix_Versions","Affected_Version","OS","Type","Resolution","Component"]
7 })
9 data = loader.load()
File D:\miniconda\lib\site-packages\langchain\document_loaders\__init__.py:49
47 from langchain.document_loaders.bigquery import BigQueryLoader
48 from langchain.document_loaders.bilibili import BiliBiliLoader
---> 49 from langchain.document_loaders.blackboard import BlackboardLoader
50 from langchain.document_loaders.blob_loaders import (
51 Blob,
52 BlobLoader,
53 FileSystemBlobLoader,
54 YoutubeAudioLoader,
55 )
56 from langchain.document_loaders.blockchain import BlockchainDocumentLoader
File D:\miniconda\lib\site-packages\langchain\document_loaders\blackboard.py:1
----> 1 from langchain_community.document_loaders.blackboard import BlackboardLoader
3 __all__ = ["BlackboardLoader"]
File D:\miniconda\lib\site-packages\langchain_community\document_loaders\__init__.py:51
49 from langchain_community.document_loaders.bigquery import BigQueryLoader
50 from langchain_community.document_loaders.bilibili import BiliBiliLoader
---> 51 from langchain_community.document_loaders.blackboard import BlackboardLoader
52 from langchain_community.document_loaders.blob_loaders import (
53 Blob,
54 BlobLoader,
55 FileSystemBlobLoader,
56 YoutubeAudioLoader,
57 )
58 from langchain_community.document_loaders.blockchain import BlockchainDocumentLoader
File D:\miniconda\lib\site-packages\langchain_community\document_loaders\blackboard.py:10
7 from langchain_core.documents import Document
9 from langchain_community.document_loaders.directory import DirectoryLoader
---> 10 from langchain_community.document_loaders.pdf import PyPDFLoader
11 from langchain_community.document_loaders.web_base import WebBaseLoader
14 class BlackboardLoader(WebBaseLoader):
File D:\miniconda\lib\site-packages\langchain_community\document_loaders\pdf.py:18
16 from langchain_community.document_loaders.base import BaseLoader
17 from langchain_community.document_loaders.blob_loaders import Blob
---> 18 from langchain_community.document_loaders.parsers.pdf import (
19 AmazonTextractPDFParser,
20 DocumentIntelligenceParser,
21 PDFMinerParser,
22 PDFPlumberParser,
23 PyMuPDFParser,
24 PyPDFium2Parser,
25 PyPDFParser,
26 )
27 from langchain_community.document_loaders.unstructured import UnstructuredFileLoader
29 logger = logging.getLogger(__file__)
File D:\miniconda\lib\site-packages\langchain_community\document_loaders\parsers\__init__.py:5
3 from langchain_community.document_loaders.parsers.grobid import GrobidParser
4 from langchain_community.document_loaders.parsers.html import BS4HTMLParser
----> 5 from langchain_community.document_loaders.parsers.language import LanguageParser
6 from langchain_community.document_loaders.parsers.pdf import (
7 PDFMinerParser,
8 PDFPlumberParser,
(...)
11 PyPDFParser,
12 )
14 __all__ = [
15 "BS4HTMLParser",
16 "DocAIParser",
(...)
24 "PyPDFParser",
25 ]
File D:\miniconda\lib\site-packages\langchain_community\document_loaders\parsers\language\__init__.py:1
----> 1 from langchain_community.document_loaders.parsers.language.language_parser import (
2 LanguageParser,
3 )
5 __all__ = ["LanguageParser"]
File D:\miniconda\lib\site-packages\langchain_community\document_loaders\parsers\language\language_parser.py:24
18 try:
19 from langchain.text_splitter import Language
21 LANGUAGE_EXTENSIONS: Dict[str, str] = {
22 "py": Language.PYTHON,
23 "js": Language.JS,
---> 24 "cobol": Language.COBOL,
25 }
27 LANGUAGE_SEGMENTERS: Dict[str, Any] = {
28 Language.PYTHON: PythonSegmenter,
29 Language.JS: JavaScriptSegmenter,
30 Language.COBOL: CobolSegmenter,
31 }
32 except ImportError:
File D:\miniconda\lib\enum.py:437, in EnumMeta.__getattr__(cls, name)
435 return cls._member_map_[name]
436 except KeyError:
--> 437 raise AttributeError(name) from None
AttributeError: COBOL
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15192/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15192/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15191
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15191/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15191/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15191/events
|
https://github.com/langchain-ai/langchain/issues/15191
| 2,056,875,193
|
I_kwDOIPDwls56mWy5
| 15,191
|
Issue: lcel `with_fallbacks` streaming
|
{
"login": "rere950303",
"id": 78265252,
"node_id": "MDQ6VXNlcjc4MjY1MjUy",
"avatar_url": "https://avatars.githubusercontent.com/u/78265252?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rere950303",
"html_url": "https://github.com/rere950303",
"followers_url": "https://api.github.com/users/rere950303/followers",
"following_url": "https://api.github.com/users/rere950303/following{/other_user}",
"gists_url": "https://api.github.com/users/rere950303/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rere950303/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rere950303/subscriptions",
"organizations_url": "https://api.github.com/users/rere950303/orgs",
"repos_url": "https://api.github.com/users/rere950303/repos",
"events_url": "https://api.github.com/users/rere950303/events{/privacy}",
"received_events_url": "https://api.github.com/users/rere950303/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 6134259614,
"node_id": "LA_kwDOIPDwls8AAAABbaFfng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20lcel",
"name": "area: lcel",
"color": "38B1E8",
"default": false,
"description": ""
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-27T03:40:56
| 2023-12-27T04:53:55
| 2023-12-27T04:53:55
|
CONTRIBUTOR
| null |
### Issue you'd like to raise.
I'm going to make a chain through lcel and try to process an error through `with_fallbacks` at the end, but unlike before I put `with_fallbacks`, streaming is not possible and all responses go down at once. Can i process streaming using `with_fallbacks`?
### Suggestion:
lcel `with_fallbacks` streaming
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15191/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15191/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15190
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15190/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15190/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15190/events
|
https://github.com/langchain-ai/langchain/issues/15190
| 2,056,873,561
|
I_kwDOIPDwls56mWZZ
| 15,190
|
Issue: openai api key rate limit error handing
|
{
"login": "rere950303",
"id": 78265252,
"node_id": "MDQ6VXNlcjc4MjY1MjUy",
"avatar_url": "https://avatars.githubusercontent.com/u/78265252?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rere950303",
"html_url": "https://github.com/rere950303",
"followers_url": "https://api.github.com/users/rere950303/followers",
"following_url": "https://api.github.com/users/rere950303/following{/other_user}",
"gists_url": "https://api.github.com/users/rere950303/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rere950303/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rere950303/subscriptions",
"organizations_url": "https://api.github.com/users/rere950303/orgs",
"repos_url": "https://api.github.com/users/rere950303/repos",
"events_url": "https://api.github.com/users/rere950303/events{/privacy}",
"received_events_url": "https://api.github.com/users/rere950303/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6134259614,
"node_id": "LA_kwDOIPDwls8AAAABbaFfng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20lcel",
"name": "area: lcel",
"color": "38B1E8",
"default": false,
"description": ""
}
] |
open
| false
| null |
[] | null | 2
| 2023-12-27T03:37:31
| 2023-12-27T04:22:46
| null |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
If the rate limit of the api key is exceeded when developing a chain through lcel, I want to dynamically change another api key and retry to give the client a normal response, is there a way?
### Suggestion:
Dynamically catch an error in lcel, change the api key, and try again
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15190/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15190/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15187
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15187/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15187/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15187/events
|
https://github.com/langchain-ai/langchain/pull/15187
| 2,056,788,852
|
PR_kwDOIPDwls5izIYN
| 15,187
|
Use tz-aware utc datetimes in tracer
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-27T00:26:25
| 2024-01-02T20:36:41
| 2024-01-02T20:36:41
|
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15187/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15187/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15187",
"html_url": "https://github.com/langchain-ai/langchain/pull/15187",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15187.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15187.patch",
"merged_at": "2024-01-02T20:36:41"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15186
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15186/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15186/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15186/events
|
https://github.com/langchain-ai/langchain/pull/15186
| 2,056,763,077
|
PR_kwDOIPDwls5izDDV
| 15,186
|
[core] prompt changes
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T23:27:43
| 2023-12-27T00:47:41
| 2023-12-26T23:52:17
|
COLLABORATOR
| null |
change it to pass all variables through all the way in invoke
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15186/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15186/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15186",
"html_url": "https://github.com/langchain-ai/langchain/pull/15186",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15186.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15186.patch",
"merged_at": "2023-12-26T23:52:17"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15185
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15185/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15185/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15185/events
|
https://github.com/langchain-ai/langchain/pull/15185
| 2,056,755,427
|
PR_kwDOIPDwls5izBf2
| 15,185
|
Better input and output schemas for chains that start or end with a R…
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T23:03:58
| 2023-12-27T00:45:56
| 2023-12-26T23:21:14
|
COLLABORATOR
| null |
…unnableAssign or RunnablePick
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15185/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15185/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15185",
"html_url": "https://github.com/langchain-ai/langchain/pull/15185",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15185.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15185.patch",
"merged_at": "2023-12-26T23:21:14"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15184
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15184/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15184/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15184/events
|
https://github.com/langchain-ai/langchain/pull/15184
| 2,056,721,520
|
PR_kwDOIPDwls5iy6fL
| 15,184
|
Implement RunnablePassthrough.pick()
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T21:36:20
| 2023-12-28T03:01:39
| 2023-12-26T22:01:20
|
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15184/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15184/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15184",
"html_url": "https://github.com/langchain-ai/langchain/pull/15184",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15184.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15184.patch",
"merged_at": "2023-12-26T22:01:20"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15183
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15183/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15183/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15183/events
|
https://github.com/langchain-ai/langchain/pull/15183
| 2,056,721,223
|
PR_kwDOIPDwls5iy6bK
| 15,183
|
community: image_url download + image_url.url
|
{
"login": "shroominic",
"id": 34897716,
"node_id": "MDQ6VXNlcjM0ODk3NzE2",
"avatar_url": "https://avatars.githubusercontent.com/u/34897716?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shroominic",
"html_url": "https://github.com/shroominic",
"followers_url": "https://api.github.com/users/shroominic/followers",
"following_url": "https://api.github.com/users/shroominic/following{/other_user}",
"gists_url": "https://api.github.com/users/shroominic/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shroominic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shroominic/subscriptions",
"organizations_url": "https://api.github.com/users/shroominic/orgs",
"repos_url": "https://api.github.com/users/shroominic/repos",
"events_url": "https://api.github.com/users/shroominic/events{/privacy}",
"received_events_url": "https://api.github.com/users/shroominic/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
open
| false
| null |
[] | null | 3
| 2023-12-26T21:35:38
| 2024-01-06T15:44:14
| null |
CONTRIBUTOR
| null |
**Description:**
- adding actual image_url support by downloading the image using requests.get
- support for nested urls
**Issue:**
```python
HumanMessage(
content=[
{"type": "text", "text": "Describe the image:"},
{
"type": "image_url",
"image_url": {
"url": "https://images.unsplash.com/photo-1682687220777-2c60708d6889"
},
},
],
)
```
This was not possible because actual urls were not supportet and url objects inside the image_url was not supported.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15183/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15183/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15183",
"html_url": "https://github.com/langchain-ai/langchain/pull/15183",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15183.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15183.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15182
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15182/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15182/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15182/events
|
https://github.com/langchain-ai/langchain/pull/15182
| 2,056,686,025
|
PR_kwDOIPDwls5iyzaG
| 15,182
|
Fix runnable vistitor for funcs without pos args
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T20:26:15
| 2023-12-26T20:42:25
| 2023-12-26T20:42:24
|
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15182/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15182/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15182",
"html_url": "https://github.com/langchain-ai/langchain/pull/15182",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15182.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15182.patch",
"merged_at": "2023-12-26T20:42:24"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15181
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15181/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15181/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15181/events
|
https://github.com/langchain-ai/langchain/pull/15181
| 2,056,683,992
|
PR_kwDOIPDwls5iyy-z
| 15,181
|
[core: minor] fix getters
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T20:22:18
| 2023-12-26T20:32:56
| 2023-12-26T20:32:55
|
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15181/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15181/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15181",
"html_url": "https://github.com/langchain-ai/langchain/pull/15181",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15181.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15181.patch",
"merged_at": "2023-12-26T20:32:55"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15180
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15180/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15180/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15180/events
|
https://github.com/langchain-ai/langchain/pull/15180
| 2,056,667,344
|
PR_kwDOIPDwls5iyvhE
| 15,180
|
[core] langauge model like
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T19:51:51
| 2023-12-26T20:19:51
| 2023-12-26T20:19:50
|
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15180/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15180/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15180",
"html_url": "https://github.com/langchain-ai/langchain/pull/15180",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15180.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15180.patch",
"merged_at": "2023-12-26T20:19:50"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15179
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15179/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15179/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15179/events
|
https://github.com/langchain-ai/langchain/pull/15179
| 2,056,650,283
|
PR_kwDOIPDwls5iyr38
| 15,179
|
[core] print ascii
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T19:22:37
| 2023-12-26T19:43:15
| 2023-12-26T19:43:14
|
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15179/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15179/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15179",
"html_url": "https://github.com/langchain-ai/langchain/pull/15179",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15179.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15179.patch",
"merged_at": "2023-12-26T19:43:14"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15178
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15178/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15178/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15178/events
|
https://github.com/langchain-ai/langchain/pull/15178
| 2,056,649,393
|
PR_kwDOIPDwls5iyrrs
| 15,178
|
langchain[minor]: Add stuff docs runnable
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T19:21:05
| 2023-12-26T20:20:01
| 2023-12-26T20:20:01
|
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15178/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15178/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15178",
"html_url": "https://github.com/langchain-ai/langchain/pull/15178",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15178.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15178.patch",
"merged_at": "2023-12-26T20:20:01"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15177
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15177/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15177/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15177/events
|
https://github.com/langchain-ai/langchain/issues/15177
| 2,056,625,948
|
I_kwDOIPDwls56lZ8c
| 15,177
|
DOC: How to write my own short scripts within a fork to test some code?
|
{
"login": "polooner",
"id": 114031148,
"node_id": "U_kgDOBsv6LA",
"avatar_url": "https://avatars.githubusercontent.com/u/114031148?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/polooner",
"html_url": "https://github.com/polooner",
"followers_url": "https://api.github.com/users/polooner/followers",
"following_url": "https://api.github.com/users/polooner/following{/other_user}",
"gists_url": "https://api.github.com/users/polooner/gists{/gist_id}",
"starred_url": "https://api.github.com/users/polooner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/polooner/subscriptions",
"organizations_url": "https://api.github.com/users/polooner/orgs",
"repos_url": "https://api.github.com/users/polooner/repos",
"events_url": "https://api.github.com/users/polooner/events{/privacy}",
"received_events_url": "https://api.github.com/users/polooner/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-26T18:42:18
| 2023-12-26T18:49:22
| null |
NONE
| null |
### Issue with current documentation:
I want to contribute to one of the libs and started a fork. Here are the steps I took:
I am trying to add a new feature but first need to experiment with it. I am unsure on how to get started writing some short scripts to use the libs.
1. I went into ```libs/experimental```, ```libs/core```, ```libs/community``` ```libs/langchain``` and ran ```poetry install``` in all of them.
2. I start an environment from ```libs/langchain``` with ```poetry shell```
3. I created a file inside of it, made some short code:
```from langchain.document_loaders import PyPDFLoader
from langchain.embeddings.sentence_transformer import SentenceTransformerEmbeddings
from langchain.text_splitter import CharacterTextSplitter
from langchain.vectorstores import Chroma
# load the document and split it into chunks
loader = PyPDFLoader("./llm_in_a_flash_apple.pdf")
documents = loader.load_and_split()
# create the open-source embedding function
embedding_function = SentenceTransformerEmbeddings(model_name="all-MiniLM-L6-v2")
# load it into Chroma
db = Chroma.from_documents(documents, embedding_function)
# query it
query = "What did the president say about Ketanji Brown Jackson"
docs = db.similarity_search(query)
# print results
print(docs[0].page_content)
```
and got the following error:
```
Traceback (most recent call last):
File "/Users/polo/langchain/libs/langchain/test.py", line 9, in <module>
loader = PyPDFLoader("./llm_in_a_flash_apple.pdf")
File "/Users/polo/langchain/libs/community/langchain_community/document_loaders/pdf.py", line 154, in __init__
raise ImportError(
ImportError: pypdf package not found, please install it with `pip install pypdf`
```
This is my first time in a Python project like this. I am unsure how to get started using all the different packages while in a fork of the repository. If anyone can guide me I would love to make a PR on this, it is quite daunting for beginners to get around and start contributing!
### Idea or request for content:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15177/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15177/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15176
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15176/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15176/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15176/events
|
https://github.com/langchain-ai/langchain/pull/15176
| 2,056,554,377
|
PR_kwDOIPDwls5iyXr2
| 15,176
|
add multitenancy
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T16:41:42
| 2023-12-26T17:08:33
| 2023-12-26T17:08:32
|
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15176/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15176/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15176",
"html_url": "https://github.com/langchain-ai/langchain/pull/15176",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15176.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15176.patch",
"merged_at": "2023-12-26T17:08:32"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15173
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15173/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15173/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15173/events
|
https://github.com/langchain-ai/langchain/issues/15173
| 2,056,466,694
|
I_kwDOIPDwls56kzEG
| 15,173
|
pgvecto.rs: retriever filter not working
|
{
"login": "icp-lab-admin",
"id": 82211670,
"node_id": "MDQ6VXNlcjgyMjExNjcw",
"avatar_url": "https://avatars.githubusercontent.com/u/82211670?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/icp-lab-admin",
"html_url": "https://github.com/icp-lab-admin",
"followers_url": "https://api.github.com/users/icp-lab-admin/followers",
"following_url": "https://api.github.com/users/icp-lab-admin/following{/other_user}",
"gists_url": "https://api.github.com/users/icp-lab-admin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/icp-lab-admin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/icp-lab-admin/subscriptions",
"organizations_url": "https://api.github.com/users/icp-lab-admin/orgs",
"repos_url": "https://api.github.com/users/icp-lab-admin/repos",
"events_url": "https://api.github.com/users/icp-lab-admin/events{/privacy}",
"received_events_url": "https://api.github.com/users/icp-lab-admin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false
| null |
[] | null | 2
| 2023-12-26T14:35:49
| 2024-01-15T19:42:01
| 2024-01-15T19:42:01
|
NONE
| null |
### System Info
OS: Windows
Python: 3.9.10
Langchain version: 0.0.352
openai version: 1.6.1
### Who can help?
@BeautyyuYanli
@baskaryan
### 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 Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from langchain.vectorstores.pgvecto_rs import PGVecto_rs
from langchain.embeddings import AzureOpenAIEmbeddings
from dotenv import dotenv_values
import os
```
```
config = dotenv_values(".env")
# os.environ["TIKTOKEN_CACHE_DIR"] = "./cache/tiktoken/"
embeddings = AzureOpenAIEmbeddings(
max_retries=3,
timeout=60,
api_key=config["api_key"],
model="text-embedding-ada-002",
openai_api_type=config["api_type"],
azure_endpoint=config["api_base"]
)
URL = "postgresql+psycopg://{username}:{password}@{host}:{port}/{db_name}".format(
port=config["db_port"],
host=config["db_host"],
username=config["db_user"],
password=config["db_pass"],
db_name=config["db_name"],
)
db = PGVecto_rs(
embedding=embeddings,
db_url=URL,
dimension=1536, # text-embedding-ada-002
collection_name="test",
)
```
```
docs = ["a text about mathematics", "a text about physics"]
meta = [{"id": "1"}, {"id": "2"}]
db.add_texts(
texts=docs,
metadatas=meta
)
retr = db.as_retriever(
search_kwargs = {
"k": 1,
"filter": {"id": "1"}
}
)
```
```
retr.invoke("physics")
```
>[Document(page_content='a text about physics', metadata={'id': '2'})]
### Expected behavior
The search should only be performed on documents where the `metadata` field contains `{"id": "1"}`.
In this case, adding a filter makes no difference to the retrieval.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15173/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15173/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15172
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15172/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15172/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15172/events
|
https://github.com/langchain-ai/langchain/pull/15172
| 2,056,412,595
|
PR_kwDOIPDwls5ix5KF
| 15,172
|
community: correct spelling mistakes of "Suffle" and "reporoducibility"
|
{
"login": "pzarfos",
"id": 1742341,
"node_id": "MDQ6VXNlcjE3NDIzNDE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1742341?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pzarfos",
"html_url": "https://github.com/pzarfos",
"followers_url": "https://api.github.com/users/pzarfos/followers",
"following_url": "https://api.github.com/users/pzarfos/following{/other_user}",
"gists_url": "https://api.github.com/users/pzarfos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pzarfos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pzarfos/subscriptions",
"organizations_url": "https://api.github.com/users/pzarfos/orgs",
"repos_url": "https://api.github.com/users/pzarfos/repos",
"events_url": "https://api.github.com/users/pzarfos/events{/privacy}",
"received_events_url": "https://api.github.com/users/pzarfos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T13:24:47
| 2023-12-26T19:23:00
| 2023-12-26T19:23:00
|
CONTRIBUTOR
| null |
- **Description:** Correct spelling mistakes of "Suffle" and "reporoducibility" in `DirectoryLoader` class
- **Issue:** N/A
- **Dependencies:** N/A
- **Twitter handle:** N/A
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15172/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15172/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15172",
"html_url": "https://github.com/langchain-ai/langchain/pull/15172",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15172.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15172.patch",
"merged_at": "2023-12-26T19:23:00"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15171
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15171/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15171/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15171/events
|
https://github.com/langchain-ai/langchain/pull/15171
| 2,056,409,166
|
PR_kwDOIPDwls5ix4Zo
| 15,171
|
core, community: propagate context between threads
|
{
"login": "joshy-deshaw",
"id": 153487690,
"node_id": "U_kgDOCSYJSg",
"avatar_url": "https://avatars.githubusercontent.com/u/153487690?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/joshy-deshaw",
"html_url": "https://github.com/joshy-deshaw",
"followers_url": "https://api.github.com/users/joshy-deshaw/followers",
"following_url": "https://api.github.com/users/joshy-deshaw/following{/other_user}",
"gists_url": "https://api.github.com/users/joshy-deshaw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/joshy-deshaw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshy-deshaw/subscriptions",
"organizations_url": "https://api.github.com/users/joshy-deshaw/orgs",
"repos_url": "https://api.github.com/users/joshy-deshaw/repos",
"events_url": "https://api.github.com/users/joshy-deshaw/events{/privacy}",
"received_events_url": "https://api.github.com/users/joshy-deshaw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
] | null | 1
| 2023-12-26T13:20:30
| 2023-12-28T22:51:22
| 2023-12-28T22:51:22
|
CONTRIBUTOR
| null |
While using `chain.batch`, the default implementation uses a `ThreadPoolExecutor` and run the chains in separate threads. An issue with this approach is that that [the token counting callback](https://python.langchain.com/docs/modules/callbacks/token_counting) fails to work as a consequence of the context not being propagated between threads. This PR adds context propagation to the new threads and adds some thread synchronization in the OpenAI callback. With this change, the token counting callback works as intended.
Having the context propagation change would be highly beneficial for those implementing custom callbacks for similar functionalities as well.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15171/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15171/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15171",
"html_url": "https://github.com/langchain-ai/langchain/pull/15171",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15171.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15171.patch",
"merged_at": "2023-12-28T22:51:22"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15170
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15170/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15170/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15170/events
|
https://github.com/langchain-ai/langchain/issues/15170
| 2,056,381,701
|
I_kwDOIPDwls56keUF
| 15,170
|
Issue: Explain Memory and How it's implemented in my Case.
|
{
"login": "deepak-habilelabs",
"id": 137885024,
"node_id": "U_kgDOCDf1YA",
"avatar_url": "https://avatars.githubusercontent.com/u/137885024?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/deepak-habilelabs",
"html_url": "https://github.com/deepak-habilelabs",
"followers_url": "https://api.github.com/users/deepak-habilelabs/followers",
"following_url": "https://api.github.com/users/deepak-habilelabs/following{/other_user}",
"gists_url": "https://api.github.com/users/deepak-habilelabs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/deepak-habilelabs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deepak-habilelabs/subscriptions",
"organizations_url": "https://api.github.com/users/deepak-habilelabs/orgs",
"repos_url": "https://api.github.com/users/deepak-habilelabs/repos",
"events_url": "https://api.github.com/users/deepak-habilelabs/events{/privacy}",
"received_events_url": "https://api.github.com/users/deepak-habilelabs/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
closed
| false
| null |
[] | null | 4
| 2023-12-26T12:45:59
| 2023-12-27T05:34:44
| 2023-12-27T05:34:44
|
NONE
| null |
### Issue you'd like to raise.
`def generate_custom_prompt(new_project_qa,query,name,not_uuid):
check = query.lower()
result = new_project_qa(query)
relevant_document = result['source_documents']
context_text="\n\n---\n\n".join([doc.page_content for doc in relevant_document])
# print(context_text,"context_text")
user_experience_inst = UserExperience.objects.get(not_uuid=not_uuid)
greetings = ['hi', 'hello', 'hey', 'hui', 'hiiii', 'hii', 'hiii', 'heyyy']
if check in greetings:
custom_prompt_template = f"""
Just simply reply with "Hello {name}! How can I assist you today?"
"""
elif check not in greetings and user_experience_inst.custom_prompt:
custom_prompt_template = f"""Answer the question based only on following context: ```{context_text} ```
You are a chatbot designed to provide answers to User's Questions:```{check}```, delimited by triple backticks.
Generate your answer to match the user's requirements: {user_experience_inst.custom_prompt}
If you encounter a question for which you don't know the answer, please respond with 'I don't know' and refrain from making up an answer.
- Before saying 'I don't know,' please re-verify your vector store to ensure the answer is not present in the database.
Remember, your goal is to assist the user in the best way possible. If the question is unclear or ambiguous, feel free to ask for clarification.
User's Question: ```{check}```
AI Answer:"""
else:
# Create the custom prompt template
custom_prompt_template = f"""Generate your response exclusively from the provided context: {{context_text}}. You function as a chatbot specializing in delivering detailed answers to the User's Question: ```{{check}} ```, enclosed within triple backticks.
Generate your answer in points in the following format:
1. Point no 1
1.1 Its subpoint in details
1.2 More information if needed.
2. Point no 2
2.1 Its subpoint in details
2.2 More information if needed.
…
N. Another main point.
If you encounter a question for which you don't know the answer based on the predefined points, please respond with 'I don't know' and refrain from making up an answer.
However, if the answer is not present in the predefined points, then Provide comprehensive information related to the user's query.
Remember, your goal is to assist the user in the best way possible. If the question is unclear or ambiguous, you can ask for clarification.
User's Question: ```{{check}} ```
AI Answer:"""
# Create the PromptTemplate
custom_prompt = ChatPromptTemplate.from_template(custom_prompt_template)
formatted_prompt = custom_prompt.format(context_text=context_text, check=check)
return formatted_prompt
def retreival_qa_chain(chroma_db_path):
embedding = OpenAIEmbeddings()
vectordb = Chroma(persist_directory=chroma_db_path, embedding_function=embedding)
llm = ChatOpenAI(temperature=0.1)
retriever = vectordb.as_retriever(search_kwargs={"k": 2})
qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever,return_source_documents=True)
return qa`
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15170/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15170/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15169
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15169/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15169/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15169/events
|
https://github.com/langchain-ai/langchain/pull/15169
| 2,056,365,220
|
PR_kwDOIPDwls5ixu0X
| 15,169
|
community: Async Ollama + ChatOllama
|
{
"login": "shroominic",
"id": 34897716,
"node_id": "MDQ6VXNlcjM0ODk3NzE2",
"avatar_url": "https://avatars.githubusercontent.com/u/34897716?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shroominic",
"html_url": "https://github.com/shroominic",
"followers_url": "https://api.github.com/users/shroominic/followers",
"following_url": "https://api.github.com/users/shroominic/following{/other_user}",
"gists_url": "https://api.github.com/users/shroominic/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shroominic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shroominic/subscriptions",
"organizations_url": "https://api.github.com/users/shroominic/orgs",
"repos_url": "https://api.github.com/users/shroominic/repos",
"events_url": "https://api.github.com/users/shroominic/events{/privacy}",
"received_events_url": "https://api.github.com/users/shroominic/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T12:25:43
| 2023-12-26T21:43:49
| 2023-12-26T20:08:04
|
CONTRIBUTOR
| null |
**Description:**
Adding async methods to booth OllamaLLM and ChatOllama to enable async streaming and async .on_llm_new_token callbacks.
**Issue:**
ChatOllama is not working in combination with an AsyncCallbackManager because the .on_llm_new_token method is not awaited.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15169/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15169/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15169",
"html_url": "https://github.com/langchain-ai/langchain/pull/15169",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15169.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15169.patch",
"merged_at": "2023-12-26T20:08:04"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15168
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15168/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15168/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15168/events
|
https://github.com/langchain-ai/langchain/issues/15168
| 2,056,342,401
|
I_kwDOIPDwls56kUuB
| 15,168
|
Issue: Custom Mistral based LLM from API for RetrievalQA chain
|
{
"login": "hitsense",
"id": 97034039,
"node_id": "U_kgDOBcifNw",
"avatar_url": "https://avatars.githubusercontent.com/u/97034039?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hitsense",
"html_url": "https://github.com/hitsense",
"followers_url": "https://api.github.com/users/hitsense/followers",
"following_url": "https://api.github.com/users/hitsense/following{/other_user}",
"gists_url": "https://api.github.com/users/hitsense/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hitsense/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hitsense/subscriptions",
"organizations_url": "https://api.github.com/users/hitsense/orgs",
"repos_url": "https://api.github.com/users/hitsense/repos",
"events_url": "https://api.github.com/users/hitsense/events{/privacy}",
"received_events_url": "https://api.github.com/users/hitsense/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false
| null |
[] | null | 4
| 2023-12-26T11:56:09
| 2023-12-26T13:43:15
| 2023-12-26T13:43:14
|
NONE
| null |
### Issue you'd like to raise.
I would like to build RAG based on Mistral 7B model
The model is already hosted, and I provide llm_url in the custom LLM setup
I am able to make a request and get a response from the URL using the `llm._call` method, however something is wrong with the callbacks in `RetrievalQA.from_chain_type` method
It gives me below error
`'Mistral7B_LLM' object has no attribute 'callbacks'`
Am I missing anything in the below code
```
from pydantic import Extra
import requests
from typing import Any, List,Dict, Callable, Type, Mapping, Optional
from langchain.callbacks.manager import CallbackManagerForLLMRun
from langchain.llms.base import LLM, BaseLLM
class Mistral7B_LLM(LLM):
def __init__(self):
self.__post_init__()
def __post_init__(self) -> None:
def _import_mistral7B_llm() -> Any:
from svcs.vector.src.controllers.llm.mistral7B_serving import Mistral7B_LLM
return Mistral7B_LLM
def __getattr__() -> Any:
return Mistral7B_LLM()
def get_type_to_cls_dict() -> Dict[str, Callable[[], Type[BaseLLM]]]:
return {
"Mistral7B_LLM": _import_mistral7B_llm,
}
__all__ = ["Mistral7B_LLM"]
class Config:
extra = Extra.forbid
@property
def _llm_type(self) -> str:
return "Mistral7B_LLM"
def _call(
self,
prompt: str,
stop: Optional[List[str]] = None,
run_manager: Optional[CallbackManagerForLLMRun] = None,
max_new_tokens: Optional[int] = 156,
temperature: Optional[float] = 0.7,
**kwargs: Any,
) -> str:
if stop is not None:
raise ValueError("stop kwargs are not permitted.")
payload = {
"inputs": [prompt],
"max_new_tokens": max_new_tokens,
"temperature": temperature,
}
headers = {"Content-Type": "application/json"}
llm_url = 'my url'
response = requests.post(llm_url, json=payload, headers=headers, verify=False)
response.raise_for_status()
# print("API Response:", response.json())
answer = response.json()["outputs"].split("[/INST]")[-1]
return answer
@property
def _identifying_params(self) -> Mapping[str, Any]:
"""Get the identifying parameters."""
return {"llmUrl": self.llm_url}
```
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15168/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15168/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15167
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15167/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15167/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15167/events
|
https://github.com/langchain-ai/langchain/pull/15167
| 2,056,338,430
|
PR_kwDOIPDwls5ixpG2
| 15,167
|
Oxford comma, consistent with format elsewhere
|
{
"login": "bquast",
"id": 2590349,
"node_id": "MDQ6VXNlcjI1OTAzNDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/2590349?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bquast",
"html_url": "https://github.com/bquast",
"followers_url": "https://api.github.com/users/bquast/followers",
"following_url": "https://api.github.com/users/bquast/following{/other_user}",
"gists_url": "https://api.github.com/users/bquast/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bquast/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bquast/subscriptions",
"organizations_url": "https://api.github.com/users/bquast/orgs",
"repos_url": "https://api.github.com/users/bquast/repos",
"events_url": "https://api.github.com/users/bquast/events{/privacy}",
"received_events_url": "https://api.github.com/users/bquast/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T11:50:31
| 2023-12-26T19:07:10
| 2023-12-26T19:07:09
|
CONTRIBUTOR
| null |
This document uses Oxford comma (A, B, and C), in this list the comma was missing before "and".
This PR corrects that.
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15167/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15167/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15167",
"html_url": "https://github.com/langchain-ai/langchain/pull/15167",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15167.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15167.patch",
"merged_at": "2023-12-26T19:07:09"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15166
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15166/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15166/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15166/events
|
https://github.com/langchain-ai/langchain/pull/15166
| 2,056,317,674
|
PR_kwDOIPDwls5ixkmB
| 15,166
|
core: add .images + .message property to BaseMessage
|
{
"login": "shroominic",
"id": 34897716,
"node_id": "MDQ6VXNlcjM0ODk3NzE2",
"avatar_url": "https://avatars.githubusercontent.com/u/34897716?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shroominic",
"html_url": "https://github.com/shroominic",
"followers_url": "https://api.github.com/users/shroominic/followers",
"following_url": "https://api.github.com/users/shroominic/following{/other_user}",
"gists_url": "https://api.github.com/users/shroominic/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shroominic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shroominic/subscriptions",
"organizations_url": "https://api.github.com/users/shroominic/orgs",
"repos_url": "https://api.github.com/users/shroominic/repos",
"events_url": "https://api.github.com/users/shroominic/events{/privacy}",
"received_events_url": "https://api.github.com/users/shroominic/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-26T11:22:41
| 2024-01-06T15:38:39
| null |
CONTRIBUTOR
| null |
**Description:**
Adding helper methods for improving implementation speed and code clarity.
**Issue:**
I write a lot of boiler plate and my code feels chaotic since the new vision message schemas.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15166/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15166/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15166",
"html_url": "https://github.com/langchain-ai/langchain/pull/15166",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15166.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15166.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15165
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15165/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15165/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15165/events
|
https://github.com/langchain-ai/langchain/issues/15165
| 2,056,290,653
|
I_kwDOIPDwls56kIFd
| 15,165
|
Issue: Pass additional data through AgentExecutor
|
{
"login": "cocoza4",
"id": 2470948,
"node_id": "MDQ6VXNlcjI0NzA5NDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2470948?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cocoza4",
"html_url": "https://github.com/cocoza4",
"followers_url": "https://api.github.com/users/cocoza4/followers",
"following_url": "https://api.github.com/users/cocoza4/following{/other_user}",
"gists_url": "https://api.github.com/users/cocoza4/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cocoza4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cocoza4/subscriptions",
"organizations_url": "https://api.github.com/users/cocoza4/orgs",
"repos_url": "https://api.github.com/users/cocoza4/repos",
"events_url": "https://api.github.com/users/cocoza4/events{/privacy}",
"received_events_url": "https://api.github.com/users/cocoza4/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
open
| false
| null |
[] | null | 2
| 2023-12-26T10:47:02
| 2023-12-26T20:18:29
| null |
NONE
| null |
### Issue you'd like to raise.
Given a tool that generates a dataframe, how can I pass it through the chain?
```
llm_with_tools = llm.bind(functions=[format_tool_to_openai_function(t) for t in tools])
prompt = ChatPromptTemplate.from_messages(
[
("system", """
You are a helpful assistant for marketing department.
"""),
MessagesPlaceholder(variable_name="history"),
("user", """
Provide the answer to the question with 3 sentences long.
If the response is related to video-on-demand. Please make sure you return the content id to the answers
Question: {input}
"""),
MessagesPlaceholder(variable_name="agent_scratchpad"),
]
)
agent = (
{
"input": lambda x: x["input"],
"dataframe": <<my_dataframe>>,
"agent_scratchpad": lambda x: format_to_openai_function_messages(
x["intermediate_steps"]
),
"history": lambda x: x['history']
}
| prompt
| llm_with_tools
| OpenAIFunctionsAgentOutputParser()
AgentExecutor(agent=agent, tools=tools, verbose=True)
```
Is it possible?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15165/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15165/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15164
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15164/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15164/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15164/events
|
https://github.com/langchain-ai/langchain/issues/15164
| 2,056,226,273
|
I_kwDOIPDwls56j4Xh
| 15,164
|
【BUG】ConversationalRetrievalChain.from_llm and pass in chat_history, there is a problem with the callback.
|
{
"login": "pengkang1991",
"id": 49478192,
"node_id": "MDQ6VXNlcjQ5NDc4MTky",
"avatar_url": "https://avatars.githubusercontent.com/u/49478192?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pengkang1991",
"html_url": "https://github.com/pengkang1991",
"followers_url": "https://api.github.com/users/pengkang1991/followers",
"following_url": "https://api.github.com/users/pengkang1991/following{/other_user}",
"gists_url": "https://api.github.com/users/pengkang1991/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pengkang1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pengkang1991/subscriptions",
"organizations_url": "https://api.github.com/users/pengkang1991/orgs",
"repos_url": "https://api.github.com/users/pengkang1991/repos",
"events_url": "https://api.github.com/users/pengkang1991/events{/privacy}",
"received_events_url": "https://api.github.com/users/pengkang1991/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false
| null |
[] | null | 2
| 2023-12-26T09:32:29
| 2024-01-10T03:36:51
| 2024-01-10T03:36:51
|
NONE
| null |
### System Info
python3.10
langchain 0.0.333
### Who can help?
@hwchase17 @agola11 @agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [X] Callbacks/Tracing
- [x] Async
### Reproduction
1. I tried to use the asynchronous call chain=ConversationalRetrievalChain.from_llm combined with the local knowledge base to find the answer.
2. When chat_history is not passed in chain.acall({"question": query, "chat_history":[]}), it can correctly return the result of the streaming output.
3. When I pass in chat_history, the returned result is new_question. new_question is a processed question and is not the answer I want.
code:
` db = FAISS.load_local(COMIXGPT_VECTOR, embeddings)
retriever = db.as_retriever(search_type="similarity_score_threshold",
search_kwargs={"score_threshold": score_threshold,
"k": VECTOR_SEARCH_TOP_K})
prompt = PromptTemplate(
input_variables=["chat_history", "context", "question"],
template=prompt_template
)
chain = ConversationalRetrievalChain.from_llm(
llm=model,
chain_type="stuff",
retriever=retriever,
#memory=memory,
return_source_documents=True,
return_generated_question=True,
combine_docs_chain_kwargs={'prompt': prompt},
condense_question_llm=model,
verbose=True
)
task = asyncio.create_task(wrap_done(
chain.acall({"question": query, "chat_history":chat_history}),
callback.done),
)
if stream:
async for token in callback.aiter():
# Use server-sent-events to stream the response
yield json.dumps({"answer": token}, ensure_ascii=False)
yield json.dumps({"docs": source_documents}, ensure_ascii=False)
else:
answer = ""
async for token in callback.aiter():
answer += token
yield json.dumps({"answer": answer,
"docs": source_documents},
ensure_ascii=False)
await task
return StreamingResponse(knowledge_base_chat_iterator(query=query,
top_k=top_k,
history=history,
chat_history=chat_history,
model_name=model_name,
prompt_name=prompt_name),
media_type="text/event-stream")`
### Expected behavior
I don't know why it called LLM twice, and then it returned the updated Question, which was not the Assistant I wanted. The call log is as follows:
log:
> Entering new LLMChain chain...
Prompt after formatting:
Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question, in its original language.
Chat History:
Human: hello
Assistant: Hi there! Is there anything I can help you with? Youre welcome, just tell me~
Human: hello hello make friends
Assistant: ok
Follow Up Input: hello!
Standalone question:
> Entering new StuffDocumentsChain chain...
> Entering new LLMChain chain...
Prompt after formatting:
Chat History:
Human: hello
Assistant: Hi there! Is there anything I can help you with? Youre welcome, just tell me~
Human: hello hello make friends
Assistant: ok
Question: How can I make friends?
Helpful Answer:
2023-12-26 17:27:43,269 - _client.py[line:1758] - INFO: HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
> Finished chain.
> Finished chain.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15164/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15164/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15163
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15163/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15163/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15163/events
|
https://github.com/langchain-ai/langchain/pull/15163
| 2,056,220,602
|
PR_kwDOIPDwls5ixPjE
| 15,163
|
Corrected an grammatical mistake
|
{
"login": "ShorthillsAI",
"id": 141953346,
"node_id": "U_kgDOCHYJQg",
"avatar_url": "https://avatars.githubusercontent.com/u/141953346?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShorthillsAI",
"html_url": "https://github.com/ShorthillsAI",
"followers_url": "https://api.github.com/users/ShorthillsAI/followers",
"following_url": "https://api.github.com/users/ShorthillsAI/following{/other_user}",
"gists_url": "https://api.github.com/users/ShorthillsAI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShorthillsAI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShorthillsAI/subscriptions",
"organizations_url": "https://api.github.com/users/ShorthillsAI/orgs",
"repos_url": "https://api.github.com/users/ShorthillsAI/repos",
"events_url": "https://api.github.com/users/ShorthillsAI/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShorthillsAI/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T09:25:56
| 2023-12-26T19:06:53
| 2023-12-26T19:06:53
|
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15163/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15163/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15163",
"html_url": "https://github.com/langchain-ai/langchain/pull/15163",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15163.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15163.patch",
"merged_at": "2023-12-26T19:06:53"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15162
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15162/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15162/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15162/events
|
https://github.com/langchain-ai/langchain/issues/15162
| 2,056,133,474
|
I_kwDOIPDwls56jhti
| 15,162
|
Issue: How it can be splitted ?
|
{
"login": "deepak-habilelabs",
"id": 137885024,
"node_id": "U_kgDOCDf1YA",
"avatar_url": "https://avatars.githubusercontent.com/u/137885024?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/deepak-habilelabs",
"html_url": "https://github.com/deepak-habilelabs",
"followers_url": "https://api.github.com/users/deepak-habilelabs/followers",
"following_url": "https://api.github.com/users/deepak-habilelabs/following{/other_user}",
"gists_url": "https://api.github.com/users/deepak-habilelabs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/deepak-habilelabs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deepak-habilelabs/subscriptions",
"organizations_url": "https://api.github.com/users/deepak-habilelabs/orgs",
"repos_url": "https://api.github.com/users/deepak-habilelabs/repos",
"events_url": "https://api.github.com/users/deepak-habilelabs/events{/privacy}",
"received_events_url": "https://api.github.com/users/deepak-habilelabs/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T07:41:33
| 2023-12-26T10:37:39
| 2023-12-26T10:37:39
|
NONE
| null |
is it correct using CharacterTextSplitter in Confluence
### Issue you'd like to raise.
confluence_url = config.get("confluence_url", None)
username = config.get("username", None)
api_key = config.get("api_key", None)
space_key = config.get("space_key", None)
documents = []
embedding = OpenAIEmbeddings()
loader = ConfluenceLoader(
url=confluence_url,
username=username,
api_key=api_key
)
for space_key in space_key:
try:
documents.extend(loader.load(space_key=space_key,include_attachments=True,limit=100))
except:
documents=[]
text_splitter = CharacterTextSplitter(chunk_size=6000, chunk_overlap=0)
texts = text_splitter.split_documents(documents)
text_splitter = TokenTextSplitter(chunk_size=1000, chunk_overlap=10, encoding_name="cl100k_base")
texts = text_splitter.split_documents(texts)
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15162/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15162/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15161
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15161/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15161/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15161/events
|
https://github.com/langchain-ai/langchain/issues/15161
| 2,056,117,735
|
I_kwDOIPDwls56jd3n
| 15,161
|
Does ConversationBufferMemory actually save conversation twice?
|
{
"login": "AndyLuo1029",
"id": 71260173,
"node_id": "MDQ6VXNlcjcxMjYwMTcz",
"avatar_url": "https://avatars.githubusercontent.com/u/71260173?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/AndyLuo1029",
"html_url": "https://github.com/AndyLuo1029",
"followers_url": "https://api.github.com/users/AndyLuo1029/followers",
"following_url": "https://api.github.com/users/AndyLuo1029/following{/other_user}",
"gists_url": "https://api.github.com/users/AndyLuo1029/gists{/gist_id}",
"starred_url": "https://api.github.com/users/AndyLuo1029/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AndyLuo1029/subscriptions",
"organizations_url": "https://api.github.com/users/AndyLuo1029/orgs",
"repos_url": "https://api.github.com/users/AndyLuo1029/repos",
"events_url": "https://api.github.com/users/AndyLuo1029/events{/privacy}",
"received_events_url": "https://api.github.com/users/AndyLuo1029/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false
| null |
[] | null | 2
| 2023-12-26T07:21:01
| 2024-01-02T06:47:11
| 2024-01-02T06:47:11
|
NONE
| null |
### System Info
When I set `verbose=True` when creating chains using ConversationBufferMemory as memory and **redirect** the output to a txt/log file, the return messages shows that the ConversationBufferMemory saves same round conversation twice. You can get the example in later part of this issue.
**This problem will not happen if I just print the return messages in terminal instead of redirecting them into files.**
Does ConversationBufferMemory actually save conversation twice? If so, this will waste half of the input tokens to LLMs. How can I set some variables to make it only save once with any round of conversation?
### Who can help?
@agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [X] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python
from langchain.chains import ConversationChain
from langchain.memory import ConversationBufferMemory
from langchain.chat_models import ChatOpenAI
llm = ChatOpenAI(model_name = 'gpt-4-1106-preview', temperature = 0.0)
def_memory = ConversationBufferMemory(memory_key="history", return_messages=True)
def_chain = ConversationChain(
llm = llm,
memory = def_memory,
verbose = True)
def_queries = ['When answering questions below, you should play a role as a vehicle system engineer. Your job is to read the VDR (Vehicle Digital Requirement) form and evaluate the quality of the VDR completion. Make your answer as brief as you can. If you understand what I said, reply only [UNDERSTAND].',
'You can see duplication in memory of this query.']
for def_q in def_queries:
ret = def_chain.run(def_q)
def_memory.save_context({"input": def_q}, {"output": ret})
# pls redirect the output into some .txt or .log file
```
### Expected behavior
### Below is my redirected gh.log file, I bold the duplicate part
[1m> Entering new ConversationChain chain...[0m
Prompt after formatting:
[32;1m[1;3mThe following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.
Current conversation:
[]
Human: When answering questions below, you should play a role as a vehicle system engineer. Your job is to read the VDR (Vehicle Digital Requirement) form and evaluate the quality of the VDR completion. Make your answer as brief as you can. If you understand what I said, reply only [UNDERSTAND].
AI:[0m
[1m> Finished chain.[0m
[1m> Entering new ConversationChain chain...[0m
Prompt after formatting:
[32;1m[1;3mThe following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.
Current conversation:
**[HumanMessage(content='When answering questions below, you should play a role as a vehicle system engineer. Your job is to read the VDR (Vehicle Digital Requirement) form and evaluate the quality of the VDR completion. Make your answer as brief as you can. If you understand what I said, reply only [UNDERSTAND].'), AIMessage(content='[UNDERSTOOD]'), HumanMessage(content='When answering questions below, you should play a role as a vehicle system engineer. Your job is to read the VDR (Vehicle Digital Requirement) form and evaluate the quality of the VDR completion. Make your answer as brief as you can. If you understand what I said, reply only [UNDERSTAND].'), AIMessage(content='[UNDERSTOOD]')]**
Human: You can see duplication in memory of this query.
AI:[0m
[1m> Finished chain.[0m
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15161/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15161/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15160
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15160/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15160/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15160/events
|
https://github.com/langchain-ai/langchain/issues/15160
| 2,056,099,364
|
I_kwDOIPDwls56jZYk
| 15,160
|
Issue: i want to use langchain callbacks to pass a tool parameter to it? what should i do?
|
{
"login": "planetb113",
"id": 33831002,
"node_id": "MDQ6VXNlcjMzODMxMDAy",
"avatar_url": "https://avatars.githubusercontent.com/u/33831002?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/planetb113",
"html_url": "https://github.com/planetb113",
"followers_url": "https://api.github.com/users/planetb113/followers",
"following_url": "https://api.github.com/users/planetb113/following{/other_user}",
"gists_url": "https://api.github.com/users/planetb113/gists{/gist_id}",
"starred_url": "https://api.github.com/users/planetb113/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/planetb113/subscriptions",
"organizations_url": "https://api.github.com/users/planetb113/orgs",
"repos_url": "https://api.github.com/users/planetb113/repos",
"events_url": "https://api.github.com/users/planetb113/events{/privacy}",
"received_events_url": "https://api.github.com/users/planetb113/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-26T06:56:58
| 2023-12-26T07:04:49
| null |
NONE
| null |
### Issue you'd like to raise.
i'm using openai function call agent , gpt llm offen gives bad tool parameters, i want to achieve this: pass certain params to all tools through through some path, before every tool get executed, i can check whether the llm produced params is right or directly use the certain params already get
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15160/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15160/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15158
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15158/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15158/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15158/events
|
https://github.com/langchain-ai/langchain/issues/15158
| 2,056,076,604
|
I_kwDOIPDwls56jT08
| 15,158
|
Issue: When using Qdrant as retriever, how to retrieve the relevant documents with the similarity score?
|
{
"login": "TheJerryChang",
"id": 73481455,
"node_id": "MDQ6VXNlcjczNDgxNDU1",
"avatar_url": "https://avatars.githubusercontent.com/u/73481455?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/TheJerryChang",
"html_url": "https://github.com/TheJerryChang",
"followers_url": "https://api.github.com/users/TheJerryChang/followers",
"following_url": "https://api.github.com/users/TheJerryChang/following{/other_user}",
"gists_url": "https://api.github.com/users/TheJerryChang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/TheJerryChang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TheJerryChang/subscriptions",
"organizations_url": "https://api.github.com/users/TheJerryChang/orgs",
"repos_url": "https://api.github.com/users/TheJerryChang/repos",
"events_url": "https://api.github.com/users/TheJerryChang/events{/privacy}",
"received_events_url": "https://api.github.com/users/TheJerryChang/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
open
| false
| null |
[] | null | 4
| 2023-12-26T06:24:17
| 2023-12-26T09:04:08
| null |
NONE
| null |
### Issue you'd like to raise.
When using Qdrant as retriever, how to retrieve the relevant documents with the similarity score? For now, I do not see any methods that I can use to retrieve the documents and also return me the similarity score. However, if use the vector store to run similarity search, I have the option to get the documents and corresponding scores. Isn't there a way to achieve the same thing via retriever?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15158/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15158/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15157
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15157/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15157/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15157/events
|
https://github.com/langchain-ai/langchain/issues/15157
| 2,056,019,228
|
I_kwDOIPDwls56jF0c
| 15,157
|
DOC: Need some clarification on Neo4j DB QA chain documentation
|
{
"login": "pavaris-pm",
"id": 69553539,
"node_id": "MDQ6VXNlcjY5NTUzNTM5",
"avatar_url": "https://avatars.githubusercontent.com/u/69553539?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pavaris-pm",
"html_url": "https://github.com/pavaris-pm",
"followers_url": "https://api.github.com/users/pavaris-pm/followers",
"following_url": "https://api.github.com/users/pavaris-pm/following{/other_user}",
"gists_url": "https://api.github.com/users/pavaris-pm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pavaris-pm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pavaris-pm/subscriptions",
"organizations_url": "https://api.github.com/users/pavaris-pm/orgs",
"repos_url": "https://api.github.com/users/pavaris-pm/repos",
"events_url": "https://api.github.com/users/pavaris-pm/events{/privacy}",
"received_events_url": "https://api.github.com/users/pavaris-pm/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
open
| false
| null |
[] | null | 3
| 2023-12-26T04:36:18
| 2023-12-26T05:02:10
| null |
NONE
| null |
### Issue with current documentation:
I've wondering that in this part of the code in order to define `cypher generation template` of langchain with neo4j graph database from Neo4j DB QA chain Documentation
```python
from langchain.prompts.prompt import PromptTemplate
CYPHER_GENERATION_TEMPLATE = """Task:Generate Cypher statement to query a graph database.
Instructions:
Use only the provided relationship types and properties in the schema.
Do not use any other relationship types or properties that are not provided.
Schema:
{schema}
Note: Do not include any explanations or apologies in your responses.
Do not respond to any questions that might ask anything else than for you to construct a Cypher statement.
Do not include any text except the generated Cypher statement.
Examples: Here are a few examples of generated Cypher statements for particular questions:
# How many people played in Top Gun?
MATCH (m:Movie {{title:"Top Gun"}})<-[:ACTED_IN]-()
RETURN count(*) AS numberOfActors
The question is:
{question}"""
CYPHER_GENERATION_PROMPT = PromptTemplate(
input_variables=["schema", "question"], template=CYPHER_GENERATION_TEMPLATE
)
chain = GraphCypherQAChain.from_llm(
ChatOpenAI(temperature=0),
graph=graph,
verbose=True,
cypher_prompt=CYPHER_GENERATION_PROMPT,
)
```
Just want to ask that what variables that `schema` and `question` in **input_variables** parameters in `PromptTemplate` refers to ?
### Idea or request for content:
Please explain what schema and question refers to, did schema from our connected neo4j database and question is a text we pass into `chain.run("text input")`. Since i'm a little bit confused with documentation itself and need some explanation. Maybe use an example from it to explain will be much understanable
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15157/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15157/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15156
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15156/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15156/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15156/events
|
https://github.com/langchain-ai/langchain/pull/15156
| 2,056,001,362
|
PR_kwDOIPDwls5iwhOp
| 15,156
|
Patch: improve ollama 404 api error message, fix #15147
|
{
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 2
| 2023-12-26T03:53:16
| 2023-12-27T11:25:36
| 2023-12-26T19:07:39
|
CONTRIBUTOR
| null |
Make this issue more clearly exposed to developers
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15156/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15156/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15156",
"html_url": "https://github.com/langchain-ai/langchain/pull/15156",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15156.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15156.patch",
"merged_at": "2023-12-26T19:07:39"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15155
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15155/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15155/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15155/events
|
https://github.com/langchain-ai/langchain/pull/15155
| 2,055,986,783
|
PR_kwDOIPDwls5iweR2
| 15,155
|
add vikingdb and embedding
|
{
"login": "19374242",
"id": 90301759,
"node_id": "MDQ6VXNlcjkwMzAxNzU5",
"avatar_url": "https://avatars.githubusercontent.com/u/90301759?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/19374242",
"html_url": "https://github.com/19374242",
"followers_url": "https://api.github.com/users/19374242/followers",
"following_url": "https://api.github.com/users/19374242/following{/other_user}",
"gists_url": "https://api.github.com/users/19374242/gists{/gist_id}",
"starred_url": "https://api.github.com/users/19374242/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/19374242/subscriptions",
"organizations_url": "https://api.github.com/users/19374242/orgs",
"repos_url": "https://api.github.com/users/19374242/repos",
"events_url": "https://api.github.com/users/19374242/events{/privacy}",
"received_events_url": "https://api.github.com/users/19374242/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 7
| 2023-12-26T03:15:58
| 2024-01-15T20:34:01
| 2024-01-15T20:34:01
|
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15155/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15155/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15155",
"html_url": "https://github.com/langchain-ai/langchain/pull/15155",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15155.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15155.patch",
"merged_at": "2024-01-15T20:34:01"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15154
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15154/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15154/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15154/events
|
https://github.com/langchain-ai/langchain/pull/15154
| 2,055,980,695
|
PR_kwDOIPDwls5iwdCy
| 15,154
|
add vikingdb and embedding
|
{
"login": "19374242",
"id": 90301759,
"node_id": "MDQ6VXNlcjkwMzAxNzU5",
"avatar_url": "https://avatars.githubusercontent.com/u/90301759?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/19374242",
"html_url": "https://github.com/19374242",
"followers_url": "https://api.github.com/users/19374242/followers",
"following_url": "https://api.github.com/users/19374242/following{/other_user}",
"gists_url": "https://api.github.com/users/19374242/gists{/gist_id}",
"starred_url": "https://api.github.com/users/19374242/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/19374242/subscriptions",
"organizations_url": "https://api.github.com/users/19374242/orgs",
"repos_url": "https://api.github.com/users/19374242/repos",
"events_url": "https://api.github.com/users/19374242/events{/privacy}",
"received_events_url": "https://api.github.com/users/19374242/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-26T03:00:48
| 2023-12-26T03:10:56
| 2023-12-26T03:10:56
|
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15154/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15154/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15154",
"html_url": "https://github.com/langchain-ai/langchain/pull/15154",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15154.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15154.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15152
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15152/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15152/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15152/events
|
https://github.com/langchain-ai/langchain/pull/15152
| 2,055,881,605
|
PR_kwDOIPDwls5iwJTP
| 15,152
|
refactored `BaseChatMemory`, `ChatMessageHistory`, `get_prompt_input_key`
|
{
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 2
| 2023-12-25T21:50:15
| 2024-01-10T20:47:10
| 2024-01-10T20:47:10
|
COLLABORATOR
| null |
Moved `BaseChatMemory`, `ChatMessageHistory`, `get_prompt_input_key` into `langchain_core`
`BaseChatMemory`, `ChatMessageHistory` are base classes. The `get_prompt_input_key` was moved because of dependency.
Also fixed an error in imports in `langchain_experimental/autonomous_agents/autogpt/memory.py`
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15152/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15152/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15152",
"html_url": "https://github.com/langchain-ai/langchain/pull/15152",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15152.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15152.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15151
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15151/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15151/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15151/events
|
https://github.com/langchain-ai/langchain/pull/15151
| 2,055,806,071
|
PR_kwDOIPDwls5iv5aP
| 15,151
|
community: Semanticscholar tool to search 200M+ scientific articles
|
{
"login": "shauryr",
"id": 12604876,
"node_id": "MDQ6VXNlcjEyNjA0ODc2",
"avatar_url": "https://avatars.githubusercontent.com/u/12604876?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shauryr",
"html_url": "https://github.com/shauryr",
"followers_url": "https://api.github.com/users/shauryr/followers",
"following_url": "https://api.github.com/users/shauryr/following{/other_user}",
"gists_url": "https://api.github.com/users/shauryr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shauryr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shauryr/subscriptions",
"organizations_url": "https://api.github.com/users/shauryr/orgs",
"repos_url": "https://api.github.com/users/shauryr/repos",
"events_url": "https://api.github.com/users/shauryr/events{/privacy}",
"received_events_url": "https://api.github.com/users/shauryr/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 2
| 2023-12-25T18:01:34
| 2024-01-03T17:21:23
| 2024-01-02T23:36:03
|
CONTRIBUTOR
| null |
- **Description:** Tool now supports querying over 200 million scientific articles, vastly expanding its reach beyond the 2 million articles accessible through Arxiv. This update significantly broadens access to the entire scope of scientific literature.
- **Dependencies:** semantischolar https://github.com/danielnsilva/semanticscholar
- **Twitter handle:** @shauryr
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15151/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15151/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15151",
"html_url": "https://github.com/langchain-ai/langchain/pull/15151",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15151.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15151.patch",
"merged_at": "2024-01-02T23:36:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15150
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15150/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15150/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15150/events
|
https://github.com/langchain-ai/langchain/pull/15150
| 2,055,796,302
|
PR_kwDOIPDwls5iv3WB
| 15,150
|
community: Refactor OpenAIWhisperParserLocal
|
{
"login": "andrijdavid",
"id": 6048108,
"node_id": "MDQ6VXNlcjYwNDgxMDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/6048108?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrijdavid",
"html_url": "https://github.com/andrijdavid",
"followers_url": "https://api.github.com/users/andrijdavid/followers",
"following_url": "https://api.github.com/users/andrijdavid/following{/other_user}",
"gists_url": "https://api.github.com/users/andrijdavid/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrijdavid/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrijdavid/subscriptions",
"organizations_url": "https://api.github.com/users/andrijdavid/orgs",
"repos_url": "https://api.github.com/users/andrijdavid/repos",
"events_url": "https://api.github.com/users/andrijdavid/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrijdavid/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-25T17:32:56
| 2024-01-15T20:29:14
| 2024-01-15T20:29:14
|
CONTRIBUTOR
| null |
This PR addresses an issue in OpenAIWhisperParserLocal where requesting CUDA without availability leads to an AttributeError #15143
Changes:
- Refactored Logic for CUDA Availability: The initialization now includes a check for CUDA availability. If CUDA is not available, the code falls back to using the CPU. This ensures seamless operation without manual intervention.
- Parameterizing Batch Size and Chunk Size: The batch_size and chunk_size are now configurable parameters, offering greater flexibility and optimization options based on the specific requirements of the use case.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15150/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15150/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15150",
"html_url": "https://github.com/langchain-ai/langchain/pull/15150",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15150.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15150.patch",
"merged_at": "2024-01-15T20:29:14"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15149
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15149/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15149/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15149/events
|
https://github.com/langchain-ai/langchain/pull/15149
| 2,055,790,972
|
PR_kwDOIPDwls5iv2Nd
| 15,149
|
feat: semantic scholar agent tools
|
{
"login": "shauryr",
"id": 12604876,
"node_id": "MDQ6VXNlcjEyNjA0ODc2",
"avatar_url": "https://avatars.githubusercontent.com/u/12604876?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shauryr",
"html_url": "https://github.com/shauryr",
"followers_url": "https://api.github.com/users/shauryr/followers",
"following_url": "https://api.github.com/users/shauryr/following{/other_user}",
"gists_url": "https://api.github.com/users/shauryr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shauryr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shauryr/subscriptions",
"organizations_url": "https://api.github.com/users/shauryr/orgs",
"repos_url": "https://api.github.com/users/shauryr/repos",
"events_url": "https://api.github.com/users/shauryr/events{/privacy}",
"received_events_url": "https://api.github.com/users/shauryr/received_events",
"type": "User",
"site_admin": false
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2023-12-25T17:17:49
| 2023-12-25T17:19:19
| 2023-12-25T17:19:19
|
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15149/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15149/timeline
| null | null | true
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15149",
"html_url": "https://github.com/langchain-ai/langchain/pull/15149",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15149.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15149.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15148
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15148/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15148/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15148/events
|
https://github.com/langchain-ai/langchain/pull/15148
| 2,055,757,208
|
PR_kwDOIPDwls5ivvHB
| 15,148
|
docs: Update dependencies installation cell in steam toolkit
|
{
"login": "KallieLev",
"id": 45874373,
"node_id": "MDQ6VXNlcjQ1ODc0Mzcz",
"avatar_url": "https://avatars.githubusercontent.com/u/45874373?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KallieLev",
"html_url": "https://github.com/KallieLev",
"followers_url": "https://api.github.com/users/KallieLev/followers",
"following_url": "https://api.github.com/users/KallieLev/following{/other_user}",
"gists_url": "https://api.github.com/users/KallieLev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KallieLev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KallieLev/subscriptions",
"organizations_url": "https://api.github.com/users/KallieLev/orgs",
"repos_url": "https://api.github.com/users/KallieLev/repos",
"events_url": "https://api.github.com/users/KallieLev/events{/privacy}",
"received_events_url": "https://api.github.com/users/KallieLev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-25T15:52:05
| 2023-12-26T20:07:03
| 2023-12-26T20:07:03
|
CONTRIBUTOR
| null |
**Description:** `decouple` is not the correct package, it's `python-decouple`, and the notebook cell doesn't compile.
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15148/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15148/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15148",
"html_url": "https://github.com/langchain-ai/langchain/pull/15148",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15148.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15148.patch",
"merged_at": "2023-12-26T20:07:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15147
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15147/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15147/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15147/events
|
https://github.com/langchain-ai/langchain/issues/15147
| 2,055,708,933
|
I_kwDOIPDwls56h6EF
| 15,147
|
langchain_community.llms.ollama.OllamaEndpointNotFoundError: Ollama call failed with status code 404
|
{
"login": "BharathKumarAI",
"id": 104408802,
"node_id": "U_kgDOBjkm4g",
"avatar_url": "https://avatars.githubusercontent.com/u/104408802?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/BharathKumarAI",
"html_url": "https://github.com/BharathKumarAI",
"followers_url": "https://api.github.com/users/BharathKumarAI/followers",
"following_url": "https://api.github.com/users/BharathKumarAI/following{/other_user}",
"gists_url": "https://api.github.com/users/BharathKumarAI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/BharathKumarAI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BharathKumarAI/subscriptions",
"organizations_url": "https://api.github.com/users/BharathKumarAI/orgs",
"repos_url": "https://api.github.com/users/BharathKumarAI/repos",
"events_url": "https://api.github.com/users/BharathKumarAI/events{/privacy}",
"received_events_url": "https://api.github.com/users/BharathKumarAI/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false
| null |
[] | null | 6
| 2023-12-25T14:08:45
| 2023-12-26T10:00:24
| 2023-12-26T09:56:06
|
NONE
| null |
### System Info
Langchain Version: 0.0.352
Langchain experimental Version: 0.0.47
Python : 3.10
Ubuntu : 22.04
Poetry is being used
**Code: `test.py`**
```python
import json
from langchain.schema import HumanMessage
from langchain.callbacks.manager import CallbackManager
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain.chat_models import ChatOllama
chat_model = ChatOllama(model="mistral:instruct")
json_schema = {
"title": "Person",
"description": "Identifying information about a person.",
"type": "object",
"properties": {
"name": {"title": "Name", "description": "The person's name", "type": "string"},
"age": {"title": "Age", "description": "The person's age", "type": "integer"},
"fav_food": {
"title": "Fav Food",
"description": "The person's favorite food",
"type": "string",
},
},
"required": ["name", "age"],
}
messages = [
HumanMessage(
content="Please tell me about a person using the following JSON schema:"
),
HumanMessage(content=json.dumps(json_schema, indent=2)),
HumanMessage(
content="Now, considering the schema, tell me about a person named John who is 35 years old and loves pizza."
),
]
chat_model_response = chat_model(messages)
```
**Error:**
```sh
Traceback (most recent call last):
File "test.py", line 35, in <module>
chat_model_response = chat_model(messages)
File ".venv/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 636, in __call__
generation = self.generate(
File ".venv/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 382, in generate
raise e
File ".venv/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 372, in generate
self._generate_with_cache(
File ".venv/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 528, in _generate_with_cache
return self._generate(
File ".venv/lib/python3.10/site-packages/langchain_community/chat_models/ollama.py", line 209, in _generate
final_chunk = self._chat_stream_with_aggregation(
File ".venv/lib/python3.10/site-packages/langchain_community/chat_models/ollama.py", line 168, in _chat_stream_with_aggregation
for stream_resp in self._create_chat_stream(messages, stop, **kwargs):
File ".venv/lib/python3.10/site-packages/langchain_community/chat_models/ollama.py", line 155, in _create_chat_stream
yield from self._create_stream(
File ".venv/lib/python3.10/site-packages/langchain_community/llms/ollama.py", line 198, in _create_stream
raise OllamaEndpointNotFoundError(
langchain_community.llms.ollama.OllamaEndpointNotFoundError: Ollama call failed with status code 404.
```
checked if ollama is running on port 11434 it is working fine, but still seeing the issue.
@hwchase17 @agola11
Need some help on this.
### 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 Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
run the file `test.py`
### Expected behavior
model should complete the predication without any issue
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15147/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15147/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15146
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15146/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15146/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15146/events
|
https://github.com/langchain-ai/langchain/pull/15146
| 2,055,656,629
|
PR_kwDOIPDwls5ivZde
| 15,146
|
Feat: support functions call for google-genai
|
{
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
},
{
"id": 6348691034,
"node_id": "LA_kwDOIPDwls8AAAABemlWWg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner",
"name": "partner",
"color": "ededed",
"default": false,
"description": null
}
] |
open
| false
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 5
| 2023-12-25T12:26:03
| 2024-01-04T03:45:43
| null |
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15146/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15146/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15146",
"html_url": "https://github.com/langchain-ai/langchain/pull/15146",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15146.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15146.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15145
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15145/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15145/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15145/events
|
https://github.com/langchain-ai/langchain/issues/15145
| 2,055,649,057
|
I_kwDOIPDwls56hrch
| 15,145
|
SystemMessage are not considered while creating AgentExecutor with OPENAI_FUNCTIONS
|
{
"login": "manoharnv",
"id": 1620473,
"node_id": "MDQ6VXNlcjE2MjA0NzM=",
"avatar_url": "https://avatars.githubusercontent.com/u/1620473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/manoharnv",
"html_url": "https://github.com/manoharnv",
"followers_url": "https://api.github.com/users/manoharnv/followers",
"following_url": "https://api.github.com/users/manoharnv/following{/other_user}",
"gists_url": "https://api.github.com/users/manoharnv/gists{/gist_id}",
"starred_url": "https://api.github.com/users/manoharnv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/manoharnv/subscriptions",
"organizations_url": "https://api.github.com/users/manoharnv/orgs",
"repos_url": "https://api.github.com/users/manoharnv/repos",
"events_url": "https://api.github.com/users/manoharnv/events{/privacy}",
"received_events_url": "https://api.github.com/users/manoharnv/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6077048506,
"node_id": "LA_kwDOIPDwls8AAAABajhmug",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20elasticsearch",
"name": "integration: elasticsearch",
"color": "DAB5EC",
"default": false,
"description": "Related to elastic/elasticsearch integrations"
}
] |
open
| false
| null |
[] | null | 5
| 2023-12-25T12:11:14
| 2023-12-25T12:46:38
| null |
NONE
| null |
### System Info
Langchain version 0.352
SystemMessage is ignored when I invoke AgentExecutor.run function. the code looks as below.
```
from typing import Tuple, Dict
from langchain.agents import initialize_agent, AgentType
from langchain.agents.agent import AgentExecutor
from langchain.agents.format_scratchpad.openai_functions import format_to_openai_function_messages
from langchain.agents.output_parsers import OpenAIFunctionsAgentOutputParser
from langchain.memory import ConversationBufferMemory
from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder
from langchain.tools.render import format_tool_to_openai_function
from langchain_core.messages import SystemMessage
from elasticsearch_agent.config import cfg
from elasticsearch_agent.tools.index_data_tool import IndexShowDataTool
from elasticsearch_agent.tools.index_details_tool import IndexDetailsTool
from elasticsearch_agent.tools.index_search_tool import create_search_tool
from elasticsearch_agent.tools.list_indices_tool import ListIndicesTool
tools = [
ListIndicesTool(),
IndexShowDataTool(),
IndexDetailsTool(),
create_search_tool(),
]
def elastic_agent_factory() -> AgentExecutor:
system_msg = """
You are a helpful AI ElasticSearch Expert Assistant
**Always you will get the field names of the ElasticSearch index from the Elasticsearch DB as a first step.
You are provided with various tools to help the user to get information from an ElasticSearch index.
you will get the index name from the question. If not provided, show the list of available indices and ask the user to choose it.
You will generate required aggregation queries for any analytical questions asked.
You will use 'aggregations' field in response object for answering analytical queries.
Dont's:
Never assume index names or field names.
"""
agent_kwargs, memory = setup_memory()
agent_kwargs["system_message"] = SystemMessage(content=system_msg)
return initialize_agent(
tools,
cfg.llm,
agent=AgentType.OPENAI_FUNCTIONS,
verbose=False,
agent_kwargs=agent_kwargs,
memory=memory
)
def setup_memory() -> Tuple[Dict, ConversationBufferMemory]:
"""
Sets up memory for the open ai functions agent.
:return a tuple with the agent keyword pairs and the conversation memory.
"""
agent_kwargs = {
"extra_prompt_messages": [MessagesPlaceholder(variable_name="memory")],
}
memory = ConversationBufferMemory(memory_key="memory", return_messages=True)
return agent_kwargs, memory
if __name__ == "__main__":
agent_executor = elastic_agent_factory()
prompt = agent_executor.agent.prompt
print(prompt)
print(type(agent_executor.agent.prompt))
```
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [X] Async
### Reproduction
run the given code
### Expected behavior
The chain agent should consider using the system message and extra prompt message provided to it.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15145/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15145/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15144
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15144/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15144/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15144/events
|
https://github.com/langchain-ai/langchain/pull/15144
| 2,055,608,138
|
PR_kwDOIPDwls5ivPBv
| 15,144
|
Feat: Terminate retries immediately for User location not supported e…
|
{
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
},
{
"id": 6348691034,
"node_id": "LA_kwDOIPDwls8AAAABemlWWg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner",
"name": "partner",
"color": "ededed",
"default": false,
"description": null
}
] |
open
| false
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 3
| 2023-12-25T10:55:03
| 2024-01-04T09:13:27
| null |
CONTRIBUTOR
| null |
@hwchase17 @efriis
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15144/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15144/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15144",
"html_url": "https://github.com/langchain-ai/langchain/pull/15144",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15144.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15144.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15143
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15143/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15143/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15143/events
|
https://github.com/langchain-ai/langchain/issues/15143
| 2,055,569,018
|
I_kwDOIPDwls56hX56
| 15,143
|
OpenAIWhisperParserLocal fails when specifying cuda device but cuda is not available
|
{
"login": "andrijdavid",
"id": 6048108,
"node_id": "MDQ6VXNlcjYwNDgxMDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/6048108?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrijdavid",
"html_url": "https://github.com/andrijdavid",
"followers_url": "https://api.github.com/users/andrijdavid/followers",
"following_url": "https://api.github.com/users/andrijdavid/following{/other_user}",
"gists_url": "https://api.github.com/users/andrijdavid/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrijdavid/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrijdavid/subscriptions",
"organizations_url": "https://api.github.com/users/andrijdavid/orgs",
"repos_url": "https://api.github.com/users/andrijdavid/repos",
"events_url": "https://api.github.com/users/andrijdavid/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrijdavid/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-25T09:53:52
| 2023-12-25T09:56:09
| null |
CONTRIBUTOR
| null |
### System Info
langchain==0.0.352
langchain-community==0.0.6
langchain-core==0.1.3
### 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
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from langchain.document_loaders.parsers.audio import OpenAIWhisperParserLocal
whisper = OpenAIWhisperParserLocal(device="cuda")
```
This fails when cuda is requested but is not available and generates the following error:
`AttributeError: 'OpenAIWhisperParserLocal' object has no attribute 'lang_model'`
This is cause by the following logic: https://github.com/langchain-ai/langchain/blob/a2d30428237695f076060dec881bae0258123775/libs/community/langchain_community/document_loaders/parsers/audio.py#L176C18-L176C21
### Expected behavior
Provide a more clear error or fall back to CPU.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15143/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15143/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15142
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15142/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15142/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15142/events
|
https://github.com/langchain-ai/langchain/pull/15142
| 2,055,556,833
|
PR_kwDOIPDwls5ivD5i
| 15,142
|
Feat: add TinyImage tool to compress images
|
{
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
open
| false
| null |
[] | null | 2
| 2023-12-25T09:34:28
| 2024-01-04T09:13:04
| null |
CONTRIBUTOR
| null |
@hwchase17
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15142/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15142/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15142",
"html_url": "https://github.com/langchain-ai/langchain/pull/15142",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15142.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15142.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15141
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15141/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15141/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15141/events
|
https://github.com/langchain-ai/langchain/issues/15141
| 2,055,540,800
|
I_kwDOIPDwls56hRBA
| 15,141
|
HuggingFaceHub api can not pass trust_remote_code argument
|
{
"login": "RWDai",
"id": 27391645,
"node_id": "MDQ6VXNlcjI3MzkxNjQ1",
"avatar_url": "https://avatars.githubusercontent.com/u/27391645?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RWDai",
"html_url": "https://github.com/RWDai",
"followers_url": "https://api.github.com/users/RWDai/followers",
"following_url": "https://api.github.com/users/RWDai/following{/other_user}",
"gists_url": "https://api.github.com/users/RWDai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RWDai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RWDai/subscriptions",
"organizations_url": "https://api.github.com/users/RWDai/orgs",
"repos_url": "https://api.github.com/users/RWDai/repos",
"events_url": "https://api.github.com/users/RWDai/events{/privacy}",
"received_events_url": "https://api.github.com/users/RWDai/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-25T09:10:42
| 2023-12-25T09:15:40
| null |
NONE
| null |
### System Info
wsl
conda 23.7.4 python 3.8.11
### 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
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
repo_id = "Qwen/Qwen-1_8B-Chat"
llm = HuggingFaceHub(
repo_id=repo_id, model_kwargs={"max_length": 128, "temperature": 0.5}
)
llm_chain = LLMChain(prompt=prompt, llm=llm)
print(llm_chain.run(question))
```
output:
```
ValueError: Error raised by inference API: The repository for Qwen/Qwen-1_8B-Chat contains custom code which must be executed to correctly load the model. You can inspect the repository content at https://hf.co/Qwen/Qwen-1_8B-Chat.
Please pass the argument `trust_remote_code=True` to allow custom code to be run.
```
similar issue #6080
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15141/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15141/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15140
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15140/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15140/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15140/events
|
https://github.com/langchain-ai/langchain/pull/15140
| 2,055,465,850
|
PR_kwDOIPDwls5iuwTW
| 15,140
|
docs: updated wrong output in `Upstash Redis Cache` section of LLM Ca…
|
{
"login": "cyai",
"id": 83634399,
"node_id": "MDQ6VXNlcjgzNjM0Mzk5",
"avatar_url": "https://avatars.githubusercontent.com/u/83634399?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cyai",
"html_url": "https://github.com/cyai",
"followers_url": "https://api.github.com/users/cyai/followers",
"following_url": "https://api.github.com/users/cyai/following{/other_user}",
"gists_url": "https://api.github.com/users/cyai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cyai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cyai/subscriptions",
"organizations_url": "https://api.github.com/users/cyai/orgs",
"repos_url": "https://api.github.com/users/cyai/repos",
"events_url": "https://api.github.com/users/cyai/events{/privacy}",
"received_events_url": "https://api.github.com/users/cyai/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5955630415,
"node_id": "LA_kwDOIPDwls8AAAABYvu1Tw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis",
"name": "integration: redis",
"color": "F9D0C4",
"default": false,
"description": "Any integration that uses Redis"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-25T07:24:34
| 2023-12-26T21:08:22
| 2023-12-26T21:08:21
|
CONTRIBUTOR
| null |
…ching documentation
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
- **Description:** Fixed the wrong output and code block comment in `Upstash Redis` Cache section of LLM Caching documentation,
- **Issue:** #15139 ,
- **Dependencies:** N/A,
- **Twitter handle:** [@vardhaman722](https://twitter.com/vardhaman722)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15140/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15140/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15140",
"html_url": "https://github.com/langchain-ai/langchain/pull/15140",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15140.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15140.patch",
"merged_at": "2023-12-26T21:08:21"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15139
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15139/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15139/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15139/events
|
https://github.com/langchain-ai/langchain/issues/15139
| 2,055,458,803
|
I_kwDOIPDwls56g8_z
| 15,139
|
DOC: Wrong output in `Upstash Redis Cache` section of LLM Caching documentation
|
{
"login": "cyai",
"id": 83634399,
"node_id": "MDQ6VXNlcjgzNjM0Mzk5",
"avatar_url": "https://avatars.githubusercontent.com/u/83634399?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cyai",
"html_url": "https://github.com/cyai",
"followers_url": "https://api.github.com/users/cyai/followers",
"following_url": "https://api.github.com/users/cyai/following{/other_user}",
"gists_url": "https://api.github.com/users/cyai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cyai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cyai/subscriptions",
"organizations_url": "https://api.github.com/users/cyai/orgs",
"repos_url": "https://api.github.com/users/cyai/repos",
"events_url": "https://api.github.com/users/cyai/events{/privacy}",
"received_events_url": "https://api.github.com/users/cyai/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5955630415,
"node_id": "LA_kwDOIPDwls8AAAABYvu1Tw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis",
"name": "integration: redis",
"color": "F9D0C4",
"default": false,
"description": "Any integration that uses Redis"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-25T07:13:29
| 2023-12-25T07:21:59
| null |
CONTRIBUTOR
| null |
### Issue with current documentation:
In the current documentations the output of `Upstash Redis Cache` section in LLM Caching documentation seems wrong. The second run after caching is done has wrong output and wrong code and comments written in the code block.
### Idea or request for content:
Update the code block with appropriate comment and matching output to remove the confusion.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15139/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15139/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15138
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15138/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15138/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15138/events
|
https://github.com/langchain-ai/langchain/issues/15138
| 2,055,427,344
|
I_kwDOIPDwls56g1UQ
| 15,138
|
Sagemaker Endpoint not working streaming
|
{
"login": "bien-phillip",
"id": 140706247,
"node_id": "U_kgDOCGMBxw",
"avatar_url": "https://avatars.githubusercontent.com/u/140706247?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bien-phillip",
"html_url": "https://github.com/bien-phillip",
"followers_url": "https://api.github.com/users/bien-phillip/followers",
"following_url": "https://api.github.com/users/bien-phillip/following{/other_user}",
"gists_url": "https://api.github.com/users/bien-phillip/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bien-phillip/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bien-phillip/subscriptions",
"organizations_url": "https://api.github.com/users/bien-phillip/orgs",
"repos_url": "https://api.github.com/users/bien-phillip/repos",
"events_url": "https://api.github.com/users/bien-phillip/events{/privacy}",
"received_events_url": "https://api.github.com/users/bien-phillip/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-25T06:28:01
| 2023-12-25T06:36:07
| null |
NONE
| null |
### System Info
LangChain : 0.0.352
Python : 3.11.5
### Who can help?
@hwchase17
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
1. use streaming
```
llm_sm_ep = SagemakerEndpoint(
endpoint_name=endpoint_name,
client=client,
content_handler=content_handler,
model_kwargs=model_param,
endpoint_kwargs=endpoint_param,
streaming=True,
)
```
### Expected behavior
When I used TGI model, `invoke_endpoint_with_response_stream` of response does't have `outputs`. Instead it return `token` like below full response.
```
data:{"token":{"id":601,"text":" time","logprob":-0.10015869,"special":false},"generated_text":null,"details":null}
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15138/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15138/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15137
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15137/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15137/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15137/events
|
https://github.com/langchain-ai/langchain/pull/15137
| 2,055,426,029
|
PR_kwDOIPDwls5iuoCW
| 15,137
|
fix: add stronger contrast or labeling between notebook input and out…
|
{
"login": "cyai",
"id": 83634399,
"node_id": "MDQ6VXNlcjgzNjM0Mzk5",
"avatar_url": "https://avatars.githubusercontent.com/u/83634399?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cyai",
"html_url": "https://github.com/cyai",
"followers_url": "https://api.github.com/users/cyai/followers",
"following_url": "https://api.github.com/users/cyai/following{/other_user}",
"gists_url": "https://api.github.com/users/cyai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cyai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cyai/subscriptions",
"organizations_url": "https://api.github.com/users/cyai/orgs",
"repos_url": "https://api.github.com/users/cyai/repos",
"events_url": "https://api.github.com/users/cyai/events{/privacy}",
"received_events_url": "https://api.github.com/users/cyai/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-25T06:25:50
| 2023-12-25T06:31:48
| null |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
- **Description:** Enhanced the contrast or add labels to distinguish between input and output blocks in the LangChain documentation by modifying the CSS styles for the code blocks in the `custom.css` file referenced in the `docusaurus.config.js` file,
- **Issue:** #14532 ,
- **Dependencies:** N/A,
- **Twitter handle:** [@vardhaman722](https://twitter.com/vardhaman722)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15137/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15137/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15137",
"html_url": "https://github.com/langchain-ai/langchain/pull/15137",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15137.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15137.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15136
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15136/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15136/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15136/events
|
https://github.com/langchain-ai/langchain/pull/15136
| 2,055,400,581
|
PR_kwDOIPDwls5iui0j
| 15,136
|
community: update QuipLoader to support return text instead of html format
|
{
"login": "shufanhao",
"id": 11540660,
"node_id": "MDQ6VXNlcjExNTQwNjYw",
"avatar_url": "https://avatars.githubusercontent.com/u/11540660?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shufanhao",
"html_url": "https://github.com/shufanhao",
"followers_url": "https://api.github.com/users/shufanhao/followers",
"following_url": "https://api.github.com/users/shufanhao/following{/other_user}",
"gists_url": "https://api.github.com/users/shufanhao/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shufanhao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shufanhao/subscriptions",
"organizations_url": "https://api.github.com/users/shufanhao/orgs",
"repos_url": "https://api.github.com/users/shufanhao/repos",
"events_url": "https://api.github.com/users/shufanhao/events{/privacy}",
"received_events_url": "https://api.github.com/users/shufanhao/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] |
open
| false
| null |
[] | null | 6
| 2023-12-25T05:43:48
| 2024-01-13T13:46:52
| null |
CONTRIBUTOR
| null |
**Description:**
By default, the quip API return doc as html format, this PR is to support parse html as text to stripe html format.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15136/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15136/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15136",
"html_url": "https://github.com/langchain-ai/langchain/pull/15136",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15136.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15136.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15134
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15134/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15134/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15134/events
|
https://github.com/langchain-ai/langchain/pull/15134
| 2,055,309,681
|
PR_kwDOIPDwls5iuPS_
| 15,134
|
community: support UAE sentence embeddings
|
{
"login": "SeanLee97",
"id": 12824323,
"node_id": "MDQ6VXNlcjEyODI0MzIz",
"avatar_url": "https://avatars.githubusercontent.com/u/12824323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SeanLee97",
"html_url": "https://github.com/SeanLee97",
"followers_url": "https://api.github.com/users/SeanLee97/followers",
"following_url": "https://api.github.com/users/SeanLee97/following{/other_user}",
"gists_url": "https://api.github.com/users/SeanLee97/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SeanLee97/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SeanLee97/subscriptions",
"organizations_url": "https://api.github.com/users/SeanLee97/orgs",
"repos_url": "https://api.github.com/users/SeanLee97/repos",
"events_url": "https://api.github.com/users/SeanLee97/events{/privacy}",
"received_events_url": "https://api.github.com/users/SeanLee97/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
open
| false
| null |
[] | null | 5
| 2023-12-25T02:36:27
| 2024-01-05T01:41:59
| null |
NONE
| null |
- **Description:** support loading the current SOTA sentence embeddings [WhereIsAI/UAE](https://huggingface.co/WhereIsAI/UAE-Large-V1) in langchain.
- **Dependencies:** [angle_emb](https://github.com/SeanLee97/AnglE)
- **Twitter handle:** @xmlee97
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15134/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15134/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15134",
"html_url": "https://github.com/langchain-ai/langchain/pull/15134",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15134.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15134.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15133
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15133/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15133/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15133/events
|
https://github.com/langchain-ai/langchain/issues/15133
| 2,055,216,057
|
I_kwDOIPDwls56gBu5
| 15,133
|
RetryWithErrorOutputParser does not work with LLMChain because it does not implement the `parse` function
|
{
"login": "sid374",
"id": 5703867,
"node_id": "MDQ6VXNlcjU3MDM4Njc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5703867?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sid374",
"html_url": "https://github.com/sid374",
"followers_url": "https://api.github.com/users/sid374/followers",
"following_url": "https://api.github.com/users/sid374/following{/other_user}",
"gists_url": "https://api.github.com/users/sid374/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sid374/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sid374/subscriptions",
"organizations_url": "https://api.github.com/users/sid374/orgs",
"repos_url": "https://api.github.com/users/sid374/repos",
"events_url": "https://api.github.com/users/sid374/events{/privacy}",
"received_events_url": "https://api.github.com/users/sid374/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 3
| 2023-12-24T21:26:43
| 2023-12-25T12:59:48
| null |
NONE
| null |
### Feature request
Currently if one wants to use the RetryWithErrorOutputParser - we need to do the parsing manually instead of generating a chain that does it for us (including all the nice chain functions: batch, ainvoke, etc)
There are 2 issues:
1. The RetryWithOutputParser requires the prompt to be given to it as input so that it can do it's magic. It does this by implementing a `parse_with_prompt` function. Unfortunately this function is not plumbed all the way into the `BaseParser` so that when this is invoked as part of a regular chain it gives the `NotImplementedError: This OutputParser can only be called by the parse_with_prompt method.` exception.
2. The default output of the chatmodels is to return just the output or `AIMessages`. However in this case we need both the prompt and the output.
### Motivation
Currently we need to run the output parsing for the retry parsing manually. This tends to look something like this:
```
chain = chat_prompt | self.chat_model
output_batch = chain.batch(messages_batch,
config={"max_concurrency": 10,
"callbacks": [tracing_callback_handler]})
prompts_list = tracing_callback_handler.prompts
result_list = tracing_callback_handler.results
parsed_output_batch = []
for idx, output in enumerate(output_batch):
parsed_output = retry_parser.parse_with_prompt(output.content, prompts_list[idx])
parsed_output_batch.append(parsed_output)
```
In the above code the `tracing_callback_handler` is a custom callback handler that persists the prompt and results - which we end up using to give the retry_parser the prompt.
This is cumbersome and it would be awesome if this would just work with the chain itself like so
```
chain = chat_prompt | self.chat_model | retry_parser
output_batch = chain.batch(messages_batch,
config={"max_concurrency": 10,
"callbacks": [tracing_callback_handler]})
```
### Your contribution
If someone can validate that my understanding of the problem is correct - I can go ahead and create a PR for this.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15133/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15133/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15132
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15132/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15132/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15132/events
|
https://github.com/langchain-ai/langchain/issues/15132
| 2,055,216,000
|
I_kwDOIPDwls56gBuA
| 15,132
|
Adding Prompt template to ConversationalRetrievalChain.from_llm
|
{
"login": "oMarquess",
"id": 64367625,
"node_id": "MDQ6VXNlcjY0MzY3NjI1",
"avatar_url": "https://avatars.githubusercontent.com/u/64367625?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/oMarquess",
"html_url": "https://github.com/oMarquess",
"followers_url": "https://api.github.com/users/oMarquess/followers",
"following_url": "https://api.github.com/users/oMarquess/following{/other_user}",
"gists_url": "https://api.github.com/users/oMarquess/gists{/gist_id}",
"starred_url": "https://api.github.com/users/oMarquess/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oMarquess/subscriptions",
"organizations_url": "https://api.github.com/users/oMarquess/orgs",
"repos_url": "https://api.github.com/users/oMarquess/repos",
"events_url": "https://api.github.com/users/oMarquess/events{/privacy}",
"received_events_url": "https://api.github.com/users/oMarquess/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-24T21:26:16
| 2023-12-24T21:32:55
| null |
NONE
| null |
# How Adding a prompt template to conversational retrieval chain giving the code:
`template= """Use the following pieces of context to answer the question at the end.
If you don't know the answer,
just say that you don't know.
{context}
Question: {question}
Helpful Answer:"""
QA_CHAIN_PROMPT = PromptTemplate.from_template(template)
from langchain.memory import ConversationBufferMemory
memory = ConversationBufferMemory(
memory_key="chat_history",
return_messages=True
)
from langchain.chains import ConversationalRetrievalChain
qa = ConversationalRetrievalChain.from_llm(
llm,
retriever=db.as_retriever(),
memory=memory,
chain_type_kwargs={"prompt": QA_CHAIN_PROMPT}
)
`
`
ValidationError: 1 validation error for ConversationalRetrievalChain
chain_type_kwargs
extra fields not permitted (type=value_error.extra)`
How do I add the prompt template to the chain efficiently?
### Suggestion:
How do I add the prompt template to the chain efficiently? Please, I need help with this.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15132/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15132/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15131
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15131/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15131/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15131/events
|
https://github.com/langchain-ai/langchain/issues/15131
| 2,055,171,635
|
I_kwDOIPDwls56f24z
| 15,131
|
chain.invoke is no longer taking a json as input
|
{
"login": "rajib76",
"id": 16340036,
"node_id": "MDQ6VXNlcjE2MzQwMDM2",
"avatar_url": "https://avatars.githubusercontent.com/u/16340036?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rajib76",
"html_url": "https://github.com/rajib76",
"followers_url": "https://api.github.com/users/rajib76/followers",
"following_url": "https://api.github.com/users/rajib76/following{/other_user}",
"gists_url": "https://api.github.com/users/rajib76/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rajib76/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rajib76/subscriptions",
"organizations_url": "https://api.github.com/users/rajib76/orgs",
"repos_url": "https://api.github.com/users/rajib76/repos",
"events_url": "https://api.github.com/users/rajib76/events{/privacy}",
"received_events_url": "https://api.github.com/users/rajib76/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-24T17:35:05
| 2023-12-24T17:40:13
| null |
CONTRIBUTOR
| null |
### System Info
windows
### Who can help?
@hwchase17
@agola11
### 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 Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
The below code fails
import os
from operator import itemgetter
from dotenv import load_dotenv
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain_community.document_loaders import DirectoryLoader
from langchain_community.embeddings import OpenAIEmbeddings
from langchain_community.vectorstores.faiss import FAISS
from langchain_core.output_parsers import StrOutputParser
from langchain_core.runnables import RunnableParallel, RunnablePassthrough
from langchain.chat_models import ChatOpenAI
from langchain.prompts import ChatPromptTemplate
load_dotenv()
OPENAI_API_KEY = os.environ.get('OPENAI_API_KEY')
loader = DirectoryLoader("/Users/joyeed/langchain_examples/langchain_examples/data/", glob='**/*.md')
documents = loader.load()
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
text = text_splitter.split_documents(documents)
embeddings = OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY)
vectorstore = FAISS.from_documents(text, embeddings)
retriever = vectorstore.as_retriever()
prompt_template = ChatPromptTemplate.from_template(
"""
Write 2 {platform} posts about {topic}?
"""
)
model = ChatOpenAI(openai_api_key=OPENAI_API_KEY)
# Compose the chain for generating posts
chain = (
{"topic": RunnablePassthrough(), "platform": RunnablePassthrough(), "context": retriever}
| prompt_template
| model
| StrOutputParser()
)
# Invoke the chain to generate a post
output = chain.invoke({"topic": "baseball", "platform": "twitter"})
# Print the generated post
print(output)
I think it is failing because the invoke is expecting a string as an input, but earlier we were able to pass key/value pairs. It is failing in tiktoken/core.py in the below code, it expects a text here.
if match := _special_token_regex(disallowed_special).search(text):
raise_disallowed_special_token(match.group())
### Expected behavior
invoke should allow accepting JSON inputs
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15131/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15131/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15130
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15130/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15130/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15130/events
|
https://github.com/langchain-ai/langchain/issues/15130
| 2,055,130,570
|
I_kwDOIPDwls56fs3K
| 15,130
|
Template issue: Neo4J environmental variables in .env file not found
|
{
"login": "vanetreg",
"id": 20775061,
"node_id": "MDQ6VXNlcjIwNzc1MDYx",
"avatar_url": "https://avatars.githubusercontent.com/u/20775061?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vanetreg",
"html_url": "https://github.com/vanetreg",
"followers_url": "https://api.github.com/users/vanetreg/followers",
"following_url": "https://api.github.com/users/vanetreg/following{/other_user}",
"gists_url": "https://api.github.com/users/vanetreg/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vanetreg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vanetreg/subscriptions",
"organizations_url": "https://api.github.com/users/vanetreg/orgs",
"repos_url": "https://api.github.com/users/vanetreg/repos",
"events_url": "https://api.github.com/users/vanetreg/events{/privacy}",
"received_events_url": "https://api.github.com/users/vanetreg/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false
| null |
[] | null | 3
| 2023-12-24T14:59:45
| 2023-12-24T15:41:38
| null |
NONE
| null |
### System Info
langchain version: 0.0.352, Windows 10, Python 3.11.6,
### 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 / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I'm testing a couple of apps created from Langchain templates and I use dotenv and a .env file in the app's root folder ( default in docs: "my-app" )
I'm not able to work with Neo4J data added into it, when trying to run eg.:
**neo4j-advanced-rag-app\packages\neo4j-advanced-rag\ingest.py**
( My .env is in the neo4j-advanced-rag-app folder )
This is strange, because eg. Langsmith related env vars can be used, so I think the issue is not related to all env vars in .env file!
The last terminal error is:
```
Traceback (most recent call last):
File "d:\Projects\AI_testing\LangChain_test\Python_231026\neo4j-advanced-rag-app\packages\neo4j-advanced-rag\ingest.py", line 16, in <module>
graph = Neo4jGraph()
^^^^^^^^^^^^
File "D:\Projects\AI_testing\LangChain_test\Python_231026\langchain-venv\Lib\site-packages\langchain_community\graphs\neo4j_graph.py", line 65, in __init__
url = get_from_env("url", "NEO4J_URI", url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\AI_testing\LangChain_test\Python_231026\langchain-venv\Lib\site-packages\langchain_core\utils\env.py", line 41, in get_from_env
raise ValueError(
ValueError: Did not find url, please add an environment variable `NEO4J_URI` which contains it, or pass `url` as a named parameter.
```
### Expected behavior
I expect the app created from a template can use all the env vars in the .env file, which is placed into app root folder.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15130/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15130/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15125
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15125/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15125/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15125/events
|
https://github.com/langchain-ai/langchain/issues/15125
| 2,055,093,069
|
I_kwDOIPDwls56fjtN
| 15,125
|
Issue: LLMChain error. response_format json error with messages. Messages is array of array
|
{
"login": "69popovvlad",
"id": 33809018,
"node_id": "MDQ6VXNlcjMzODA5MDE4",
"avatar_url": "https://avatars.githubusercontent.com/u/33809018?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/69popovvlad",
"html_url": "https://github.com/69popovvlad",
"followers_url": "https://api.github.com/users/69popovvlad/followers",
"following_url": "https://api.github.com/users/69popovvlad/following{/other_user}",
"gists_url": "https://api.github.com/users/69popovvlad/gists{/gist_id}",
"starred_url": "https://api.github.com/users/69popovvlad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/69popovvlad/subscriptions",
"organizations_url": "https://api.github.com/users/69popovvlad/orgs",
"repos_url": "https://api.github.com/users/69popovvlad/repos",
"events_url": "https://api.github.com/users/69popovvlad/events{/privacy}",
"received_events_url": "https://api.github.com/users/69popovvlad/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false
| null |
[] | null | 4
| 2023-12-24T12:57:20
| 2023-12-24T15:06:36
| 2023-12-24T15:06:35
|
NONE
| null |
### Issue you'd like to raise.
Environment
```
Edition Windows 11 Home
Version 22H2
Installed on 4/30/2023
OS build 22621.2861
Experience Windows Feature Experience Pack 1000.22681.1000.0
langchain package version: "0.0.212"
zod package version: "3.22.4"
typescript package version: "5.1.6"
```
Prompt
```
My prompt data with keys: {chat_history}, {currentPoint}, {language}, {topic} and Last AI message: {lastAiMessage} and User response: {message}| format: json
```
Creating model code
```
// LLM constructor
constructor(args: any[]) {
this.llm = new ChatOpenAI({
openAIApiKey: process.env.OPENAI_API_KEY,
modelName: 'gpt-3.5-turbo-1106',
modelKwargs: {
response_format: {
type: 'json_object',
},
},
});
this.answerScheme = LLMChain.getAnswerScheme();
this.formatInstructions = createParserFromSchema(this.answerScheme).getFormatInstructions();
const prompt = ChatPromptTemplate.fromMessages([new SystemMessage(args.prompt, { "json": true })]);
const memory = new ConversationSummaryMemory({
llm: this.llm,
memoryKey: 'chat_history',
inputKey: 'message',
});
this.chain = new ConversationChain({
llm: this.llm,
prompt,
memory,
verbose: true,
})
}
private static getAnswerScheme() {
return z.object({
answer: z.string(),
action: z.enum(['none', 'next']),
});
}
```
Send message code
```
async sendMessage(chainValues: ChainValues) {
chainValues['currentPoint'] = this.currentPoint;
chainValues['lastAiMessage'] = this.lastAiMessage ?? '';
try {
const modelKwargs = {
response_format: {
type: 'json_object',
},
};
const rawResponse = await this.chain.call({ ...chainValues, ...modelKwargs, format_instructions: this.formatInstructions });
const { answer, action } = this.answerScheme.parse(rawResponse);
this.lastAiMessage = answer;
this.__parseActionKeyword(action);
return answer;
}
catch (error) {
console.error('LLMChain ERROR:', error);
return "Something goes wrong.\n\n" + error;
}
}
```
LLM run with input
```
[llm/start] [1:chain:ConversationChain > 2:llm:ChatOpenAI] Entering LLM run with input: {
"messages": [
[
{
"lc": 1,
"type": "constructor",
"id": [
"langchain_core",
"messages",
"SystemMessage"
],
"kwargs": {
"content": "My prompt data with keys: {chat_history}, {currentPoint}, {language}, {topic} and Last AI message: {lastAiMessage} and User response: {message}| format: json",
"additional_kwargs": {
"json": true
}
}
}
]
]
}
```
Error: `400 'messages' must contain the word 'json' in some form, to use 'response_format' of type 'json_object'.`
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15125/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15125/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15124
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15124/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15124/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15124/events
|
https://github.com/langchain-ai/langchain/pull/15124
| 2,055,045,742
|
PR_kwDOIPDwls5itag7
| 15,124
|
Langchain: Fix typo in documentation
|
{
"login": "GauravWaghmare",
"id": 10815829,
"node_id": "MDQ6VXNlcjEwODE1ODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/10815829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/GauravWaghmare",
"html_url": "https://github.com/GauravWaghmare",
"followers_url": "https://api.github.com/users/GauravWaghmare/followers",
"following_url": "https://api.github.com/users/GauravWaghmare/following{/other_user}",
"gists_url": "https://api.github.com/users/GauravWaghmare/gists{/gist_id}",
"starred_url": "https://api.github.com/users/GauravWaghmare/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GauravWaghmare/subscriptions",
"organizations_url": "https://api.github.com/users/GauravWaghmare/orgs",
"repos_url": "https://api.github.com/users/GauravWaghmare/repos",
"events_url": "https://api.github.com/users/GauravWaghmare/events{/privacy}",
"received_events_url": "https://api.github.com/users/GauravWaghmare/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 3
| 2023-12-24T09:48:17
| 2024-01-01T22:04:52
| 2024-01-01T22:04:51
|
CONTRIBUTOR
| null |
**Description:**
Fix typo in documentation.
**Twitter handle:**
@HydrogenHydride
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15124/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15124/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15124",
"html_url": "https://github.com/langchain-ai/langchain/pull/15124",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15124.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15124.patch",
"merged_at": "2024-01-01T22:04:51"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15122
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15122/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15122/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15122/events
|
https://github.com/langchain-ai/langchain/issues/15122
| 2,055,013,662
|
I_kwDOIPDwls56fQUe
| 15,122
|
If my agent tool requires user to pass 2 parameters, and if these 2 parameters are not included in the user's question, how can I remind him to enter the parametersIssue: <Please write a comprehensive title after the 'Issue: ' prefix>
|
{
"login": "HappyWHoo",
"id": 53430154,
"node_id": "MDQ6VXNlcjUzNDMwMTU0",
"avatar_url": "https://avatars.githubusercontent.com/u/53430154?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/HappyWHoo",
"html_url": "https://github.com/HappyWHoo",
"followers_url": "https://api.github.com/users/HappyWHoo/followers",
"following_url": "https://api.github.com/users/HappyWHoo/following{/other_user}",
"gists_url": "https://api.github.com/users/HappyWHoo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/HappyWHoo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HappyWHoo/subscriptions",
"organizations_url": "https://api.github.com/users/HappyWHoo/orgs",
"repos_url": "https://api.github.com/users/HappyWHoo/repos",
"events_url": "https://api.github.com/users/HappyWHoo/events{/privacy}",
"received_events_url": "https://api.github.com/users/HappyWHoo/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
open
| false
| null |
[] | null | 1
| 2023-12-24T07:32:59
| 2023-12-24T07:37:39
| null |
NONE
| null |
### Issue you'd like to raise.
If my agent tool requires user to pass 2 parameters, and if these 2 parameters are not included in the user's question, how can I remind him to enter the parameters
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15122/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15122/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15121
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15121/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15121/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15121/events
|
https://github.com/langchain-ai/langchain/pull/15121
| 2,055,007,345
|
PR_kwDOIPDwls5itTEL
| 15,121
|
Refactor: use SecretStr for Petals llms
|
{
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-24T07:03:25
| 2023-12-27T00:20:33
| 2023-12-26T20:57:37
|
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15121/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15121/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15121",
"html_url": "https://github.com/langchain-ai/langchain/pull/15121",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15121.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15121.patch",
"merged_at": "2023-12-26T20:57:37"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15120
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15120/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15120/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15120/events
|
https://github.com/langchain-ai/langchain/pull/15120
| 2,055,006,382
|
PR_kwDOIPDwls5itS4X
| 15,120
|
Refactor: use SecretStr for PipelineAI llms
|
{
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-24T06:58:29
| 2023-12-27T00:21:16
| 2023-12-26T21:00:59
|
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15120/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15120/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15120",
"html_url": "https://github.com/langchain-ai/langchain/pull/15120",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15120.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15120.patch",
"merged_at": "2023-12-26T21:00:58"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15119
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15119/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15119/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15119/events
|
https://github.com/langchain-ai/langchain/pull/15119
| 2,055,005,671
|
PR_kwDOIPDwls5itSvm
| 15,119
|
Refactor: use SecretStr for Predibase llms
|
{
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-24T06:54:51
| 2023-12-27T00:22:09
| 2023-12-26T21:01:42
|
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15119/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15119/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15119",
"html_url": "https://github.com/langchain-ai/langchain/pull/15119",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15119.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15119.patch",
"merged_at": "2023-12-26T21:01:42"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15118
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15118/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15118/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15118/events
|
https://github.com/langchain-ai/langchain/pull/15118
| 2,055,004,890
|
PR_kwDOIPDwls5itSmO
| 15,118
|
Refactor: use SecretStr for StochasticAI llms
|
{
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-24T06:50:45
| 2023-12-27T00:21:05
| 2023-12-26T20:59:51
|
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15118/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15118/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15118",
"html_url": "https://github.com/langchain-ai/langchain/pull/15118",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15118.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15118.patch",
"merged_at": "2023-12-26T20:59:51"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15117
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15117/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15117/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15117/events
|
https://github.com/langchain-ai/langchain/pull/15117
| 2,055,002,746
|
PR_kwDOIPDwls5itSNN
| 15,117
|
Refactor: use SecretStr for VolcEngineMaas llms
|
{
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-24T06:39:37
| 2023-12-27T00:20:56
| 2023-12-26T20:59:08
|
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15117/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15117/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15117",
"html_url": "https://github.com/langchain-ai/langchain/pull/15117",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15117.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15117.patch",
"merged_at": "2023-12-26T20:59:08"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15116
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15116/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15116/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15116/events
|
https://github.com/langchain-ai/langchain/issues/15116
| 2,055,002,722
|
I_kwDOIPDwls56fNpi
| 15,116
|
Issue: what is RAG and how it's implemented?
|
{
"login": "deepak-habilelabs",
"id": 137885024,
"node_id": "U_kgDOCDf1YA",
"avatar_url": "https://avatars.githubusercontent.com/u/137885024?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/deepak-habilelabs",
"html_url": "https://github.com/deepak-habilelabs",
"followers_url": "https://api.github.com/users/deepak-habilelabs/followers",
"following_url": "https://api.github.com/users/deepak-habilelabs/following{/other_user}",
"gists_url": "https://api.github.com/users/deepak-habilelabs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/deepak-habilelabs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deepak-habilelabs/subscriptions",
"organizations_url": "https://api.github.com/users/deepak-habilelabs/orgs",
"repos_url": "https://api.github.com/users/deepak-habilelabs/repos",
"events_url": "https://api.github.com/users/deepak-habilelabs/events{/privacy}",
"received_events_url": "https://api.github.com/users/deepak-habilelabs/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false
| null |
[] | null | 5
| 2023-12-24T06:39:33
| 2023-12-25T08:48:30
| null |
NONE
| null |
### Issue you'd like to raise.
what is RAG and how it's implemented as of now I completed exploring custom_prompt_template and want to know more about RAG?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15116/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15116/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15115
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15115/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15115/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15115/events
|
https://github.com/langchain-ai/langchain/issues/15115
| 2,054,997,867
|
I_kwDOIPDwls56fMdr
| 15,115
|
Chroma.from_documents exclude metadata in embedding? [Question]
|
{
"login": "louiest",
"id": 81742482,
"node_id": "MDQ6VXNlcjgxNzQyNDgy",
"avatar_url": "https://avatars.githubusercontent.com/u/81742482?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/louiest",
"html_url": "https://github.com/louiest",
"followers_url": "https://api.github.com/users/louiest/followers",
"following_url": "https://api.github.com/users/louiest/following{/other_user}",
"gists_url": "https://api.github.com/users/louiest/gists{/gist_id}",
"starred_url": "https://api.github.com/users/louiest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/louiest/subscriptions",
"organizations_url": "https://api.github.com/users/louiest/orgs",
"repos_url": "https://api.github.com/users/louiest/repos",
"events_url": "https://api.github.com/users/louiest/events{/privacy}",
"received_events_url": "https://api.github.com/users/louiest/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false
| null |
[] | null | 5
| 2023-12-24T06:13:37
| 2023-12-24T07:07:26
| null |
NONE
| null |
### Issue you'd like to raise.
I suspect a potential issue where Chroma.from_documents might not be embedding and storing vectors for metadata in documents.
I have loaded five tabular documents using DataFrameLoader. However, when attempting to retrieve content based on similarity from the vector store, it appears that sentences in the metadata are not being utilized for matching. I don't see the documentation have clarify if this is the expected behavior or if I might be overlooking a specific argument or setting?
To illustrate, suppose I have a table with three fields: customer_question, agent_answer, and manager_note. If I query using the exact string from one of a manager_note, it surprisingly doesn't return the corresponding document at the top of the results.
**Is this a normal outcome?
Should I modify my table structure to include all relevant content in the page_content_column when setting up the DataFrameLoader?**
Here is the process
```
loader = DataFrameLoader(customer_q_a_001, page_content_column='customer_question')
docs = loader2.load()
text_splitter = RecursiveCharacterTextSplitter(chunk_size=500, chunk_overlap=15)
docs = text_splitter.split_documents(docs )
# db = Chroma.from_documents(all_docs, embeddings, persist_directory="./chroma_db")
# db.persist()
db.similarity_search_with_score((query))
```
Library version:
langchain: 0.0.352
I would appreciate any insights or suggestions regarding this question.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15115/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15115/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15114
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15114/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15114/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15114/events
|
https://github.com/langchain-ai/langchain/pull/15114
| 2,054,975,881
|
PR_kwDOIPDwls5itNKj
| 15,114
|
ci: upgrade actions
|
{
"login": "purificant",
"id": 4669013,
"node_id": "MDQ6VXNlcjQ2NjkwMTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/4669013?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/purificant",
"html_url": "https://github.com/purificant",
"followers_url": "https://api.github.com/users/purificant/followers",
"following_url": "https://api.github.com/users/purificant/following{/other_user}",
"gists_url": "https://api.github.com/users/purificant/gists{/gist_id}",
"starred_url": "https://api.github.com/users/purificant/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/purificant/subscriptions",
"organizations_url": "https://api.github.com/users/purificant/orgs",
"repos_url": "https://api.github.com/users/purificant/repos",
"events_url": "https://api.github.com/users/purificant/events{/privacy}",
"received_events_url": "https://api.github.com/users/purificant/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
closed
| false
| null |
[] | null | 1
| 2023-12-24T03:53:34
| 2024-01-02T02:39:12
| 2024-01-01T22:02:43
|
CONTRIBUTOR
| null |
This PR upgrades CI actions [actions/setup-python](https://github.com/actions/setup-python/releases/tag/v5.0.0) and [google-github-actions/auth](https://github.com/google-github-actions/auth/releases/tag/v2.0.0)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15114/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15114/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15114",
"html_url": "https://github.com/langchain-ai/langchain/pull/15114",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15114.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15114.patch",
"merged_at": "2024-01-01T22:02:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15113
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/15113/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15113/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/15113/events
|
https://github.com/langchain-ai/langchain/pull/15113
| 2,054,954,112
|
PR_kwDOIPDwls5itJHx
| 15,113
|
refactored `text_splitter`
|
{
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6077048506,
"node_id": "LA_kwDOIPDwls8AAAABajhmug",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20elasticsearch",
"name": "integration: elasticsearch",
"color": "DAB5EC",
"default": false,
"description": "Related to elastic/elasticsearch integrations"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] |
open
| false
| null |
[] | null | 4
| 2023-12-24T01:27:14
| 2024-01-17T19:02:31
| null |
COLLABORATOR
| null |
All text splitters are in a single file. It is hard to extract a base classes to `langchain_core`.
- split code to several files
- added interface classes `BaseTextSplitter`, `BaseTextToDocumentsSplitter` and moved them into `core`
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15113/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/15113/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15113",
"html_url": "https://github.com/langchain-ai/langchain/pull/15113",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15113.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15113.patch",
"merged_at": null
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.