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/13682
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13682/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13682/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13682/events
|
https://github.com/langchain-ai/langchain/issues/13682
| 2,005,164,418 |
I_kwDOIPDwls53hGGC
| 13,682 |
How to add prompt template to create_csv_agent?
|
{
"login": "nithinreddyyyyyy",
"id": 129744879,
"node_id": "U_kgDOB7u_7w",
"avatar_url": "https://avatars.githubusercontent.com/u/129744879?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nithinreddyyyyyy",
"html_url": "https://github.com/nithinreddyyyyyy",
"followers_url": "https://api.github.com/users/nithinreddyyyyyy/followers",
"following_url": "https://api.github.com/users/nithinreddyyyyyy/following{/other_user}",
"gists_url": "https://api.github.com/users/nithinreddyyyyyy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nithinreddyyyyyy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nithinreddyyyyyy/subscriptions",
"organizations_url": "https://api.github.com/users/nithinreddyyyyyy/orgs",
"repos_url": "https://api.github.com/users/nithinreddyyyyyy/repos",
"events_url": "https://api.github.com/users/nithinreddyyyyyy/events{/privacy}",
"received_events_url": "https://api.github.com/users/nithinreddyyyyyy/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 | 4 | 2023-11-21T21:26:28 | 2023-12-08T18:08:18 | null |
NONE
| null |
### Issue with current documentation:
Hey guys! Below is the code which i'm working on
```
import pandas as pd
from IPython.display import Markdown, display
from langchain.agents import create_csv_agent
from langchain.chat_models import ChatOpenAI
from langchain.llms import OpenAI
import os
import pandas as pd
os.environ["OPENAI_API_KEY"] = ""
df = pd.read_csv('https://gist.githubusercontent.com/armgilles/194bcff35001e7eb53a2a8b441e8b2c6/raw/92200bc0a673d5ce2110aaad4544ed6c4010f687/pokemon.csv')
df.to_csv('pokemon.csv', index=False)
# Load the agent
agent = create_csv_agent(OpenAI(temperature=0), "pokemon.csv", verbose=True)
gpt4_agent = create_csv_agent(
ChatOpenAI(temperature=0, model_name="gpt-4"), "pokemon.csv", verbose=True
)
agent.run("Which pokemon has the highest attack and which has lowest defense?")
```
In the above code, you can see the query has the normal question. How do i add the below prompt template as the question?
```
# Now you can use the json_data in your prompt
prompt_template = f'''If the dataset has the following columns: {json_data}
Understand user questions with different column names and convert them to a JSON format. Here's an example:
Example 1:
User Question: Top 2 zones by Housing Loan in the West and South in the year 2019 excluding small loans and with Discount > 5 and Term Deposit between 10k and 15k
{{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Month",
"agg_columns": ["Housing Loan"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": ["Zone"],
"filters": {{"Zone": ["West", "South"]}},
"not_in": {{"Loan Type": ["Small"]}},
"num_filter": {{
"gt": [
["Discount", 5],
["Term Deposit", 10000]
],
"lt": [
["Term Deposit", 15000]
]
}},
"percent": false,
"top": "2",
"bottom": null
}}
Example 2:
User Question: What is the Highest Loan Amount and Loan Outstanding by RM Name James in January 2020
{{
"start_date": "01-01-2020",
"end_date": "31-01-2020",
"time_stamp_col": "Due Date",
"agg_columns": ["Loan Amount", "Loan Outstanding"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": [],
"filters": {{"RM Name": ["James"]}},
"not_in": {{}},
"num_filter": {{}},
"percent": false,
"top": "1",
"bottom": null
}}
Example 3:
User Question: Which RM Name with respect to Region has the Highest Interest Outstanding and Principal Outstanding in the year 2019
{{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Due Date",
"agg_columns": ["Interest Outstanding", "Principal Outstanding"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": ["RM Name", "Region"],
"filters": {{}},
"not_in": {{}},
"num_filter": {{}},
"percent": false,
"top": "1",
"bottom": null
}}
Example 4:
User Question: Which Branch in North Carolina with respect to Cibil Score Bucket has the Highest Cibil Score in 2019
{{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Due Date",
"agg_columns": ["Cibil Score", "DPD Bucket"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": ["Branch"],
"filters": {{"Region": ["North Carolina"]}},
"not_in": {{}},
"num_filter": {{}},
"percent": false,
"top": "1",
"bottom": null
}}
Example 5:
User Question: With respect to Zone, Region, Branch, RM Name what is the Highest Loan Amount, Loan Tenure, Loan Outstanding, EMI Pending, Principal Outstanding
{{
"start_date": null,
"end_date": null,
"time_stamp_col": null,
"agg_columns": ["Loan Amount", "Loan Tenure", "Loan Outstanding", "EMI Pending", "Principal Outstanding"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": ["Zone", "Region", "Branch", "RM Name"],
"filters": {{}},
"not_in": {{}},
"num_filter": {{}},
"percent": false,
"top": "1",
"bottom": null
}}
Example 6:
User Question: Top 2 zones by Housing Loan in the year 2019
{{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Due Date",
"agg_columns": ["Housing Loan"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": ["Zone"],
"filters": {{"Product": ["Home Loan"]}},
"not_in": {{}},
"num_filter": {{}},
"percent": false,
"top": "2",
"bottom": null
}}
Our test dataset has the following columns: {json_data}
User Question (to be converted): {{user_question}}'''
user_question = "Which pokemon has the highest attack and which has lowest defense?"
```
Can anyone assist with this?
### Idea or request for content:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13682/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/13682/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13681
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13681/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13681/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13681/events
|
https://github.com/langchain-ai/langchain/issues/13681
| 2,005,150,371 |
I_kwDOIPDwls53hCqj
| 13,681 |
Returning "ValidationError: 1 validation error for LLMChain prompt value is not a valid dict (type=type_error.dict)" while trying to run the LLMChain
|
{
"login": "nithinreddyyyyyy",
"id": 129744879,
"node_id": "U_kgDOB7u_7w",
"avatar_url": "https://avatars.githubusercontent.com/u/129744879?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nithinreddyyyyyy",
"html_url": "https://github.com/nithinreddyyyyyy",
"followers_url": "https://api.github.com/users/nithinreddyyyyyy/followers",
"following_url": "https://api.github.com/users/nithinreddyyyyyy/following{/other_user}",
"gists_url": "https://api.github.com/users/nithinreddyyyyyy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nithinreddyyyyyy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nithinreddyyyyyy/subscriptions",
"organizations_url": "https://api.github.com/users/nithinreddyyyyyy/orgs",
"repos_url": "https://api.github.com/users/nithinreddyyyyyy/repos",
"events_url": "https://api.github.com/users/nithinreddyyyyyy/events{/privacy}",
"received_events_url": "https://api.github.com/users/nithinreddyyyyyy/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": 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-11-21T21:15:55 | 2023-11-21T21:20:40 | null |
NONE
| null |
### Issue with current documentation:
I have run the below code which will try to go through the csv file and return the answer
```
import pandas as pd
import json
from langchain.llms import OpenAI
from langchain.chains import LLMChain
openai_api_key = ''
# Read CSV file into a DataFrame
df = pd.read_csv('https://gist.githubusercontent.com/armgilles/194bcff35001e7eb53a2a8b441e8b2c6/raw/92200bc0a673d5ce2110aaad4544ed6c4010f687/pokemon.csv')
# del df['Due Date']
# del df['Closing Date']
# Create a dictionary of unique values per column
unique_values_per_column = {}
for column in df.select_dtypes(include=['object']).columns:
# Convert ndarray to list
unique_values_per_column[column] = df[column].unique().tolist()
# Convert the dictionary to JSON
json_data = json.dumps(unique_values_per_column, indent=4)
# Now you can use the json_data in your prompt
prompt_template = f'''If the dataset has the following columns: {json_data}
Understand user questions with different column names and convert them to a JSON format. Here's an example:
Example 1:
User Question: Top 2 zones by Housing Loan in the West and South in the year 2019 excluding small loans and with Discount > 5 and Term Deposit between 10k and 15k
{{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Month",
"agg_columns": ["Housing Loan"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": ["Zone"],
"filters": {{"Zone": ["West", "South"]}},
"not_in": {{"Loan Type": ["Small"]}},
"num_filter": {{
"gt": [
["Discount", 5],
["Term Deposit", 10000]
],
"lt": [
["Term Deposit", 15000]
]
}},
"percent": false,
"top": "2",
"bottom": null
}}
Example 2:
User Question: What is the Highest Loan Amount and Loan Outstanding by RM Name James in January 2020
{{
"start_date": "01-01-2020",
"end_date": "31-01-2020",
"time_stamp_col": "Due Date",
"agg_columns": ["Loan Amount", "Loan Outstanding"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": [],
"filters": {{"RM Name": ["James"]}},
"not_in": {{}},
"num_filter": {{}},
"percent": false,
"top": "1",
"bottom": null
}}
Example 3:
User Question: Which RM Name with respect to Region has the Highest Interest Outstanding and Principal Outstanding in the year 2019
{{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Due Date",
"agg_columns": ["Interest Outstanding", "Principal Outstanding"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": ["RM Name", "Region"],
"filters": {{}},
"not_in": {{}},
"num_filter": {{}},
"percent": false,
"top": "1",
"bottom": null
}}
Example 4:
User Question: Which Branch in North Carolina with respect to Cibil Score Bucket has the Highest Cibil Score in 2019
{{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Due Date",
"agg_columns": ["Cibil Score", "DPD Bucket"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": ["Branch"],
"filters": {{"Region": ["North Carolina"]}},
"not_in": {{}},
"num_filter": {{}},
"percent": false,
"top": "1",
"bottom": null
}}
Example 5:
User Question: With respect to Zone, Region, Branch, RM Name what is the Highest Loan Amount, Loan Tenure, Loan Outstanding, EMI Pending, Principal Outstanding
{{
"start_date": null,
"end_date": null,
"time_stamp_col": null,
"agg_columns": ["Loan Amount", "Loan Tenure", "Loan Outstanding", "EMI Pending", "Principal Outstanding"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": ["Zone", "Region", "Branch", "RM Name"],
"filters": {{}},
"not_in": {{}},
"num_filter": {{}},
"percent": false,
"top": "1",
"bottom": null
}}
Example 6:
User Question: Top 2 zones by Housing Loan in the year 2019
{{
"start_date": "01-01-2019",
"end_date": "31-12-2019",
"time_stamp_col": "Due Date",
"agg_columns": ["Housing Loan"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": ["Zone"],
"filters": {{"Product": ["Home Loan"]}},
"not_in": {{}},
"num_filter": {{}},
"percent": false,
"top": "2",
"bottom": null
}}
Our test dataset has the following columns: {json_data}
User Question (to be converted): {{user_question}}'''
# Use langchain to process the prompt
llm = OpenAI(api_key=openai_api_key, temperature=0.9)
chain = LLMChain(llm=llm, prompt=prompt_template)
user_question = "What is the Highest Loan Amount and Loan Outstanding by RM Name James in January 2020"
response = chain.run(user_question)
print(response)
```
Below is the error it's returning
```
WARNING! api_key is not default parameter.
api_key was transferred to model_kwargs.
Please confirm that api_key is what you intended.
---------------------------------------------------------------------------
ValidationError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_22224\1265770286.py in <cell line: 169>()
167 # Use langchain to process the prompt
168 llm = OpenAI(api_key=openai_api_key, temperature=0.9)
--> 169 chain = LLMChain(llm=llm, prompt=prompt_template)
170
171
~\anaconda3\lib\site-packages\langchain\load\serializable.py in __init__(self, **kwargs)
72
73 def __init__(self, **kwargs: Any) -> None:
---> 74 super().__init__(**kwargs)
75 self._lc_kwargs = kwargs
76
~\anaconda3\lib\site-packages\pydantic\main.cp310-win_amd64.pyd in pydantic.main.BaseModel.__init__()
ValidationError: 1 validation error for LLMChain
prompt
value is not a valid dict (type=type_error.dict)
```
Can anyone assist what exactly is the error?
### Idea or request for content:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13681/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/13681/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13680
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13680/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13680/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13680/events
|
https://github.com/langchain-ai/langchain/pull/13680
| 2,005,148,049 |
PR_kwDOIPDwls5gEU07
| 13,680 |
fixed import error for BashOutputParser
|
{
"login": "gyliu513",
"id": 4461983,
"node_id": "MDQ6VXNlcjQ0NjE5ODM=",
"avatar_url": "https://avatars.githubusercontent.com/u/4461983?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gyliu513",
"html_url": "https://github.com/gyliu513",
"followers_url": "https://api.github.com/users/gyliu513/followers",
"following_url": "https://api.github.com/users/gyliu513/following{/other_user}",
"gists_url": "https://api.github.com/users/gyliu513/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gyliu513/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gyliu513/subscriptions",
"organizations_url": "https://api.github.com/users/gyliu513/orgs",
"repos_url": "https://api.github.com/users/gyliu513/repos",
"events_url": "https://api.github.com/users/gyliu513/events{/privacy}",
"received_events_url": "https://api.github.com/users/gyliu513/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": 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."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-21T21:14:05 | 2023-11-22T01:23:33 | 2023-11-22T00:33:41 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **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` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/13680/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/13680/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13680",
"html_url": "https://github.com/langchain-ai/langchain/pull/13680",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13680.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13680.patch",
"merged_at": "2023-11-22T00:33:41"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13679
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13679/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13679/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13679/events
|
https://github.com/langchain-ai/langchain/pull/13679
| 2,005,144,038 |
PR_kwDOIPDwls5gET6P
| 13,679 |
Embaas - added backoff retries for network requests
|
{
"login": "pocketcolin",
"id": 47982430,
"node_id": "MDQ6VXNlcjQ3OTgyNDMw",
"avatar_url": "https://avatars.githubusercontent.com/u/47982430?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pocketcolin",
"html_url": "https://github.com/pocketcolin",
"followers_url": "https://api.github.com/users/pocketcolin/followers",
"following_url": "https://api.github.com/users/pocketcolin/following{/other_user}",
"gists_url": "https://api.github.com/users/pocketcolin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pocketcolin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pocketcolin/subscriptions",
"organizations_url": "https://api.github.com/users/pocketcolin/orgs",
"repos_url": "https://api.github.com/users/pocketcolin/repos",
"events_url": "https://api.github.com/users/pocketcolin/events{/privacy}",
"received_events_url": "https://api.github.com/users/pocketcolin/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": 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": 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-11-21T21:12:21 | 2023-12-05T00:21:35 | 2023-12-05T00:21:35 |
CONTRIBUTOR
| null |
Running a large number of requests to Embaas' servers (or any server) can result in intermittent network failures (both from local and external network/service issues). This PR implements exponential backoff retries to help mitigate this issue.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13679/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/13679/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13679",
"html_url": "https://github.com/langchain-ai/langchain/pull/13679",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13679.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13679.patch",
"merged_at": "2023-12-05T00:21:35"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13678
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13678/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13678/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13678/events
|
https://github.com/langchain-ai/langchain/pull/13678
| 2,005,095,832 |
PR_kwDOIPDwls5gEJRB
| 13,678 |
[OBSOLETE] added CrossEncoderReranker with HuggingFaceCrossEncoder and SagemakerEndpointCrossEncoder
|
{
"login": "kennethchoe",
"id": 1812592,
"node_id": "MDQ6VXNlcjE4MTI1OTI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1812592?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kennethchoe",
"html_url": "https://github.com/kennethchoe",
"followers_url": "https://api.github.com/users/kennethchoe/followers",
"following_url": "https://api.github.com/users/kennethchoe/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethchoe/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kennethchoe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethchoe/subscriptions",
"organizations_url": "https://api.github.com/users/kennethchoe/orgs",
"repos_url": "https://api.github.com/users/kennethchoe/repos",
"events_url": "https://api.github.com/users/kennethchoe/events{/privacy}",
"received_events_url": "https://api.github.com/users/kennethchoe/received_events",
"type": "User",
"site_admin": false
}
|
[] |
closed
| false | null |
[] | null | 1 | 2023-11-21T20:43:32 | 2023-12-01T17:24:31 | 2023-11-21T23:07:21 |
CONTRIBUTOR
| null |
- **Description:** Support reranking based on cross encoder models available from HuggingFace.
- Added `CrossEncoder` schema
- Implemented `HuggingFaceCrossEncoder` and `SagemakerEndpointCrossEncoder`
- Implemented `CrossEncoderReranker` that performs similar functionality to `CohereRerank`
- Added `cross-encoder-reranker.ipynb` to demonstrate how to use it. Please let me know if anything else needs to be done to make it visible on the table-of-contents navigation bar on the left, or on the card list on [retrievers documentation page](https://python.langchain.com/docs/integrations/retrievers).
- **Issue:** N/A
- **Dependencies:** None other than the existing ones.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13678/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/13678/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13678",
"html_url": "https://github.com/langchain-ai/langchain/pull/13678",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13678.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13678.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13677
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13677/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13677/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13677/events
|
https://github.com/langchain-ai/langchain/pull/13677
| 2,005,081,393 |
PR_kwDOIPDwls5gEGH_
| 13,677 |
CLI 0.0.19
|
{
"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
}
|
[
{
"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-11-21T20:33:40 | 2023-11-21T20:34:40 | 2023-11-21T20:34:39 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13677/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/13677/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13677",
"html_url": "https://github.com/langchain-ai/langchain/pull/13677",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13677.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13677.patch",
"merged_at": "2023-11-21T20:34:39"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13676
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13676/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13676/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13676/events
|
https://github.com/langchain-ai/langchain/pull/13676
| 2,005,080,632 |
PR_kwDOIPDwls5gEF9q
| 13,676 |
Update name
|
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/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": 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-11-21T20:33:01 | 2023-11-21T21:39:31 | 2023-11-21T21:39:30 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13676/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/13676/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13676",
"html_url": "https://github.com/langchain-ai/langchain/pull/13676",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13676.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13676.patch",
"merged_at": "2023-11-21T21:39:30"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13675
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13675/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13675/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13675/events
|
https://github.com/langchain-ai/langchain/issues/13675
| 2,005,073,074 |
I_kwDOIPDwls53gvyy
| 13,675 |
Issue: Queries on conversational retreival chain prompt
|
{
"login": "akash97715",
"id": 34799343,
"node_id": "MDQ6VXNlcjM0Nzk5MzQz",
"avatar_url": "https://avatars.githubusercontent.com/u/34799343?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akash97715",
"html_url": "https://github.com/akash97715",
"followers_url": "https://api.github.com/users/akash97715/followers",
"following_url": "https://api.github.com/users/akash97715/following{/other_user}",
"gists_url": "https://api.github.com/users/akash97715/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akash97715/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akash97715/subscriptions",
"organizations_url": "https://api.github.com/users/akash97715/orgs",
"repos_url": "https://api.github.com/users/akash97715/repos",
"events_url": "https://api.github.com/users/akash97715/events{/privacy}",
"received_events_url": "https://api.github.com/users/akash97715/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": 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-11-21T20:28:07 | 2023-11-21T20:48:23 | null |
NONE
| null |
### Issue you'd like to raise.
I am using conversational retreival chain .from_llm(). If i try to print the final prompt that is been sent to LLM there i see LLM calls total 2 times. I will paste both the prompt in both calls.
Below is the code i am using
`qa_chain = ConversationalRetrievalChain.from_llm(llm=llm, chain_type=chain_type,
retriever=vector_database.as_retriever(),
return_source_documents=True)
qa_chain({'question': 'summarize this document', "chat_history": [('what is this', 'this is something'),('who you are', 'i am nothing')]})`
Below i can see the prompt sending to LLM 2 times
**1st call to LLM:**
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: what is this
assistant: this is something
human: who you are
assistant: i am nothing
Follow Up Input: summarize this document
Standalone question:"""
**2nd call to LLM:**
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, don't try to make up an answer.
Title: Details
Title:Details
Tile:Details
Question: what is the summary of the document?
Helpful Answers:
In the above mentioned 2 calls i can see clearly whatever i have passed in **chat_history** as a question and answer tuple pair that is used to frame my question in the **1st call prompt**. and i can see clearly my original question **summarize this document** is been modified to **what is the summary of the document?**
My question or i am trying to understand is, In place of context i see 3 times Title:Details. what is this?? Can you please explain? . is this the output of vectordb.asretreiver? if yes why i am seeing Title:Details 3 times?. please help me understand what is **Title:Details.**? in the **2nd prompt call**
Let me know if u need additional context to understand my questions.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13675/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/13675/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13673
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13673/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13673/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13673/events
|
https://github.com/langchain-ai/langchain/pull/13673
| 2,004,969,294 |
PR_kwDOIPDwls5gDtqp
| 13,673 |
update langserve to v0.0.30
|
{
"login": "jakerachleff",
"id": 9028897,
"node_id": "MDQ6VXNlcjkwMjg4OTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/9028897?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jakerachleff",
"html_url": "https://github.com/jakerachleff",
"followers_url": "https://api.github.com/users/jakerachleff/followers",
"following_url": "https://api.github.com/users/jakerachleff/following{/other_user}",
"gists_url": "https://api.github.com/users/jakerachleff/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jakerachleff/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jakerachleff/subscriptions",
"organizations_url": "https://api.github.com/users/jakerachleff/orgs",
"repos_url": "https://api.github.com/users/jakerachleff/repos",
"events_url": "https://api.github.com/users/jakerachleff/events{/privacy}",
"received_events_url": "https://api.github.com/users/jakerachleff/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": 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-11-21T19:12:54 | 2023-11-21T19:17:48 | 2023-11-21T19:17:47 |
COLLABORATOR
| null |
Upgrade langserve template version to 0.0.30 to include new improvements
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13673/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/13673/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13673",
"html_url": "https://github.com/langchain-ai/langchain/pull/13673",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13673.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13673.patch",
"merged_at": "2023-11-21T19:17:47"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13672
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13672/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13672/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13672/events
|
https://github.com/langchain-ai/langchain/pull/13672
| 2,004,956,076 |
PR_kwDOIPDwls5gDqyZ
| 13,672 |
fix templates dockerfile
|
{
"login": "jakerachleff",
"id": 9028897,
"node_id": "MDQ6VXNlcjkwMjg4OTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/9028897?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jakerachleff",
"html_url": "https://github.com/jakerachleff",
"followers_url": "https://api.github.com/users/jakerachleff/followers",
"following_url": "https://api.github.com/users/jakerachleff/following{/other_user}",
"gists_url": "https://api.github.com/users/jakerachleff/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jakerachleff/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jakerachleff/subscriptions",
"organizations_url": "https://api.github.com/users/jakerachleff/orgs",
"repos_url": "https://api.github.com/users/jakerachleff/repos",
"events_url": "https://api.github.com/users/jakerachleff/events{/privacy}",
"received_events_url": "https://api.github.com/users/jakerachleff/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": 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-11-21T19:02:56 | 2023-11-21T19:09:57 | 2023-11-21T19:09:56 |
COLLABORATOR
| null |
- **Description:** We need to update the Dockerfile for templates to also copy your README.md. This is because poetry requires that a readme exists if it is specified in the pyproject.toml
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13672/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/13672/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13672",
"html_url": "https://github.com/langchain-ai/langchain/pull/13672",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13672.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13672.patch",
"merged_at": "2023-11-21T19:09:56"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13671
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13671/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13671/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13671/events
|
https://github.com/langchain-ai/langchain/pull/13671
| 2,004,885,173 |
PR_kwDOIPDwls5gDbJz
| 13,671 |
Updated integration with Clarifai python SDK functions
|
{
"login": "mogith-pn",
"id": 143642606,
"node_id": "U_kgDOCI_P7g",
"avatar_url": "https://avatars.githubusercontent.com/u/143642606?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mogith-pn",
"html_url": "https://github.com/mogith-pn",
"followers_url": "https://api.github.com/users/mogith-pn/followers",
"following_url": "https://api.github.com/users/mogith-pn/following{/other_user}",
"gists_url": "https://api.github.com/users/mogith-pn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mogith-pn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mogith-pn/subscriptions",
"organizations_url": "https://api.github.com/users/mogith-pn/orgs",
"repos_url": "https://api.github.com/users/mogith-pn/repos",
"events_url": "https://api.github.com/users/mogith-pn/events{/privacy}",
"received_events_url": "https://api.github.com/users/mogith-pn/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": 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": 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 | 8 | 2023-11-21T18:18:26 | 2023-12-06T04:08:00 | 2023-12-06T04:08:00 |
CONTRIBUTOR
| null |
Description :
Updated the functions with new Clarifai python SDK.
Enabled initialisation of Clarifai class with model URL.
Updated docs with new functions examples.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13671/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/13671/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13671",
"html_url": "https://github.com/langchain-ai/langchain/pull/13671",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13671.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13671.patch",
"merged_at": "2023-12-06T04:08:00"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13670
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13670/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13670/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13670/events
|
https://github.com/langchain-ai/langchain/pull/13670
| 2,004,864,720 |
PR_kwDOIPDwls5gDWjf
| 13,670 |
Bugfix duckduckgo_search news search
|
{
"login": "deedy5",
"id": 65482418,
"node_id": "MDQ6VXNlcjY1NDgyNDE4",
"avatar_url": "https://avatars.githubusercontent.com/u/65482418?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/deedy5",
"html_url": "https://github.com/deedy5",
"followers_url": "https://api.github.com/users/deedy5/followers",
"following_url": "https://api.github.com/users/deedy5/following{/other_user}",
"gists_url": "https://api.github.com/users/deedy5/gists{/gist_id}",
"starred_url": "https://api.github.com/users/deedy5/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deedy5/subscriptions",
"organizations_url": "https://api.github.com/users/deedy5/orgs",
"repos_url": "https://api.github.com/users/deedy5/repos",
"events_url": "https://api.github.com/users/deedy5/events{/privacy}",
"received_events_url": "https://api.github.com/users/deedy5/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": 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": 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-11-21T18:08:19 | 2023-12-05T00:48:20 | 2023-12-05T00:48:20 |
CONTRIBUTOR
| null |
- **Description:**
Bugfix duckduckgo_search news search
- **Issue:**
https://github.com/langchain-ai/langchain/issues/13648
- **Dependencies:**
None
- **Tag maintainer:**
@baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13670/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/13670/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13670",
"html_url": "https://github.com/langchain-ai/langchain/pull/13670",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13670.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13670.patch",
"merged_at": "2023-12-05T00:48:20"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13669
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13669/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13669/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13669/events
|
https://github.com/langchain-ai/langchain/pull/13669
| 2,004,845,739 |
PR_kwDOIPDwls5gDSUO
| 13,669 |
Fix SearchApi integration
|
{
"login": "SebastjanPrachovskij",
"id": 86522260,
"node_id": "MDQ6VXNlcjg2NTIyMjYw",
"avatar_url": "https://avatars.githubusercontent.com/u/86522260?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SebastjanPrachovskij",
"html_url": "https://github.com/SebastjanPrachovskij",
"followers_url": "https://api.github.com/users/SebastjanPrachovskij/followers",
"following_url": "https://api.github.com/users/SebastjanPrachovskij/following{/other_user}",
"gists_url": "https://api.github.com/users/SebastjanPrachovskij/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SebastjanPrachovskij/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SebastjanPrachovskij/subscriptions",
"organizations_url": "https://api.github.com/users/SebastjanPrachovskij/orgs",
"repos_url": "https://api.github.com/users/SebastjanPrachovskij/repos",
"events_url": "https://api.github.com/users/SebastjanPrachovskij/events{/privacy}",
"received_events_url": "https://api.github.com/users/SebastjanPrachovskij/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": 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 | 2 | 2023-11-21T17:57:54 | 2023-12-05T00:24:03 | 2023-12-05T00:24:03 |
CONTRIBUTOR
| null |
When integrating into the [Langflow](https://github.com/logspace-ai/langflow) repo, we noticed some issues with the integration, mainly with imports.
This PR fixes the imports and updates the documentation.
@baskaryan since you reviewed our last PR - https://github.com/langchain-ai/langchain/pull/11023.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13669/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/13669/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13669",
"html_url": "https://github.com/langchain-ai/langchain/pull/13669",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13669.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13669.patch",
"merged_at": "2023-12-05T00:24:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13667
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13667/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13667/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13667/events
|
https://github.com/langchain-ai/langchain/issues/13667
| 2,004,820,202 |
I_kwDOIPDwls53fyDq
| 13,667 |
Can not load chain with ChatPromptTemplate
|
{
"login": "freemso",
"id": 10937540,
"node_id": "MDQ6VXNlcjEwOTM3NTQw",
"avatar_url": "https://avatars.githubusercontent.com/u/10937540?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/freemso",
"html_url": "https://github.com/freemso",
"followers_url": "https://api.github.com/users/freemso/followers",
"following_url": "https://api.github.com/users/freemso/following{/other_user}",
"gists_url": "https://api.github.com/users/freemso/gists{/gist_id}",
"starred_url": "https://api.github.com/users/freemso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/freemso/subscriptions",
"organizations_url": "https://api.github.com/users/freemso/orgs",
"repos_url": "https://api.github.com/users/freemso/repos",
"events_url": "https://api.github.com/users/freemso/events{/privacy}",
"received_events_url": "https://api.github.com/users/freemso/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 | 1 | 2023-11-21T17:40:19 | 2023-11-27T16:39:51 | 2023-11-27T16:39:51 |
CONTRIBUTOR
| null |
### System Info
LangChain version: `0.0.339`
Python version: `3.10`
### Who can help?
@hwchase17
### 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
When serializing the `ChatPromptTemplate`, it saves it in a JSON/YAML format like this:
```
{'input_variables': ['question', 'context'],
'output_parser': None,
'partial_variables': {},
'messages': [{'prompt': {'input_variables': ['context', 'question'],
'output_parser': None,
'partial_variables': {},
'template': "...",
'template_format': 'f-string',
'validate_template': True,
'_type': 'prompt'},
'additional_kwargs': {}}],
'_type': 'chat'}
```
Note that the `_type` is "chat".
However, LangChain's `load_prompt_from_config` [does not recognize "chat" as the supported prompt type](https://github.com/langchain-ai/langchain/blob/master/libs/core/langchain_core/prompts/loading.py#L19).
Here is a minimal example to reproduce the issue:
```python
from langchain.prompts import ChatPromptTemplate
from langchain.chains import RetrievalQA
from langchain.llms import OpenAI
from langchain.vectorstores import FAISS
from langchain.embeddings import OpenAIEmbeddings
from langchain.chains.loading import load_chain
TEMPLATE = """Answer the question based on the context:
{context}
Question: {question}
Answer:
"""
chat_prompt = ChatPromptTemplate.from_template(TEMPLATE)
llm = OpenAI()
def get_retriever(persist_dir = None):
vectorstore = FAISS.from_texts(
["harrison worked at kensho"], embedding=OpenAIEmbeddings()
)
return vectorstore.as_retriever()
chain_with_chat_prompt = RetrievalQA.from_chain_type(
llm=llm,
chain_type="stuff",
retriever=get_retriever(),
chain_type_kwargs={"prompt": chat_prompt},
)
chain_with_prompt_saved_path = "./chain_with_prompt.yaml"
chain_with_prompt.save(chain_with_prompt_saved_path)
loaded_chain = load_chain(chain_with_prompt_saved_path, retriever=get_retriever())
```
The above script failed with the error:
`ValueError: Loading chat prompt not supported`
### Expected behavior
Load a chain that contains `ChatPromptTemplate` should work.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13667/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/13667/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13666
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13666/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13666/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13666/events
|
https://github.com/langchain-ai/langchain/pull/13666
| 2,004,806,497 |
PR_kwDOIPDwls5gDJxC
| 13,666 |
Updated Clarifai-gRPC with Clarifai python SDK functions
|
{
"login": "mogith-pn",
"id": 143642606,
"node_id": "U_kgDOCI_P7g",
"avatar_url": "https://avatars.githubusercontent.com/u/143642606?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mogith-pn",
"html_url": "https://github.com/mogith-pn",
"followers_url": "https://api.github.com/users/mogith-pn/followers",
"following_url": "https://api.github.com/users/mogith-pn/following{/other_user}",
"gists_url": "https://api.github.com/users/mogith-pn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mogith-pn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mogith-pn/subscriptions",
"organizations_url": "https://api.github.com/users/mogith-pn/orgs",
"repos_url": "https://api.github.com/users/mogith-pn/repos",
"events_url": "https://api.github.com/users/mogith-pn/events{/privacy}",
"received_events_url": "https://api.github.com/users/mogith-pn/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": 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": 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 | 1 | 2023-11-21T17:30:56 | 2023-11-21T17:58:30 | 2023-11-21T17:58:30 |
CONTRIBUTOR
| null |
Description :
Updated the functions with new Clarifai python SDK.
Enabled initialisation of Clarifai class with model URL.
Updated docs with new functions examples.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13666/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/13666/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13666",
"html_url": "https://github.com/langchain-ai/langchain/pull/13666",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13666.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13666.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13665
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13665/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13665/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13665/events
|
https://github.com/langchain-ai/langchain/pull/13665
| 2,004,749,233 |
PR_kwDOIPDwls5gC9Uu
| 13,665 |
more core fixes
|
{
"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": 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": 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-11-21T16:55:15 | 2023-11-21T23:15:50 | 2023-11-21T23:15:49 |
COLLABORATOR
| null |
Fix some circular deps:
- move PromptValue into top level module bc both PromptTemplates and OutputParsers import
- move tracer context vars to `tracers.context` and import them in functions in `callbacks.manager`
- add core import tests
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13665/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/13665/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13665",
"html_url": "https://github.com/langchain-ai/langchain/pull/13665",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13665.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13665.patch",
"merged_at": "2023-11-21T23:15:49"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13664
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13664/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13664/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13664/events
|
https://github.com/langchain-ai/langchain/pull/13664
| 2,004,725,948 |
PR_kwDOIPDwls5gC4OH
| 13,664 |
bump 0.0.339rc0
|
{
"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": 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-11-21T16:41:49 | 2023-11-21T16:42:00 | 2023-11-21T16:41:59 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13664/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/13664/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13664",
"html_url": "https://github.com/langchain-ai/langchain/pull/13664",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13664.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13664.patch",
"merged_at": "2023-11-21T16:41:59"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13662
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13662/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13662/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13662/events
|
https://github.com/langchain-ai/langchain/issues/13662
| 2,004,693,724 |
I_kwDOIPDwls53fTLc
| 13,662 |
Issue: How to validate Tool input arguments without raising ValidationError
|
{
"login": "deepakagrawal",
"id": 4365922,
"node_id": "MDQ6VXNlcjQzNjU5MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/4365922?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/deepakagrawal",
"html_url": "https://github.com/deepakagrawal",
"followers_url": "https://api.github.com/users/deepakagrawal/followers",
"following_url": "https://api.github.com/users/deepakagrawal/following{/other_user}",
"gists_url": "https://api.github.com/users/deepakagrawal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/deepakagrawal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deepakagrawal/subscriptions",
"organizations_url": "https://api.github.com/users/deepakagrawal/orgs",
"repos_url": "https://api.github.com/users/deepakagrawal/repos",
"events_url": "https://api.github.com/users/deepakagrawal/events{/privacy}",
"received_events_url": "https://api.github.com/users/deepakagrawal/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 | 15 | 2023-11-21T16:23:53 | 2023-12-12T03:13:52 | null |
NONE
| null |
### Issue you'd like to raise.
I am creating a tool that takes a multiple input arguments (say input1, input2). I would like to validate their types and also make sure that the tool only receives input1 and input2. How do I validate this without breaking the llm chain. I would instead like to return a warning to the llm agent. something like, "The input passed were incorrect, please try again"
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13662/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/13662/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13661
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13661/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13661/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13661/events
|
https://github.com/langchain-ai/langchain/pull/13661
| 2,004,668,562 |
PR_kwDOIPDwls5gCrfT
| 13,661 |
Add CometTracer
|
{
"login": "alexkuzmik",
"id": 98702584,
"node_id": "U_kgDOBeIU-A",
"avatar_url": "https://avatars.githubusercontent.com/u/98702584?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alexkuzmik",
"html_url": "https://github.com/alexkuzmik",
"followers_url": "https://api.github.com/users/alexkuzmik/followers",
"following_url": "https://api.github.com/users/alexkuzmik/following{/other_user}",
"gists_url": "https://api.github.com/users/alexkuzmik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alexkuzmik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alexkuzmik/subscriptions",
"organizations_url": "https://api.github.com/users/alexkuzmik/orgs",
"repos_url": "https://api.github.com/users/alexkuzmik/repos",
"events_url": "https://api.github.com/users/alexkuzmik/events{/privacy}",
"received_events_url": "https://api.github.com/users/alexkuzmik/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": 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-11-21T16:14:07 | 2023-12-05T00:46:48 | 2023-12-05T00:46:48 |
CONTRIBUTOR
| null |
Hi! I'm Alex, Python SDK Team Lead from [Comet](https://www.comet.com/site/).
This PR contains our new integration between langchain and Comet - `CometTracer` class which uses new `comet_llm` python package for submitting data to Comet.
No additional dependencies for the langchain package are required directly, but if the user wants to use `CometTracer`, `comet-llm>=2.0.0` should be installed. Otherwise an exception will be raised from `CometTracer.__init__`.
A test for the feature is included.
There is also an already existing callback (and .ipynb file with example) which ideally should be deprecated in favor of a new tracer. I wasn't sure how exactly you'd prefer to do it. For example we could open a separate PR for that.
I'm open to your ideas :)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13661/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/13661/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13661",
"html_url": "https://github.com/langchain-ai/langchain/pull/13661",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13661.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13661.patch",
"merged_at": "2023-12-05T00:46:48"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13660
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13660/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13660/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13660/events
|
https://github.com/langchain-ai/langchain/pull/13660
| 2,004,651,006 |
PR_kwDOIPDwls5gCnfl
| 13,660 |
Fix Sagemaker Endpoint documentation
|
{
"login": "ravidhu",
"id": 3116614,
"node_id": "MDQ6VXNlcjMxMTY2MTQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/3116614?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ravidhu",
"html_url": "https://github.com/ravidhu",
"followers_url": "https://api.github.com/users/ravidhu/followers",
"following_url": "https://api.github.com/users/ravidhu/following{/other_user}",
"gists_url": "https://api.github.com/users/ravidhu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ravidhu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ravidhu/subscriptions",
"organizations_url": "https://api.github.com/users/ravidhu/orgs",
"repos_url": "https://api.github.com/users/ravidhu/repos",
"events_url": "https://api.github.com/users/ravidhu/events{/privacy}",
"received_events_url": "https://api.github.com/users/ravidhu/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": 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"
},
{
"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-11-21T16:07:42 | 2023-12-05T00:28:30 | 2023-12-05T00:28:29 |
CONTRIBUTOR
| null |
- **Description:** fixed the transform_input method in the example.,
- **Issue:** example didn't work,
- **Dependencies:** None,
- **Tag maintainer:** @baskaryan,
- **Twitter handle:** @Ravidhu87
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13660/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/13660/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13660",
"html_url": "https://github.com/langchain-ai/langchain/pull/13660",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13660.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13660.patch",
"merged_at": "2023-12-05T00:28:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13658
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13658/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13658/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13658/events
|
https://github.com/langchain-ai/langchain/pull/13658
| 2,004,506,301 |
PR_kwDOIPDwls5gCG1U
| 13,658 |
adapt Jina Embeddings to new Jina AI Embedding API
|
{
"login": "JoanFM",
"id": 19825685,
"node_id": "MDQ6VXNlcjE5ODI1Njg1",
"avatar_url": "https://avatars.githubusercontent.com/u/19825685?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/JoanFM",
"html_url": "https://github.com/JoanFM",
"followers_url": "https://api.github.com/users/JoanFM/followers",
"following_url": "https://api.github.com/users/JoanFM/following{/other_user}",
"gists_url": "https://api.github.com/users/JoanFM/gists{/gist_id}",
"starred_url": "https://api.github.com/users/JoanFM/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JoanFM/subscriptions",
"organizations_url": "https://api.github.com/users/JoanFM/orgs",
"repos_url": "https://api.github.com/users/JoanFM/repos",
"events_url": "https://api.github.com/users/JoanFM/events{/privacy}",
"received_events_url": "https://api.github.com/users/JoanFM/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": 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."
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-21T15:13:37 | 2023-12-05T04:40:34 | 2023-12-05T04:40:33 |
CONTRIBUTOR
| null |
- **Description:** Adapt JinaEmbeddings to run with the new Jina AI Embedding platform
- **Twitter handle:** https://twitter.com/JinaAI_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13658/reactions",
"total_count": 2,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13658/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13658",
"html_url": "https://github.com/langchain-ai/langchain/pull/13658",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13658.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13658.patch",
"merged_at": "2023-12-05T04:40:33"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13657
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13657/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13657/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13657/events
|
https://github.com/langchain-ai/langchain/pull/13657
| 2,004,503,579 |
PR_kwDOIPDwls5gCGO8
| 13,657 |
Switched VertexAI models from preview
|
{
"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": 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 | 3 | 2023-11-21T15:12:14 | 2023-11-29T01:38:04 | 2023-11-29T01:38:04 |
CONTRIBUTOR
| null |
Replace this entire comment with:
- **Description:** VertexAI models are now GA, moved away from using preview ones from the SDK
- **Issue:** #13606
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13657/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/13657/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13657",
"html_url": "https://github.com/langchain-ai/langchain/pull/13657",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13657.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13657.patch",
"merged_at": "2023-11-29T01:38:04"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13656
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13656/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13656/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13656/events
|
https://github.com/langchain-ai/langchain/issues/13656
| 2,004,456,391 |
I_kwDOIPDwls53eZPH
| 13,656 |
Error in executing SPARQL query with GraphSparqlQAChain and custom LLM (llamacpp)
|
{
"login": "will23332",
"id": 37927969,
"node_id": "MDQ6VXNlcjM3OTI3OTY5",
"avatar_url": "https://avatars.githubusercontent.com/u/37927969?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/will23332",
"html_url": "https://github.com/will23332",
"followers_url": "https://api.github.com/users/will23332/followers",
"following_url": "https://api.github.com/users/will23332/following{/other_user}",
"gists_url": "https://api.github.com/users/will23332/gists{/gist_id}",
"starred_url": "https://api.github.com/users/will23332/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/will23332/subscriptions",
"organizations_url": "https://api.github.com/users/will23332/orgs",
"repos_url": "https://api.github.com/users/will23332/repos",
"events_url": "https://api.github.com/users/will23332/events{/privacy}",
"received_events_url": "https://api.github.com/users/will23332/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 | 5 | 2023-11-21T14:51:15 | 2023-11-27T13:40:43 | null |
NONE
| null |
### System Info
Langchain Version: 0.0.339
Python Version: 3.10.12
### Who can help?
@hwchase17
When trying to execute the example from the GraphSparqlQAChain docs a ValueError arises, in my understanding because it cannot parse the query correctly and execute it against the graph.
```
> Entering new GraphSparqlQAChain chain...
Llama.generate: prefix-match hit
The URI of Tim Berners-Lee's work homepage is <https://www.w3.org/People/Berners-Lee/>.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
[<ipython-input-13-432f483fbf1b>](https://localhost:8080/#) in <cell line: 2>()
1 llm_chain = GraphSparqlQAChain.from_llm(llm=llm, graph=graph, verbose=True)
----> 2 llm_chain.run("What is Tim Berners-Lee's work homepage?")
3 frames
[/usr/local/lib/python3.10/dist-packages/langchain/chains/base.py](https://localhost:8080/#) in run(self, callbacks, tags, metadata, *args, **kwargs)
503 if len(args) != 1:
504 raise ValueError("`run` supports only one positional argument.")
--> 505 return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
506 _output_key
507 ]
[/usr/local/lib/python3.10/dist-packages/langchain/chains/base.py](https://localhost:8080/#) in __call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
308 except BaseException as e:
309 run_manager.on_chain_error(e)
--> 310 raise e
311 run_manager.on_chain_end(outputs)
312 final_outputs: Dict[str, Any] = self.prep_outputs(
[/usr/local/lib/python3.10/dist-packages/langchain/chains/base.py](https://localhost:8080/#) in __call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
302 try:
303 outputs = (
--> 304 self._call(inputs, run_manager=run_manager)
305 if new_arg_supported
306 else self._call(inputs)
[/usr/local/lib/python3.10/dist-packages/langchain/chains/graph_qa/sparql.py](https://localhost:8080/#) in _call(self, inputs, run_manager)
101 intent = "UPDATE"
102 else:
--> 103 raise ValueError(
104 "I am sorry, but this prompt seems to fit none of the currently "
105 "supported SPARQL query types, i.e., SELECT and UPDATE."
ValueError: I am sorry, but this prompt seems to fit none of the currently supported SPARQL query types, i.e., SELECT and UPDATE.
```
### Information
- [X] 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
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Steps to reproduce the behaviour:
1. Follow the example as per the documentation: https://python.langchain.com/docs/use_cases/graph/graph_sparql_qa
2. Instead of the OpenAPI use a custom llamacpp deploy i.e.
```
llm = LlamaCpp(
model_path=model_path,
n_gpu_layers=32,
n_batch=512,
callback_manager=callback_manager,
n_ctx=2048,
verbose=True, # Verbose is required to pass to the callback manager
)
```
3. Run the chain:
```
llm_chain = GraphSparqlQAChain.from_llm(llm=llm, graph=graph, verbose=True)
llm_chain.run("What is Tim Berners-Lee's work homepage?")
```
### Expected behavior
Apart from giving the right result (which it does) the SPARQL query should be shown and run against the graph, as per documentation this should be the reply:
```
> Entering new GraphSparqlQAChain chain...
Identified intent:
SELECT
Generated SPARQL:
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?homepage
WHERE {
?person foaf:name "Tim Berners-Lee" .
?person foaf:workplaceHomepage ?homepage .
}
Full Context:
[]
> Finished chain.
"Tim Berners-Lee's work homepage is http://www.w3.org/People/Berners-Lee/."
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13656/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/13656/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13655
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13655/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13655/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13655/events
|
https://github.com/langchain-ai/langchain/issues/13655
| 2,004,439,132 |
I_kwDOIPDwls53eVBc
| 13,655 |
LlamaCppEmbeddings - fails if all available GPU layers are used.
|
{
"login": "Kaotic3",
"id": 80522225,
"node_id": "MDQ6VXNlcjgwNTIyMjI1",
"avatar_url": "https://avatars.githubusercontent.com/u/80522225?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kaotic3",
"html_url": "https://github.com/Kaotic3",
"followers_url": "https://api.github.com/users/Kaotic3/followers",
"following_url": "https://api.github.com/users/Kaotic3/following{/other_user}",
"gists_url": "https://api.github.com/users/Kaotic3/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kaotic3/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kaotic3/subscriptions",
"organizations_url": "https://api.github.com/users/Kaotic3/orgs",
"repos_url": "https://api.github.com/users/Kaotic3/repos",
"events_url": "https://api.github.com/users/Kaotic3/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kaotic3/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": 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-11-21T14:42:36 | 2023-11-21T14:49:47 | null |
NONE
| null |
### System Info
Langchain 0.0.326
Windows
Python 3.11.5
Nvidia P6-16Q GPU
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] 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
Loading up all available GPU layers appears to cause LlamaCppEmbeddings to fail?
- Edit: this was my original submission because I was using -1 for the n_gpu_layers but I did further testing and noted that it was only if you used 34 or 35 - for 33 it works, but not 34 or 35.
For example this fails:
`llama = LlamaCppEmbeddings(model_path=r"mistral-7b-instruct-v0.1.Q5_K_M.gguf", n_ctx=512, n_gpu_layers=34)`
```
llm_load_tensors: ggml ctx size = 0.09 MB
llm_load_tensors: using CUDA for GPU acceleration
llm_load_tensors: mem required = 86.05 MB (+ 128.00 MB per state)
llm_load_tensors: offloading 32 repeating layers to GPU
llm_load_tensors: offloading non-repeating layers to GPU
llm_load_tensors: offloading v cache to GPU
llm_load_tensors: offloaded 34/35 layers to GPU
llm_load_tensors: VRAM used: 4840 MB
```
With this error message:
```
Traceback (most recent call last):
File "c:\Users\x\Desktop\Embedding\EmbeddingScript.py", line 11, in <module>
query_result = llama.embed_query("Hello World")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\embeddings\llamacpp.py", line 125, in embed_query
embedding = self.client.embed(text)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x\AppData\Local\Programs\Python\Python311\Lib\site-packages\llama_cpp\llama.py", line 860, in embed
return list(map(float, self.create_embedding(input)["data"][0]["embedding"]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x\AppData\Local\Programs\Python\Python311\Lib\site-packages\llama_cpp\llama.py", line 824, in create_embedding
self.eval(tokens)
File "C:\Users\x\AppData\Local\Programs\Python\Python311\Lib\site-packages\llama_cpp\llama.py", line 491, in eval
return_code = llama_cpp.llama_eval(
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x\AppData\Local\Programs\Python\Python311\Lib\site-packages\llama_cpp\llama_cpp.py", line 808, in llama_eval
return _lib.llama_eval(ctx, tokens, n_tokens, n_past, n_threads)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: exception: access violation writing 0x0000000000000000
```
However, this does not fail:
`llama = LlamaCppEmbeddings(model_path=r"mistral-7b-instruct-v0.1.Q5_K_M.gguf", n_ctx=512, n_gpu_layers=33)`
```
lm_load_tensors: ggml ctx size = 0.09 MB
llm_load_tensors: using CUDA for GPU acceleration
llm_load_tensors: mem required = 86.05 MB (+ 128.00 MB per state)
llm_load_tensors: offloading 32 repeating layers to GPU
llm_load_tensors: offloading non-repeating layers to GPU
llm_load_tensors: offloaded 33/35 layers to GPU
llm_load_tensors: VRAM used: 4808 MB
```
It may not be a langchain problem, I am not knowledgeable enough to know - but not sure why you can't load up all the available layers of the GPU?
### Expected behavior
I would have thought that using all available layers of the GPU would not cause it to fail.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13655/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/13655/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13654
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13654/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13654/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13654/events
|
https://github.com/langchain-ai/langchain/pull/13654
| 2,004,415,809 |
PR_kwDOIPDwls5gBy-k
| 13,654 |
Tests: Fix regression in `ConsistentFakeEmbeddings.embed_query`
|
{
"login": "amotl",
"id": 453543,
"node_id": "MDQ6VXNlcjQ1MzU0Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/453543?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/amotl",
"html_url": "https://github.com/amotl",
"followers_url": "https://api.github.com/users/amotl/followers",
"following_url": "https://api.github.com/users/amotl/following{/other_user}",
"gists_url": "https://api.github.com/users/amotl/gists{/gist_id}",
"starred_url": "https://api.github.com/users/amotl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amotl/subscriptions",
"organizations_url": "https://api.github.com/users/amotl/orgs",
"repos_url": "https://api.github.com/users/amotl/repos",
"events_url": "https://api.github.com/users/amotl/events{/privacy}",
"received_events_url": "https://api.github.com/users/amotl/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": 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."
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-21T14:31:09 | 2023-12-05T00:46:30 | 2023-12-05T00:46:29 |
NONE
| null |
**Description**: Fixes a regression in `ConsistentFakeEmbeddings.embed_query`.
**Issue**: The function did not return the correct values.
**Dependencies**: -,
**Tag maintainer**: @baskaryan
----
Hi there,
first things first: Thanks a stack for conceiving and maintaining LangChain.
At https://github.com/crate-workbench/langchain/pull/1, we are working on a database adapter for [CrateDB](https://github.com/crate/crate) [^1], where we may have discovered a minor flaw recently introduced to the test utility `ConsistentFakeEmbeddings`.
The function `ConsistentFakeEmbeddings.embed_query` was changed to only return the embedding of the query expression, without considering the known texts, as advertised. It was the recent commit a28eea57674a9 which may have changed it inadvertently this way.
The fix works well on behalf of the test cases we are running (`pytest -vvv tests/ -k cratedb`) [^2], but we didn't run it on any other vector store adapters. It may well have some impact, depending on where `ConsistentFakeEmbeddings` has been used, and how its outcomes are being evaluated on behalf of other test cases.
With kind regards,
Andreas.
[^1]: After sorting out some remaining issues, we hope to be able to contribute this adapter soon, and hope it will be well received.
[^2]: Actually, it was needed by a test case we added with https://github.com/crate-workbench/langchain/pull/15, where it also has been discovered.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13654/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/13654/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13654",
"html_url": "https://github.com/langchain-ai/langchain/pull/13654",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13654.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13654.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13653
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13653/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13653/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13653/events
|
https://github.com/langchain-ai/langchain/issues/13653
| 2,004,360,284 |
I_kwDOIPDwls53eBxc
| 13,653 |
Issue: Unable to Serialize AgentExecutor Object for Centralized Storage
|
{
"login": "ns-qasim",
"id": 94045279,
"node_id": "U_kgDOBZsEXw",
"avatar_url": "https://avatars.githubusercontent.com/u/94045279?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ns-qasim",
"html_url": "https://github.com/ns-qasim",
"followers_url": "https://api.github.com/users/ns-qasim/followers",
"following_url": "https://api.github.com/users/ns-qasim/following{/other_user}",
"gists_url": "https://api.github.com/users/ns-qasim/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ns-qasim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ns-qasim/subscriptions",
"organizations_url": "https://api.github.com/users/ns-qasim/orgs",
"repos_url": "https://api.github.com/users/ns-qasim/repos",
"events_url": "https://api.github.com/users/ns-qasim/events{/privacy}",
"received_events_url": "https://api.github.com/users/ns-qasim/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": 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": 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": 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 | 2 | 2023-11-21T14:03:40 | 2023-11-21T14:15:11 | null |
NONE
| null |
### Issue you'd like to raise.
To develop a scalable solution, I hoped to store the AgentExecutor object in centralized memory, such as Redis. However, due to its non-serializable nature, this has not been possible. Is there a workaround to achieve this?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13653/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/13653/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13652
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13652/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13652/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13652/events
|
https://github.com/langchain-ai/langchain/pull/13652
| 2,004,300,541 |
PR_kwDOIPDwls5gBZ3i
| 13,652 |
fix the problem that redis vector store will change metadata with val…
|
{
"login": "dandanwei",
"id": 7432339,
"node_id": "MDQ6VXNlcjc0MzIzMzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/7432339?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dandanwei",
"html_url": "https://github.com/dandanwei",
"followers_url": "https://api.github.com/users/dandanwei/followers",
"following_url": "https://api.github.com/users/dandanwei/following{/other_user}",
"gists_url": "https://api.github.com/users/dandanwei/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dandanwei/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dandanwei/subscriptions",
"organizations_url": "https://api.github.com/users/dandanwei/orgs",
"repos_url": "https://api.github.com/users/dandanwei/repos",
"events_url": "https://api.github.com/users/dandanwei/events{/privacy}",
"received_events_url": "https://api.github.com/users/dandanwei/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"
},
{
"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 | 3 | 2023-11-21T13:33:13 | 2023-11-22T04:16:35 | 2023-11-22T04:16:24 |
CONTRIBUTOR
| null |
- **Description:** This commit fixed the problem that Redis vector store will change the value of a metadata from 0 to empty when saving the document, which should be an un-intended behavior.
- **Issue:** N/A
- **Dependencies:** N/A
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13652/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/13652/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13652",
"html_url": "https://github.com/langchain-ai/langchain/pull/13652",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13652.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13652.patch",
"merged_at": "2023-11-22T04:16:24"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13651
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13651/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13651/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13651/events
|
https://github.com/langchain-ai/langchain/issues/13651
| 2,004,285,505 |
I_kwDOIPDwls53dvhB
| 13,651 |
Issue: getting error in deletion of embeddings for a file
|
{
"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": 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": 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": 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-11-21T13:25:26 | 2023-11-21T13:33:34 | null |
NONE
| null |
### Issue you'd like to raise.
def delete_embeddings(file_path, persist_directory):
chroma_db = chromadb.PersistentClient(path=persist_directory)
collection = chroma_db.get_or_create_collection(name="langchain")
ids = collection.get(where={"source": file_path})['ids']
collection.delete(where={"source": file_path},ids=ids)
print("delete successfully")
below is the error i am getting
File "/home/aaditya/DBChat/CustomBot/user_projects/views.py", line 1028, in project_pages
delete_embeddings(names, persist_directory)
File "/home/aaditya/DBChat/CustomBot/accounts/common_langcain_qa.py", line 134, in delete_embeddings
chroma_db = chromadb.PersistentClient(path=persist_directory)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aaditya/DBChat/chat/lib/python3.11/site-packages/chromadb/__init__.py", line 106, in PersistentClient
return Client(settings)
^^^^^^^^^^^^^^^^
File "/home/aaditya/DBChat/chat/lib/python3.11/site-packages/chromadb/__init__.py", line 143, in Client
api = system.instance(API)
^^^^^^^^^^^^^^^^^^^^
File "/home/aaditya/DBChat/chat/lib/python3.11/site-packages/chromadb/config.py", line 248, in instance
impl = type(self)
^^^^^^^^^^
File "/home/aaditya/DBChat/chat/lib/python3.11/site-packages/chromadb/api/segment.py", line 81, in __init__
self._sysdb = self.require(SysDB)
^^^^^^^^^^^^^^^^^^^
File "/home/aaditya/DBChat/chat/lib/python3.11/site-packages/chromadb/config.py", line 189, in require
inst = self._system.instance(type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aaditya/DBChat/chat/lib/python3.11/site-packages/chromadb/config.py", line 248, in instance
impl = type(self)
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13651/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/13651/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13650
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13650/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13650/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13650/events
|
https://github.com/langchain-ai/langchain/pull/13650
| 2,004,268,409 |
PR_kwDOIPDwls5gBSyC
| 13,650 |
Enable support for async streaming on VertexAI
|
{
"login": "thiagosalvatore",
"id": 27959961,
"node_id": "MDQ6VXNlcjI3OTU5OTYx",
"avatar_url": "https://avatars.githubusercontent.com/u/27959961?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thiagosalvatore",
"html_url": "https://github.com/thiagosalvatore",
"followers_url": "https://api.github.com/users/thiagosalvatore/followers",
"following_url": "https://api.github.com/users/thiagosalvatore/following{/other_user}",
"gists_url": "https://api.github.com/users/thiagosalvatore/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thiagosalvatore/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thiagosalvatore/subscriptions",
"organizations_url": "https://api.github.com/users/thiagosalvatore/orgs",
"repos_url": "https://api.github.com/users/thiagosalvatore/repos",
"events_url": "https://api.github.com/users/thiagosalvatore/events{/privacy}",
"received_events_url": "https://api.github.com/users/thiagosalvatore/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."
}
] |
open
| false | null |
[] | null | 9 | 2023-11-21T13:17:44 | 2024-01-04T20:51:12 | null |
NONE
| null |
- **Description:** Enable support for async streaming on VertexAI based on release [1.36.0](https://github.com/googleapis/python-aiplatform/releases/tag/v1.36.0) from vertexai SDK
- **Issue:** N/A
- **Dependencies:** Users will need google-cloud-aiplatform>=1.36.0
- **Tag maintainer:** @baskaryan @leo-gan
PS:
I couldn't find unit test for vertex ai that's why I did not add those.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13650/reactions",
"total_count": 2,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13650/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13650",
"html_url": "https://github.com/langchain-ai/langchain/pull/13650",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13650.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13650.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13649
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13649/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13649/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13649/events
|
https://github.com/langchain-ai/langchain/pull/13649
| 2,004,187,893 |
PR_kwDOIPDwls5gBBPD
| 13,649 |
issue langchain-ai#12165 mask API key and IAM token in YandexGPT
|
{
"login": "Sierrra",
"id": 829713,
"node_id": "MDQ6VXNlcjgyOTcxMw==",
"avatar_url": "https://avatars.githubusercontent.com/u/829713?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Sierrra",
"html_url": "https://github.com/Sierrra",
"followers_url": "https://api.github.com/users/Sierrra/followers",
"following_url": "https://api.github.com/users/Sierrra/following{/other_user}",
"gists_url": "https://api.github.com/users/Sierrra/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Sierrra/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Sierrra/subscriptions",
"organizations_url": "https://api.github.com/users/Sierrra/orgs",
"repos_url": "https://api.github.com/users/Sierrra/repos",
"events_url": "https://api.github.com/users/Sierrra/events{/privacy}",
"received_events_url": "https://api.github.com/users/Sierrra/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 |
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-11-21T12:32:20 | 2023-12-05T00:30:35 | null |
NONE
| null |
- **Description:** The PR masks API key and IAM token secrets for the YandexGPT model.
- **Issue:** #12165
- **Dependencies:** yandexcloud,
- **Tag maintainer:** @eyurtsev ,
- **Twitter handle:** cheparukhin_s
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13649/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/13649/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13649",
"html_url": "https://github.com/langchain-ai/langchain/pull/13649",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13649.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13649.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13648
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13648/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13648/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13648/events
|
https://github.com/langchain-ai/langchain/issues/13648
| 2,004,139,873 |
I_kwDOIPDwls53dL9h
| 13,648 |
ddg error: backend "news" is obsolete so should raise an error and example should be updated
|
{
"login": "thiswillbeyourgithub",
"id": 26625900,
"node_id": "MDQ6VXNlcjI2NjI1OTAw",
"avatar_url": "https://avatars.githubusercontent.com/u/26625900?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thiswillbeyourgithub",
"html_url": "https://github.com/thiswillbeyourgithub",
"followers_url": "https://api.github.com/users/thiswillbeyourgithub/followers",
"following_url": "https://api.github.com/users/thiswillbeyourgithub/following{/other_user}",
"gists_url": "https://api.github.com/users/thiswillbeyourgithub/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thiswillbeyourgithub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thiswillbeyourgithub/subscriptions",
"organizations_url": "https://api.github.com/users/thiswillbeyourgithub/orgs",
"repos_url": "https://api.github.com/users/thiswillbeyourgithub/repos",
"events_url": "https://api.github.com/users/thiswillbeyourgithub/events{/privacy}",
"received_events_url": "https://api.github.com/users/thiswillbeyourgithub/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": 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 | 5 | 2023-11-21T12:10:21 | 2023-11-21T16:02:01 | null |
CONTRIBUTOR
| null |
### System Info
Ubuntu 22
python 3.10.12
Langchain==0.0.339
duckduckgo-search==3.9.6
### Who can help?
@timonpalm who created [the PR](https://github.com/langchain-ai/langchain/pull/8292)
### 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
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Steps are straight from [this help page](https://python.langchain.com/docs/integrations/tools/ddg) which is [this notebook](https://github.com/langchain-ai/langchain/blob/611e1e0ca45343b86debc0d24db45703ee63643b/docs/docs/integrations/tools/ddg.ipynb#L69)
```
from langchain.tools import DuckDuckGoSearchResults
search = DuckDuckGoSearchResults(backend="news")
search.run("Obama")
```
This results in error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/USER/.local/lib/python3.10/site-packages/langchain/tools/base.py", line 365, in run
raise e
File "/home/USER/.local/lib/python3.10/site-packages/langchain/tools/base.py", line 337, in run
self._run(*tool_args, run_manager=run_manager, **tool_kwargs)
File "/home/USER/.local/lib/python3.10/site-packages/langchain/tools/ddg_search/tool.py", line 61, in _run
res = self.api_wrapper.results(query, self.num_results, backend=self.backend)
File "/home/USER/.local/lib/python3.10/site-packages/langchain/utilities/duckduckgo_search.py", line 108, in results
for i, res in enumerate(results, 1):
File "/home/USER/.local/lib/python3.10/site-packages/duckduckgo_search/duckduckgo_search.py", line 96, in text
for i, result in enumerate(results, start=1):
UnboundLocalError: local variable 'results' referenced before assignment
```
Looking at the source code of duckduckgo-search package I see this function:
```
def text(
self,
keywords: str,
region: str = "wt-wt",
safesearch: str = "moderate",
timelimit: Optional[str] = None,
backend: str = "api",
max_results: Optional[int] = None,
) -> Iterator[Dict[str, Optional[str]]]:
"""DuckDuckGo text search generator. Query params: https://duckduckgo.com/params
Args:
keywords: keywords for query.
region: wt-wt, us-en, uk-en, ru-ru, etc. Defaults to "wt-wt".
safesearch: on, moderate, off. Defaults to "moderate".
timelimit: d, w, m, y. Defaults to None.
backend: api, html, lite. Defaults to api.
api - collect data from https://duckduckgo.com,
html - collect data from https://html.duckduckgo.com,
lite - collect data from https://lite.duckduckgo.com.
max_results: max number of results. If None, returns results only from the first response. Defaults to None.
Yields:
dict with search results.
"""
if backend == "api":
results = self._text_api(keywords, region, safesearch, timelimit, max_results)
elif backend == "html":
results = self._text_html(keywords, region, safesearch, timelimit, max_results)
elif backend == "lite":
results = self._text_lite(keywords, region, timelimit, max_results)
for i, result in enumerate(results, start=1):
yield result
if max_results and i >= max_results:
break
```
My assessment is that langchain should raise an exception if backend is not part of ["api", "html", "lite"] and the notebook should not mention this "news" feature anymore.
### Expected behavior
Crashing when creating instance of ` DuckDuckGoSearchResults` with invalid `backend` argument and updating the documentation.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13648/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/13648/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13647
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13647/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13647/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13647/events
|
https://github.com/langchain-ai/langchain/issues/13647
| 2,004,123,075 |
I_kwDOIPDwls53dH3D
| 13,647 |
SQL Agent not working well with Claude v2 model
|
{
"login": "dudu-upstream",
"id": 100126964,
"node_id": "U_kgDOBffQ9A",
"avatar_url": "https://avatars.githubusercontent.com/u/100126964?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dudu-upstream",
"html_url": "https://github.com/dudu-upstream",
"followers_url": "https://api.github.com/users/dudu-upstream/followers",
"following_url": "https://api.github.com/users/dudu-upstream/following{/other_user}",
"gists_url": "https://api.github.com/users/dudu-upstream/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dudu-upstream/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dudu-upstream/subscriptions",
"organizations_url": "https://api.github.com/users/dudu-upstream/orgs",
"repos_url": "https://api.github.com/users/dudu-upstream/repos",
"events_url": "https://api.github.com/users/dudu-upstream/events{/privacy}",
"received_events_url": "https://api.github.com/users/dudu-upstream/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": 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 | 2 | 2023-11-21T12:00:56 | 2023-11-22T09:22:29 | null |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
Im trying to develop an sql agent chatbot that will generate and exceute SQL queries based on the user free-text questions.
so far I have developed a generic and basic agent with ChatGPT-4 and it worked pretty well (generated complex SQL and returned an answer).
When I tried to switch the LLM with Claude v2 (hosted on AWS Bedrock) things started to break.
sometimes the agent get stuck in a loop of the same input (for example):
```
> Entering new AgentExecutor chain...
Here is my thought process and actions to answer the question "how many alerts?":
Thought: I need to first see what tables are available in the database.
Action: sql_db_list_tables
Action Input:
Observation: alerts, detectors
Thought: Here is my response to the question "how many alerts?":
Thought: I need to first see what tables are available in the database.
Action: sql_db_list_tables
Action Input:
Observation: alerts, detectors
Thought: Here is my response to the question "how many alerts?":
Thought: I need to first see what tables are available in the database.
Action: sql_db_list_tables
Action Input:
Observation: alerts, detectors
Thought: Here is my response to the question "how many alerts?":
Thought: I need to first see what tables are available in the database.
Action: sql_db_list_tables
Action Input:
Observation: alerts, detectors
Thought: Here is my response to the question "how many alerts?":
```
sometimes it gets to the point that it actually query the db and get the result but don't stop the run and return the answer.
Here is how I configured the LLM and agent:
```
def aws_bedrock():
config = AwsBedrockConfig()
client = boto3.client(
'bedrock-runtime',
region_name=config.region_name,
aws_access_key_id=config.aws_access_key_id,
aws_secret_access_key=config.aws_secret_access_key,
)
model_kwargs = {
"prompt": "\n\nHuman: Hello world\n\nAssistant:",
"max_tokens_to_sample": 100000,
"temperature": 0,
"top_k": 10,
"top_p": 1,
"stop_sequences": [
"\n\nHuman:"
],
"anthropic_version": "bedrock-2023-05-31"
}
return Bedrock(
client=client,
model_id=config.model_id,
model_kwargs=model_kwargs
)
```
(also tried to change the model arguments with no success)
```
memory = ConversationBufferMemory(memory_key="history", chat_memory=history)
toolkit = SQLDatabaseToolkit(db=db, llm=self.llm)
self.agent = create_sql_agent(
llm=self.llm,
toolkit=toolkit,
extra_tools=[TableCommentsTool(db=db)],
prefix=self.format_sql_prefix(filters),
suffix=HISTORY_SQL_SUFFIX,
agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
agent_executor_kwargs={"memory": memory},
verbose=True,
input_variables=["input", "history", "agent_scratchpad"]
)
```
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13647/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/13647/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13646
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13646/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13646/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13646/events
|
https://github.com/langchain-ai/langchain/pull/13646
| 2,004,082,712 |
PR_kwDOIPDwls5gAp1L
| 13,646 |
Update bedrock.py to fix bug
|
{
"login": "ruanwz",
"id": 4874,
"node_id": "MDQ6VXNlcjQ4NzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/4874?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ruanwz",
"html_url": "https://github.com/ruanwz",
"followers_url": "https://api.github.com/users/ruanwz/followers",
"following_url": "https://api.github.com/users/ruanwz/following{/other_user}",
"gists_url": "https://api.github.com/users/ruanwz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ruanwz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ruanwz/subscriptions",
"organizations_url": "https://api.github.com/users/ruanwz/orgs",
"repos_url": "https://api.github.com/users/ruanwz/repos",
"events_url": "https://api.github.com/users/ruanwz/events{/privacy}",
"received_events_url": "https://api.github.com/users/ruanwz/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": 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-11-21T11:37:41 | 2023-11-22T01:28:38 | 2023-11-22T01:28:38 |
CONTRIBUTOR
| null |
fix bug
<!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **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` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/13646/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/13646/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13646",
"html_url": "https://github.com/langchain-ai/langchain/pull/13646",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13646.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13646.patch",
"merged_at": "2023-11-22T01:28:38"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13645
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13645/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13645/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13645/events
|
https://github.com/langchain-ai/langchain/pull/13645
| 2,004,054,947 |
PR_kwDOIPDwls5gAjym
| 13,645 |
Added partial_variables to BaseStringMessagePromptTemplate.from_template(...)
|
{
"login": "jponf",
"id": 3852560,
"node_id": "MDQ6VXNlcjM4NTI1NjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/3852560?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jponf",
"html_url": "https://github.com/jponf",
"followers_url": "https://api.github.com/users/jponf/followers",
"following_url": "https://api.github.com/users/jponf/following{/other_user}",
"gists_url": "https://api.github.com/users/jponf/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jponf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jponf/subscriptions",
"organizations_url": "https://api.github.com/users/jponf/orgs",
"repos_url": "https://api.github.com/users/jponf/repos",
"events_url": "https://api.github.com/users/jponf/events{/privacy}",
"received_events_url": "https://api.github.com/users/jponf/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": 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 | 2 | 2023-11-21T11:21:33 | 2023-11-22T09:21:06 | 2023-11-22T01:48:38 |
CONTRIBUTOR
| null |
**Description:** BaseStringMessagePromptTemplate.from_template was passing the value of partial_variables into cls(...) via **kwargs, rather than passing it to PromptTemplate.from_template. Which resulted in those *partial_variables being* lost and becoming required *input_variables*.
**twitter handle**: @josep_pon
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13645/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/13645/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13645",
"html_url": "https://github.com/langchain-ai/langchain/pull/13645",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13645.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13645.patch",
"merged_at": "2023-11-22T01:48:38"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13644
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13644/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13644/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13644/events
|
https://github.com/langchain-ai/langchain/issues/13644
| 2,004,052,880 |
I_kwDOIPDwls53c2uQ
| 13,644 |
Support for streaming in the langchain chains (eg., load_summarize_chain)
|
{
"login": "databill86",
"id": 41125230,
"node_id": "MDQ6VXNlcjQxMTI1MjMw",
"avatar_url": "https://avatars.githubusercontent.com/u/41125230?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/databill86",
"html_url": "https://github.com/databill86",
"followers_url": "https://api.github.com/users/databill86/followers",
"following_url": "https://api.github.com/users/databill86/following{/other_user}",
"gists_url": "https://api.github.com/users/databill86/gists{/gist_id}",
"starred_url": "https://api.github.com/users/databill86/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/databill86/subscriptions",
"organizations_url": "https://api.github.com/users/databill86/orgs",
"repos_url": "https://api.github.com/users/databill86/repos",
"events_url": "https://api.github.com/users/databill86/events{/privacy}",
"received_events_url": "https://api.github.com/users/databill86/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": 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-11-21T11:20:41 | 2023-11-24T16:19:26 | null |
NONE
| null |
### Feature request
Hello,
I'm not sure if this is already supported or not, I couldn't find anything in the documentation.
Is there a way to make chains support streaming ? It would be nice if we can get it working with something like the `load_summarize_chain`.
Or something like this:
```
doc_prompt = PromptTemplate.from_template("{page_content}")
chain = (
{
"content": lambda docs: "\n\n".join(
format_document(doc, doc_prompt) for doc in docs
)
}
| PromptTemplate.from_template("Summarize the following content:\n\n{content}")
| OpenAI(
temperature=1,
model_name=llm_model,
stream=True,
)
| StrOutputParser()
)
docs = [
Document(
page_content=split,
metadata={"source": "https://en.wikipedia.org/wiki/Nuclear_power_in_space"},
)
for split in text.split()
]
for partial_result in chain.invoke(docs):
print(partial_result)
```
### Motivation
I have long documents to summarize, so I would like to show the partial results in streaming mode and not make the user wait so long to get the final result.
### Your contribution
No. If it's not possible, I'm willing to implement the summarization chain from scratch and use the OpenAI lib.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13644/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/13644/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13643
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13643/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13643/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13643/events
|
https://github.com/langchain-ai/langchain/pull/13643
| 2,003,931,711 |
PR_kwDOIPDwls5gAIvM
| 13,643 |
Use pytest asyncio auto mode
|
{
"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": 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": 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-11-21T10:17:31 | 2023-11-21T15:00:15 | 2023-11-21T15:00:13 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **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` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/13643/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/13643/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13643",
"html_url": "https://github.com/langchain-ai/langchain/pull/13643",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13643.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13643.patch",
"merged_at": "2023-11-21T15:00:13"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13642
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13642/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13642/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13642/events
|
https://github.com/langchain-ai/langchain/pull/13642
| 2,003,909,864 |
PR_kwDOIPDwls5gAD5A
| 13,642 |
Adjust Cobol Splitter. Take into consideration all divisions
|
{
"login": "Sandra-Alhaddad",
"id": 147700389,
"node_id": "U_kgDOCM26pQ",
"avatar_url": "https://avatars.githubusercontent.com/u/147700389?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Sandra-Alhaddad",
"html_url": "https://github.com/Sandra-Alhaddad",
"followers_url": "https://api.github.com/users/Sandra-Alhaddad/followers",
"following_url": "https://api.github.com/users/Sandra-Alhaddad/following{/other_user}",
"gists_url": "https://api.github.com/users/Sandra-Alhaddad/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Sandra-Alhaddad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Sandra-Alhaddad/subscriptions",
"organizations_url": "https://api.github.com/users/Sandra-Alhaddad/orgs",
"repos_url": "https://api.github.com/users/Sandra-Alhaddad/repos",
"events_url": "https://api.github.com/users/Sandra-Alhaddad/events{/privacy}",
"received_events_url": "https://api.github.com/users/Sandra-Alhaddad/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": 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": 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 | 2 | 2023-11-21T10:07:12 | 2023-12-05T00:35:55 | null |
NONE
| null |
- **Description:** Enhancements to the CobolSegmenter
1- Improved COBOL code validation by checking for the presence of essential COBOL division keywords (IDENTIFICATION, DATA, PROCEDURE, ENVIRONMENT) using a regular expression.
2- Refinements made to the _process_lines method, which iterates through all lines in the COBOL code. It now effectively identifies the start index when inside a relevant section.
3- The regular expression for identifying paragraphs has been updated to exclude certain keywords (e.g., "END_PERFORM," "END-IF," etc.), preventing them from being mistakenly categorized as paragraphs and split.
4- With the comprehensive division splitting and consideration of all code segments, the need for "simplify_code" is eliminated.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13642/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/13642/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13642",
"html_url": "https://github.com/langchain-ai/langchain/pull/13642",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13642.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13642.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13641
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13641/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13641/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13641/events
|
https://github.com/langchain-ai/langchain/pull/13641
| 2,003,863,458 |
PR_kwDOIPDwls5f_5um
| 13,641 |
Add dstack services integration
|
{
"login": "Egor-S",
"id": 19907989,
"node_id": "MDQ6VXNlcjE5OTA3OTg5",
"avatar_url": "https://avatars.githubusercontent.com/u/19907989?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Egor-S",
"html_url": "https://github.com/Egor-S",
"followers_url": "https://api.github.com/users/Egor-S/followers",
"following_url": "https://api.github.com/users/Egor-S/following{/other_user}",
"gists_url": "https://api.github.com/users/Egor-S/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Egor-S/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Egor-S/subscriptions",
"organizations_url": "https://api.github.com/users/Egor-S/orgs",
"repos_url": "https://api.github.com/users/Egor-S/repos",
"events_url": "https://api.github.com/users/Egor-S/events{/privacy}",
"received_events_url": "https://api.github.com/users/Egor-S/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": 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 | 4 | 2023-11-21T09:43:42 | 2023-12-01T14:00:44 | 2023-12-01T14:00:44 |
NONE
| null |
- **Description:** This PR adds `Dstack` LLM and `ChatDstack` chat model. It allows easily call LLMs deployed as a dstack service.
- **Twitter handle:** @dstackai
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13641/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 1,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13641/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13641",
"html_url": "https://github.com/langchain-ai/langchain/pull/13641",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13641.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13641.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13640
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13640/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13640/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13640/events
|
https://github.com/langchain-ai/langchain/issues/13640
| 2,003,853,667 |
I_kwDOIPDwls53cGFj
| 13,640 |
DOC: Template "rag-gpt-crawler" doc is incorrect
|
{
"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": 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"
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-21T09:39:28 | 2023-11-22T22:06:11 | 2023-11-22T22:06:11 |
NONE
| null |
### Issue with current documentation:
Regarding:
https://github.com/langchain-ai/langchain/blob/master/templates/rag-gpt-crawler/README.md
I found 2 issues:
1. no such file as "server.py" ( there is "rag_gpt_crawler.ipynb" instead )
2. in docs linked line
`from rag_chroma import chain as rag_gpt_crawler`
is not the same as shown in terminal
`from rag_gpt_crawler import chain as rag_gpt_crawler_chain`
I think the first is incorrect.
### Idea or request for content:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13640/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/13640/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13639
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13639/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13639/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13639/events
|
https://github.com/langchain-ai/langchain/issues/13639
| 2,003,853,198 |
I_kwDOIPDwls53cF-O
| 13,639 |
DOC: Text metadata
|
{
"login": "seanbethard",
"id": 332073,
"node_id": "MDQ6VXNlcjMzMjA3Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/332073?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/seanbethard",
"html_url": "https://github.com/seanbethard",
"followers_url": "https://api.github.com/users/seanbethard/followers",
"following_url": "https://api.github.com/users/seanbethard/following{/other_user}",
"gists_url": "https://api.github.com/users/seanbethard/gists{/gist_id}",
"starred_url": "https://api.github.com/users/seanbethard/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/seanbethard/subscriptions",
"organizations_url": "https://api.github.com/users/seanbethard/orgs",
"repos_url": "https://api.github.com/users/seanbethard/repos",
"events_url": "https://api.github.com/users/seanbethard/events{/privacy}",
"received_events_url": "https://api.github.com/users/seanbethard/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"
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-21T09:39:12 | 2023-11-24T10:28:28 | 2023-11-24T10:28:28 |
NONE
| null |
### Issue with current documentation:
The documentation on [creating documents](https://js.langchain.com/docs/modules/data_connection/document_loaders/how_to/creating_documents) covers optional document metadata but doesn't mention that it's possible to create text metadata in `page_content`. For example if only a filename is given to `CSVLoader` it will assume the header is metadata and [delimit each key-value pair with a newline](https://github.com/aws-samples/multi-tenant-chatbot-using-rag-with-amazon-bedrock/pull/14).
Chat LangChain will talk about this source of metadata but I can't find any additional information in the provided references.
> In the context of the RAG model, if the CSV data is used as a source for retrieval or generation, the fieldnames can be utilized in several ways:
>
> • Retrieval: The fieldnames can be used as query terms to retrieve relevant documents from the CSV dataset. The RAG model can leverage the fieldnames to understand the user's query and retrieve documents that match the specified criteria.
>
> • Generation: The fieldnames can provide context and constraints for generating responses. The RAG model can use the fieldnames as prompts or conditioning information to generate responses that are specific to the content of the corresponding columns in the CSV file.
>
> By incorporating the CSV fieldnames into the retrieval and generation processes, the RAG model can produce more accurate and contextually relevant results based on the specific attributes and structure of the CSV dataset.
### Idea or request for content:
A description of the consequences of including text metadata for different scenarios, models, data stores.
Strategies for including text metadata.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13639/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/13639/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13637
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13637/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13637/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13637/events
|
https://github.com/langchain-ai/langchain/issues/13637
| 2,003,810,406 |
I_kwDOIPDwls53b7hm
| 13,637 |
Add progress bar to GooglePalmEmbeddings
|
{
"login": "ugm2",
"id": 25923343,
"node_id": "MDQ6VXNlcjI1OTIzMzQz",
"avatar_url": "https://avatars.githubusercontent.com/u/25923343?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ugm2",
"html_url": "https://github.com/ugm2",
"followers_url": "https://api.github.com/users/ugm2/followers",
"following_url": "https://api.github.com/users/ugm2/following{/other_user}",
"gists_url": "https://api.github.com/users/ugm2/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ugm2/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ugm2/subscriptions",
"organizations_url": "https://api.github.com/users/ugm2/orgs",
"repos_url": "https://api.github.com/users/ugm2/repos",
"events_url": "https://api.github.com/users/ugm2/events{/privacy}",
"received_events_url": "https://api.github.com/users/ugm2/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": 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 | 2 | 2023-11-21T09:16:16 | 2023-11-21T09:18:40 | null |
CONTRIBUTOR
| null |
### Feature request
Add a progress bar to `GooglePalmEmbeddings.embed_documents()` function. [tqdm](https://github.com/tqdm/tqdm) would work just fine.
In my opinion, all embedders should have a progress bar.
### Motivation
When processing embeddings the user should have an idea of how much time is going to take to embed the data. While using GooglePalmEmbeddings, which are not the fastest, I couldn't see a progress bar and that was frustrating me because I had no idea if it was even accessing GooglePalm correctly or how much time it was going to take.
### Your contribution
```python
from __future__ import annotations
import logging
from typing import Any, Callable, Dict, List, Optional
from tqdm import tqdm
from langchain_core.pydantic_v1 import BaseModel, root_validator
from langchain_core.schema.embeddings import Embeddings
from tenacity import (
before_sleep_log,
retry,
retry_if_exception_type,
stop_after_attempt,
wait_exponential,
)
from langchain.utils import get_from_dict_or_env
logger = logging.getLogger(__name__)
...
class GooglePalmEmbeddings(BaseModel, Embeddings):
"""Google's PaLM Embeddings APIs."""
client: Any
google_api_key: Optional[str]
model_name: str = "models/embedding-gecko-001"
"""Model name to use."""
@root_validator()
def validate_environment(cls, values: Dict) -> Dict:
"""Validate api key, python package exists."""
google_api_key = get_from_dict_or_env(
values, "google_api_key", "GOOGLE_API_KEY"
)
try:
import google.generativeai as genai
genai.configure(api_key=google_api_key)
except ImportError:
raise ImportError("Could not import google.generativeai python package.")
values["client"] = genai
return values
def embed_documents(self, texts: List[str]) -> List[List[float]]:
return [self.embed_query(text) for text in tqdm(texts)]
def embed_query(self, text: str) -> List[float]:
"""Embed query text."""
embedding = embed_with_retry(self, self.model_name, text)
return embedding["embedding"]
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13637/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/13637/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13636
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13636/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13636/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13636/events
|
https://github.com/langchain-ai/langchain/issues/13636
| 2,003,767,185 |
I_kwDOIPDwls53bw-R
| 13,636 |
TypeError in Jira Wrapper When Parsing Empty Ticket Information
|
{
"login": "jeanmbt",
"id": 66276446,
"node_id": "MDQ6VXNlcjY2Mjc2NDQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/66276446?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeanmbt",
"html_url": "https://github.com/jeanmbt",
"followers_url": "https://api.github.com/users/jeanmbt/followers",
"following_url": "https://api.github.com/users/jeanmbt/following{/other_user}",
"gists_url": "https://api.github.com/users/jeanmbt/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeanmbt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeanmbt/subscriptions",
"organizations_url": "https://api.github.com/users/jeanmbt/orgs",
"repos_url": "https://api.github.com/users/jeanmbt/repos",
"events_url": "https://api.github.com/users/jeanmbt/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeanmbt/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": 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": 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 | 2 | 2023-11-21T08:52:06 | 2023-11-21T08:54:27 | null |
NONE
| null |
### System Info
When using the Jira wrapper in LangChain to parse data from Jira tickets, the application encounters a TypeError if the ticket information is empty. This issue occurs specifically when the priority field of a ticket is not set, leading to a 'NoneType' object is not subscriptable error.
### Environment Details
LangChain version: [specify version]
Jira Wrapper version: [specify version]
Python version: 3.10
Operating System: [specify OS]
### Error Logs/Stack Traces
```
Traceback (most recent call last):
...
File "/path/to/langchain/tools/jira/tool.py", line 53, in _run
return self.api_wrapper.run(self.mode, instructions)
...
File "/path/to/langchain/utilities/jira.py", line 72, in parse_issues
priority = issue["fields"]["priority"]["name"]
TypeError: 'NoneType' object is not subscriptable
```
### Proposed Solution
I propose adding a check before parsing the ticket information. If the information is empty, return an empty string instead of 'None'. This modification successfully prevented the application from breaking in my tests.
### 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
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Steps to Reproduce
1- Execute a JQL query to fetch issues from a Jira project (e.g., project = SN and sprint = 'SN Sprint 8 + 9' and labels = 'fe').
2- Ensure that one of the fetched issues has an empty priority field.
3- Observe the application breaking with a TypeError.
### Expected behavior
The Jira wrapper should handle cases where ticket information, such as the priority field, is empty, without causing the application to break.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13636/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/13636/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13635
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13635/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13635/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13635/events
|
https://github.com/langchain-ai/langchain/issues/13635
| 2,003,734,187 |
I_kwDOIPDwls53bo6r
| 13,635 |
Chain Type Refine Error: 1 validation error for RefineDocumentsChain prompt extra fields not permitted
|
{
"login": "weissenbacherpwc",
"id": 148848330,
"node_id": "U_kgDOCN8-yg",
"avatar_url": "https://avatars.githubusercontent.com/u/148848330?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/weissenbacherpwc",
"html_url": "https://github.com/weissenbacherpwc",
"followers_url": "https://api.github.com/users/weissenbacherpwc/followers",
"following_url": "https://api.github.com/users/weissenbacherpwc/following{/other_user}",
"gists_url": "https://api.github.com/users/weissenbacherpwc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/weissenbacherpwc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/weissenbacherpwc/subscriptions",
"organizations_url": "https://api.github.com/users/weissenbacherpwc/orgs",
"repos_url": "https://api.github.com/users/weissenbacherpwc/repos",
"events_url": "https://api.github.com/users/weissenbacherpwc/events{/privacy}",
"received_events_url": "https://api.github.com/users/weissenbacherpwc/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"
},
{
"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": 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 | 2 | 2023-11-21T08:36:32 | 2023-11-21T09:33:37 | null |
NONE
| null |
### System Info
langchain 0.0.326
### Who can help?
_No response_
### 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
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from langchain.chains import RetrievalQA
from langchain.memory import ConversationBufferMemory
from langchain.prompts import PromptTemplate
# This text splitter is used to create the parent documents - The big chunks
parent_splitter = RecursiveCharacterTextSplitter(chunk_size=2000, chunk_overlap=400)
# This text splitter is used to create the child documents - The small chunks
# It should create documents smaller than the parent
child_splitter = RecursiveCharacterTextSplitter(chunk_size=400)
# The vectorstore to use to index the child chunks
from chromadb.errors import InvalidDimensionException
try:
vectorstore = Chroma(collection_name="split_parents", embedding_function=bge_embeddings, persist_directory="chroma_db")
except InvalidDimensionException:
Chroma().delete_collection()
vectorstore = Chroma(collection_name="split_parents", embedding_function=bge_embeddings, persist_directory="chroma_db")
#vectorstore = Chroma(collection_name="split_parents", embedding_function=bge_embeddings)
# The storage layer for the parent documents
store = InMemoryStore()
big_chunks_retriever = ParentDocumentRetriever(
vectorstore=vectorstore,
docstore=store,
child_splitter=child_splitter,
parent_splitter=parent_splitter,
)
big_chunks_retriever.add_documents(documents)
qa_template = """
Nutze die folgenden Informationen aus dem Kontext (getrennt mit <ctx></ctx>), um die Frage zu beantworten.
Antworte nur auf Deutsch, weil der Nutzer kein Englisch versteht! \
Falls du die Antwort nicht weißt, antworte mit "Leider fehlen mir dazu die Informationen." \
Wenn du nicht genügend Informationen unten findest, antworte ebenfalls mit "Leider fehlen mir dazu die Informationen." \
------
<ctx>
{context}
</ctx>
------
{query}
Answer:
"""
prompt = PromptTemplate(template=qa_template,
input_variables=['context','history', 'question'])
chain_type_kwargs={
"verbose": True,
"prompt": prompt,
"memory": ConversationSummaryMemory(
llm=build_llm(),
memory_key="history",
input_key="question",
return_messages=True)}
refine = RetrievalQA.from_chain_type(llm=build_llm(),
chain_type="refine",
return_source_documents=True,
chain_type_kwargs=chain_type_kwargs,
retriever=big_chunks_retriever,
verbose=True)
query = "Hi, I am Max, can you help me??"
refine(query)
```
### Expected behavior
Hi,
in the code you see how I built my RAG model with the ParentDocumentRetriever from Langchain and with Memory. At the moment I am using the RetrievalQA-Chain with the default `chain_type="stuff"`. However I want to try different chain types like "map_reduce" or "refine". But when replacing `chain_type="refine"` and creating the Retrieval QA chain, I get the following Error:
```
ValidationError: 1 validation error for RefineDocumentsChain
prompt
extra fields not permitted (type=value_error.extra)
```
How can I solve this?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13635/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/13635/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13634
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13634/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13634/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13634/events
|
https://github.com/langchain-ai/langchain/pull/13634
| 2,003,391,284 |
PR_kwDOIPDwls5f-Tf-
| 13,634 |
iMessage loader: implement message content extraction from attributed…
|
{
"login": "YaySushi",
"id": 40970649,
"node_id": "MDQ6VXNlcjQwOTcwNjQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/40970649?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/YaySushi",
"html_url": "https://github.com/YaySushi",
"followers_url": "https://api.github.com/users/YaySushi/followers",
"following_url": "https://api.github.com/users/YaySushi/following{/other_user}",
"gists_url": "https://api.github.com/users/YaySushi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/YaySushi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/YaySushi/subscriptions",
"organizations_url": "https://api.github.com/users/YaySushi/orgs",
"repos_url": "https://api.github.com/users/YaySushi/repos",
"events_url": "https://api.github.com/users/YaySushi/events{/privacy}",
"received_events_url": "https://api.github.com/users/YaySushi/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": 5463330795,
"node_id": "LA_kwDOIPDwls8AAAABRaPP6w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20test",
"name": "needs test",
"color": "E99695",
"default": false,
"description": "PR needs to be updated with tests"
},
{
"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": 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-11-21T03:34:19 | 2023-11-28T20:45:44 | 2023-11-28T20:45:43 |
CONTRIBUTOR
| null |
- **Description:** We are adding functionality to extract message content from the `attributedBody` field of the database, in case the content is not in the `text` field.
- **Issue:** Closes #13326 and #10680
- **Dependencies:** None.
- **Tag maintainer:** @eyurtsev, @hwchase17
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13634/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/13634/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13634",
"html_url": "https://github.com/langchain-ai/langchain/pull/13634",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13634.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13634.patch",
"merged_at": "2023-11-28T20:45:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13633
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13633/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13633/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13633/events
|
https://github.com/langchain-ai/langchain/pull/13633
| 2,003,326,094 |
PR_kwDOIPDwls5f-Fs4
| 13,633 |
remove openai api key from cookbook
|
{
"login": "gyliu513",
"id": 4461983,
"node_id": "MDQ6VXNlcjQ0NjE5ODM=",
"avatar_url": "https://avatars.githubusercontent.com/u/4461983?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gyliu513",
"html_url": "https://github.com/gyliu513",
"followers_url": "https://api.github.com/users/gyliu513/followers",
"following_url": "https://api.github.com/users/gyliu513/following{/other_user}",
"gists_url": "https://api.github.com/users/gyliu513/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gyliu513/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gyliu513/subscriptions",
"organizations_url": "https://api.github.com/users/gyliu513/orgs",
"repos_url": "https://api.github.com/users/gyliu513/repos",
"events_url": "https://api.github.com/users/gyliu513/events{/privacy}",
"received_events_url": "https://api.github.com/users/gyliu513/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": 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-11-21T02:21:06 | 2023-11-22T02:08:05 | 2023-11-22T01:25:06 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **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` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/13633/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/13633/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13633",
"html_url": "https://github.com/langchain-ai/langchain/pull/13633",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13633.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13633.patch",
"merged_at": "2023-11-22T01:25:06"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13632
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13632/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13632/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13632/events
|
https://github.com/langchain-ai/langchain/pull/13632
| 2,003,278,993 |
PR_kwDOIPDwls5f970u
| 13,632 |
Lint for imports
|
{
"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
}
|
[
{
"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": 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-11-21T01:22:35 | 2023-11-24T08:44:24 | 2023-11-22T01:42:56 |
COLLABORATOR
| null |
- Adds pydantic/import linting to core
- Adds a check for `langchain_experimental` imports to langchain
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13632/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/13632/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13632",
"html_url": "https://github.com/langchain-ai/langchain/pull/13632",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13632.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13632.patch",
"merged_at": "2023-11-22T01:42:56"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13631
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13631/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13631/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13631/events
|
https://github.com/langchain-ai/langchain/issues/13631
| 2,003,206,976 |
I_kwDOIPDwls53ZoNA
| 13,631 |
Langchain.schema.runnable now missing from docs?
|
{
"login": "muonmax",
"id": 94480542,
"node_id": "U_kgDOBaGong",
"avatar_url": "https://avatars.githubusercontent.com/u/94480542?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/muonmax",
"html_url": "https://github.com/muonmax",
"followers_url": "https://api.github.com/users/muonmax/followers",
"following_url": "https://api.github.com/users/muonmax/following{/other_user}",
"gists_url": "https://api.github.com/users/muonmax/gists{/gist_id}",
"starred_url": "https://api.github.com/users/muonmax/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/muonmax/subscriptions",
"organizations_url": "https://api.github.com/users/muonmax/orgs",
"repos_url": "https://api.github.com/users/muonmax/repos",
"events_url": "https://api.github.com/users/muonmax/events{/privacy}",
"received_events_url": "https://api.github.com/users/muonmax/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": 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 | 4 | 2023-11-20T23:53:15 | 2023-11-24T14:21:53 | null |
NONE
| null |
### System Info
Lanchain V: 0.339
### Who can help?
@hwchase17
@agola11
### Information
- [X] 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
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Following any example that uses a `langchain.schema.runnable` object. For example the "[Adding memory](https://python.langchain.com/docs/expression_language/cookbook/memory)" tutorial uses `RunnableLambda` and `RunnablePassthrough`.
- I no longer see `langchain.schema` in the API docs (see image below).
- Searching in the API docs also doesn't return any results when searching for `RunnablePassthrough`
<img width="363" alt="image" src="https://github.com/langchain-ai/langchain/assets/94480542/1b3ded17-c669-406d-8309-4f953f42c1f6">
### Expected behavior
- I don't see anything in the release notes about the `langchain.schema.runnables` being removed or relocated.
- I would have expected to see them in the API docs, or at least for them to still be returned when searching for them.
- Not sure if this is a documentation build issue and the modules are still importable as I have not updated my Langchain version yet. I was just using the docs as a reference and then starting getting 404 errors upon page refresh (e.g. [this](https://api.python.langchain.com/en/latest/schema/langchain.schema.messages.AIMessageChunk.html#langchain.schema.messages.AIMessageChunk) page for `AIMessageChunk` also no longer exists)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13631/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/13631/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13629
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13629/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13629/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13629/events
|
https://github.com/langchain-ai/langchain/pull/13629
| 2,003,181,541 |
PR_kwDOIPDwls5f9m55
| 13,629 |
BUG fix anthropic models on bedrock
|
{
"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
}
|
[
{
"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 | 1 | 2023-11-20T23:26:43 | 2023-11-22T01:40:30 | 2023-11-22T01:40:29 |
COLLABORATOR
| null |
Introduced in #13403
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13629/reactions",
"total_count": 2,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13629/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13629",
"html_url": "https://github.com/langchain-ai/langchain/pull/13629",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13629.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13629.patch",
"merged_at": "2023-11-22T01:40:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13628
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13628/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13628/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13628/events
|
https://github.com/langchain-ai/langchain/issues/13628
| 2,003,171,128 |
I_kwDOIPDwls53Zfc4
| 13,628 |
Potential Bug in ConversationalRetrievalChain - TypeError: can only concatenate str (not "CTransformers") to str | TypeError: can only concatenate str (not "AzureChatOpenAI") to str
|
{
"login": "abgulati",
"id": 20061663,
"node_id": "MDQ6VXNlcjIwMDYxNjYz",
"avatar_url": "https://avatars.githubusercontent.com/u/20061663?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abgulati",
"html_url": "https://github.com/abgulati",
"followers_url": "https://api.github.com/users/abgulati/followers",
"following_url": "https://api.github.com/users/abgulati/following{/other_user}",
"gists_url": "https://api.github.com/users/abgulati/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abgulati/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abgulati/subscriptions",
"organizations_url": "https://api.github.com/users/abgulati/orgs",
"repos_url": "https://api.github.com/users/abgulati/repos",
"events_url": "https://api.github.com/users/abgulati/events{/privacy}",
"received_events_url": "https://api.github.com/users/abgulati/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"
},
{
"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": 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 | 3 | 2023-11-20T23:14:44 | 2023-11-30T06:34:23 | null |
NONE
| null |
### System Info
LangChain Version: 0.0.339
Python version: 3.10.8
Windows 10 Enterprise 21H2
When creating a ConversationalRetrievalChain as follows:
CONVERSATION_RAG_CHAIN_WITH_SUMMARY_BUFFER = ConversationalRetrievalChain(
combine_docs_chain=combine_docs_chain,
memory=summary_memory,
retriever=rag_retriever,
question_generator=question_generator_chain
)
With
LLM = AzureChatOpenAI(...)
The following error occurs:
"
Traceback (most recent call last):
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\om403f\Documents\Applied_Research\Deep_Learning\web_app\app.py", line 1456, in llm_task
history_rag_buffer_result = CONVERSATION_RAG_CHAIN_WITH_SUMMARY_BUFFER.invoke({'question':user_query, 'chat_history':summary_memory})
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\base.py", line 87, in invoke
return self(
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\base.py", line 310, in __call__
raise e
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\base.py", line 304, in __call__
self._call(inputs, run_manager=run_manager)
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\conversational_retrieval\base.py", line 135, in _call
chat_history_str = get_chat_history(inputs["chat_history"])
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\conversational_retrieval\base.py", line 44, in _get_chat_history
ai = "Assistant: " + dialogue_turn[1]
TypeError: can only concatenate str (not "AzureChatOpenAI") to str
"
Alternately, when using CTransformers as follows:
LLM = CTransformers(model=llm_model, model_type="llama", config=config, streaming=True, callbacks=[StreamingStdOutCallbackHandler()])
The following error occurs:
"
Traceback (most recent call last):
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\om403f\Documents\Applied_Research\Deep_Learning\web_app\app.py", line 1456, in llm_task
history_rag_buffer_result = CONVERSATION_RAG_CHAIN_WITH_SUMMARY_BUFFER.invoke({'question':user_query, 'chat_history':summary_memory})
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\base.py", line 87, in invoke
return self(
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\base.py", line 310, in __call__
raise e
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\base.py", line 304, in __call__
self._call(inputs, run_manager=run_manager)
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\conversational_retrieval\base.py", line 135, in _call
chat_history_str = get_chat_history(inputs["chat_history"])
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\conversational_retrieval\base.py", line 44, in _get_chat_history
ai = "Assistant: " + dialogue_turn[1]
TypeError: can only concatenate str (not "CTransformers") to str
"
Hope this is an accurate bug report and it helps! Apologies if this is in fact a dumb report and actually an error at my end.
### Who can help?
@hwchase17
@agola11
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain.schema.vectorstore import VectorStoreRetriever
from langchain.memory import ConversationSummaryBufferMemory
from langchain.embeddings import HuggingFaceEmbeddings
from langchain.prompts import PromptTemplate
from langchain.vectorstores import Chroma
from langchain.chains import LLMChainn
from langchain.chains import StuffDocumentsChain
from langchain.chains import ConversationalRetrievalChain
from langchain.llms import CTransformers
VECTOR_STORE = Chroma(persist_directory=VECTORDB_SBERT_FOLDER, embedding_function=HuggingFaceEmbeddings())
LLM = CTransformers(model=llm_model, model_type="llama", config=config, streaming=True, callbacks=[StreamingStdOutCallbackHandler()])
document_prompt = PromptTemplate(
input_variables=["page_content"],
template="{page_content}"
)
document_variable_name = "context"
temp_StuffDocumentsChain_prompt = PromptTemplate.from_template(
"Summarize this content: {context}"
)
llm_chain_for_StuffDocumentsChain = LLMChain(llm=LLM, prompt=temp_StuffDocumentsChain_prompt)
combine_docs_chain = StuffDocumentsChain(
llm_chain=llm_chain_for_StuffDocumentsChain,
document_prompt=document_prompt,
document_variable_name=document_variable_name
)
summary_memory = ConversationSummaryBufferMemory(llm=LLM, max_token_limit=100)
retriever=VECTOR_STORE.as_retriever()
rag_retriever = VectorStoreRetriever(vectorstore=VECTOR_STORE)
temp_template = (
"""
Combine the chat history and qustion into a standalone question:
Chat history: {chat_history}
question: {user_query}
"""
)
temp_prompt = PromptTemplate.from_template(temp_template)
question_generator_chain = LLMChain(llm=LLM, prompt=temp_prompt)
CONVERSATION_RAG_CHAIN_WITH_SUMMARY_BUFFER = ConversationalRetrievalChain(
combine_docs_chain=combine_docs_chain,
memory=summary_memory,
retriever=rag_retriever,
question_generator=question_generator_chain
)
CONVERSATION_RAG_CHAIN_WITH_SUMMARY_BUFFER.invoke({'question':user_query, 'chat_history':summary_memory})
### Expected behavior
Should work according to code example and API specs as described in the official LangChain API docs:
https://api.python.langchain.com/en/latest/chains/langchain.chains.conversational_retrieval.base.ConversationalRetrievalChain.html#langchain.chains.conversational_retrieval.base.ConversationalRetrievalChain
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13628/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/13628/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13627
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13627/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13627/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13627/events
|
https://github.com/langchain-ai/langchain/pull/13627
| 2,003,135,534 |
PR_kwDOIPDwls5f9cz7
| 13,627 |
Core refac
|
{
"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": 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-11-20T22:41:30 | 2023-11-21T16:35:31 | 2023-11-21T16:35:30 |
COLLABORATOR
| null |
proposed changes:
- remove langchain_core/schema since no clear distinction b/n schema and non-schema modules
- make every module that doesn't end in -y plural
- where easy have 1-2 classes per file
- no more than one level of nesting
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13627/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/13627/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13627",
"html_url": "https://github.com/langchain-ai/langchain/pull/13627",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13627.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13627.patch",
"merged_at": "2023-11-21T16:35:30"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13626
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13626/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13626/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13626/events
|
https://github.com/langchain-ai/langchain/pull/13626
| 2,003,131,769 |
PR_kwDOIPDwls5f9b98
| 13,626 |
chore: add serializer for tool message
|
{
"login": "tanujtiwari-at",
"id": 133697024,
"node_id": "U_kgDOB_gOAA",
"avatar_url": "https://avatars.githubusercontent.com/u/133697024?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tanujtiwari-at",
"html_url": "https://github.com/tanujtiwari-at",
"followers_url": "https://api.github.com/users/tanujtiwari-at/followers",
"following_url": "https://api.github.com/users/tanujtiwari-at/following{/other_user}",
"gists_url": "https://api.github.com/users/tanujtiwari-at/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tanujtiwari-at/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tanujtiwari-at/subscriptions",
"organizations_url": "https://api.github.com/users/tanujtiwari-at/orgs",
"repos_url": "https://api.github.com/users/tanujtiwari-at/repos",
"events_url": "https://api.github.com/users/tanujtiwari-at/events{/privacy}",
"received_events_url": "https://api.github.com/users/tanujtiwari-at/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": 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": 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-11-20T22:38:27 | 2023-11-24T08:37:02 | 2023-11-22T02:20:58 |
CONTRIBUTOR
| null |
**Description:** Currently, if we pass in a ToolMessage back to the chain, it crashes with error
`Got unsupported message type: `
This fixes it.
Tested locally
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13626/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/13626/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13626",
"html_url": "https://github.com/langchain-ai/langchain/pull/13626",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13626.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13626.patch",
"merged_at": "2023-11-22T02:20:58"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13625
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13625/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13625/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13625/events
|
https://github.com/langchain-ai/langchain/pull/13625
| 2,003,109,553 |
PR_kwDOIPDwls5f9XHa
| 13,625 |
Add template for gpt-crawler
|
{
"login": "rlancemartin",
"id": 122662504,
"node_id": "U_kgDOB0-uaA",
"avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rlancemartin",
"html_url": "https://github.com/rlancemartin",
"followers_url": "https://api.github.com/users/rlancemartin/followers",
"following_url": "https://api.github.com/users/rlancemartin/following{/other_user}",
"gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions",
"organizations_url": "https://api.github.com/users/rlancemartin/orgs",
"repos_url": "https://api.github.com/users/rlancemartin/repos",
"events_url": "https://api.github.com/users/rlancemartin/events{/privacy}",
"received_events_url": "https://api.github.com/users/rlancemartin/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": 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-11-20T22:17:29 | 2023-11-21T05:32:58 | 2023-11-21T05:32:57 |
COLLABORATOR
| null |
Template for RAG using [gpt-crawler](https://github.com/BuilderIO/gpt-crawler).
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13625/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/13625/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13625",
"html_url": "https://github.com/langchain-ai/langchain/pull/13625",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13625.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13625.patch",
"merged_at": "2023-11-21T05:32:57"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13624
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13624/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13624/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13624/events
|
https://github.com/langchain-ai/langchain/issues/13624
| 2,003,033,612 |
I_kwDOIPDwls53Y94M
| 13,624 |
Potential Bug in Retriever.py: Can't instantiate abstract class BaseRetriever with abstract method _get_relevant_documents
|
{
"login": "abgulati",
"id": 20061663,
"node_id": "MDQ6VXNlcjIwMDYxNjYz",
"avatar_url": "https://avatars.githubusercontent.com/u/20061663?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abgulati",
"html_url": "https://github.com/abgulati",
"followers_url": "https://api.github.com/users/abgulati/followers",
"following_url": "https://api.github.com/users/abgulati/following{/other_user}",
"gists_url": "https://api.github.com/users/abgulati/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abgulati/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abgulati/subscriptions",
"organizations_url": "https://api.github.com/users/abgulati/orgs",
"repos_url": "https://api.github.com/users/abgulati/repos",
"events_url": "https://api.github.com/users/abgulati/events{/privacy}",
"received_events_url": "https://api.github.com/users/abgulati/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": 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 | 4 | 2023-11-20T21:27:06 | 2024-01-10T14:30:12 | null |
NONE
| null |
### System Info
LangChain Version: 0.0.339
Python version: 3.10.8
Windows 10 Enterprise 21H2
When creating a ConversationalRetrievalChain as follows:
CONVERSATION_RAG_CHAIN_WITH_SUMMARY_BUFFER = ConversationalRetrievalChain(
combine_docs_chain=combine_docs_chain,
memory=summary_memory,
retriever=rag_retriever,
question_generator=question_generator_chain
)
With rag_retriever = VectorStoreRetrieverMemory(retriever=VECTOR_STORE.as_retriever())
The following error occurs:
"
Traceback (most recent call last):
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\om403f\Documents\Applied_Research\Deep_Learning\web_app\app.py", line 1438, in llm_task
CONVERSATION_RAG_CHAIN_WITH_SUMMARY_BUFFER = ConversationalRetrievalChain(
File "C:\Users\om403f\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\load\serializable.py", line 97, in __init__
super().__init__(**kwargs)
File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for ConversationalRetrievalChain
retriever
Can't instantiate abstract class BaseRetriever with abstract method _get_relevant_documents (type=type_error)
"
Name mangling may be occurring as described here: https://stackoverflow.com/questions/31457855/cant-instantiate-abstract-class-with-abstract-methods
retriever.py implements the abstract method _get_relevant_documents: https://github.com/langchain-ai/langchain/blob/4eec47b19128fa168e58b9a218a9da049275f6ce/libs/langchain/langchain/schema/retriever.py#L136
Hope this is an accurate bug report and it helps! Apologies if this is in fact a dumb report and actually an error at my end.
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
from langchain.memory import ConversationSummaryBufferMemory
from langchain.memory import VectorStoreRetrieverMemory
from langchain.prompts import PromptTemplate
from langchain.vectorstores import Chroma
from langchain.chains import LLMChain
from langchain.chains import RetrievalQA
from langchain.chains import ConversationChain
from langchain.chains import StuffDocumentsChain
from langchain.chains import ConversationalRetrievalChain
VECTOR_STORE = Chroma(persist_directory=VECTORDB_SBERT_FOLDER, embedding_function=HuggingFaceEmbeddings())
LLM = AzureChatOpenAI()
document_prompt = PromptTemplate(
input_variables=["page_content"],
template="{page_content}"
)
document_variable_name = "context"
temp_StuffDocumentsChain_prompt = PromptTemplate.from_template(
"Summarize this content: {context}"
)
llm_chain_for_StuffDocumentsChain = LLMChain(llm=LLM, prompt=temp_StuffDocumentsChain_prompt)
combine_docs_chain = StuffDocumentsChain(
llm_chain=llm_chain_for_StuffDocumentsChain,
document_prompt=document_prompt,
document_variable_name=document_variable_name
)
summary_memory = ConversationSummaryBufferMemory(llm=LLM, max_token_limit=100)
retriever=VECTOR_STORE.as_retriever()
rag_retriever = VectorStoreRetrieverMemory(retriever=retriever)
temp_template = (
"""
Combine the chat history and qustion into a standalone question:
Chat history: {chat_history}
question: {user_query}
"""
)
temp_prompt = PromptTemplate.from_template(temp_template)
question_generator_chain = LLMChain(llm=LLM, prompt=temp_prompt)
CONVERSATION_RAG_CHAIN_WITH_SUMMARY_BUFFER = ConversationalRetrievalChain(
combine_docs_chain=combine_docs_chain,
memory=summary_memory,
retriever=rag_retriever,
question_generator=question_generator_chain
)
### Expected behavior
Example code here works: https://api.python.langchain.com/en/latest/chains/langchain.chains.conversational_retrieval.base.ConversationalRetrievalChain.html#langchain.chains.conversational_retrieval.base.ConversationalRetrievalChain
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13624/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/13624/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13623
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13623/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13623/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13623/events
|
https://github.com/langchain-ai/langchain/pull/13623
| 2,003,024,134 |
PR_kwDOIPDwls5f9EM0
| 13,623 |
Add core as dep
|
{
"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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-20T21:19:49 | 2023-11-20T22:38:11 | 2023-11-20T22:38:10 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13623/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/13623/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13623",
"html_url": "https://github.com/langchain-ai/langchain/pull/13623",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13623.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13623.patch",
"merged_at": "2023-11-20T22:38:10"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13622
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13622/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13622/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13622/events
|
https://github.com/langchain-ai/langchain/issues/13622
| 2,003,012,832 |
I_kwDOIPDwls53Y4zg
| 13,622 |
Configurable timeout for Ollama
|
{
"login": "shreyaskarnik",
"id": 311217,
"node_id": "MDQ6VXNlcjMxMTIxNw==",
"avatar_url": "https://avatars.githubusercontent.com/u/311217?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shreyaskarnik",
"html_url": "https://github.com/shreyaskarnik",
"followers_url": "https://api.github.com/users/shreyaskarnik/followers",
"following_url": "https://api.github.com/users/shreyaskarnik/following{/other_user}",
"gists_url": "https://api.github.com/users/shreyaskarnik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shreyaskarnik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shreyaskarnik/subscriptions",
"organizations_url": "https://api.github.com/users/shreyaskarnik/orgs",
"repos_url": "https://api.github.com/users/shreyaskarnik/repos",
"events_url": "https://api.github.com/users/shreyaskarnik/events{/privacy}",
"received_events_url": "https://api.github.com/users/shreyaskarnik/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": 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"
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-20T21:10:54 | 2023-11-20T21:36:40 | 2023-11-20T21:36:40 |
NONE
| null |
### Feature request
I have been using Ollama with Langchain for various tasks, but sometimes Ollama takes too long to respond depending on my local hardware. Is it possible to add a configurable timeout to the Ollama base class so that I can adjust this setting to avoid timeouts when using agents. Currently, I am getting a `httpx` timeout error when using Ollama.
### Motivation
This feature will help to leverage local LLMs on a variety of hardware and let's experiment and build with local LLMs before using any third party APIs.
### Your contribution
If this is something that would be considered as a feature I am happy to add in a PR for this feature.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13622/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/13622/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13621
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13621/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13621/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13621/events
|
https://github.com/langchain-ai/langchain/pull/13621
| 2,003,001,897 |
PR_kwDOIPDwls5f8_XI
| 13,621 |
Add Databricks Vector Search as a new vector store
|
{
"login": "freemso",
"id": 10937540,
"node_id": "MDQ6VXNlcjEwOTM3NTQw",
"avatar_url": "https://avatars.githubusercontent.com/u/10937540?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/freemso",
"html_url": "https://github.com/freemso",
"followers_url": "https://api.github.com/users/freemso/followers",
"following_url": "https://api.github.com/users/freemso/following{/other_user}",
"gists_url": "https://api.github.com/users/freemso/gists{/gist_id}",
"starred_url": "https://api.github.com/users/freemso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/freemso/subscriptions",
"organizations_url": "https://api.github.com/users/freemso/orgs",
"repos_url": "https://api.github.com/users/freemso/repos",
"events_url": "https://api.github.com/users/freemso/events{/privacy}",
"received_events_url": "https://api.github.com/users/freemso/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5510857403,
"node_id": "LA_kwDOIPDwls8AAAABSHkCuw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation",
"name": "needs documentation",
"color": "DCAAC0",
"default": false,
"description": "PR needs to be updated with documentation"
},
{
"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": 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-11-20T21:02:33 | 2023-11-27T19:07:27 | 2023-11-27T19:07:26 |
CONTRIBUTOR
| null |
**Description:**
This PR adds Databricks Vector Search as a new vector store in LangChain.
- [x] Add `DatabricksVectorSearch` in `langchain/vectorstores/`
- [x] Unit tests
- [x] Add [`databricks-vectorsearch`](https://pypi.org/project/databricks-vectorsearch/) as a new optional dependency
We ran the following checks:
- `make format` passed ✅
- `make lint` failed but the failures were caused by other files
+ Files touched by this PR passed the linter ✅
- `make test` passed ✅
- `make coverage` failed but the failures were caused by other files. Tests added by or related to this PR all passed
+ langchain/vectorstores/databricks_vector_search.py test coverage 94% ✅
- `make spell_check` passed ✅
The example notebook and updates to the [provider's documentation page](https://github.com/langchain-ai/langchain/blob/master/docs/docs/integrations/providers/databricks.md) will be added later in a separate PR.
**Dependencies:**
Optional dependency: [`databricks-vectorsearch`](https://pypi.org/project/databricks-vectorsearch/)
<!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **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` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/13621/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/13621/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13621",
"html_url": "https://github.com/langchain-ai/langchain/pull/13621",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13621.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13621.patch",
"merged_at": "2023-11-27T19:07:26"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13620
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13620/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13620/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13620/events
|
https://github.com/langchain-ai/langchain/pull/13620
| 2,002,993,811 |
PR_kwDOIPDwls5f89lI
| 13,620 |
VoyageEmbeddings embed_general_texts
|
{
"login": "thomas0809",
"id": 11373553,
"node_id": "MDQ6VXNlcjExMzczNTUz",
"avatar_url": "https://avatars.githubusercontent.com/u/11373553?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thomas0809",
"html_url": "https://github.com/thomas0809",
"followers_url": "https://api.github.com/users/thomas0809/followers",
"following_url": "https://api.github.com/users/thomas0809/following{/other_user}",
"gists_url": "https://api.github.com/users/thomas0809/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thomas0809/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thomas0809/subscriptions",
"organizations_url": "https://api.github.com/users/thomas0809/orgs",
"repos_url": "https://api.github.com/users/thomas0809/repos",
"events_url": "https://api.github.com/users/thomas0809/events{/privacy}",
"received_events_url": "https://api.github.com/users/thomas0809/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": 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": 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-11-20T20:57:10 | 2023-11-22T02:33:07 | 2023-11-22T02:33:07 |
CONTRIBUTOR
| null |
- **Description:** add method embed_general_texts in VoyageEmebddings to support input_type
- **Issue:**
- **Dependencies:**
- **Tag maintainer:**
- **Twitter handle:** @Voyage_AI_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13620/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/13620/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13620",
"html_url": "https://github.com/langchain-ai/langchain/pull/13620",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13620.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13620.patch",
"merged_at": "2023-11-22T02:33:07"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13619
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13619/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13619/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13619/events
|
https://github.com/langchain-ai/langchain/pull/13619
| 2,002,954,666 |
PR_kwDOIPDwls5f81Bz
| 13,619 |
feat: implement max marginal relevance for momento vector index
|
{
"login": "malandis",
"id": 3690240,
"node_id": "MDQ6VXNlcjM2OTAyNDA=",
"avatar_url": "https://avatars.githubusercontent.com/u/3690240?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/malandis",
"html_url": "https://github.com/malandis",
"followers_url": "https://api.github.com/users/malandis/followers",
"following_url": "https://api.github.com/users/malandis/following{/other_user}",
"gists_url": "https://api.github.com/users/malandis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/malandis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/malandis/subscriptions",
"organizations_url": "https://api.github.com/users/malandis/orgs",
"repos_url": "https://api.github.com/users/malandis/repos",
"events_url": "https://api.github.com/users/malandis/events{/privacy}",
"received_events_url": "https://api.github.com/users/malandis/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": 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 | 5 | 2023-11-20T20:28:37 | 2023-12-05T00:50:23 | 2023-12-05T00:50:23 |
CONTRIBUTOR
| null |
**Description**
Implements `max_marginal_relevance_search` and `max_marginal_relevance_search_by_vector` for the Momento Vector Index vectorstore.
Additionally bumps the `momento` dependency in the lock file and adds logging to the implementation.
**Dependencies**
✅ updates `momento` dependency in lock file
**Tag maintainer**
@baskaryan
**Twitter handle**
Please tag @momentohq for Momento Vector Index and @mloml for the contribution 🙇
<!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **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` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/13619/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/13619/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13619",
"html_url": "https://github.com/langchain-ai/langchain/pull/13619",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13619.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13619.patch",
"merged_at": "2023-12-05T00:50:23"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13618
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13618/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13618/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13618/events
|
https://github.com/langchain-ai/langchain/pull/13618
| 2,002,892,506 |
PR_kwDOIPDwls5f8nMy
| 13,618 |
office365 toolkit bug fixes
|
{
"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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"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 | 1 | 2023-11-20T19:53:31 | 2023-11-28T17:10:06 | 2023-11-28T16:49:25 |
COLLABORATOR
| null |
Several bug fixes:
- emails: instead of `bcc` the `cc` is used.
- errors in the truncation descriptions
- no truncation of the `message_search`
Several updates:
- generalized UTC format
- truncation limit can be changed now in _call()
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13618/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/13618/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13618",
"html_url": "https://github.com/langchain-ai/langchain/pull/13618",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13618.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13618.patch",
"merged_at": "2023-11-28T16:49:25"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13617
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13617/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13617/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13617/events
|
https://github.com/langchain-ai/langchain/issues/13617
| 2,002,864,501 |
I_kwDOIPDwls53YUl1
| 13,617 |
Issue: `pgvector` versions in `poetry.lock` are really old
|
{
"login": "orestxherija",
"id": 9495340,
"node_id": "MDQ6VXNlcjk0OTUzNDA=",
"avatar_url": "https://avatars.githubusercontent.com/u/9495340?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/orestxherija",
"html_url": "https://github.com/orestxherija",
"followers_url": "https://api.github.com/users/orestxherija/followers",
"following_url": "https://api.github.com/users/orestxherija/following{/other_user}",
"gists_url": "https://api.github.com/users/orestxherija/gists{/gist_id}",
"starred_url": "https://api.github.com/users/orestxherija/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/orestxherija/subscriptions",
"organizations_url": "https://api.github.com/users/orestxherija/orgs",
"repos_url": "https://api.github.com/users/orestxherija/repos",
"events_url": "https://api.github.com/users/orestxherija/events{/privacy}",
"received_events_url": "https://api.github.com/users/orestxherija/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"
}
] |
open
| false | null |
[] | null | 3 | 2023-11-20T19:32:27 | 2023-12-09T13:20:44 | null |
NONE
| null |
### Issue you'd like to raise.
The compatible versions for library `pgvector` listed in `poetry.lock` are really old: `"pgvector (>=0.1.6,<0.2.0)"`.
Are we able to update them to more recent ones?
### Suggestion:
Update versions to recent ones.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13617/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/13617/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13616
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13616/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13616/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13616/events
|
https://github.com/langchain-ai/langchain/pull/13616
| 2,002,720,506 |
PR_kwDOIPDwls5f8Bjx
| 13,616 |
BookendAI Embeddings
|
{
"login": "stvhu-bookend",
"id": 142813359,
"node_id": "U_kgDOCIMorw",
"avatar_url": "https://avatars.githubusercontent.com/u/142813359?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/stvhu-bookend",
"html_url": "https://github.com/stvhu-bookend",
"followers_url": "https://api.github.com/users/stvhu-bookend/followers",
"following_url": "https://api.github.com/users/stvhu-bookend/following{/other_user}",
"gists_url": "https://api.github.com/users/stvhu-bookend/gists{/gist_id}",
"starred_url": "https://api.github.com/users/stvhu-bookend/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stvhu-bookend/subscriptions",
"organizations_url": "https://api.github.com/users/stvhu-bookend/orgs",
"repos_url": "https://api.github.com/users/stvhu-bookend/repos",
"events_url": "https://api.github.com/users/stvhu-bookend/events{/privacy}",
"received_events_url": "https://api.github.com/users/stvhu-bookend/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": 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-11-20T17:57:18 | 2023-12-05T00:53:29 | 2023-12-05T00:53:29 |
CONTRIBUTOR
| null |
- **Description:** https://bookend.ai/ langchain embeddings integration
- **Dependencies:** n/a (just using `requests`)
- **Tag maintainer:** stvhu-bookend
- **Twitter handle:** https://twitter.com/bookendai
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13616/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/13616/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13616",
"html_url": "https://github.com/langchain-ai/langchain/pull/13616",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13616.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13616.patch",
"merged_at": "2023-12-05T00:53:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13615
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13615/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13615/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13615/events
|
https://github.com/langchain-ai/langchain/pull/13615
| 2,002,714,056 |
PR_kwDOIPDwls5f8AI0
| 13,615 |
DOCS: update rag use case images
|
{
"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": 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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-20T17:52:41 | 2023-11-20T18:14:54 | 2023-11-20T18:14:53 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13615/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/13615/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13615",
"html_url": "https://github.com/langchain-ai/langchain/pull/13615",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13615.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13615.patch",
"merged_at": "2023-11-20T18:14:53"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13614
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13614/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13614/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13614/events
|
https://github.com/langchain-ai/langchain/pull/13614
| 2,002,707,045 |
PR_kwDOIPDwls5f7-mQ
| 13,614 |
Rag redis template dependency update
|
{
"login": "tylerhutcherson",
"id": 20304844,
"node_id": "MDQ6VXNlcjIwMzA0ODQ0",
"avatar_url": "https://avatars.githubusercontent.com/u/20304844?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tylerhutcherson",
"html_url": "https://github.com/tylerhutcherson",
"followers_url": "https://api.github.com/users/tylerhutcherson/followers",
"following_url": "https://api.github.com/users/tylerhutcherson/following{/other_user}",
"gists_url": "https://api.github.com/users/tylerhutcherson/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tylerhutcherson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tylerhutcherson/subscriptions",
"organizations_url": "https://api.github.com/users/tylerhutcherson/orgs",
"repos_url": "https://api.github.com/users/tylerhutcherson/repos",
"events_url": "https://api.github.com/users/tylerhutcherson/events{/privacy}",
"received_events_url": "https://api.github.com/users/tylerhutcherson/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": 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": 6154420538,
"node_id": "LA_kwDOIPDwls8AAAABbtUBOg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/template",
"name": "template",
"color": "145FB1",
"default": false,
"description": ""
},
{
"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 |
{
"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 | 2 | 2023-11-20T17:47:33 | 2023-12-01T14:50:26 | 2023-11-30T20:22:13 |
CONTRIBUTOR
| null |
- **Description:** Update RAG Redis template readme and dependencies.
- **Tag maintainer:** @efriis @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13614/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/13614/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13614",
"html_url": "https://github.com/langchain-ai/langchain/pull/13614",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13614.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13614.patch",
"merged_at": "2023-11-30T20:22:13"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13613
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13613/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13613/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13613/events
|
https://github.com/langchain-ai/langchain/pull/13613
| 2,002,703,327 |
PR_kwDOIPDwls5f79yD
| 13,613 |
bump 339
|
{
"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": 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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-20T17:45:02 | 2023-11-20T17:56:44 | 2023-11-20T17:56:43 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13613/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/13613/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13613",
"html_url": "https://github.com/langchain-ai/langchain/pull/13613",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13613.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13613.patch",
"merged_at": "2023-11-20T17:56:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13612
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13612/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13612/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13612/events
|
https://github.com/langchain-ai/langchain/pull/13612
| 2,002,664,790 |
PR_kwDOIPDwls5f71dq
| 13,612 |
standardise metadata_field handling
|
{
"login": "anderson2805",
"id": 7627118,
"node_id": "MDQ6VXNlcjc2MjcxMTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/7627118?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/anderson2805",
"html_url": "https://github.com/anderson2805",
"followers_url": "https://api.github.com/users/anderson2805/followers",
"following_url": "https://api.github.com/users/anderson2805/following{/other_user}",
"gists_url": "https://api.github.com/users/anderson2805/gists{/gist_id}",
"starred_url": "https://api.github.com/users/anderson2805/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anderson2805/subscriptions",
"organizations_url": "https://api.github.com/users/anderson2805/orgs",
"repos_url": "https://api.github.com/users/anderson2805/repos",
"events_url": "https://api.github.com/users/anderson2805/events{/privacy}",
"received_events_url": "https://api.github.com/users/anderson2805/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"
},
{
"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": 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 | 1 | 2023-11-20T17:18:34 | 2023-11-28T08:51:47 | null |
NONE
| null |
- **Description:** updated func max_marginal_relevance_search handling of metadata_field to be same as similarity_search_with_score. Allow flatten Opensearch mapping, where meta fields are not nested into any field.
- **Issue:** #10524
- **Maintainer:** @hwchase17, @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13612/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/13612/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13612",
"html_url": "https://github.com/langchain-ai/langchain/pull/13612",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13612.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13612.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13611
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13611/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13611/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13611/events
|
https://github.com/langchain-ai/langchain/issues/13611
| 2,002,541,905 |
I_kwDOIPDwls53XF1R
| 13,611 |
ValueError: Redis failed to connect:
|
{
"login": "abusufyanvu",
"id": 76678681,
"node_id": "MDQ6VXNlcjc2Njc4Njgx",
"avatar_url": "https://avatars.githubusercontent.com/u/76678681?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abusufyanvu",
"html_url": "https://github.com/abusufyanvu",
"followers_url": "https://api.github.com/users/abusufyanvu/followers",
"following_url": "https://api.github.com/users/abusufyanvu/following{/other_user}",
"gists_url": "https://api.github.com/users/abusufyanvu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abusufyanvu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abusufyanvu/subscriptions",
"organizations_url": "https://api.github.com/users/abusufyanvu/orgs",
"repos_url": "https://api.github.com/users/abusufyanvu/repos",
"events_url": "https://api.github.com/users/abusufyanvu/events{/privacy}",
"received_events_url": "https://api.github.com/users/abusufyanvu/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"
},
{
"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 | 2 | 2023-11-20T16:10:48 | 2023-11-20T16:17:33 | null |
NONE
| null |
### System Info
# Create and load Redis with documents
vectorstore = RedisVectorStore.from_texts(
texts=texts,
metadatas=metadatas,
embedding=embedding,
index_name=index_name,
redis_url=redis_url
)
The error i faced
Redis cannot be used as a vector database without RediSearch >=2.4Please head to https://redis.io/docs/stack/search/quick_start/to know more about installing the RediSearch module within Redis Stack.
### 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
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
.
### Expected behavior
.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13611/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/13611/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13610
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13610/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13610/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13610/events
|
https://github.com/langchain-ai/langchain/issues/13610
| 2,002,454,320 |
I_kwDOIPDwls53Wwcw
| 13,610 |
Type Checking issue: CacheBackedEmbeddings.split_documents does not take a list of Documents
|
{
"login": "xcelerant",
"id": 143944168,
"node_id": "U_kgDOCJRp6A",
"avatar_url": "https://avatars.githubusercontent.com/u/143944168?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xcelerant",
"html_url": "https://github.com/xcelerant",
"followers_url": "https://api.github.com/users/xcelerant/followers",
"following_url": "https://api.github.com/users/xcelerant/following{/other_user}",
"gists_url": "https://api.github.com/users/xcelerant/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xcelerant/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xcelerant/subscriptions",
"organizations_url": "https://api.github.com/users/xcelerant/orgs",
"repos_url": "https://api.github.com/users/xcelerant/repos",
"events_url": "https://api.github.com/users/xcelerant/events{/privacy}",
"received_events_url": "https://api.github.com/users/xcelerant/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": 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 | 2 | 2023-11-20T15:27:25 | 2023-11-20T15:34:24 | null |
NONE
| null |
### System Info
I encountered an exception and a type checking notice in PyCharm while working with the following code snippet:
```
split_documents = text_splitter.split_documents(raw_documents)
cached_embedder.embed_documents(**split_documents**)
```
The type checking notice indicates that there is a mismatch in the expected type for a Document. According to the type definition, a Document should have properties such as page_content, type, and metadata. However, the function embed_documents seems to be designed to handle a list of strings instead of documents.
To align with the expected type for a Document, it is suggested to consider renaming the function from embed_documents to something like embed_strings or embed_texts. This change would accurately reflect the input type expected by the function and help avoid type-related issues during development.
Thank you for your attention to this matter.
```
cached_embedder.embed_documents(split_documents)
...
File "venv/lib/python3.11/site-packages/langchain/embeddings/cache.py", line 26, in _hash_string_to_uuid
hash_value = hashlib.sha1(input_string.encode("utf-8")).hexdigest()
^^^^^^^^^^^^^^^^^^^
AttributeError: 'Document' object has no attribute 'encode'
```
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] 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
loader = DirectoryLoader(
"./data",
glob="**/*.md",
show_progress=True,
use_multithreading=True,
loader_cls=UnstructuredMarkdownLoader,
loader_kwargs={"mode": "elements"},
)
raw_documents = loader.load()
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
split_documents = text_splitter.split_documents(raw_documents)
cached_embedder.embed_documents(split_documents)
### Expected behavior
method should either accept a list of Documents or be renamed to embed_strings
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13610/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/13610/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13608
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13608/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13608/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13608/events
|
https://github.com/langchain-ai/langchain/pull/13608
| 2,002,224,474 |
PR_kwDOIPDwls5f6VLd
| 13,608 |
Added support for partial_variables to BaseStringMessagePromptTemplate
|
{
"login": "jponf",
"id": 3852560,
"node_id": "MDQ6VXNlcjM4NTI1NjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/3852560?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jponf",
"html_url": "https://github.com/jponf",
"followers_url": "https://api.github.com/users/jponf/followers",
"following_url": "https://api.github.com/users/jponf/following{/other_user}",
"gists_url": "https://api.github.com/users/jponf/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jponf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jponf/subscriptions",
"organizations_url": "https://api.github.com/users/jponf/orgs",
"repos_url": "https://api.github.com/users/jponf/repos",
"events_url": "https://api.github.com/users/jponf/events{/privacy}",
"received_events_url": "https://api.github.com/users/jponf/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 | 1 | 2023-11-20T13:36:03 | 2023-11-21T11:05:58 | 2023-11-21T11:05:55 |
CONTRIBUTOR
| null |
**Description:** BaseStringMessagePromptTemplate.from_template was passingg the value of partial_variables into cls(...) via **kwargs, rather than passing it to PromptTemplate.from_template.
**Tag maintainer:** @eyurtsev
**Twitter handle:** @josep_pon
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13608/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/13608/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13608",
"html_url": "https://github.com/langchain-ai/langchain/pull/13608",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13608.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13608.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13607
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13607/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13607/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13607/events
|
https://github.com/langchain-ai/langchain/issues/13607
| 2,002,214,770 |
I_kwDOIPDwls53V19y
| 13,607 |
Issue: Validation errors for ConversationalRetrievalChain (combine_docs_chain)
|
{
"login": "0ENZO",
"id": 53021621,
"node_id": "MDQ6VXNlcjUzMDIxNjIx",
"avatar_url": "https://avatars.githubusercontent.com/u/53021621?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0ENZO",
"html_url": "https://github.com/0ENZO",
"followers_url": "https://api.github.com/users/0ENZO/followers",
"following_url": "https://api.github.com/users/0ENZO/following{/other_user}",
"gists_url": "https://api.github.com/users/0ENZO/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0ENZO/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0ENZO/subscriptions",
"organizations_url": "https://api.github.com/users/0ENZO/orgs",
"repos_url": "https://api.github.com/users/0ENZO/repos",
"events_url": "https://api.github.com/users/0ENZO/events{/privacy}",
"received_events_url": "https://api.github.com/users/0ENZO/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-11-20T13:30:37 | 2023-11-20T13:40:30 | null |
NONE
| null |
### Issue you'd like to raise.
Hello, I am working on a conversational chatbot, here is a snippet of the code :
```
general_system_template = ""You a chatbot...
---
{summaries}"""
general_user_template = "Question: {question}"
messages = [
SystemMessagePromptTemplate.from_template(general_system_template),
HumanMessagePromptTemplate.from_template(general_user_template)
]
qa_prompt = ChatPromptTemplate(
messages=messages,
input_variables=['question', 'summaries']
)
q = Queue()
llm_chat = ChatVertexAI(
temperature=0,
model_name="chat-bison",
streaming=True,
callbacks=[QueueCallback(q)],
verbose=False
)
retriever = docsearch.as_retriever(
search_type="similarity",
search_kwargs={
'k': 2,
'filter': {'source': {'$in': sources}}
}
)
llm_text = VertexAI(
temperature=0,
model_name="text-bison"
)
combine_docs_chain = load_qa_with_sources_chain(
llm=llm_chat,
chain_type="stuff",
prompt=qa_prompt
)
condense_question_template = (
"""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: {chat_history}
Follow Up Input: {question}"""
)
condense_question_prompt = PromptTemplate.from_template(condense_question_template)
condense_chain = LLMChain(
llm=llm_text,
prompt=condense_question_prompt,
verbose=True
)
chain = ConversationalRetrievalChain(
combine_docs_chain_=combine_docs_chain,
retriever=retriever,
question_generator=condense_chain
)
```
When running the code I have the following error :
```
pydantic.error_wrappers.ValidationError: 2 validation errors for ConversationalRetrievalChain
combine_docs_chain
field required (type=value_error.missing)
combine_docs_chain_
extra fields not permitted (type=value_error.extra)
```
How could I solve this ? Is there any way to have a more detailed error ?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13607/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/13607/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13606
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13606/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13606/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13606/events
|
https://github.com/langchain-ai/langchain/issues/13606
| 2,002,142,951 |
I_kwDOIPDwls53Vkbn
| 13,606 |
Changed import of VertexAI
|
{
"login": "rolench",
"id": 67024634,
"node_id": "MDQ6VXNlcjY3MDI0NjM0",
"avatar_url": "https://avatars.githubusercontent.com/u/67024634?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rolench",
"html_url": "https://github.com/rolench",
"followers_url": "https://api.github.com/users/rolench/followers",
"following_url": "https://api.github.com/users/rolench/following{/other_user}",
"gists_url": "https://api.github.com/users/rolench/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rolench/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rolench/subscriptions",
"organizations_url": "https://api.github.com/users/rolench/orgs",
"repos_url": "https://api.github.com/users/rolench/repos",
"events_url": "https://api.github.com/users/rolench/events{/privacy}",
"received_events_url": "https://api.github.com/users/rolench/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-11-20T12:55:25 | 2023-11-20T13:02:41 | null |
NONE
| null |
### System Info
python = "^3.8.10"
langchain = "^0.0.336"
google-cloud-aiplatform = "^1.36.3"
### Who can help?
@hwchase17 @agol
### Information
- [ ] 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
```python
from langchain.llms.vertexai import VertexAI
model = VertexAI(
model_name="text-bison@001",
temperature=0.2,
max_output_tokens=1024,
top_k=40,
top_p=0.8
)
model.client
# <vertexai.preview.language_models._PreviewTextGenerationModel at ...>
# it should be <vertexai.language_models.TextGenerationModel at ...>
```
### Expected behavior
Code reference: https://github.com/langchain-ai/langchain/blob/78a1f4b264fbdca263a4f8873b980eaadb8912a7/libs/langchain/langchain/llms/vertexai.py#L255C77-L255C77
The VertexAI API is now using vertexai.language_models.TextGenerationModel.
Instead, here we are still importing it from from vertexai.preview.language_models.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13606/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/13606/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13605
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13605/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13605/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13605/events
|
https://github.com/langchain-ai/langchain/issues/13605
| 2,002,129,643 |
I_kwDOIPDwls53VhLr
| 13,605 |
Issue: retrieve multi index from vector store using Faiss in Langchain
|
{
"login": "WilliamBrant",
"id": 97897241,
"node_id": "U_kgDOBdXLGQ",
"avatar_url": "https://avatars.githubusercontent.com/u/97897241?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/WilliamBrant",
"html_url": "https://github.com/WilliamBrant",
"followers_url": "https://api.github.com/users/WilliamBrant/followers",
"following_url": "https://api.github.com/users/WilliamBrant/following{/other_user}",
"gists_url": "https://api.github.com/users/WilliamBrant/gists{/gist_id}",
"starred_url": "https://api.github.com/users/WilliamBrant/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WilliamBrant/subscriptions",
"organizations_url": "https://api.github.com/users/WilliamBrant/orgs",
"repos_url": "https://api.github.com/users/WilliamBrant/repos",
"events_url": "https://api.github.com/users/WilliamBrant/events{/privacy}",
"received_events_url": "https://api.github.com/users/WilliamBrant/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"
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-20T12:47:43 | 2023-11-21T14:58:27 | 2023-11-21T14:58:27 |
NONE
| null |
### Issue you'd like to raise.
I've created a multi-level directory vector store using Faiss. How can I retrieve all indices within one or multiple subdirectories?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13605/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/13605/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13604
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13604/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13604/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13604/events
|
https://github.com/langchain-ai/langchain/pull/13604
| 2,002,022,305 |
PR_kwDOIPDwls5f5pAz
| 13,604 |
Fix broken link on Meilisearch vector-store documentation
|
{
"login": "alallema",
"id": 16155041,
"node_id": "MDQ6VXNlcjE2MTU1MDQx",
"avatar_url": "https://avatars.githubusercontent.com/u/16155041?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alallema",
"html_url": "https://github.com/alallema",
"followers_url": "https://api.github.com/users/alallema/followers",
"following_url": "https://api.github.com/users/alallema/following{/other_user}",
"gists_url": "https://api.github.com/users/alallema/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alallema/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alallema/subscriptions",
"organizations_url": "https://api.github.com/users/alallema/orgs",
"repos_url": "https://api.github.com/users/alallema/repos",
"events_url": "https://api.github.com/users/alallema/events{/privacy}",
"received_events_url": "https://api.github.com/users/alallema/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": 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": 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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-20T11:49:12 | 2023-11-29T09:56:37 | 2023-11-28T20:49:33 |
CONTRIBUTOR
| null |
- **Description:** dead link replacement
- **Issue:** no open issue
**Note:**
Hi langchain team,
Sorry to open a PR for this concern but we realized that one of the links present in the documentation booklet was broken 😄
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13604/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 1,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13604/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13604",
"html_url": "https://github.com/langchain-ai/langchain/pull/13604",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13604.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13604.patch",
"merged_at": "2023-11-28T20:49:33"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13603
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13603/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13603/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13603/events
|
https://github.com/langchain-ai/langchain/pull/13603
| 2,001,922,288 |
PR_kwDOIPDwls5f5S2A
| 13,603 |
Exclude Bedrock client and credentials_profile_name fields from serialisation
|
{
"login": "dqbd",
"id": 1443449,
"node_id": "MDQ6VXNlcjE0NDM0NDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1443449?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dqbd",
"html_url": "https://github.com/dqbd",
"followers_url": "https://api.github.com/users/dqbd/followers",
"following_url": "https://api.github.com/users/dqbd/following{/other_user}",
"gists_url": "https://api.github.com/users/dqbd/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dqbd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dqbd/subscriptions",
"organizations_url": "https://api.github.com/users/dqbd/orgs",
"repos_url": "https://api.github.com/users/dqbd/repos",
"events_url": "https://api.github.com/users/dqbd/events{/privacy}",
"received_events_url": "https://api.github.com/users/dqbd/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 | 2 | 2023-11-20T10:58:18 | 2023-11-28T21:34:47 | 2023-11-28T21:34:46 |
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13603/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/13603/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13603",
"html_url": "https://github.com/langchain-ai/langchain/pull/13603",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13603.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13603.patch",
"merged_at": "2023-11-28T21:34:46"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13602
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13602/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13602/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13602/events
|
https://github.com/langchain-ai/langchain/issues/13602
| 2,001,851,127 |
I_kwDOIPDwls53UdL3
| 13,602 |
Structured tools not able to pass structured data to each other
|
{
"login": "namedgraph",
"id": 849526,
"node_id": "MDQ6VXNlcjg0OTUyNg==",
"avatar_url": "https://avatars.githubusercontent.com/u/849526?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/namedgraph",
"html_url": "https://github.com/namedgraph",
"followers_url": "https://api.github.com/users/namedgraph/followers",
"following_url": "https://api.github.com/users/namedgraph/following{/other_user}",
"gists_url": "https://api.github.com/users/namedgraph/gists{/gist_id}",
"starred_url": "https://api.github.com/users/namedgraph/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/namedgraph/subscriptions",
"organizations_url": "https://api.github.com/users/namedgraph/orgs",
"repos_url": "https://api.github.com/users/namedgraph/repos",
"events_url": "https://api.github.com/users/namedgraph/events{/privacy}",
"received_events_url": "https://api.github.com/users/namedgraph/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"
}
] |
open
| false | null |
[] | null | 11 | 2023-11-20T10:21:21 | 2023-11-20T14:06:32 | null |
NONE
| null |
### System Info
LangChain 0.0.338
Python 3.11.5
### 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
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I was trying to combine multiple structured `Tool`s, one that produces a `List` of values and another that consumes it, but couldn't get it to work. I asked the LangChain support bot whether it was possible and it said yes and produced the following example. But it does not work :)
```python
from langchain.llms import OpenAI
from langchain.agents import initialize_agent, AgentType
from langchain.tools import BaseTool
from typing import List
# Define the first structured tool that returns a list of strings
class ListTool(BaseTool):
name = "List Tool"
description = "Generates a list of strings."
def _run(self) -> List[str]:
"""Return a list of strings."""
return ["apple", "banana", "cherry"]
tool1 = ListTool()
# Define the second structured tool that accepts a list of strings
class ProcessListTool(BaseTool):
name = "Process List Tool"
description = "Processes a list of strings."
def _run(self, input_list: List[str]) -> str:
"""Process the list of strings."""
# Perform the processing logic here
processed_list = [item.upper() for item in input_list]
return f"Processed list: {', '.join(processed_list)}"
tool2 = ProcessListTool()
llm = OpenAI(temperature=0)
agent_executor = initialize_agent(
[tool1, tool2],
llm,
agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,
verbose=True,
)
output = agent_executor.run("Process the list")
print(output) # Output: 'Processed list: APPLE, BANANA, CHERRY'
```
Full output:
```
> Entering new AgentExecutor chain...
Action:
{
"action": "Process List Tool",
"action_input": {
"input_list": {
"title": "Input List",
"type": "array",
"items": {
"type": "string"
}
}
}
}
Observation: Processed list: TITLE, TYPE, ITEMS
Thought: I have the processed list
Action:
{
"action": "Final Answer",
"action_input": "I have processed the list and it contains the following: TITLE, TYPE, ITEMS"
}
> Finished chain.
```
### Expected behavior
Expected output:
```
Processed list: APPLE, BANANA, CHERRY'
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13602/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/13602/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13601
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13601/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13601/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13601/events
|
https://github.com/langchain-ai/langchain/issues/13601
| 2,001,850,563 |
I_kwDOIPDwls53UdDD
| 13,601 |
Neo4j - ConfigurationError: username not supported in the URI
|
{
"login": "parth713",
"id": 32217882,
"node_id": "MDQ6VXNlcjMyMjE3ODgy",
"avatar_url": "https://avatars.githubusercontent.com/u/32217882?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/parth713",
"html_url": "https://github.com/parth713",
"followers_url": "https://api.github.com/users/parth713/followers",
"following_url": "https://api.github.com/users/parth713/following{/other_user}",
"gists_url": "https://api.github.com/users/parth713/gists{/gist_id}",
"starred_url": "https://api.github.com/users/parth713/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/parth713/subscriptions",
"organizations_url": "https://api.github.com/users/parth713/orgs",
"repos_url": "https://api.github.com/users/parth713/repos",
"events_url": "https://api.github.com/users/parth713/events{/privacy}",
"received_events_url": "https://api.github.com/users/parth713/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 | 4 | 2023-11-20T10:21:02 | 2023-11-20T10:50:00 | null |
NONE
| null |
### System Info
Langchain==0.0.338
python==3.8.1
neo4j latest
this is the error:
---------------------------------------------------------------------------
ConfigurationError Traceback (most recent call last)
[/Users/m1/Desktop/LangChain/Untitled.ipynb](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/Untitled.ipynb) Cell 1 line 5
[2](vscode-notebook-cell:/Users/m1/Desktop/LangChain/Untitled.ipynb#W0sZmlsZQ%3D%3D?line=1) import os
[4](vscode-notebook-cell:/Users/m1/Desktop/LangChain/Untitled.ipynb#W0sZmlsZQ%3D%3D?line=3) uri, user, password = os.getenv("NEO4J_URI"), os.getenv("NEO4J_USERNAME"), os.getenv("NEO4J_PASSWORD")
----> [5](vscode-notebook-cell:/Users/m1/Desktop/LangChain/Untitled.ipynb#W0sZmlsZQ%3D%3D?line=4) graph = Neo4jGraph(
[6](vscode-notebook-cell:/Users/m1/Desktop/LangChain/Untitled.ipynb#W0sZmlsZQ%3D%3D?line=5) url=uri,
[7](vscode-notebook-cell:/Users/m1/Desktop/LangChain/Untitled.ipynb#W0sZmlsZQ%3D%3D?line=6) username=user,
[8](vscode-notebook-cell:/Users/m1/Desktop/LangChain/Untitled.ipynb#W0sZmlsZQ%3D%3D?line=7) password=password,
[9](vscode-notebook-cell:/Users/m1/Desktop/LangChain/Untitled.ipynb#W0sZmlsZQ%3D%3D?line=8) )
File [~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/langchain/graphs/neo4j_graph.py:69](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/langchain/graphs/neo4j_graph.py:69), in Neo4jGraph.__init__(self, url, username, password, database)
[66](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/langchain/graphs/neo4j_graph.py:66) password = get_from_env("password", "NEO4J_PASSWORD", password)
[67](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/langchain/graphs/neo4j_graph.py:67) database = get_from_env("database", "NEO4J_DATABASE", database)
---> [69](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/langchain/graphs/neo4j_graph.py:69) self._driver = neo4j.GraphDatabase.driver(url, auth=(username, password))
[70](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/langchain/graphs/neo4j_graph.py:70) self._database = database
[71](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/langchain/graphs/neo4j_graph.py:71) self.schema: str = ""
File [~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/neo4j/_sync/driver.py:190](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/neo4j/_sync/driver.py:190), in GraphDatabase.driver(cls, uri, auth, **config)
[170](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/neo4j/_sync/driver.py:170) @classmethod
[171](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/neo4j/_sync/driver.py:171) def driver(
[172](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/neo4j/_sync/driver.py:172) cls, uri: str, *,
ref='~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/neo4j/_sync/driver.py:0'>0</a>;32m (...)
[177](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/neo4j/_sync/driver.py:177) **config
[178](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/neo4j/_sync/driver.py:178) ) -> Driver:
...
--> [486](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/neo4j/api.py:486) raise ConfigurationError("Username is not supported in the URI")
[488](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/neo4j/api.py:488) if parsed.password:
[489](https://file+.vscode-resource.vscode-cdn.net/Users/m1/Desktop/LangChain/~/Desktop/LangChain/KG_openai/lib/python3.8/site-packages/neo4j/api.py:489) raise ConfigurationError("Password is not supported in the URI")
ConfigurationError: Username is not supported in the URI
Output is truncated. View as a [scrollable element](command:cellOutput.enableScrolling?bbc3ed55-b69e-4557-b7e7-e9913806eb86) or open in a [text editor](command:workbench.action.openLargeOutput?bbc3ed55-b69e-4557-b7e7-e9913806eb86). Adjust cell output [settings](command:workbench.action.openSettings?%5B%22%40tag%3AnotebookOutputLayout%22%5D)...
### 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
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
from langchain.graphs import Neo4jGraph
import os
uri, user, password = os.getenv("NEO4J_URI"), os.getenv("NEO4J_USERNAME"), os.getenv("NEO4J_PASSWORD")
graph = Neo4jGraph(
url= uri,
username=user,
password=password,
)
### Expected behavior
This driver formation is running fine in v264. however its giving me error in v338 version. at last in the driver stub, its parsing the url and then the username from the parsed url is being checked. If its present then its raising this above config error.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13601/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/13601/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13599
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13599/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13599/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13599/events
|
https://github.com/langchain-ai/langchain/issues/13599
| 2,001,666,284 |
I_kwDOIPDwls53TwDs
| 13,599 |
Issue: Filling `ConversationSummaryMemory` with existing conversation from an SQLite database
|
{
"login": "Issaminu",
"id": 99417396,
"node_id": "U_kgDOBez9NA",
"avatar_url": "https://avatars.githubusercontent.com/u/99417396?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Issaminu",
"html_url": "https://github.com/Issaminu",
"followers_url": "https://api.github.com/users/Issaminu/followers",
"following_url": "https://api.github.com/users/Issaminu/following{/other_user}",
"gists_url": "https://api.github.com/users/Issaminu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Issaminu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Issaminu/subscriptions",
"organizations_url": "https://api.github.com/users/Issaminu/orgs",
"repos_url": "https://api.github.com/users/Issaminu/repos",
"events_url": "https://api.github.com/users/Issaminu/events{/privacy}",
"received_events_url": "https://api.github.com/users/Issaminu/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": 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"
}
] |
closed
| false | null |
[] | null | 17 | 2023-11-20T08:52:20 | 2023-11-30T03:27:24 | 2023-11-26T16:03:52 |
NONE
| null |
### Issue you'd like to raise.
I'd like to make `ConversationSummaryMemory` is filled with the previous questions and answers for a specific conversation from an SQLite database so I can have my agent already aware of previous conversation with the user.
Here's my current code:
```py
import os
import sys
from langchain.chains import ConversationalRetrievalChain
from langchain.chat_models import ChatOpenAI
from langchain.embeddings import OpenAIEmbeddings
from langchain.indexes import VectorstoreIndexCreator
from langchain.indexes.vectorstore import VectorStoreIndexWrapper
from langchain.vectorstores.chroma import Chroma
from langchain.memory import ConversationSummaryMemory
from langchain.tools import Tool
from langchain.agents.types import AgentType
from langchain.agents import initialize_agent
from dotenv import load_dotenv
load_dotenv()
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
query = " ".join(sys.argv[1:]) if len(sys.argv) > 1 else None
retriever = # retriever stuff here for the `local-docs` tool
llm = ChatOpenAI(temperature=0.7, model="gpt-3.5-turbo-1106")
memory = ConversationSummaryMemory(
llm=llm,
memory_key="chat_history",
return_messages=True,
)
chain = ConversationalRetrievalChain.from_llm(
llm=llm,
memory=memory,
chain_type="stuff",
retriever=index.vectorstore.as_retriever(search_kwargs={"k": 4}),
get_chat_history=lambda h: h,
verbose=False,
)
system_message = (
"Be helpful to your users".
)
tools = [
Tool(
name="local-docs",
func=chain,
description="Useful when you need to answer docs-related questions",
)
]
def ask(input: str) -> str:
result = ""
try:
result = executor({"input": input})
except Exception as e:
response = str(e)
if response.startswith("Could not parse LLM output: `"):
response = response.removeprefix(
"Could not parse LLM output: `"
).removesuffix("`")
return response
else:
raise Exception(str(e))
return result
chat_history = []
executor = initialize_agent(
agent=AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION,
tools=tools,
llm=llm,
memory=memory,
agent_kwargs={"system_message": system_message},
verbose=True,
max_execution_time=30,
max_iterations=6,
handle_parsing_errors=True,
early_stopping_method="generate",
stop=["\nObservation:"],
)
result = ask(query)
print(result["output"])
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13599/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/13599/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13597
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13597/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13597/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13597/events
|
https://github.com/langchain-ai/langchain/issues/13597
| 2,001,501,651 |
I_kwDOIPDwls53TH3T
| 13,597 |
add multimodal support
|
{
"login": "reddiamond1234",
"id": 122911466,
"node_id": "U_kgDOB1N66g",
"avatar_url": "https://avatars.githubusercontent.com/u/122911466?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/reddiamond1234",
"html_url": "https://github.com/reddiamond1234",
"followers_url": "https://api.github.com/users/reddiamond1234/followers",
"following_url": "https://api.github.com/users/reddiamond1234/following{/other_user}",
"gists_url": "https://api.github.com/users/reddiamond1234/gists{/gist_id}",
"starred_url": "https://api.github.com/users/reddiamond1234/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/reddiamond1234/subscriptions",
"organizations_url": "https://api.github.com/users/reddiamond1234/orgs",
"repos_url": "https://api.github.com/users/reddiamond1234/repos",
"events_url": "https://api.github.com/users/reddiamond1234/events{/privacy}",
"received_events_url": "https://api.github.com/users/reddiamond1234/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"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-20T07:00:43 | 2023-11-20T07:03:04 | null |
NONE
| null |
### Feature request
add support for other multimodal models like Llava, Fuyu, Bakllava... This would help with RAG, where documents have non text data.
### Motivation
I have a lot of tables and images to proccess in PDFs when doing RAG, and right now this is not ideal.
### Your contribution
no time :(
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13597/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/13597/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13596
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13596/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13596/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13596/events
|
https://github.com/langchain-ai/langchain/issues/13596
| 2,001,474,706 |
I_kwDOIPDwls53TBSS
| 13,596 |
Issue: How to add randomness when using max_marginal_relevance_search with Qdrant
|
{
"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 | 2 | 2023-11-20T06:38:24 | 2023-11-20T06:44:07 | null |
NONE
| null |
### Issue you'd like to raise.
I am using Qdrant as my vector store, and now, every time I use 'max_marginal_relevance_search' with a fix k parameter. It will always return the same documents. How to add some randomness? So it will return something different(Still within the score_threshold) each time. Here is my sample code of using 'max_marginal_relevance_search':
related_docs = vectorstore.max_marginal_relevance_search(target_place, k=fetch_amount, score_threshold=0.5, filter=rest.Filter(must=[rest.FieldCondition(
key='metadata.category',
match=rest.MatchValue(value=category),
),rest.FieldCondition(
key='metadata.related_words',
match=rest.MatchAny(any=related_words),
)]))
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13596/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/13596/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13595
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13595/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13595/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13595/events
|
https://github.com/langchain-ai/langchain/pull/13595
| 2,001,388,324 |
PR_kwDOIPDwls5f3gZi
| 13,595 |
Bagatur/cogniswitch
|
{
"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": 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"
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-20T05:19:00 | 2023-12-14T02:53:28 | 2023-12-14T02:53:28 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13595/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/13595/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13595",
"html_url": "https://github.com/langchain-ai/langchain/pull/13595",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13595.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13595.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13594
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13594/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13594/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13594/events
|
https://github.com/langchain-ai/langchain/pull/13594
| 2,001,365,132 |
PR_kwDOIPDwls5f3bVE
| 13,594 |
Update mongodb_atlas.py to fix ImportError: cannot import name 'DriverInfo' from 'pymongo'
|
{
"login": "ruanwz",
"id": 4874,
"node_id": "MDQ6VXNlcjQ4NzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/4874?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ruanwz",
"html_url": "https://github.com/ruanwz",
"followers_url": "https://api.github.com/users/ruanwz/followers",
"following_url": "https://api.github.com/users/ruanwz/following{/other_user}",
"gists_url": "https://api.github.com/users/ruanwz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ruanwz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ruanwz/subscriptions",
"organizations_url": "https://api.github.com/users/ruanwz/orgs",
"repos_url": "https://api.github.com/users/ruanwz/repos",
"events_url": "https://api.github.com/users/ruanwz/events{/privacy}",
"received_events_url": "https://api.github.com/users/ruanwz/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-11-20T04:54:52 | 2023-12-05T03:26:00 | 2023-12-05T03:26:00 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** fix ImportError: cannot import name 'DriverInfo' from 'pymongo'
- **Issue:** As above
- **Dependencies:** NA
- **Tag maintainer:** @efriis @jarib
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/13594/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/13594/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13594",
"html_url": "https://github.com/langchain-ai/langchain/pull/13594",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13594.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13594.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13593
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13593/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13593/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13593/events
|
https://github.com/langchain-ai/langchain/issues/13593
| 2,001,330,836 |
I_kwDOIPDwls53SeKU
| 13,593 |
[SelfQueryRetriever] Generated Query Mismatched Timestamp Type
|
{
"login": "huantt",
"id": 19801770,
"node_id": "MDQ6VXNlcjE5ODAxNzcw",
"avatar_url": "https://avatars.githubusercontent.com/u/19801770?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/huantt",
"html_url": "https://github.com/huantt",
"followers_url": "https://api.github.com/users/huantt/followers",
"following_url": "https://api.github.com/users/huantt/following{/other_user}",
"gists_url": "https://api.github.com/users/huantt/gists{/gist_id}",
"starred_url": "https://api.github.com/users/huantt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/huantt/subscriptions",
"organizations_url": "https://api.github.com/users/huantt/orgs",
"repos_url": "https://api.github.com/users/huantt/repos",
"events_url": "https://api.github.com/users/huantt/events{/privacy}",
"received_events_url": "https://api.github.com/users/huantt/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"
},
{
"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": 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 | 2 | 2023-11-20T04:16:00 | 2023-11-20T04:23:23 | null |
NONE
| null |
### System Info
langchain==0.0.266
### Who can help?
@eyurtsev @hwchase17
### Information
- [X] The official example notebooks/scripts
- [ ] 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
```python
import datetime
import chainlit
from dotenv import load_dotenv
from langchain.chains.query_constructor.base import AttributeInfo
from langchain.chat_models import ChatOpenAI
from langchain.docstore.document import Document # noqa
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.retrievers import SelfQueryRetriever
from langchain.vectorstores import Chroma
chainlit.debug = True
load_dotenv()
llm = ChatOpenAI()
docs = [
Document(
page_content="A bunch of scientists bring back dinosaurs and mayhem breaks loose",
metadata={"released_at": 1700190868, "rating": 7.7, "genre": "science fiction"},
),
Document(
page_content="Leo DiCaprio gets lost in a dream within a dream within a dream within a ...",
metadata={"released_at": 1700190868, "director": "Christopher Nolan", "rating": 8.2},
),
Document(
page_content="A psychologist / detective gets lost in a series of dreams within dreams within dreams and Inception reused the idea",
metadata={"released_at": 1700190868, "director": "Satoshi Kon", "rating": 8.6},
),
Document(
page_content="A bunch of normal-sized women are supremely wholesome and some men pine after them",
metadata={"released_at": 1700190868, "director": "Greta Gerwig", "rating": 8.3},
),
Document(
page_content="Toys come alive and have a blast doing so",
metadata={"released_at": 1700190868, "genre": "animated"},
),
Document(
page_content="Three men walk into the Zone, three men walk out of the Zone",
metadata={"released_at": 1700190868, "director": "Andrei Tarkovsky", "genre": "thriller", "rating": 9.9},
),
]
vectorstore = Chroma.from_documents(docs, OpenAIEmbeddings())
metadata_field_info = [
AttributeInfo(
name="released_at",
description="Time the movie was released. It's second timestamp.",
type="integer",
),
]
document_content_description = "Brief summary of a movie"
retriever = SelfQueryRetriever.from_llm(
llm,
vectorstore,
document_content_description,
metadata_field_info,
)
result = retriever.invoke(
f"What's a movie in this month that's all about toys, and preferably is animated. Current time is: {datetime.datetime.now().strftime('%m/%d/%Y, %H:%M:%S')}.",
)
print(result)
```
### Expected behavior
I declared the `metadata_field_info` which includes the `released_at` field with the data type `integer`.
## I expected the following:
When my query involves the time/timerange of the release time, the query should compare using `integer` instead of `date time`.
### Why I expected this:
- The data type declared in `metadata_field_info` should be utilized.
- In the implementations of `SelfQueryRetriever` (I tested `qdrant` and `chroma`), the accepted type in comparison operations (gte/lte) must be numeric, not a date.
### Identified Reason
I identified the problem due to the `"SCHEMA[s]"` in [langchain/chains/query_constructor/prompt.py](https://github.com/langchain-ai/langchain/blob/190952fe76d8f7bf1e661cbdaa2ba0a2dc0f5456/libs/langchain/langchain/chains/query_constructor/prompt.py#L117).
This line in prompt led the result:
```
Make sure that filters only use format `YYYY-MM-DD` when handling date data typed values
```
I guess that it works in some SQL queries such as `Postgresql`, which accepts 'YYY-MM-DD' as date query inputs.
However, we are working with metadata in vector records, which are structured like JSON objects with key-value pairs, it may not work.
### Proof of reason
I tryed modifing the PROMPTs by defining my own Classes and Functions such as `load_query_constructor_chain`, `_get_prompt`, `SelfQueryRetriever`.
After replacing the above line with the following, it worked as expected:
```
Make sure that filters only use timestamp in second (integer) when handling timestamp data typed values.
```
### Proposals
- Review the above problem. If metadata fields do not support querying with the date format 'YYYY-MM-DD' as specified in the prompt, please update it.
- If this prompt is specified for some use cases, please allow overriding the prompts.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13593/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/13593/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13591
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13591/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13591/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13591/events
|
https://github.com/langchain-ai/langchain/pull/13591
| 2,001,314,760 |
PR_kwDOIPDwls5f3QXy
| 13,591 |
Adrijanik patch 1
|
{
"login": "adrijanik",
"id": 21140501,
"node_id": "MDQ6VXNlcjIxMTQwNTAx",
"avatar_url": "https://avatars.githubusercontent.com/u/21140501?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/adrijanik",
"html_url": "https://github.com/adrijanik",
"followers_url": "https://api.github.com/users/adrijanik/followers",
"following_url": "https://api.github.com/users/adrijanik/following{/other_user}",
"gists_url": "https://api.github.com/users/adrijanik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/adrijanik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adrijanik/subscriptions",
"organizations_url": "https://api.github.com/users/adrijanik/orgs",
"repos_url": "https://api.github.com/users/adrijanik/repos",
"events_url": "https://api.github.com/users/adrijanik/events{/privacy}",
"received_events_url": "https://api.github.com/users/adrijanik/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"
}
] |
open
| false | null |
[] | null | 1 | 2023-11-20T03:56:52 | 2023-12-05T03:26:52 | null |
NONE
| null |
<!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **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` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/13591/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/13591/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13591",
"html_url": "https://github.com/langchain-ai/langchain/pull/13591",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13591.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13591.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13590
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13590/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13590/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13590/events
|
https://github.com/langchain-ai/langchain/issues/13590
| 2,001,313,070 |
I_kwDOIPDwls53SZ0u
| 13,590 |
Support for Guidance
|
{
"login": "rotexhawk",
"id": 12015105,
"node_id": "MDQ6VXNlcjEyMDE1MTA1",
"avatar_url": "https://avatars.githubusercontent.com/u/12015105?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rotexhawk",
"html_url": "https://github.com/rotexhawk",
"followers_url": "https://api.github.com/users/rotexhawk/followers",
"following_url": "https://api.github.com/users/rotexhawk/following{/other_user}",
"gists_url": "https://api.github.com/users/rotexhawk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rotexhawk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rotexhawk/subscriptions",
"organizations_url": "https://api.github.com/users/rotexhawk/orgs",
"repos_url": "https://api.github.com/users/rotexhawk/repos",
"events_url": "https://api.github.com/users/rotexhawk/events{/privacy}",
"received_events_url": "https://api.github.com/users/rotexhawk/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"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-20T03:54:37 | 2023-11-20T03:56:53 | null |
NONE
| null |
### Feature request
Ability to use guidance.
https://github.com/guidance-ai/guidance
### Motivation
Not related to a problem.
### Your contribution
Not sure yet but I can look into it if it is something the community considers.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13590/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/13590/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13589
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13589/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13589/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13589/events
|
https://github.com/langchain-ai/langchain/issues/13589
| 2,001,278,123 |
I_kwDOIPDwls53SRSr
| 13,589 |
Issue: can i generate a nested dic output
|
{
"login": "xasxin",
"id": 113810081,
"node_id": "U_kgDOBsiaoQ",
"avatar_url": "https://avatars.githubusercontent.com/u/113810081?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xasxin",
"html_url": "https://github.com/xasxin",
"followers_url": "https://api.github.com/users/xasxin/followers",
"following_url": "https://api.github.com/users/xasxin/following{/other_user}",
"gists_url": "https://api.github.com/users/xasxin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xasxin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xasxin/subscriptions",
"organizations_url": "https://api.github.com/users/xasxin/orgs",
"repos_url": "https://api.github.com/users/xasxin/repos",
"events_url": "https://api.github.com/users/xasxin/events{/privacy}",
"received_events_url": "https://api.github.com/users/xasxin/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"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-20T03:10:22 | 2023-11-20T03:16:49 | null |
NONE
| null |
### Issue you'd like to raise.
I know I can generate a python dictionary output using StructuredOutputParser like { "a":1, "b":2, "c":3}. However, I would like to generate a nested dic like { "a":1, "b":2, "c":{"d":4, "e":5}}
How can I do it?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13589/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/13589/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13588
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13588/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13588/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13588/events
|
https://github.com/langchain-ai/langchain/pull/13588
| 2,001,254,382 |
PR_kwDOIPDwls5f3DTe
| 13,588 |
Fix typo in MongoDB memory docs
|
{
"login": "sijunhe",
"id": 11987277,
"node_id": "MDQ6VXNlcjExOTg3Mjc3",
"avatar_url": "https://avatars.githubusercontent.com/u/11987277?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sijunhe",
"html_url": "https://github.com/sijunhe",
"followers_url": "https://api.github.com/users/sijunhe/followers",
"following_url": "https://api.github.com/users/sijunhe/following{/other_user}",
"gists_url": "https://api.github.com/users/sijunhe/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sijunhe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sijunhe/subscriptions",
"organizations_url": "https://api.github.com/users/sijunhe/orgs",
"repos_url": "https://api.github.com/users/sijunhe/repos",
"events_url": "https://api.github.com/users/sijunhe/events{/privacy}",
"received_events_url": "https://api.github.com/users/sijunhe/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": 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"
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-20T02:42:11 | 2023-11-20T07:09:37 | 2023-11-20T03:13:36 |
CONTRIBUTOR
| null |
- **Description:** Fix typo in MongoDB memory docs
- **Tag maintainer:** @eyurtsev
<!-- Thank you for contributing to LangChain!
- **Description:** Fix typo in MongoDB memory docs
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** @baskaryan
- **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` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/13588/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/13588/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13588",
"html_url": "https://github.com/langchain-ai/langchain/pull/13588",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13588.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13588.patch",
"merged_at": "2023-11-20T03:13:36"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13587
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13587/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13587/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13587/events
|
https://github.com/langchain-ai/langchain/pull/13587
| 2,001,146,983 |
PR_kwDOIPDwls5f2sH7
| 13,587 |
API Reference building script update
|
{
"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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"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 | 3 | 2023-11-20T00:22:54 | 2023-12-07T19:48:39 | 2023-12-07T19:43:43 |
COLLABORATOR
| null |
The namespaces like `langchain.agents.format_scratchpad` clogging the API Reference sidebar.
This change removes those 3-level namespaces from sidebar (this issue was discussed with @efriis )
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13587/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/13587/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13587",
"html_url": "https://github.com/langchain-ai/langchain/pull/13587",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13587.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13587.patch",
"merged_at": "2023-12-07T19:43:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13585
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13585/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13585/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13585/events
|
https://github.com/langchain-ai/langchain/pull/13585
| 2,001,076,576 |
PR_kwDOIPDwls5f2ceK
| 13,585 |
experimental[patch]: fixed namespace bug
|
{
"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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"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."
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-19T22:49:11 | 2023-11-29T00:40:28 | 2023-11-29T00:40:28 |
COLLABORATOR
| null |
It was :
`from langchain.schema.prompts import BasePromptTemplate`
but because of the breaking change in the ns, it is now
`from langchain.schema.prompt_template import BasePromptTemplate`
This bug prevents building the API Reference for the langchain_experimental
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13585/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/13585/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13585",
"html_url": "https://github.com/langchain-ai/langchain/pull/13585",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13585.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13585.patch",
"merged_at": "2023-11-29T00:40:28"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13584
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13584/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13584/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13584/events
|
https://github.com/langchain-ai/langchain/issues/13584
| 2,001,045,763 |
I_kwDOIPDwls53RYkD
| 13,584 |
Issue: can i access memory buffer through chain?
|
{
"login": "xasxin",
"id": 113810081,
"node_id": "U_kgDOBsiaoQ",
"avatar_url": "https://avatars.githubusercontent.com/u/113810081?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xasxin",
"html_url": "https://github.com/xasxin",
"followers_url": "https://api.github.com/users/xasxin/followers",
"following_url": "https://api.github.com/users/xasxin/following{/other_user}",
"gists_url": "https://api.github.com/users/xasxin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xasxin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xasxin/subscriptions",
"organizations_url": "https://api.github.com/users/xasxin/orgs",
"repos_url": "https://api.github.com/users/xasxin/repos",
"events_url": "https://api.github.com/users/xasxin/events{/privacy}",
"received_events_url": "https://api.github.com/users/xasxin/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": 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 | 4 | 2023-11-19T21:31:23 | 2023-11-19T22:11:42 | null |
NONE
| null |
### Issue you'd like to raise.
Hi, I'm using a conversationchain that contains memory. It is defined as:
llm = ChatOpenAI(temperature=0.0, model=llm_model)
memory = ConversationBufferMemory()
conversation = ConversationChain(
llm=llm,
memory = memory,
verbose=True
)
I know I can access the current memory by using "memory.buffer". However, I was wondering if there is a way to access memory only through ConversationChain instance "conversation"?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13584/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/13584/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13583
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13583/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13583/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13583/events
|
https://github.com/langchain-ai/langchain/pull/13583
| 2,001,042,615 |
PR_kwDOIPDwls5f2Vkv
| 13,583 |
fix: Make YoutubeLoader support on demand language translation
|
{
"login": "RaflyLesmana3003",
"id": 42396310,
"node_id": "MDQ6VXNlcjQyMzk2MzEw",
"avatar_url": "https://avatars.githubusercontent.com/u/42396310?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RaflyLesmana3003",
"html_url": "https://github.com/RaflyLesmana3003",
"followers_url": "https://api.github.com/users/RaflyLesmana3003/followers",
"following_url": "https://api.github.com/users/RaflyLesmana3003/following{/other_user}",
"gists_url": "https://api.github.com/users/RaflyLesmana3003/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RaflyLesmana3003/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RaflyLesmana3003/subscriptions",
"organizations_url": "https://api.github.com/users/RaflyLesmana3003/orgs",
"repos_url": "https://api.github.com/users/RaflyLesmana3003/repos",
"events_url": "https://api.github.com/users/RaflyLesmana3003/events{/privacy}",
"received_events_url": "https://api.github.com/users/RaflyLesmana3003/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": 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 | 1 | 2023-11-19T21:22:14 | 2023-11-20T01:34:49 | 2023-11-20T01:34:48 |
CONTRIBUTOR
| null |
**Description:**
Enhance the functionality of YoutubeLoader to enable the translation of available transcripts by refining the existing logic.
**Issue:**
Encountering a problem with YoutubeLoader (#13523) where the translation feature is not functioning as expected.
Tag maintainers/contributors who might be interested:
@eyurtsev
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13583/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/13583/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13583",
"html_url": "https://github.com/langchain-ai/langchain/pull/13583",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13583.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13583.patch",
"merged_at": "2023-11-20T01:34:48"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13581
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13581/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13581/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13581/events
|
https://github.com/langchain-ai/langchain/pull/13581
| 2,001,012,352 |
PR_kwDOIPDwls5f2Plx
| 13,581 |
fix: call _on_llm_error()
|
{
"login": "jwatte",
"id": 481909,
"node_id": "MDQ6VXNlcjQ4MTkwOQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/481909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jwatte",
"html_url": "https://github.com/jwatte",
"followers_url": "https://api.github.com/users/jwatte/followers",
"following_url": "https://api.github.com/users/jwatte/following{/other_user}",
"gists_url": "https://api.github.com/users/jwatte/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jwatte/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jwatte/subscriptions",
"organizations_url": "https://api.github.com/users/jwatte/orgs",
"repos_url": "https://api.github.com/users/jwatte/repos",
"events_url": "https://api.github.com/users/jwatte/events{/privacy}",
"received_events_url": "https://api.github.com/users/jwatte/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": 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": 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 |
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-11-19T19:57:19 | 2023-12-05T03:44:51 | 2023-12-05T03:44:50 |
CONTRIBUTOR
| null |
Description: There's a copy-paste typo where on_llm_error() calls _on_chain_error() instead of _on_llm_error().
Issue: #13580
Dependencies: None
Tag maintainer: @hwchase17
Twitter handle: @jwatte
"Run `make format`, `make lint` and `make test` to check this locally."
The test scripts don't work in a plain Ubuntu LTS 20.04 system.
It looks like the dev container pulling is stuck. Or maybe the internet is just ornery today.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13581/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/13581/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13581",
"html_url": "https://github.com/langchain-ai/langchain/pull/13581",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13581.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13581.patch",
"merged_at": "2023-12-05T03:44:50"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13580
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13580/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13580/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13580/events
|
https://github.com/langchain-ai/langchain/issues/13580
| 2,000,998,966 |
I_kwDOIPDwls53RNI2
| 13,580 |
The tracing on_llm_error() implementation calls _on_chain_error(), not _on_llm_error()
|
{
"login": "jwatte",
"id": 481909,
"node_id": "MDQ6VXNlcjQ4MTkwOQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/481909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jwatte",
"html_url": "https://github.com/jwatte",
"followers_url": "https://api.github.com/users/jwatte/followers",
"following_url": "https://api.github.com/users/jwatte/following{/other_user}",
"gists_url": "https://api.github.com/users/jwatte/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jwatte/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jwatte/subscriptions",
"organizations_url": "https://api.github.com/users/jwatte/orgs",
"repos_url": "https://api.github.com/users/jwatte/repos",
"events_url": "https://api.github.com/users/jwatte/events{/privacy}",
"received_events_url": "https://api.github.com/users/jwatte/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-11-19T19:21:07 | 2023-11-22T00:14:24 | null |
CONTRIBUTOR
| null |
### System Info
Linux 20.04 LTS
Python 3.6
### Who can help?
@hwchase17 seems like this got introduced on 2023-11-16
### Information
- [X] 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
- [ ] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
1. Attempt to use a tracer to trace an LLM error
2. Note that the tracer hook for _on_chain_error is called instead
### Expected behavior
_on_llm_error hook should be called.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13580/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/13580/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13579
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13579/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13579/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13579/events
|
https://github.com/langchain-ai/langchain/issues/13579
| 2,000,989,464 |
I_kwDOIPDwls53RK0Y
| 13,579 |
Confluence loader fails to retrieve specific pages when 'pages_ids' is given
|
{
"login": "BastinFlorian",
"id": 33825469,
"node_id": "MDQ6VXNlcjMzODI1NDY5",
"avatar_url": "https://avatars.githubusercontent.com/u/33825469?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/BastinFlorian",
"html_url": "https://github.com/BastinFlorian",
"followers_url": "https://api.github.com/users/BastinFlorian/followers",
"following_url": "https://api.github.com/users/BastinFlorian/following{/other_user}",
"gists_url": "https://api.github.com/users/BastinFlorian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/BastinFlorian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BastinFlorian/subscriptions",
"organizations_url": "https://api.github.com/users/BastinFlorian/orgs",
"repos_url": "https://api.github.com/users/BastinFlorian/repos",
"events_url": "https://api.github.com/users/BastinFlorian/events{/privacy}",
"received_events_url": "https://api.github.com/users/BastinFlorian/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 | 4 | 2023-11-19T18:54:14 | 2023-11-20T09:44:14 | null |
CONTRIBUTOR
| null |
### System Info
Mac M1
### Who can help?
@eyurtsev
Here:
https://github.com/langchain-ai/langchain/blob/78a1f4b264fbdca263a4f8873b980eaadb8912a7/libs/langchain/langchain/document_loaders/confluence.py#L284
We start adding the "max_pages" first pages to the "docs" list that will be the output of loader.load.
So we are sure that I cannot retrieve only one specific `page_id`.
`loader.load(..., page_ids=['1234'], max_pages=N)`
will output X pages where X in [min(N, # pages in my confluence), N + 1]
In other words, if I want only a specific page, I will always have at least 2 pages (in case max_pages = 1)
So page_ids does not work at all because space_key is mandatory.
adding ìf space_key and not page_ids` fix my problem but may lead to other problems (I did not check)
Dirty hack would be to collect the F last elements of the return list if pages where F is the number of found pages asked in page_ids
### 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
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
No time to do but easy when reading code
### Expected behavior
I can retrieve only the page_ids specified
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13579/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/13579/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13578
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13578/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13578/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13578/events
|
https://github.com/langchain-ai/langchain/issues/13578
| 2,000,941,147 |
I_kwDOIPDwls53Q_Bb
| 13,578 |
ConversationChain failure after changing template text
|
{
"login": "nickums",
"id": 15816213,
"node_id": "MDQ6VXNlcjE1ODE2MjEz",
"avatar_url": "https://avatars.githubusercontent.com/u/15816213?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nickums",
"html_url": "https://github.com/nickums",
"followers_url": "https://api.github.com/users/nickums/followers",
"following_url": "https://api.github.com/users/nickums/following{/other_user}",
"gists_url": "https://api.github.com/users/nickums/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nickums/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nickums/subscriptions",
"organizations_url": "https://api.github.com/users/nickums/orgs",
"repos_url": "https://api.github.com/users/nickums/repos",
"events_url": "https://api.github.com/users/nickums/events{/privacy}",
"received_events_url": "https://api.github.com/users/nickums/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"
},
{
"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-11-19T16:56:45 | 2023-11-20T13:28:40 | 2023-11-20T13:25:40 |
NONE
| null |
I am having a wonderful time with my code, but after changing my template it now fails before I even get to give my input. Baffling!
all the required imports are not shown here nor is all the prompt text (containing no special characters)
template = '''Your task is to extract the relationships between terms in the input text,
Format your output as a json list. '''
prompt = ChatPromptTemplate.from_messages([
SystemMessagePromptTemplate.from_template(template),
HumanMessagePromptTemplate.from_template("{input}"),
MessagesPlaceholder(variable_name="history "),
])
llm = ChatOpenAI(temperature=0.8, model_name='gpt-4-1106-preview')
memory = ConversationBufferMemory(return_messages=True)
conversation = ConversationChain(memory=memory, prompt=prompt, llm=llm)](url)
Traceback .........
conversation = ConversationChain(memory=memory, prompt=prompt, llm=llm)
File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for ConversationChain
__root__ Got unexpected prompt input variables. The prompt expects ['input', 'history '], but got ['history'] as inputs from memory, and input as the normal input key. (type=value_error)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13578/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/13578/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13577
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13577/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13577/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13577/events
|
https://github.com/langchain-ai/langchain/pull/13577
| 2,000,920,377 |
PR_kwDOIPDwls5f19P2
| 13,577 |
WIP: core
|
{
"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": 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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-19T16:12:43 | 2023-11-20T21:09:31 | 2023-11-20T21:09:30 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13577/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/13577/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13577",
"html_url": "https://github.com/langchain-ai/langchain/pull/13577",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13577.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13577.patch",
"merged_at": "2023-11-20T21:09:30"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13576
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13576/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13576/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13576/events
|
https://github.com/langchain-ai/langchain/pull/13576
| 2,000,910,846 |
PR_kwDOIPDwls5f17RO
| 13,576 |
openapi/planner.py: Deal with json in markdown output cases
|
{
"login": "arnaudgelas",
"id": 188329,
"node_id": "MDQ6VXNlcjE4ODMyOQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/188329?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arnaudgelas",
"html_url": "https://github.com/arnaudgelas",
"followers_url": "https://api.github.com/users/arnaudgelas/followers",
"following_url": "https://api.github.com/users/arnaudgelas/following{/other_user}",
"gists_url": "https://api.github.com/users/arnaudgelas/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arnaudgelas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arnaudgelas/subscriptions",
"organizations_url": "https://api.github.com/users/arnaudgelas/orgs",
"repos_url": "https://api.github.com/users/arnaudgelas/repos",
"events_url": "https://api.github.com/users/arnaudgelas/events{/privacy}",
"received_events_url": "https://api.github.com/users/arnaudgelas/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": 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-11-19T15:53:34 | 2023-12-05T04:27:23 | 2023-12-05T04:27:22 |
CONTRIBUTOR
| null |
- **Description:** In openapi/planner deal with json in markdown output cases
- **Issue:** In some cases LLMs could return json in markdown which can't be loaded.
- **Dependencies:**
- **Tag maintainer:** @eyurtsev
- **Twitter handle:**
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13576/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/13576/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13576",
"html_url": "https://github.com/langchain-ai/langchain/pull/13576",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13576.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13576.patch",
"merged_at": "2023-12-05T04:27:22"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13574
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13574/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13574/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13574/events
|
https://github.com/langchain-ai/langchain/issues/13574
| 2,000,862,839 |
I_kwDOIPDwls53Qr53
| 13,574 |
Implementing Hybrid Search (RRF) in LangChain Using OpenSearch Vector Store
|
{
"login": "younes-io",
"id": 3153107,
"node_id": "MDQ6VXNlcjMxNTMxMDc=",
"avatar_url": "https://avatars.githubusercontent.com/u/3153107?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/younes-io",
"html_url": "https://github.com/younes-io",
"followers_url": "https://api.github.com/users/younes-io/followers",
"following_url": "https://api.github.com/users/younes-io/following{/other_user}",
"gists_url": "https://api.github.com/users/younes-io/gists{/gist_id}",
"starred_url": "https://api.github.com/users/younes-io/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/younes-io/subscriptions",
"organizations_url": "https://api.github.com/users/younes-io/orgs",
"repos_url": "https://api.github.com/users/younes-io/repos",
"events_url": "https://api.github.com/users/younes-io/events{/privacy}",
"received_events_url": "https://api.github.com/users/younes-io/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": 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"
}
] |
open
| false | null |
[] | null | 2 | 2023-11-19T13:59:02 | 2023-11-19T14:10:20 | null |
NONE
| null |
### Feature request
The feature request I am proposing involves the implementation of hybrid search, specifically using the Reciprocal Rank Fusion (RRF) method, in LangChain through the integration of OpenSearch's vector store.
This would enable the combination of keyword and similarity search. Currently, LangChain doesn't appear to support this functionality, even though OpenSearch has had this capability since its 2.10 release. The goal is to allow LangChain to call search pipelines using OpenSearch's vector implementation, enabling OpenSearch to handle the complexities of hybrid search.
**Relevant Links**:
https://opensearch.org/docs/latest/query-dsl/compound/hybrid
### Motivation
The motivation behind this request stems from the current limitation in LangChain regarding hybrid search capabilities. As someone working on a search project currently, I find it frustrating that despite OpenSearch supporting hybrid search since version 2.10, LangChain has not yet integrated this feature.
### Your contribution
I would gladly help as long as I get guidance..
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13574/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/13574/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/13573
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13573/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13573/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13573/events
|
https://github.com/langchain-ai/langchain/pull/13573
| 2,000,690,855 |
PR_kwDOIPDwls5f1Pzv
| 13,573 |
Update geodataframe.py
|
{
"login": "Hamzahmed",
"id": 29238429,
"node_id": "MDQ6VXNlcjI5MjM4NDI5",
"avatar_url": "https://avatars.githubusercontent.com/u/29238429?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Hamzahmed",
"html_url": "https://github.com/Hamzahmed",
"followers_url": "https://api.github.com/users/Hamzahmed/followers",
"following_url": "https://api.github.com/users/Hamzahmed/following{/other_user}",
"gists_url": "https://api.github.com/users/Hamzahmed/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Hamzahmed/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Hamzahmed/subscriptions",
"organizations_url": "https://api.github.com/users/Hamzahmed/orgs",
"repos_url": "https://api.github.com/users/Hamzahmed/repos",
"events_url": "https://api.github.com/users/Hamzahmed/events{/privacy}",
"received_events_url": "https://api.github.com/users/Hamzahmed/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": 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"
}
] |
closed
| false | null |
[] | null | 3 | 2023-11-19T04:23:14 | 2023-12-05T03:44:31 | 2023-12-05T03:44:31 |
CONTRIBUTOR
| null |
here it is validating shapely.geometry.point.Point: if not isinstance(data_frame[page_content_column].iloc[0], gpd.GeoSeries): raise ValueError(
f"Expected data_frame[{page_content_column}] to be a GeoSeries" you need it to validate the geoSeries and not the shapely.geometry.point.Point
if not isinstance(data_frame[page_content_column], gpd.GeoSeries):
raise ValueError(
f"Expected data_frame[{page_content_column}] to be a GeoSeries"
<!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **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` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/13573/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/13573/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13573",
"html_url": "https://github.com/langchain-ai/langchain/pull/13573",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13573.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13573.patch",
"merged_at": "2023-12-05T03:44:31"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13572
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13572/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13572/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13572/events
|
https://github.com/langchain-ai/langchain/pull/13572
| 2,000,670,206 |
PR_kwDOIPDwls5f1MAj
| 13,572 |
Nasa api tool revision
|
{
"login": "matiasjacob25",
"id": 88005863,
"node_id": "MDQ6VXNlcjg4MDA1ODYz",
"avatar_url": "https://avatars.githubusercontent.com/u/88005863?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/matiasjacob25",
"html_url": "https://github.com/matiasjacob25",
"followers_url": "https://api.github.com/users/matiasjacob25/followers",
"following_url": "https://api.github.com/users/matiasjacob25/following{/other_user}",
"gists_url": "https://api.github.com/users/matiasjacob25/gists{/gist_id}",
"starred_url": "https://api.github.com/users/matiasjacob25/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matiasjacob25/subscriptions",
"organizations_url": "https://api.github.com/users/matiasjacob25/orgs",
"repos_url": "https://api.github.com/users/matiasjacob25/repos",
"events_url": "https://api.github.com/users/matiasjacob25/events{/privacy}",
"received_events_url": "https://api.github.com/users/matiasjacob25/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": 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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-11-19T02:42:48 | 2023-11-19T02:43:02 | 2023-11-19T02:43:02 |
CONTRIBUTOR
| null |
- compiled feature branch components into single working component
- trial ran integration tests
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13572/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/13572/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13572",
"html_url": "https://github.com/langchain-ai/langchain/pull/13572",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13572.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13572.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13571
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13571/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13571/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13571/events
|
https://github.com/langchain-ai/langchain/pull/13571
| 2,000,664,042 |
PR_kwDOIPDwls5f1K2q
| 13,571 |
MMR with Vectara
|
{
"login": "ofermend",
"id": 1823547,
"node_id": "MDQ6VXNlcjE4MjM1NDc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1823547?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ofermend",
"html_url": "https://github.com/ofermend",
"followers_url": "https://api.github.com/users/ofermend/followers",
"following_url": "https://api.github.com/users/ofermend/following{/other_user}",
"gists_url": "https://api.github.com/users/ofermend/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ofermend/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ofermend/subscriptions",
"organizations_url": "https://api.github.com/users/ofermend/orgs",
"repos_url": "https://api.github.com/users/ofermend/repos",
"events_url": "https://api.github.com/users/ofermend/events{/privacy}",
"received_events_url": "https://api.github.com/users/ofermend/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"
}
] |
closed
| false | null |
[] | null | 2 | 2023-11-19T02:13:28 | 2023-12-14T21:12:36 | 2023-12-14T21:12:35 |
CONTRIBUTOR
| null |
- **Description:** Vectara implements MMR in the backend. This allows to invoke that MMR natively.
- **Tag maintainer:** @baskaryan
- **Twitter handle:** @ofermend
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13571/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/13571/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13571",
"html_url": "https://github.com/langchain-ai/langchain/pull/13571",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13571.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13571.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13570
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/13570/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/13570/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/13570/events
|
https://github.com/langchain-ai/langchain/pull/13570
| 2,000,616,771 |
PR_kwDOIPDwls5f1BcL
| 13,570 |
experimental[patch]: release 0.0.43
|
{
"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": 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": 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-11-18T23:22:14 | 2023-11-28T23:38:10 | 2023-11-28T23:38:09 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/13570/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/13570/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13570",
"html_url": "https://github.com/langchain-ai/langchain/pull/13570",
"diff_url": "https://github.com/langchain-ai/langchain/pull/13570.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/13570.patch",
"merged_at": "2023-11-28T23:38:09"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.