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/13240
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13240/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13240/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13240/events
https://github.com/langchain-ai/langchain/pull/13240
1,988,811,402
PR_kwDOIPDwls5fNHow
13,240
Add dockerfile template
{ "login": "langchain-infra", "id": 144731603, "node_id": "U_kgDOCKBt0w", "avatar_url": "https://avatars.githubusercontent.com/u/144731603?v=4", "gravatar_id": "", "url": "https://api.github.com/users/langchain-infra", "html_url": "https://github.com/langchain-infra", "followers_url": "https://api.github.com/users/langchain-infra/followers", "following_url": "https://api.github.com/users/langchain-infra/following{/other_user}", "gists_url": "https://api.github.com/users/langchain-infra/gists{/gist_id}", "starred_url": "https://api.github.com/users/langchain-infra/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/langchain-infra/subscriptions", "organizations_url": "https://api.github.com/users/langchain-infra/orgs", "repos_url": "https://api.github.com/users/langchain-infra/repos", "events_url": "https://api.github.com/users/langchain-infra/events{/privacy}", "received_events_url": "https://api.github.com/users/langchain-infra/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-11T07:26:50
2023-11-13T15:33:02
2023-11-13T15:33:01
CONTRIBUTOR
null
Description: This pr adds a dockerfile to an app template for easy containerization of your production application. Dependencies: None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13240/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/13240/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13240", "html_url": "https://github.com/langchain-ai/langchain/pull/13240", "diff_url": "https://github.com/langchain-ai/langchain/pull/13240.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13240.patch", "merged_at": "2023-11-13T15:33:01" }
https://api.github.com/repos/langchain-ai/langchain/issues/13239
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13239/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13239/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13239/events
https://github.com/langchain-ai/langchain/pull/13239
1,988,805,221
PR_kwDOIPDwls5fNGRf
13,239
Fix typo in timescalevector.ipynb
{ "login": "eltociear", "id": 22633385, "node_id": "MDQ6VXNlcjIyNjMzMzg1", "avatar_url": "https://avatars.githubusercontent.com/u/22633385?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eltociear", "html_url": "https://github.com/eltociear", "followers_url": "https://api.github.com/users/eltociear/followers", "following_url": "https://api.github.com/users/eltociear/following{/other_user}", "gists_url": "https://api.github.com/users/eltociear/gists{/gist_id}", "starred_url": "https://api.github.com/users/eltociear/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eltociear/subscriptions", "organizations_url": "https://api.github.com/users/eltociear/orgs", "repos_url": "https://api.github.com/users/eltociear/repos", "events_url": "https://api.github.com/users/eltociear/events{/privacy}", "received_events_url": "https://api.github.com/users/eltociear/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": 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-11T07:17:03
2023-11-13T17:03:08
2023-11-13T17:03:08
CONTRIBUTOR
null
enviornment -> environment <!-- 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/13239/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/13239/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13239", "html_url": "https://github.com/langchain-ai/langchain/pull/13239", "diff_url": "https://github.com/langchain-ai/langchain/pull/13239.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13239.patch", "merged_at": "2023-11-13T17:03:08" }
https://api.github.com/repos/langchain-ai/langchain/issues/13238
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13238/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13238/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13238/events
https://github.com/langchain-ai/langchain/issues/13238
1,988,722,501
I_kwDOIPDwls52iX9F
13,238
Trouble Accessing Document ID in WeaviateHybridSearchRetriever Results
{ "login": "blockfer-rp", "id": 58490353, "node_id": "MDQ6VXNlcjU4NDkwMzUz", "avatar_url": "https://avatars.githubusercontent.com/u/58490353?v=4", "gravatar_id": "", "url": "https://api.github.com/users/blockfer-rp", "html_url": "https://github.com/blockfer-rp", "followers_url": "https://api.github.com/users/blockfer-rp/followers", "following_url": "https://api.github.com/users/blockfer-rp/following{/other_user}", "gists_url": "https://api.github.com/users/blockfer-rp/gists{/gist_id}", "starred_url": "https://api.github.com/users/blockfer-rp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/blockfer-rp/subscriptions", "organizations_url": "https://api.github.com/users/blockfer-rp/orgs", "repos_url": "https://api.github.com/users/blockfer-rp/repos", "events_url": "https://api.github.com/users/blockfer-rp/events{/privacy}", "received_events_url": "https://api.github.com/users/blockfer-rp/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
4
2023-11-11T04:39:30
2023-11-11T08:51:07
null
NONE
null
### System Info langchain: 0.0.334 python: 3.11.6 weaviate-client: 3.25.3 ### Who can help? _No response_ ### 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 - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I am trying to implement the WeaviateHybridSearchRetriever to retrieve documents from Weaviate. My schema indicates the document ID is stored in the _id field based on the shardingConfig. When setting up the retriever, I included _id in the attributes list: ```` hybrid_retriever = WeaviateHybridSearchRetriever( attributes=["_id", "aliases", "categoryid", "name", "page_content", "ticker"] ) ```` However, when I try to access _id on the returned Document objects, I get an error that _id is not found. For example: ```` results = hybrid_retriever.get_relevant_documents(query="some query") print(results[0]._id) # Error!_id not found ```` I have tried variations like id, document_id instead of _id but still cannot seem to access the document ID field. Any suggestions on what I am missing or doing wrong when trying to retrieve the document ID from the Weaviate results using the _id field specified in the schema? Let me know if any other details would be helpful in troubleshooting this issue! **Schema Details** ```` { "classes":[ { "class":"Category_taxonomy", "invertedIndexConfig":{ "bm25":{ "b":0.75, "k1":1.2 }, "cleanupIntervalSeconds":60, "stopwords":{ "additions":"None", "preset":"en", "removals":"None" } }, "moduleConfig":{ "text2vec-openai":{ "baseURL":"https://api.openai.com", "model":"ada", "modelVersion":"002", "type":"text", "vectorizeClassName":true } }, "multiTenancyConfig":{ "enabled":false }, "properties":[ { "dataType":[ "text" ], "description":"Content of the page", "indexFilterable":true, "indexSearchable":true, "moduleConfig":{ "text2vec-openai":{ "skip":false, "vectorizePropertyName":false } }, "name":"page_content", "tokenization":"word" }, { "dataType":[ "number" ], "description":"Identifier for the category", "indexFilterable":true, "indexSearchable":false, "moduleConfig":{ "text2vec-openai":{ "skip":false, "vectorizePropertyName":false } }, "name":"categoryid" }, { "dataType":[ "text" ], "description":"Ticker symbol", "indexFilterable":true, "indexSearchable":true, "moduleConfig":{ "text2vec-openai":{ "skip":false, "vectorizePropertyName":false } }, "name":"ticker", "tokenization":"word" }, { "dataType":[ "text" ], "description":"Name of the entity", "indexFilterable":true, "indexSearchable":true, "moduleConfig":{ "text2vec-openai":{ "skip":false, "vectorizePropertyName":false } }, "name":"name", "tokenization":"word" }, { "dataType":[ "text" ], "description":"Aliases for the entity", "indexFilterable":true, "indexSearchable":true, "moduleConfig":{ "text2vec-openai":{ "skip":false, "vectorizePropertyName":false } }, "name":"aliases", "tokenization":"word" } ], "replicationConfig":{ "factor":1 }, "shardingConfig":{ "virtualPerPhysical":128, "desiredCount":1, "actualCount":1, "desiredVirtualCount":128, "actualVirtualCount":128, "key":"_id", "strategy":"hash", "function":"murmur3" }, "vectorIndexConfig":{ "skip":false, "cleanupIntervalSeconds":300, "maxConnections":64, "efConstruction":128, "ef":-1, "dynamicEfMin":100, "dynamicEfMax":500, "dynamicEfFactor":8, "vectorCacheMaxObjects":1000000000000, "flatSearchCutoff":40000, "distance":"cosine", "pq":{ "enabled":false, "bitCompression":false, "segments":0, "centroids":256, "trainingLimit":100000, "encoder":{ "type":"kmeans", "distribution":"log-normal" } } }, "vectorIndexType":"hnsw", "vectorizer":"text2vec-openai" } ] } ```` **Example Document** ```` { "class": "Category_taxonomy", "creationTimeUnix": 1699553747601, "id": "ad092eb1-e4a6-4d93-a7d2-c507c33c3837", "lastUpdateTimeUnix": 1699553747601, "properties": { "aliases": "Binance Coin, Binance Smart Chain", "categoryid": 569, "name": "BNB", "page_content": "ticker: bnb\nname: BNB\naliases: Binance Coin, Binance Smart Chain", "ticker": "bnb" }, "vectorWeights": null } ```` Example Search Result ```` { "status":"success", "results":[ { "page_content":"ticker: bnb\nname: BNB\naliases: Binance Coin, Binance Smart Chain", "metadata":{ "_additional":{ "explainScore":"(vector) [-0.0067740963 -0.03091735 0.00511335 0.0016186031 -0.016120477 0.017543973 -0.0072548385 -0.023063144 0.015246399 -0.0020884196]... \n(hybrid) Document ad092eb1-e4a6-4d93-a7d2-c507c33c3837 contributed 0.00819672131147541 to the score", "score":"0.008196721" }, "aliases":"Binance Coin, Binance Smart Chain", "categoryid":569, "name":"BNB", "ticker":"bnb" }, "type":"Document" } ] } ```` App Code ```` # Prepare global variables WEAVIATE_URL = os.getenv('WEAVIATE_URL') WEAVIATE_API_KEY = os.getenv('WEAVIATE_API_KEY') OPENAI_API_KEY = os.getenv('OPENAI_API_KEY') INDEX_NAME = "Category_taxonomy" TEXT_KEY = "page_content" # Dependency provider function for Weaviate client def get_weaviate_vectorstore(): # Initialize the Weaviate client with API key authentication client = weaviate.Client( url=WEAVIATE_URL, auth_client_secret=weaviate.AuthApiKey(WEAVIATE_API_KEY), additional_headers={ "X-Openai-Api-Key": OPENAI_API_KEY, } ) # Initialize embeddings with a specified model embeddings = OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY, model='text-embedding-ada-002') # Initialize vector store with attributes and schema vectorstore = Weaviate( client=client, index_name=INDEX_NAME, text_key=TEXT_KEY, embedding=embeddings, attributes=["aliases", "categoryid", "name", "page_content", "ticker"], by_text=False ) return client, vectorstore def get_weaviate_hybrid_retriever(k: int = 5): # Directly call the function to get the client and vectorstore client, vectorstore = get_weaviate_vectorstore() # Instantiate the retriever with the settings from the vectorstore hybrid_retriever = WeaviateHybridSearchRetriever( client=client, index_name=INDEX_NAME, text_key=TEXT_KEY, attributes=["aliases", "categoryid", "name", "page_content", "ticker"], k=k, create_schema_if_missing=True ) return hybrid_retriever async def parse_query_params(request: Request) -> Dict[str, List[Any]]: parsed_values = defaultdict(list) for key, value in request.query_params.multi_items(): # Append the value for any key directly parsed_values[key].append(value) return parsed_values @router.get("/hybrid_search_category_taxonomy/") async def hybrid_search_category_taxonomy(parsed_values: Dict[str, List[Any]] = Depends(parse_query_params), query: Optional[str] = None, k: int = 5): categoryids = parsed_values.get('categoryid', []) tickers = parsed_values.get('ticker', []) names = parsed_values.get('name', []) aliasess = parsed_values.get('aliases', []) # Use a partial function to pass 'k' to 'get_weaviate_hybrid_retriever' retriever = get_weaviate_hybrid_retriever(k=k) # Initialize the where_filter with an 'And' operator if there are any filters provided logging.info( f"query: {query}, " f"categoryID: {categoryids}, " f"ticker: {tickers}, " f"name: {names}, " f"aliases: {aliasess}, " f"k: {k}" ) # Adjustments to reference parameters from 'parse_query_params' where_filter = {"operator": "And", "operands": []} if any([categoryids, tickers, names, aliasess]) else None # Add filters for categoryid and ticker with the 'Equal' operator if categoryids: category_operands = [{"path": ["categoryid"], "operator": "Equal", "valueNumber": cid} for cid in categoryids] if category_operands: where_filter["operands"].append({"operator": "Or", "operands": category_operands}) if tickers: ticker_operands = [{"path": ["ticker"], "operator": "Equal", "valueText": ticker} for ticker in tickers] if ticker_operands: where_filter["operands"].append({"operator": "Or", "operands": ticker_operands}) if names: name_operands = [{"path": ["name"], "operator": "Equal", "valueText": name} for name in names] if name_operands: where_filter["operands"].append({"operator": "Or", "operands": name_operands}) if aliasess: aliases_operands = [{"path": ["aliases"], "operator": "Equal", "valueText": aliases} for aliases in aliasess] if aliases_operands: where_filter["operands"].append({"operator": "Or", "operands": aliases_operands}) try: # Format the results for the response effective_query = " " if not query or not query.strip() else query # Log the where_filter before fetching documents logging.info(f"where_filter being used: {where_filter}") # Fetch the relevant documents using the hybrid retriever instance results = retriever.get_relevant_documents(effective_query, where_filter=where_filter, score=True) # Format the results for the response response_data = [vars(doc) for doc in results] return {"status": "success", "results": response_data} except Exception as e: logger.error(f"Error while processing request: {str(e)}", exc_info=True) raise HTTPException(detail=str(e), status_code=500) ```` ### Expected behavior **Expected Behavior** When using the WeaviateHybridSearchRetriever for document retrieval, I expect that including the _id attribute in the attributes list will allow me to access the document ID of each retrieved document without any issues. Specifically, after setting up the WeaviateHybridSearchRetriever like so: ```` hybrid_retriever = WeaviateHybridSearchRetriever( attributes=["_id", "aliases", "categoryid", "name", "page_content", "ticker"] ) ```` I anticipate that executing a query and attempting to print the _id of the first result should successfully return the unique identifier of the document, as per the below code snippet: ```` results = hybrid_retriever.get_relevant_documents(query="some query") print(results[0]._id) # Expecting this to print the _id of the first result ```` In this scenario, my expectation is that the _id field, being specified in the attributes parameter, should be readily accessible in each Document object returned by the get_relevant_documents method. This behavior is crucial for my application as it relies on the unique document IDs for further processing and analysis of the retrieved data.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13238/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/13238/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13237
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13237/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13237/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13237/events
https://github.com/langchain-ai/langchain/pull/13237
1,988,720,679
PR_kwDOIPDwls5fMzyo
13,237
Add OpenAI API v1 support for ChatAnyscale and fixed a bug with openai_api_key
{ "login": "kylehh", "id": 24217337, "node_id": "MDQ6VXNlcjI0MjE3MzM3", "avatar_url": "https://avatars.githubusercontent.com/u/24217337?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kylehh", "html_url": "https://github.com/kylehh", "followers_url": "https://api.github.com/users/kylehh/followers", "following_url": "https://api.github.com/users/kylehh/following{/other_user}", "gists_url": "https://api.github.com/users/kylehh/gists{/gist_id}", "starred_url": "https://api.github.com/users/kylehh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kylehh/subscriptions", "organizations_url": "https://api.github.com/users/kylehh/orgs", "repos_url": "https://api.github.com/users/kylehh/repos", "events_url": "https://api.github.com/users/kylehh/events{/privacy}", "received_events_url": "https://api.github.com/users/kylehh/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" } ]
closed
false
null
[]
null
2
2023-11-11T04:33:50
2023-11-13T17:02:02
2023-11-13T17:01:54
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. --> 1. Add OpenAI API v1 support 2. Fixed a bug to call `get_secret_value` on a str value (values["openai_api_key"])
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13237/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/13237/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13237", "html_url": "https://github.com/langchain-ai/langchain/pull/13237", "diff_url": "https://github.com/langchain-ai/langchain/pull/13237.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13237.patch", "merged_at": "2023-11-13T17:01:54" }
https://api.github.com/repos/langchain-ai/langchain/issues/13236
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13236/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13236/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13236/events
https://github.com/langchain-ai/langchain/pull/13236
1,988,719,895
PR_kwDOIPDwls5fMzoO
13,236
Move OAI assistants to langchain and add callbacks
{ "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": 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" } ]
closed
false
null
[]
null
2
2023-11-11T04:31:37
2023-11-24T08:49:43
2023-11-14T01:42:07
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13236/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/13236/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13236", "html_url": "https://github.com/langchain-ai/langchain/pull/13236", "diff_url": "https://github.com/langchain-ai/langchain/pull/13236.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13236.patch", "merged_at": "2023-11-14T01:42:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/13234
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13234/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13234/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13234/events
https://github.com/langchain-ai/langchain/issues/13234
1,988,660,318
I_kwDOIPDwls52iIxe
13,234
If i assign two SemanticSimilarityExampleSelector with different data in different variable but it combines
{ "login": "Renukumar-R", "id": 117875193, "node_id": "U_kgDOBwah-Q", "avatar_url": "https://avatars.githubusercontent.com/u/117875193?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Renukumar-R", "html_url": "https://github.com/Renukumar-R", "followers_url": "https://api.github.com/users/Renukumar-R/followers", "following_url": "https://api.github.com/users/Renukumar-R/following{/other_user}", "gists_url": "https://api.github.com/users/Renukumar-R/gists{/gist_id}", "starred_url": "https://api.github.com/users/Renukumar-R/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Renukumar-R/subscriptions", "organizations_url": "https://api.github.com/users/Renukumar-R/orgs", "repos_url": "https://api.github.com/users/Renukumar-R/repos", "events_url": "https://api.github.com/users/Renukumar-R/events{/privacy}", "received_events_url": "https://api.github.com/users/Renukumar-R/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
4
2023-11-11T02:23:06
2023-11-11T05:35:01
2023-11-11T05:35:00
NONE
null
### System Info I'm using colab ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.prompts.example_selector.semantic_similarity import SemanticSimilarityExampleSelector key_selector = SemanticSimilarityExampleSelector(vectorstore=few_shots,k=2) few_shots_selector = SemanticSimilarityExampleSelector(vectorstore=few_shots,k=2) key_selector.select_examples({"All": "who is in Bengaluru?"}) # It's return from few_shots_selector ### Expected behavior key_selector.select_examples({"All": "who is in Bengaluru?"}) it's need to return from key_selector
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13234/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/13234/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13233
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13233/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13233/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13233/events
https://github.com/langchain-ai/langchain/issues/13233
1,988,652,580
I_kwDOIPDwls52iG4k
13,233
Issue: <ConversationalRetrievalChain.from_llm and partition_pdf >
{ "login": "pengkang1991", "id": 49478192, "node_id": "MDQ6VXNlcjQ5NDc4MTky", "avatar_url": "https://avatars.githubusercontent.com/u/49478192?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pengkang1991", "html_url": "https://github.com/pengkang1991", "followers_url": "https://api.github.com/users/pengkang1991/followers", "following_url": "https://api.github.com/users/pengkang1991/following{/other_user}", "gists_url": "https://api.github.com/users/pengkang1991/gists{/gist_id}", "starred_url": "https://api.github.com/users/pengkang1991/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pengkang1991/subscriptions", "organizations_url": "https://api.github.com/users/pengkang1991/orgs", "repos_url": "https://api.github.com/users/pengkang1991/repos", "events_url": "https://api.github.com/users/pengkang1991/events{/privacy}", "received_events_url": "https://api.github.com/users/pengkang1991/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 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": 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" }, { "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-11T02:10:50
2023-11-11T02:19:25
null
NONE
null
### Issue you'd like to raise. Why did I follow the tutorial below to generate vector library data, but I wanted to use ConversationalRetrievalChain.from_llm to answer my question, but couldn't answer the question? Or can I only answer with chain? https://github.com/langchain-ai/langchain/blob/master/cookbook/Semi_Structured_RAG.ipynb?ref=blog.langchain.dev code show as below: def read_item(query=Body(..., embed=True)): question=query print(question) embeddings = OpenAIEmbeddings() vector_store_path = r"/mnt/PD/VS" docsearch = Chroma(persist_directory=vector_store_path, embedding_function=embeddings) # Build prompt template = """Use the following pieces of context to answer the question at the end. \ If you don't know the answer, just say that you don't know, don't try to make up an answer. \ Use three sentences maximum. Keep the answer as concise as possible. Always say "thanks for asking!" \ at the end of the answer. {context} {chat_history} Question: {question} Helpful Answer:""" # Build prompt #QA_CHAIN_PROMPT = PromptTemplate.from_template(template) prompt = PromptTemplate( input_variables=["chat_history", "context", "question"], template=template, ) store = InMemoryStore() id_key = "doc_id" # The retriever (empty to start) retriever = MultiVectorRetriever( vectorstore=docsearch, docstore=store, id_key=id_key, ) llm = OpenAI( temperature=0,max_tokens=1024, model_name="gpt-4-1106-preview" ) memory = ConversationKGMemory(llm=llm,memory_key='chat_history',return_messages=True,output_key='answer') qa = ConversationalRetrievalChain.from_llm( llm=llm, chain_type="stuff", retriever=retriever, memory=memory, return_source_documents=True, return_generated_question=True, combine_docs_chain_kwargs={'prompt': prompt} ) # 进行问答 result = qa({"question": question}) #print(qa.combine_documents_chain.memory) return result ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13233/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/13233/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13232
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13232/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13232/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13232/events
https://github.com/langchain-ai/langchain/pull/13232
1,988,624,195
PR_kwDOIPDwls5fMfD1
13,232
PGVector needs to close its connection if it is garbage collected
{ "login": "Sumukh", "id": 882381, "node_id": "MDQ6VXNlcjg4MjM4MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/882381?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Sumukh", "html_url": "https://github.com/Sumukh", "followers_url": "https://api.github.com/users/Sumukh/followers", "following_url": "https://api.github.com/users/Sumukh/following{/other_user}", "gists_url": "https://api.github.com/users/Sumukh/gists{/gist_id}", "starred_url": "https://api.github.com/users/Sumukh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Sumukh/subscriptions", "organizations_url": "https://api.github.com/users/Sumukh/orgs", "repos_url": "https://api.github.com/users/Sumukh/repos", "events_url": "https://api.github.com/users/Sumukh/events{/privacy}", "received_events_url": "https://api.github.com/users/Sumukh/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
{ "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-11T01:07:46
2023-11-15T22:59:29
2023-11-15T20:34:37
CONTRIBUTOR
null
Description: Without this change, PGVector was using lots of connections and would eventually be unable to keep making connections. Issue: Resolves #9696 Dependencies: None Twitter: @sumukhsridhara More context: The `__del__` method gets called when the object is about to be garbage collected. Without this, users (like us) have run into errors like the below ``` psql: FATAL: remaining connection slots are reserved for non-replication superuser connections ``` <!-- Thank you for contributing to LangChain! 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/13232/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/13232/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13232", "html_url": "https://github.com/langchain-ai/langchain/pull/13232", "diff_url": "https://github.com/langchain-ai/langchain/pull/13232.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13232.patch", "merged_at": "2023-11-15T20:34:37" }
https://api.github.com/repos/langchain-ai/langchain/issues/13231
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13231/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13231/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13231/events
https://github.com/langchain-ai/langchain/pull/13231
1,988,591,377
PR_kwDOIPDwls5fMX6K
13,231
feat(llms): support Openai API v1 for Azure OpenAI completions
{ "login": "mspronesti", "id": 44113430, "node_id": "MDQ6VXNlcjQ0MTEzNDMw", "avatar_url": "https://avatars.githubusercontent.com/u/44113430?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mspronesti", "html_url": "https://github.com/mspronesti", "followers_url": "https://api.github.com/users/mspronesti/followers", "following_url": "https://api.github.com/users/mspronesti/following{/other_user}", "gists_url": "https://api.github.com/users/mspronesti/gists{/gist_id}", "starred_url": "https://api.github.com/users/mspronesti/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mspronesti/subscriptions", "organizations_url": "https://api.github.com/users/mspronesti/orgs", "repos_url": "https://api.github.com/users/mspronesti/repos", "events_url": "https://api.github.com/users/mspronesti/events{/privacy}", "received_events_url": "https://api.github.com/users/mspronesti/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" } ]
closed
false
null
[]
null
2
2023-11-11T00:13:58
2023-11-14T20:10:19
2023-11-14T20:10:18
CONTRIBUTOR
null
Hi, this PR adds support for OpenAI API v1 for Azure OpenAI completion API. @baskaryan @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13231/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/13231/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13231", "html_url": "https://github.com/langchain-ai/langchain/pull/13231", "diff_url": "https://github.com/langchain-ai/langchain/pull/13231.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13231.patch", "merged_at": "2023-11-14T20:10:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/13230
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13230/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13230/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13230/events
https://github.com/langchain-ai/langchain/issues/13230
1,988,539,254
I_kwDOIPDwls52hrN2
13,230
load_summarize_chain with map_reduce error : InvalidRequestError: This model's maximum context length is 8192 tokens. However, your messages resulted in 13516 tokens. Please reduce the length of the messages.
{ "login": "manasatramalinga", "id": 77706350, "node_id": "MDQ6VXNlcjc3NzA2MzUw", "avatar_url": "https://avatars.githubusercontent.com/u/77706350?v=4", "gravatar_id": "", "url": "https://api.github.com/users/manasatramalinga", "html_url": "https://github.com/manasatramalinga", "followers_url": "https://api.github.com/users/manasatramalinga/followers", "following_url": "https://api.github.com/users/manasatramalinga/following{/other_user}", "gists_url": "https://api.github.com/users/manasatramalinga/gists{/gist_id}", "starred_url": "https://api.github.com/users/manasatramalinga/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/manasatramalinga/subscriptions", "organizations_url": "https://api.github.com/users/manasatramalinga/orgs", "repos_url": "https://api.github.com/users/manasatramalinga/repos", "events_url": "https://api.github.com/users/manasatramalinga/events{/privacy}", "received_events_url": "https://api.github.com/users/manasatramalinga/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-10T23:05:46
2023-11-10T23:20:05
null
NONE
null
### System Info from langchain.text_splitter import CharacterTextSplitter from langchain.docstore.document import Document from langchain.chains.summarize import load_summarize_chain from fastapi.encoders import jsonable_encoder from langchain.chains.mapreduce import MapReduceChain from time import monotonic gpt_4_8k_max_tokens = 8000 #https://platform.openai.com/docs/models/gpt-4 text_splitter = CharacterTextSplitter.from_tiktoken_encoder(model_name=model_name, chunk_size=gpt_4_8k_max_tokens, chunk_overlap=0) verbose = False # Initialize output dataframe with all the columns in the patient history class column_names = list(PatientHistory.model_fields.keys()) df_AOAI_extracted_text = pd.DataFrame(columns=column_names) # Create documents from the input text texts = text_splitter.split_text(test_text) docs = [Document(page_content=t) for t in texts] print(f"Number of Documents {len(docs)}") # Count the number of tokens in the document num_tokens = num_tokens_from_string(test_text, model_name) print(f"Number of Tokens {num_tokens}") # call langchain summarizer to get the output for the given prompt summaries = [] if num_tokens < gpt_4_8k_max_tokens: #Stuffing is the simplest method, whereby you simply stuff all the related data into the prompt as context to pass to the language model. This is implemented in LangChain as the StuffDocumentsChain. #This method is sutable for smaller piece of data. chain = load_summarize_chain(llm, chain_type="stuff", prompt=TABLE_PROMPT, verbose=verbose) else: #MapReduceDocumentsChain is an advanced document processing technique that extends the capabilities of the conventional MapReduce framework. #It goes beyond the typical MapReduce approach by executing a distinct prompt to consolidate the initial outputs. #This method is designed to generate a thorough and cohesive summary or response that encompasses the entire document. print('mapreduce') chain = load_summarize_chain(llm, chain_type="map_reduce", map_prompt=TABLE_PROMPT, combine_prompt=TABLE_PROMPT, verbose=verbose, return_intermediate_steps=False) start_time = monotonic() summary = chain.run(docs) print(summary) ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.text_splitter import CharacterTextSplitter from langchain.docstore.document import Document from langchain.chains.summarize import load_summarize_chain from fastapi.encoders import jsonable_encoder from langchain.chains.mapreduce import MapReduceChain from time import monotonic gpt_4_8k_max_tokens = 8000 #https://platform.openai.com/docs/models/gpt-4 text_splitter = CharacterTextSplitter.from_tiktoken_encoder(model_name=model_name, chunk_size=gpt_4_8k_max_tokens, chunk_overlap=0) verbose = False # Initialize output dataframe with all the columns in the patient history class column_names = list(PatientHistory.model_fields.keys()) df_AOAI_extracted_text = pd.DataFrame(columns=column_names) # Create documents from the input text texts = text_splitter.split_text(test_text) docs = [Document(page_content=t) for t in texts] print(f"Number of Documents {len(docs)}") # Count the number of tokens in the document num_tokens = num_tokens_from_string(test_text, model_name) print(f"Number of Tokens {num_tokens}") # call langchain summarizer to get the output for the given prompt summaries = [] if num_tokens < gpt_4_8k_max_tokens: #Stuffing is the simplest method, whereby you simply stuff all the related data into the prompt as context to pass to the language model. This is implemented in LangChain as the StuffDocumentsChain. #This method is sutable for smaller piece of data. chain = load_summarize_chain(llm, chain_type="stuff", prompt=TABLE_PROMPT, verbose=verbose) else: #MapReduceDocumentsChain is an advanced document processing technique that extends the capabilities of the conventional MapReduce framework. #It goes beyond the typical MapReduce approach by executing a distinct prompt to consolidate the initial outputs. #This method is designed to generate a thorough and cohesive summary or response that encompasses the entire document. print('mapreduce') chain = load_summarize_chain(llm, chain_type="map_reduce", map_prompt=TABLE_PROMPT, combine_prompt=TABLE_PROMPT, verbose=verbose, return_intermediate_steps=False) start_time = monotonic() summary = chain.run(docs) print(summary) ### Expected behavior Should go through all docs and provide the summary
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13230/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/13230/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13229
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13229/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13229/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13229/events
https://github.com/langchain-ai/langchain/pull/13229
1,988,517,020
PR_kwDOIPDwls5fMHuE
13,229
Fix "additional_kwargs["arguments"] already exists in this message, but with a different type." for Azure openai API.
{ "login": "superken01", "id": 22494723, "node_id": "MDQ6VXNlcjIyNDk0NzIz", "avatar_url": "https://avatars.githubusercontent.com/u/22494723?v=4", "gravatar_id": "", "url": "https://api.github.com/users/superken01", "html_url": "https://github.com/superken01", "followers_url": "https://api.github.com/users/superken01/followers", "following_url": "https://api.github.com/users/superken01/following{/other_user}", "gists_url": "https://api.github.com/users/superken01/gists{/gist_id}", "starred_url": "https://api.github.com/users/superken01/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/superken01/subscriptions", "organizations_url": "https://api.github.com/users/superken01/orgs", "repos_url": "https://api.github.com/users/superken01/repos", "events_url": "https://api.github.com/users/superken01/events{/privacy}", "received_events_url": "https://api.github.com/users/superken01/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" } ]
closed
false
null
[]
null
8
2023-11-10T22:46:51
2023-12-05T03:58:49
2023-12-05T03:58:48
NONE
null
- **Description:** This PR addresses an issue with the OpenAI API streaming response, where initially the key (arguments) is provided but the value is None. Subsequently, it updates with {"arguments": "{\n"}, leading to a type inconsistency that causes an exception. The specific error encountered is ValueError: additional_kwargs["arguments"] already exists in this message, but with a different type. This change aims to resolve this inconsistency and ensure smooth API interactions. - **Issue:** None. - **Dependencies:** None. - **Tag maintainer:** @eyurtsev,
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13229/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/13229/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13229", "html_url": "https://github.com/langchain-ai/langchain/pull/13229", "diff_url": "https://github.com/langchain-ai/langchain/pull/13229.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13229.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13228
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13228/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13228/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13228/events
https://github.com/langchain-ai/langchain/pull/13228
1,988,516,863
PR_kwDOIPDwls5fMHsD
13,228
Fix Document Loader Unit Test - Docusaurus
{ "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": 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-10T22:46:35
2023-11-10T22:52:02
2023-11-10T22:52:01
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13228/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/13228/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13228", "html_url": "https://github.com/langchain-ai/langchain/pull/13228", "diff_url": "https://github.com/langchain-ai/langchain/pull/13228.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13228.patch", "merged_at": "2023-11-10T22:52:01" }
https://api.github.com/repos/langchain-ai/langchain/issues/13227
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13227/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13227/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13227/events
https://github.com/langchain-ai/langchain/pull/13227
1,988,500,031
PR_kwDOIPDwls5fMD-S
13,227
Image template
{ "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" }, { "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
{ "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 }, { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
3
2023-11-10T22:27:58
2023-12-11T22:38:18
null
COLLABORATOR
null
example usage ```python ffrom langchain.prompts import ChatPromptTemplate prompt = ChatPromptTemplate.from_messages([ ("system", "foo bar"), ("human", [ "{question}", {"text": "{second_question}"}, # image with var name 'first_image' and no preset values {"image_url": "{first_image}"}, # image with var name 'second_image' and preset "detail" level {"image_url": {"variable_name": "second_image", "detail": "low"}}, # constant image, not a var {"type": "image_url", "image_url": {"url": "https://python.langchain.com/assets/images/langchain_stack-f195a2c417953cb5828f76e5f9039c9f.png"}}]), ]) prompt.format_messages( question="what's the difference between these images", second_question="what's upppppp", # specify an image path and other params first_image={ "path": "/Users/bagatur/Downloads/LangChain Stack - V8.png", "detail":"auto" }, # specify just a url. preset value "detail": "low" will be attached second_image="data:blah" ) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13227/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/13227/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13227", "html_url": "https://github.com/langchain-ai/langchain/pull/13227", "diff_url": "https://github.com/langchain-ai/langchain/pull/13227.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13227.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13226
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13226/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13226/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13226/events
https://github.com/langchain-ai/langchain/pull/13226
1,988,476,987
PR_kwDOIPDwls5fL-21
13,226
Supply format to Ollama
{ "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": 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" } ]
closed
false
null
[]
null
2
2023-11-10T22:06:07
2023-11-17T18:15:04
2023-11-17T18:15:04
COLLABORATOR
null
JSON mode: https://github.com/jmorganca/ollama/blob/main/docs/api.md#json-mode
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13226/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/13226/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13226", "html_url": "https://github.com/langchain-ai/langchain/pull/13226", "diff_url": "https://github.com/langchain-ai/langchain/pull/13226.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13226.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13224
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13224/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13224/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13224/events
https://github.com/langchain-ai/langchain/issues/13224
1,988,305,077
I_kwDOIPDwls52gyC1
13,224
Warning: model not found. Using cl100k_base encoding. with Azure Openai and load_summarize_chain when I am trying to implement map_reduce
{ "login": "GonzaloMoreno", "id": 7675634, "node_id": "MDQ6VXNlcjc2NzU2MzQ=", "avatar_url": "https://avatars.githubusercontent.com/u/7675634?v=4", "gravatar_id": "", "url": "https://api.github.com/users/GonzaloMoreno", "html_url": "https://github.com/GonzaloMoreno", "followers_url": "https://api.github.com/users/GonzaloMoreno/followers", "following_url": "https://api.github.com/users/GonzaloMoreno/following{/other_user}", "gists_url": "https://api.github.com/users/GonzaloMoreno/gists{/gist_id}", "starred_url": "https://api.github.com/users/GonzaloMoreno/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GonzaloMoreno/subscriptions", "organizations_url": "https://api.github.com/users/GonzaloMoreno/orgs", "repos_url": "https://api.github.com/users/GonzaloMoreno/repos", "events_url": "https://api.github.com/users/GonzaloMoreno/events{/privacy}", "received_events_url": "https://api.github.com/users/GonzaloMoreno/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
4
2023-11-10T20:00:32
2023-11-10T20:31:32
null
NONE
null
### System Info Hi: I have tried several strategies to implement map reduce summarization using Azure OpenAi and Langchain . My model is "gpt-35-turbo-16k". I have tried several experiments but always get to the same warning: from langchain.schema.document import Document from langchain.chains.mapreduce import MapReduceChain from langchain.text_splitter import CharacterTextSplitter from langchain.document_loaders import TextLoader llm_summary = AzureChatOpenAI( openai_api_base= azure_api_base, openai_api_version=azure_openai_api_version, deployment_name=azure_deployment_name, openai_api_key=azure_openai_api_key, openai_api_type= azure_api_type, model_name=azure_model_name, temperature=azure_model_temperature ) text="""The ReduceDocumentsChain handles taking the document mapping results and reducing them into a single output.\ It wraps a generic CombineDocumentsChain (like StuffDocumentsChain) but adds the ability to collapse documents before passing it to the CombineDocumentsChain if their cumulative size exceeds token_max. In this example, we can actually re-use our chain for combining our docs to also collapse our docs.""" text1=""" You can continue with your English studies and never use Inversion in sentences. That’s perfectly okay. However, if you are preparing for a Cambridge or IELTS exam or other exams or situations where you need to demonstrate an extensive use of English, you will be expected to know about Inversion. Let’s start with why and when. After all, if you don’t know why we use Inversion, you won’t know when to use it. WHY & WHEN do we use INVERSION? Inversion is mainly used for EMPHASIS. The expressions used (never, rarely, no sooner, only then, etc.) have much more impact when used at the beginning of a sentence than the more common pronoun subject, especially as most of them are negative. Negatives are more dramatic. Consider negative contractions: don’t, won’t, can’t, haven’t, etc. They usually have strong stress in English whilst positive contractions: I’m, he’ll, she’s, we’ve, I’d, etc. usually have weak stress. """ doc= [Document(page_content=text1)] chain = load_summarize_chain(llm_summary, chain_type="map_reduce") #chain_type="map_reduce" chain.run(doc)` and Strategy 2 with text_splitter: `from langchain import PromptTemplate from langchain.chains.summarize import load_summarize_chain from langchain.text_splitter import RecursiveCharacterTextSplitter text_splitter = RecursiveCharacterTextSplitter(chunk_size=5000, chunk_overlap=50) chunks = text_splitter.create_documents([text1]) chain = load_summarize_chain( llm_summary, chain_type='map_reduce', verbose=False ) summary = chain.run(chunks) summary I always get the same output: <img width="1473" alt="image" src="https://github.com/langchain-ai/langchain/assets/7675634/fc871a72-4f5f-43ff-9725-52a718ebaeac"> I have some questions: 1) How to fix this warning? 2) Can I trust in the output when the model is not found? ### Who can help? @agola11 ### Information - [X] The official example notebooks/scripts - [ ] 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 run this chunks of code in any notebook ### Expected behavior I want to fix this warning helping to langchain to find the model.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13224/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/13224/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13223
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13223/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13223/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13223/events
https://github.com/langchain-ai/langchain/pull/13223
1,988,302,139
PR_kwDOIPDwls5fLYAD
13,223
Comprehend moderation: update to default threshold and callback property for prompt safety
{ "login": "nikhilkjha", "id": 48101485, "node_id": "MDQ6VXNlcjQ4MTAxNDg1", "avatar_url": "https://avatars.githubusercontent.com/u/48101485?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nikhilkjha", "html_url": "https://github.com/nikhilkjha", "followers_url": "https://api.github.com/users/nikhilkjha/followers", "following_url": "https://api.github.com/users/nikhilkjha/following{/other_user}", "gists_url": "https://api.github.com/users/nikhilkjha/gists{/gist_id}", "starred_url": "https://api.github.com/users/nikhilkjha/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nikhilkjha/subscriptions", "organizations_url": "https://api.github.com/users/nikhilkjha/orgs", "repos_url": "https://api.github.com/users/nikhilkjha/repos", "events_url": "https://api.github.com/users/nikhilkjha/events{/privacy}", "received_events_url": "https://api.github.com/users/nikhilkjha/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
2
2023-11-10T19:57:51
2023-11-13T19:06:38
null
CONTRIBUTOR
null
This PR has following minor updates: 1. Updated the callback block for `prompt safety`. The callback property name was incorrect. 2. Updated the default threshold for prompt safety from 0.5 to 0.8.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13223/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/13223/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13223", "html_url": "https://github.com/langchain-ai/langchain/pull/13223", "diff_url": "https://github.com/langchain-ai/langchain/pull/13223.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13223.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13222
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13222/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13222/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13222/events
https://github.com/langchain-ai/langchain/pull/13222
1,988,290,829
PR_kwDOIPDwls5fLVaN
13,222
Add mongo parent template to index
{ "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": 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-10T19:51:59
2023-11-10T19:56:45
2023-11-10T19:56:44
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13222/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/13222/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13222", "html_url": "https://github.com/langchain-ai/langchain/pull/13222", "diff_url": "https://github.com/langchain-ai/langchain/pull/13222.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13222.patch", "merged_at": "2023-11-10T19:56:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/13221
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13221/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13221/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13221/events
https://github.com/langchain-ai/langchain/pull/13221
1,988,288,620
PR_kwDOIPDwls5fLU6k
13,221
fleet_context docs update
{ "login": "adrwz", "id": 44193474, "node_id": "MDQ6VXNlcjQ0MTkzNDc0", "avatar_url": "https://avatars.githubusercontent.com/u/44193474?v=4", "gravatar_id": "", "url": "https://api.github.com/users/adrwz", "html_url": "https://github.com/adrwz", "followers_url": "https://api.github.com/users/adrwz/followers", "following_url": "https://api.github.com/users/adrwz/following{/other_user}", "gists_url": "https://api.github.com/users/adrwz/gists{/gist_id}", "starred_url": "https://api.github.com/users/adrwz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adrwz/subscriptions", "organizations_url": "https://api.github.com/users/adrwz/orgs", "repos_url": "https://api.github.com/users/adrwz/repos", "events_url": "https://api.github.com/users/adrwz/events{/privacy}", "received_events_url": "https://api.github.com/users/adrwz/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-10T19:50:43
2023-11-10T22:53:57
2023-11-10T22:53:57
CONTRIBUTOR
null
- **Description:** Changed the fleet_context documentation to use `context.download_embeddings()` from the latest release from our package. More details here: https://github.com/fleet-ai/context/tree/main#api - **Issue:** n/a - **Dependencies:** n/a - **Tag maintainer:** @baskaryan - **Twitter handle:** @andrewthezhou
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13221/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/13221/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13221", "html_url": "https://github.com/langchain-ai/langchain/pull/13221", "diff_url": "https://github.com/langchain-ai/langchain/pull/13221.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13221.patch", "merged_at": "2023-11-10T22:53:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/13219
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13219/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13219/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13219/events
https://github.com/langchain-ai/langchain/pull/13219
1,988,265,325
PR_kwDOIPDwls5fLPu6
13,219
Upgrade cohere embedding model to v3
{ "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": 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" } ]
closed
false
null
[]
null
1
2023-11-10T19:36:09
2023-11-11T00:25:59
2023-11-11T00:25:58
COLLABORATOR
null
Just updates API docs, doesn't change default param from 2.0 (could be breaking change)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13219/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/13219/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13219", "html_url": "https://github.com/langchain-ai/langchain/pull/13219", "diff_url": "https://github.com/langchain-ai/langchain/pull/13219.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13219.patch", "merged_at": "2023-11-11T00:25:58" }
https://api.github.com/repos/langchain-ai/langchain/issues/13218
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13218/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13218/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13218/events
https://github.com/langchain-ai/langchain/issues/13218
1,988,218,361
I_kwDOIPDwls52gc35
13,218
Vector Search on GCP Private Network gives AttributeError: 'MatchingEngineIndexEndpoint' object has no attribute '_public_match_client'
{ "login": "zuojung", "id": 21340796, "node_id": "MDQ6VXNlcjIxMzQwNzk2", "avatar_url": "https://avatars.githubusercontent.com/u/21340796?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zuojung", "html_url": "https://github.com/zuojung", "followers_url": "https://api.github.com/users/zuojung/followers", "following_url": "https://api.github.com/users/zuojung/following{/other_user}", "gists_url": "https://api.github.com/users/zuojung/gists{/gist_id}", "starred_url": "https://api.github.com/users/zuojung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zuojung/subscriptions", "organizations_url": "https://api.github.com/users/zuojung/orgs", "repos_url": "https://api.github.com/users/zuojung/repos", "events_url": "https://api.github.com/users/zuojung/events{/privacy}", "received_events_url": "https://api.github.com/users/zuojung/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
2
2023-11-10T19:10:23
2023-11-10T19:17:11
null
NONE
null
### System Info langchain 0.0.332 Python 3.10.12 Platform: GCP ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Code to reproduce the problem: ``` from google.cloud import aiplatform from langchain.embeddings import VertexAIEmbeddings from langchain.vectorstores.matching_engine import MatchingEngine embeddings = VertexAIEmbeddings() embeddings vector_store = MatchingEngine.from_components( index_id=INDEX, region=REGION, embedding=embeddings, project_id=PROJECT_ID, endpoint_id=ENDPOINT, gcs_bucket_name=DOCS_EMBEDDING) vector_store.similarity_search('hello world', k=8) ``` Traceback: ```Traceback (most recent call last): File "/opt/conda/envs/classifier/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3526, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-13-c6115207e7f5>", line 1, in <module> relevant_documentation = vector_store.similarity_search('hello world', k=8) File "/opt/conda/envs/classifier/lib/python3.10/site-packages/langchain/vectorstores/matching_engine.py", line 291, in similarity_search docs_and_scores = self.similarity_search_with_score( File "/opt/conda/envs/classifier/lib/python3.10/site-packages/langchain/vectorstores/matching_engine.py", line 202, in similarity_search_with_score return self.similarity_search_by_vector_with_score( File "/opt/conda/envs/classifier/lib/python3.10/site-packages/langchain/vectorstores/matching_engine.py", line 234, in similarity_search_by_vector_with_score if self.endpoint._public_match_client: AttributeError: 'MatchingEngineIndexEndpoint' object has no attribute '_public_match_client' ``` **Expected Behavior**: No Error **Analysis**: The newest changes in https://github.com/langchain-ai/langchain/pull/10056 added the following to matching engine. [Source](https://github.com/langchain-ai/langchain/blob/869df62736f9084864ab907e7ec5736dd19f05d4/libs/langchain/langchain/vectorstores/matching_engine.py#L234) `if self.endpoint._public_match_client:` However, in GCP's MatchingEngineIndexEndpoint Class, object _public_match_client does not get instantiated until the following check passes. [Source](https://github.com/googleapis/python-aiplatform/blob/fcf05cb6da15c83e91e6ce5f20ab3e6649983685/google/cloud/aiplatform/matching_engine/matching_engine_index_endpoint.py#L132-L133) ``` if self.public_endpoint_domain_name: self._public_match_client = self._instantiate_public_match_client() ``` Therefore I think the if self.endpoint._public_match_client check may be preventing all Private Network users from using vector search with matching Engine.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13218/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/13218/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13217
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13217/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13217/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13217/events
https://github.com/langchain-ai/langchain/pull/13217
1,988,199,428
PR_kwDOIPDwls5fLA2h
13,217
Bagatur/langserve blurb
{ "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-10T18:56:44
2023-11-10T19:05:45
2023-11-10T19:05:44
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13217/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/13217/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13217", "html_url": "https://github.com/langchain-ai/langchain/pull/13217", "diff_url": "https://github.com/langchain-ai/langchain/pull/13217.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13217.patch", "merged_at": "2023-11-10T19:05:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/13216
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13216/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13216/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13216/events
https://github.com/langchain-ai/langchain/pull/13216
1,988,191,412
PR_kwDOIPDwls5fK_CJ
13,216
Adding support for amazon personalize Integration
{ "login": "pranava-amzn", "id": 119924780, "node_id": "U_kgDOByXoLA", "avatar_url": "https://avatars.githubusercontent.com/u/119924780?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pranava-amzn", "html_url": "https://github.com/pranava-amzn", "followers_url": "https://api.github.com/users/pranava-amzn/followers", "following_url": "https://api.github.com/users/pranava-amzn/following{/other_user}", "gists_url": "https://api.github.com/users/pranava-amzn/gists{/gist_id}", "starred_url": "https://api.github.com/users/pranava-amzn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pranava-amzn/subscriptions", "organizations_url": "https://api.github.com/users/pranava-amzn/orgs", "repos_url": "https://api.github.com/users/pranava-amzn/repos", "events_url": "https://api.github.com/users/pranava-amzn/events{/privacy}", "received_events_url": "https://api.github.com/users/pranava-amzn/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": 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
7
2023-11-10T18:51:54
2023-12-05T18:48:10
null
NONE
null
## Amazon Personalize support on Langchain This PR introduces an integration with [Amazon Personalize](https://aws.amazon.com/personalize/) to help you to retrieve recommendations and use them in your natural language applications. This integration provides two new components: 1. An `AmazonPersonalize` client, that provides a wrapper around the Amazon Personalize API. 2. An `AmazonPersonalizeChain`, that provides a chain to pull in recommendations using the client, and then generating the response in natural language. Here is some sample code to explain the usage. ```python from langchain.utilities import AmazonPersonalize from langchain.chains import AmazonPersonalizeChain from langchain.llms.bedrock import Bedrock recommender_arn = "<insert_arn>" client=AmazonPersonalize( credentials_profile_name="default", region_name="us-west-2", recommender_arn=recommender_arn ) bedrock_llm = Bedrock( model_id="anthropic.claude-v2", region_name="us-west-2" ) chain = AmazonPersonalizeChain.from_llm( llm=bedrock_llm, client=client ) response = chain({'user_id': '1'}) ``` Reviewer: @3coins
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13216/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/13216/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13216", "html_url": "https://github.com/langchain-ai/langchain/pull/13216", "diff_url": "https://github.com/langchain-ai/langchain/pull/13216.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13216.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13214
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13214/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13214/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13214/events
https://github.com/langchain-ai/langchain/pull/13214
1,988,103,953
PR_kwDOIPDwls5fKrdz
13,214
vectara rag mq
{ "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": 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-10T18:04:10
2023-11-10T18:08:46
2023-11-10T18:08:45
COLLABORATOR
null
Description: another Vectara template for MultiQuery RAG flow Twitter handle: @ofermend Fixes to #13106
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13214/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/13214/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13214", "html_url": "https://github.com/langchain-ai/langchain/pull/13214", "diff_url": "https://github.com/langchain-ai/langchain/pull/13214.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13214.patch", "merged_at": "2023-11-10T18:08:45" }
https://api.github.com/repos/langchain-ai/langchain/issues/13213
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13213/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13213/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13213/events
https://github.com/langchain-ai/langchain/pull/13213
1,988,083,143
PR_kwDOIPDwls5fKm2L
13,213
update stack diagram
{ "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-10T17:50:20
2023-11-11T00:51:45
2023-11-11T00:50:20
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13213/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/13213/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13213", "html_url": "https://github.com/langchain-ai/langchain/pull/13213", "diff_url": "https://github.com/langchain-ai/langchain/pull/13213.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13213.patch", "merged_at": "2023-11-11T00:50:20" }
https://api.github.com/repos/langchain-ai/langchain/issues/13212
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13212/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13212/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13212/events
https://github.com/langchain-ai/langchain/pull/13212
1,988,074,823
PR_kwDOIPDwls5fKlCm
13,212
Add token usage tracker module
{ "login": "mrtj", "id": 3469711, "node_id": "MDQ6VXNlcjM0Njk3MTE=", "avatar_url": "https://avatars.githubusercontent.com/u/3469711?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mrtj", "html_url": "https://github.com/mrtj", "followers_url": "https://api.github.com/users/mrtj/followers", "following_url": "https://api.github.com/users/mrtj/following{/other_user}", "gists_url": "https://api.github.com/users/mrtj/gists{/gist_id}", "starred_url": "https://api.github.com/users/mrtj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mrtj/subscriptions", "organizations_url": "https://api.github.com/users/mrtj/orgs", "repos_url": "https://api.github.com/users/mrtj/repos", "events_url": "https://api.github.com/users/mrtj/events{/privacy}", "received_events_url": "https://api.github.com/users/mrtj/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": 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-10T17:43:13
2023-11-20T10:33:17
null
CONTRIBUTOR
null
- **Description:** A new, flexible, extensible token usage tracker module - **Dependencies:** only optional dependencies base on the LLM used, - **Tag maintainer:** @agola11 @baskaryan @hwchase17 - **Twitter handle:** jtolgyesi The highly customizable `token_usage` module offers to track the number of consumed tokens, measure the latency of the LLM responses, and even estimate the usage cost of your application. You can analyze the token usage of your application directly from the code, or send the usage data to a metrics repository such as Amazon CloudWatch. The `token_usage` module splits the task of collecting the usage metrics from the LLMs via standard Callbacks in the `handlers` submodule, and the processing of the collected metrics in the `reporters` submodule. Some LLM APIs (for example, OpenAI) sends you back the number of consumed tokens after each call. Other APIs do not provide such usage information. In this case you can configure a `LocalTokenUsageCallbackHandler` instance to track the token usage directly on client side (your application's code).
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13212/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/13212/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13212", "html_url": "https://github.com/langchain-ai/langchain/pull/13212", "diff_url": "https://github.com/langchain-ai/langchain/pull/13212.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13212.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13211
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13211/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13211/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13211/events
https://github.com/langchain-ai/langchain/pull/13211
1,988,019,456
PR_kwDOIPDwls5fKYr1
13,211
bump 334
{ "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-10T17:11:36
2023-11-10T17:43:30
2023-11-10T17:43:30
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13211/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/13211/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13211", "html_url": "https://github.com/langchain-ai/langchain/pull/13211", "diff_url": "https://github.com/langchain-ai/langchain/pull/13211.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13211.patch", "merged_at": "2023-11-10T17:43:30" }
https://api.github.com/repos/langchain-ai/langchain/issues/13210
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13210/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13210/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13210/events
https://github.com/langchain-ai/langchain/pull/13210
1,988,018,999
PR_kwDOIPDwls5fKYlP
13,210
fix: Reduce post-processing time for `DocAIParser`
{ "login": "holtskinner", "id": 13262395, "node_id": "MDQ6VXNlcjEzMjYyMzk1", "avatar_url": "https://avatars.githubusercontent.com/u/13262395?v=4", "gravatar_id": "", "url": "https://api.github.com/users/holtskinner", "html_url": "https://github.com/holtskinner", "followers_url": "https://api.github.com/users/holtskinner/followers", "following_url": "https://api.github.com/users/holtskinner/following{/other_user}", "gists_url": "https://api.github.com/users/holtskinner/gists{/gist_id}", "starred_url": "https://api.github.com/users/holtskinner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/holtskinner/subscriptions", "organizations_url": "https://api.github.com/users/holtskinner/orgs", "repos_url": "https://api.github.com/users/holtskinner/repos", "events_url": "https://api.github.com/users/holtskinner/events{/privacy}", "received_events_url": "https://api.github.com/users/holtskinner/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-11-10T17:11:15
2023-11-27T18:47:23
2023-11-20T17:41:44
CONTRIBUTOR
null
- Remove `WrappedDocument` introduced in https://github.com/langchain-ai/langchain/pull/11413 - https://github.com/googleapis/python-documentai-toolbox/issues/198 in Document AI Toolbox to improve initialization time for `WrappedDocument` object. @lkuligin @baskaryan @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13210/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/13210/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13210", "html_url": "https://github.com/langchain-ai/langchain/pull/13210", "diff_url": "https://github.com/langchain-ai/langchain/pull/13210.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13210.patch", "merged_at": "2023-11-20T17:41:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/13209
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13209/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13209/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13209/events
https://github.com/langchain-ai/langchain/pull/13209
1,987,985,303
PR_kwDOIPDwls5fKRIC
13,209
Delegate to from_template
{ "login": "msopacua", "id": 144725145, "node_id": "U_kgDOCKBUmQ", "avatar_url": "https://avatars.githubusercontent.com/u/144725145?v=4", "gravatar_id": "", "url": "https://api.github.com/users/msopacua", "html_url": "https://github.com/msopacua", "followers_url": "https://api.github.com/users/msopacua/followers", "following_url": "https://api.github.com/users/msopacua/following{/other_user}", "gists_url": "https://api.github.com/users/msopacua/gists{/gist_id}", "starred_url": "https://api.github.com/users/msopacua/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/msopacua/subscriptions", "organizations_url": "https://api.github.com/users/msopacua/orgs", "repos_url": "https://api.github.com/users/msopacua/repos", "events_url": "https://api.github.com/users/msopacua/events{/privacy}", "received_events_url": "https://api.github.com/users/msopacua/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" } ]
closed
false
null
[]
null
1
2023-11-10T16:49:46
2023-12-05T04:05:40
2023-12-05T04:05:40
CONTRIBUTOR
null
-**Description:** Delegate from_file to from_template() so that they behave identical. Keep a deprecation in place for `input_variables`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13209/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/13209/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13209", "html_url": "https://github.com/langchain-ai/langchain/pull/13209", "diff_url": "https://github.com/langchain-ai/langchain/pull/13209.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13209.patch", "merged_at": "2023-12-05T04:05:40" }
https://api.github.com/repos/langchain-ai/langchain/issues/13208
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13208/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13208/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13208/events
https://github.com/langchain-ai/langchain/pull/13208
1,987,973,792
PR_kwDOIPDwls5fKOnM
13,208
Update
{ "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" } ]
closed
false
null
[]
null
1
2023-11-10T16:41:53
2023-11-12T19:30:36
2023-11-12T19:29:25
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13208/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/13208/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13208", "html_url": "https://github.com/langchain-ai/langchain/pull/13208", "diff_url": "https://github.com/langchain-ai/langchain/pull/13208.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13208.patch", "merged_at": "2023-11-12T19:29:25" }
https://api.github.com/repos/langchain-ai/langchain/issues/13207
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13207/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13207/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13207/events
https://github.com/langchain-ai/langchain/pull/13207
1,987,968,887
PR_kwDOIPDwls5fKNif
13,207
Mask API key for SerpApi.com tools
{ "login": "ilyazub", "id": 282605, "node_id": "MDQ6VXNlcjI4MjYwNQ==", "avatar_url": "https://avatars.githubusercontent.com/u/282605?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ilyazub", "html_url": "https://github.com/ilyazub", "followers_url": "https://api.github.com/users/ilyazub/followers", "following_url": "https://api.github.com/users/ilyazub/following{/other_user}", "gists_url": "https://api.github.com/users/ilyazub/gists{/gist_id}", "starred_url": "https://api.github.com/users/ilyazub/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ilyazub/subscriptions", "organizations_url": "https://api.github.com/users/ilyazub/orgs", "repos_url": "https://api.github.com/users/ilyazub/repos", "events_url": "https://api.github.com/users/ilyazub/events{/privacy}", "received_events_url": "https://api.github.com/users/ilyazub/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
1
2023-11-10T16:38:23
2023-11-10T16:51:05
null
CONTRIBUTOR
null
* **Description:** Mask API key for SerpApi.com tools. * Mask SerpApi API key in `SerpAPIWrapper` and `GoogleScholarAPIWrapper` * Use [`SerpApiClient#pagination`](https://github.com/serpapi/google-search-results-python#pagination-using-iterator) in the Google Scholar Search Tool (related to https://github.com/langchain-ai/langchain/issues/11513) * **Issue:** https://github.com/langchain-ai/langchain/issues/12165 * **Tag maintainer:** @eyurtsev @keenborder786, please review the changes in `GoogleScholarAPIWrapper`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13207/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/13207/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13207", "html_url": "https://github.com/langchain-ai/langchain/pull/13207", "diff_url": "https://github.com/langchain-ai/langchain/pull/13207.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13207.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13205
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13205/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13205/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13205/events
https://github.com/langchain-ai/langchain/pull/13205
1,987,928,368
PR_kwDOIPDwls5fKEjE
13,205
Update README.md - Added notebook for extraction_openai_tools
{ "login": "shauryr", "id": 12604876, "node_id": "MDQ6VXNlcjEyNjA0ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/12604876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shauryr", "html_url": "https://github.com/shauryr", "followers_url": "https://api.github.com/users/shauryr/followers", "following_url": "https://api.github.com/users/shauryr/following{/other_user}", "gists_url": "https://api.github.com/users/shauryr/gists{/gist_id}", "starred_url": "https://api.github.com/users/shauryr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shauryr/subscriptions", "organizations_url": "https://api.github.com/users/shauryr/orgs", "repos_url": "https://api.github.com/users/shauryr/repos", "events_url": "https://api.github.com/users/shauryr/events{/privacy}", "received_events_url": "https://api.github.com/users/shauryr/received_events", "type": "User", "site_admin": false }
[ { "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" } ]
closed
false
null
[]
null
1
2023-11-10T16:14:19
2023-11-13T08:12:47
2023-11-13T08:12:47
CONTRIBUTOR
null
added Parallel Function Calling for Structured Data Extraction notebook <!-- 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/13205/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/13205/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13205", "html_url": "https://github.com/langchain-ai/langchain/pull/13205", "diff_url": "https://github.com/langchain-ai/langchain/pull/13205.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13205.patch", "merged_at": "2023-11-13T08:12:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/13204
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13204/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13204/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13204/events
https://github.com/langchain-ai/langchain/issues/13204
1,987,788,713
I_kwDOIPDwls52ez-p
13,204
NameError: name '_httpx_client' is not defined
{ "login": "gregbird101", "id": 15308172, "node_id": "MDQ6VXNlcjE1MzA4MTcy", "avatar_url": "https://avatars.githubusercontent.com/u/15308172?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gregbird101", "html_url": "https://github.com/gregbird101", "followers_url": "https://api.github.com/users/gregbird101/followers", "following_url": "https://api.github.com/users/gregbird101/following{/other_user}", "gists_url": "https://api.github.com/users/gregbird101/gists{/gist_id}", "starred_url": "https://api.github.com/users/gregbird101/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gregbird101/subscriptions", "organizations_url": "https://api.github.com/users/gregbird101/orgs", "repos_url": "https://api.github.com/users/gregbird101/repos", "events_url": "https://api.github.com/users/gregbird101/events{/privacy}", "received_events_url": "https://api.github.com/users/gregbird101/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" } ]
open
false
null
[]
null
3
2023-11-10T14:58:08
2023-11-10T16:53:18
null
NONE
null
### System Info Hello All, I have just installed the helm chart with some small additions to the basic values.yaml and the "langchain-langsmith-backend" contain keeps breaking with the following error, Has anyone had this before? INFO: Started server process [1] -- Fri, Nov 10 2023 2:41:24 pm | INFO: Waiting for application startup. Fri, Nov 10 2023 2:41:24 pm | INFO: Application startup complete. Fri, Nov 10 2023 2:41:24 pm | INFO: Uvicorn running on http://0.0.0.0:1984 (Press CTRL+C to quit) Fri, Nov 10 2023 2:42:18 pm | INFO: Shutting down Fri, Nov 10 2023 2:42:18 pm | INFO: Waiting for application shutdown. Fri, Nov 10 2023 2:42:19 pm | ERROR:root:Error closing httpx client for clickhouse name '_httpx_client' is not defined Fri, Nov 10 2023 2:42:19 pm | Traceback (most recent call last): Fri, Nov 10 2023 2:42:19 pm | File "/code/smith-backend/app/main.py", line 140, in shutdown_event Fri, Nov 10 2023 2:42:19 pm | File "/code/lc_database/lc_database/clickhouse.py", line 36, in close_clickhouse_client Fri, Nov 10 2023 2:42:19 pm | await _httpx_client.aclose() Fri, Nov 10 2023 2:42:19 pm | ^^^^^^^^^^^^^ Fri, Nov 10 2023 2:42:19 pm | NameError: name '_httpx_client' is not defined Fri, Nov 10 2023 2:42:19 pm | INFO: Application shutdown complete. Fri, Nov 10 2023 2:42:19 pm | INFO: Finished server process [1] ### 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 helm repo add langchain https://langchain-ai.github.io/helm/ helm install langchain/langsmith . --values values.yaml --namespace it-dev-langchain Running this on an on prem Rancher cluster. ### Expected behavior The contain runs normally.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13204/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/13204/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13203
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13203/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13203/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13203/events
https://github.com/langchain-ai/langchain/pull/13203
1,987,785,903
PR_kwDOIPDwls5fJlIg
13,203
Fix #11737 issue (extra_tools option of create_pandas_dataframe_agent is not working)
{ "login": "eunhye1kim", "id": 2021971, "node_id": "MDQ6VXNlcjIwMjE5NzE=", "avatar_url": "https://avatars.githubusercontent.com/u/2021971?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eunhye1kim", "html_url": "https://github.com/eunhye1kim", "followers_url": "https://api.github.com/users/eunhye1kim/followers", "following_url": "https://api.github.com/users/eunhye1kim/following{/other_user}", "gists_url": "https://api.github.com/users/eunhye1kim/gists{/gist_id}", "starred_url": "https://api.github.com/users/eunhye1kim/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eunhye1kim/subscriptions", "organizations_url": "https://api.github.com/users/eunhye1kim/orgs", "repos_url": "https://api.github.com/users/eunhye1kim/repos", "events_url": "https://api.github.com/users/eunhye1kim/events{/privacy}", "received_events_url": "https://api.github.com/users/eunhye1kim/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 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
1
2023-11-10T14:56:24
2023-12-05T04:54:08
2023-12-05T04:54:08
CONTRIBUTOR
null
- **Description:** Fix #11737 issue (extra_tools option of create_pandas_dataframe_agent is not working), - **Issue:** #11737 , - **Dependencies:** no, - **Tag maintainer:** @baskaryan, @eyurtsev, @hwchase17 I needed this method at work, so I modified it myself and used it. There is a similar issue(#11737) and PR(#13018) of @PyroGenesis, so I combined my code at the original PR. You may be busy, but it would be great help for me if you checked. Thank you. - **Twitter handle:** @lunara_x If you need an .ipynb example about this, please tag me. I will share what I am working on after removing any work-related content.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13203/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/13203/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13203", "html_url": "https://github.com/langchain-ai/langchain/pull/13203", "diff_url": "https://github.com/langchain-ai/langchain/pull/13203.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13203.patch", "merged_at": "2023-12-05T04:54:08" }
https://api.github.com/repos/langchain-ai/langchain/issues/13202
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13202/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13202/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13202/events
https://github.com/langchain-ai/langchain/issues/13202
1,987,762,764
I_kwDOIPDwls52etpM
13,202
Inconsistent output format of ChatVertexAI compared to ChatOpenAI
{ "login": "smttsp", "id": 4594945, "node_id": "MDQ6VXNlcjQ1OTQ5NDU=", "avatar_url": "https://avatars.githubusercontent.com/u/4594945?v=4", "gravatar_id": "", "url": "https://api.github.com/users/smttsp", "html_url": "https://github.com/smttsp", "followers_url": "https://api.github.com/users/smttsp/followers", "following_url": "https://api.github.com/users/smttsp/following{/other_user}", "gists_url": "https://api.github.com/users/smttsp/gists{/gist_id}", "starred_url": "https://api.github.com/users/smttsp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smttsp/subscriptions", "organizations_url": "https://api.github.com/users/smttsp/orgs", "repos_url": "https://api.github.com/users/smttsp/repos", "events_url": "https://api.github.com/users/smttsp/events{/privacy}", "received_events_url": "https://api.github.com/users/smttsp/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-11-10T14:42:40
2023-11-10T14:45:38
null
NONE
null
### System Info I tried to use `ChatVertexAI` as a replacement for `ChatOpenAI` as the latter is quite slow these days. I have this code for Chat OpenAI ``` template_string = """ # some explanation give me suggestions in JSON format where the suggestions are a list of dictionaries with the following keys: - before: - after: - reason: """ chat = ChatOpenAI( temperature=0.0, openai_api_key=self.session_info.openai_api_key, model=llm_model, ) prompt_template = ChatPromptTemplate.from_template(template_string) service_messages = prompt_template.format_messages( text=self.text ) response = chat(service_messages) info = json.loads(response.content) ``` Then I print `response.content`, here is the format as expected: ``` [{"before": ..., "after": ...}, ...] ``` Then I use `ChatVertexAI` with the same `template_string` ``` chat = ChatVertexAI( temperature=0.0, google_api_key=google_api_key, model="codechat-bison", max_output_tokens=2048, ) prompt_template = ChatPromptTemplate.from_template(template_string) service_messages = prompt_template.format_messages( text=self.text ) response = chat(service_messages) ``` I print the `response.content` coming from Vertex AI and the output format is encapsulated by ```(3 backticks)JSON [{...}] (3 backticks)```. To make `response.content` the same, I used the following code ``` json_match = re.search(r'```JSON(.*?)\n```', response.content, re.DOTALL) if json_match: json_data = json_match.group(1).strip() info = json.loads(json_data) else: info = {} print("No JSON data found in the input string.") ``` I am not sure of the potential failures of this solution, but unless this is intentional, it might be better to make it consistent. I will try to use the other LLMs and see how others work. ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I shared my codes above, but the steps are: 1. setting up openai_api_key 2. setting up gcp environment 3. running ChatOpenAI 4. running ChatVertexAI 5. comparing the responses (i.e. `response.content`) ### Expected behavior My expectation is to obtain the outputs of different models the same way. i.e., `json.loads` should output a list of dictionary in each case. Users should not have to deal with `regex` to obtain the data in the expected format.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13202/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/13202/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13201
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13201/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13201/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13201/events
https://github.com/langchain-ai/langchain/pull/13201
1,987,751,503
PR_kwDOIPDwls5fJdj-
13,201
dalle add model parameter
{ "login": "AzeWZ", "id": 9207920, "node_id": "MDQ6VXNlcjkyMDc5MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/9207920?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AzeWZ", "html_url": "https://github.com/AzeWZ", "followers_url": "https://api.github.com/users/AzeWZ/followers", "following_url": "https://api.github.com/users/AzeWZ/following{/other_user}", "gists_url": "https://api.github.com/users/AzeWZ/gists{/gist_id}", "starred_url": "https://api.github.com/users/AzeWZ/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AzeWZ/subscriptions", "organizations_url": "https://api.github.com/users/AzeWZ/orgs", "repos_url": "https://api.github.com/users/AzeWZ/repos", "events_url": "https://api.github.com/users/AzeWZ/events{/privacy}", "received_events_url": "https://api.github.com/users/AzeWZ/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" } ]
closed
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-10T14:36:10
2023-11-13T08:09:21
2023-11-13T08:09:20
CONTRIBUTOR
null
- **Description:** dalle_image_generator adding a new model parameter, - **Issue:** N/A, - **Dependencies:** - **Tag maintainer: @hwchase17 - **Twitter handle:**
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13201/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/13201/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13201", "html_url": "https://github.com/langchain-ai/langchain/pull/13201", "diff_url": "https://github.com/langchain-ai/langchain/pull/13201.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13201.patch", "merged_at": "2023-11-13T08:09:20" }
https://api.github.com/repos/langchain-ai/langchain/issues/13200
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13200/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13200/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13200/events
https://github.com/langchain-ai/langchain/pull/13200
1,987,751,284
PR_kwDOIPDwls5fJdhA
13,200
Adds an in-memory implementation of RecordManager
{ "login": "pprados", "id": 204694, "node_id": "MDQ6VXNlcjIwNDY5NA==", "avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pprados", "html_url": "https://github.com/pprados", "followers_url": "https://api.github.com/users/pprados/followers", "following_url": "https://api.github.com/users/pprados/following{/other_user}", "gists_url": "https://api.github.com/users/pprados/gists{/gist_id}", "starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pprados/subscriptions", "organizations_url": "https://api.github.com/users/pprados/orgs", "repos_url": "https://api.github.com/users/pprados/repos", "events_url": "https://api.github.com/users/pprados/events{/privacy}", "received_events_url": "https://api.github.com/users/pprados/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": 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." } ]
open
false
null
[]
null
3
2023-11-10T14:36:01
2023-12-15T12:59:06
null
CONTRIBUTOR
null
**Description:** langchain offers three technologies to save data: - [vectorstore](https://python.langchain.com/docs/modules/data_connection/vectorstores/) - [docstore](https://js.langchain.com/docs/api/schema/classes/Docstore) - [record manager](https://python.langchain.com/docs/modules/data_connection/indexing) If you want to combine these technologies in a sample persistence stategy you need a common implementation for each. `DocStore` propose `InMemoryDocstore`. We propose the class `MemoryRecordManager` to complete the system. This is the prelude to another full-request, which needs a consistent combination of persistence components. **Tag maintainer:** @baskaryan **Twitter handle:** @pprados
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13200/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/13200/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13200", "html_url": "https://github.com/langchain-ai/langchain/pull/13200", "diff_url": "https://github.com/langchain-ai/langchain/pull/13200.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13200.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13199
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13199/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13199/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13199/events
https://github.com/langchain-ai/langchain/issues/13199
1,987,735,492
I_kwDOIPDwls52em_E
13,199
More than 800 errors detected with the latest version of mypy
{ "login": "pprados", "id": 204694, "node_id": "MDQ6VXNlcjIwNDY5NA==", "avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pprados", "html_url": "https://github.com/pprados", "followers_url": "https://api.github.com/users/pprados/followers", "following_url": "https://api.github.com/users/pprados/following{/other_user}", "gists_url": "https://api.github.com/users/pprados/gists{/gist_id}", "starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pprados/subscriptions", "organizations_url": "https://api.github.com/users/pprados/orgs", "repos_url": "https://api.github.com/users/pprados/repos", "events_url": "https://api.github.com/users/pprados/events{/privacy}", "received_events_url": "https://api.github.com/users/pprados/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": 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": 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": 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-10T14:26:34
2023-11-11T08:43:03
null
CONTRIBUTOR
null
### System Info langchain 0.0.333 ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [X] Document Loaders - [X] Vector Stores / Retrievers - [X] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [X] Chains - [X] Callbacks/Tracing - [X] Async ### Reproduction The current mypy crash with `make lint` and propose to install the last master version. So, after a `git clone` and `poetry install --with dev,test,lint`, run ```bash pip install git+https://github.com/python/mypy.git make lint ``` **Mypy found 834 errors in 238 files** ### Expected behavior 0 errors
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13199/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/13199/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13197
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13197/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13197/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13197/events
https://github.com/langchain-ai/langchain/issues/13197
1,987,672,041
I_kwDOIPDwls52eXfp
13,197
MlflowAIGatewayEmbeddings : Default Batch size incompatible with Azure OpenAI text-embedding-ada-002
{ "login": "coltonpeltier-db", "id": 111309923, "node_id": "U_kgDOBqJ0Yw", "avatar_url": "https://avatars.githubusercontent.com/u/111309923?v=4", "gravatar_id": "", "url": "https://api.github.com/users/coltonpeltier-db", "html_url": "https://github.com/coltonpeltier-db", "followers_url": "https://api.github.com/users/coltonpeltier-db/followers", "following_url": "https://api.github.com/users/coltonpeltier-db/following{/other_user}", "gists_url": "https://api.github.com/users/coltonpeltier-db/gists{/gist_id}", "starred_url": "https://api.github.com/users/coltonpeltier-db/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/coltonpeltier-db/subscriptions", "organizations_url": "https://api.github.com/users/coltonpeltier-db/orgs", "repos_url": "https://api.github.com/users/coltonpeltier-db/repos", "events_url": "https://api.github.com/users/coltonpeltier-db/events{/privacy}", "received_events_url": "https://api.github.com/users/coltonpeltier-db/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": 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-10T13:52:34
2023-11-10T14:40:38
null
NONE
null
### System Info The text-embedding-ada-002 OpenAI embedding model on Azure OpenAI has a maximum batch size of 16. MlflowAIGatewayEmbeddings has a hard-coded batch size of 20 which results in it being unusable with Azure OpenAI's text-embedding-ada-002. The best fix would be to allow a configurable batchsize as an argument to MlflowAIGatewayEmbeddings, ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [ ] 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 1. Create a gateway route to the text-embedding-ada-002 on azure openai ``` ROUTE_NAME = "azure-ada-002" # Try to delete the route if it already exists try: delete_route(ROUTE_NAME) print("Route deleted") except: print("Route does not exist, creating..") create_route( name=ROUTE_NAME, route_type="llm/v1/embeddings", model = { "name" : "text-embedding-ada-002", "provider" : "openai", "openai_config" : { "openai_api_type" : azure_openai_type, "openai_api_key": azure_openai_key, "openai_deployment_name": "ada-embed-v1", "openai_api_base": azure_openai_base, "openai_api_version": "2023-05-15" } } ) ``` 2. Initialize the `MlflowAIGatewayEmbeddings` and try to embed more than 16 documents ``` from langchain.embeddings import MlflowAIGatewayEmbeddings import pandas as pd azure_ada = MlflowAIGatewayEmbeddings(route="azure-ada-002") test_strings = [ "aaaa" for i in range(20) ] azure_ada.embed_documents(test_strings) ``` 3. Observe the error ``` HTTPError: 400 Client Error: Bad Request for url: https://ohio.cloud.databricks.com/gateway/azure-ada-002/invocations. Response text: { "error": { "message": "Too many inputs. The max number of inputs is 16. We hope to increase the number of inputs per request soon. Please contact us through an Azure support request at: https://go.microsoft.com/fwlink/?linkid=2213926 for further questions.", "type": "invalid_request_error", "param": null, "code": null } } ``` ### Expected behavior I should be able to use the `MlflowAIGatewayEmbeddings` class with Azure OpenAI.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13197/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/13197/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13196
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13196/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13196/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13196/events
https://github.com/langchain-ai/langchain/issues/13196
1,987,564,233
I_kwDOIPDwls52d9LJ
13,196
langchain Retrieval
{ "login": "4entertainment", "id": 58992739, "node_id": "MDQ6VXNlcjU4OTkyNzM5", "avatar_url": "https://avatars.githubusercontent.com/u/58992739?v=4", "gravatar_id": "", "url": "https://api.github.com/users/4entertainment", "html_url": "https://github.com/4entertainment", "followers_url": "https://api.github.com/users/4entertainment/followers", "following_url": "https://api.github.com/users/4entertainment/following{/other_user}", "gists_url": "https://api.github.com/users/4entertainment/gists{/gist_id}", "starred_url": "https://api.github.com/users/4entertainment/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/4entertainment/subscriptions", "organizations_url": "https://api.github.com/users/4entertainment/orgs", "repos_url": "https://api.github.com/users/4entertainment/repos", "events_url": "https://api.github.com/users/4entertainment/events{/privacy}", "received_events_url": "https://api.github.com/users/4entertainment/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": 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": 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
3
2023-11-10T12:47:23
2023-11-16T05:15:18
null
NONE
null
### Issue you'd like to raise. i have the following code: ``` # import from langchain.embeddings.sentence_transformer import SentenceTransformerEmbeddings from langchain.text_splitter import CharacterTextSplitter from langchain.vectorstores import Chroma from langchain.document_loaders import TextLoader from silly import no_ssl_verification from langchain.embeddings.huggingface import HuggingFaceEmbeddings with no_ssl_verification(): # load the document and split it into chunks loader = TextLoader("state_of_the_union.txt") documents = loader.load() # split it into chunks text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) docs = text_splitter.split_documents(documents) # create the open-source embedding function embedding_function = SentenceTransformerEmbeddings(model_name="all-MiniLM-L6-v2") # hfemb = HuggingFaceEmbeddings() # load it into Chroma db = Chroma.from_documents(docs, embedding_function) # query it query = "What did the president say about Ketanji Brown Jackson" docs = db.similarity_search(query) # print results print(docs[0].page_content) ``` i must use retrieval mechanism. and i am using Turkish language data. please change my code ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13196/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/13196/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13195
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13195/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13195/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13195/events
https://github.com/langchain-ai/langchain/issues/13195
1,987,527,709
I_kwDOIPDwls52d0Qd
13,195
Example for chat chain with documents retrieval and history capability
{ "login": "afedotov-align", "id": 91598042, "node_id": "U_kgDOBXWs2g", "avatar_url": "https://avatars.githubusercontent.com/u/91598042?v=4", "gravatar_id": "", "url": "https://api.github.com/users/afedotov-align", "html_url": "https://github.com/afedotov-align", "followers_url": "https://api.github.com/users/afedotov-align/followers", "following_url": "https://api.github.com/users/afedotov-align/following{/other_user}", "gists_url": "https://api.github.com/users/afedotov-align/gists{/gist_id}", "starred_url": "https://api.github.com/users/afedotov-align/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/afedotov-align/subscriptions", "organizations_url": "https://api.github.com/users/afedotov-align/orgs", "repos_url": "https://api.github.com/users/afedotov-align/repos", "events_url": "https://api.github.com/users/afedotov-align/events{/privacy}", "received_events_url": "https://api.github.com/users/afedotov-align/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": 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" }, { "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-10T12:23:44
2023-11-10T12:34:43
null
NONE
null
### System Info Latest langchain, Mac ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Hi Community, I'm trying to build a chain with Chroma database as context, AzureOpenAI embeddings and AzureOpenAI GPT model. The following libs work fine for me and doing their work from langchain.embeddings import OpenAIEmbeddings from langchain.vectorstores import Chroma from langchain.chat_models import AzureChatOpenAI But I can't figure out how to build the chain itself and what kind of chain I should use. Could you kindly provide any suggestions? Thanks, Artem. ### Expected behavior Desired behaviour: - user asks question - code searches it in Chroma using AzureOpenAI embeddings to transform text - In prompt for AzureOpenAI GPT there is context with info retrieved from Chroma and current chat history with Human/AI questions and answers - Also there should be a custom prompt template used - Also I want to wrap it in Flask server, so users chat history could be stored in session with username as key until it's forcibly cleared
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13195/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/13195/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13194
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13194/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13194/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13194/events
https://github.com/langchain-ai/langchain/issues/13194
1,987,527,490
I_kwDOIPDwls52d0NC
13,194
The Agent is not using Custom Tools.
{ "login": "baonhat1802", "id": 74585577, "node_id": "MDQ6VXNlcjc0NTg1NTc3", "avatar_url": "https://avatars.githubusercontent.com/u/74585577?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baonhat1802", "html_url": "https://github.com/baonhat1802", "followers_url": "https://api.github.com/users/baonhat1802/followers", "following_url": "https://api.github.com/users/baonhat1802/following{/other_user}", "gists_url": "https://api.github.com/users/baonhat1802/gists{/gist_id}", "starred_url": "https://api.github.com/users/baonhat1802/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baonhat1802/subscriptions", "organizations_url": "https://api.github.com/users/baonhat1802/orgs", "repos_url": "https://api.github.com/users/baonhat1802/repos", "events_url": "https://api.github.com/users/baonhat1802/events{/privacy}", "received_events_url": "https://api.github.com/users/baonhat1802/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
10
2023-11-10T12:23:33
2023-11-17T14:19:54
null
NONE
null
### System Info I just updated langchain to newest version and my Agent is not working anymore. Tool structure : ``` class Data_Retriever(BaseModel): db : Any class Config: extra = Extra.forbid def run(self,request) -> str: data = self.db.get(request) return data ``` When Agent uses the above tool, it will always stop at "Action Input" step : ``` > Entering new AgentExecutor chain... AI: Thought: Do I need to use a tool? Yes Action: Data_Retriever Action Input: DATA > Finished chain. ``` Does anyone know how to fix this ? I'm using langchain==0.0.332 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```from langchain.tools import BaseTool, StructuredTool, Tool, tool from langchain.agents import AgentType, initialize_agent,load_tools tools = [ Tool( name="Music Search", func=lambda x: "'All I Want For Christmas Is You' by Mariah Carey.", # Mock Function description="A Music search engine. Use this more than the normal search if the question is about Music, like 'who is the singer of yesterday?' or 'what is the most popular song in 2022?'", ), ] agent = initialize_agent( agent=AgentType.CONVERSATIONAL_REACT_DESCRIPTION, tools=tools, llm=llm, verbose=True) agent.run(input = "Random song") ``` ### Expected behavior The output should be All I Want For Christmas Is You' by Mariah Carey. My agent stopped once it hit the action input step. > Entering new AgentExecutor chain... AI: Thought: Do I need to use a tool? Yes Action: Music Search Action Input: "Random song" > Finished chain.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13194/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/13194/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13193
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13193/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13193/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13193/events
https://github.com/langchain-ai/langchain/pull/13193
1,987,471,005
PR_kwDOIPDwls5fIgDz
13,193
Templates/rag lancedb
{ "login": "akashAD98", "id": 62583018, "node_id": "MDQ6VXNlcjYyNTgzMDE4", "avatar_url": "https://avatars.githubusercontent.com/u/62583018?v=4", "gravatar_id": "", "url": "https://api.github.com/users/akashAD98", "html_url": "https://github.com/akashAD98", "followers_url": "https://api.github.com/users/akashAD98/followers", "following_url": "https://api.github.com/users/akashAD98/following{/other_user}", "gists_url": "https://api.github.com/users/akashAD98/gists{/gist_id}", "starred_url": "https://api.github.com/users/akashAD98/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/akashAD98/subscriptions", "organizations_url": "https://api.github.com/users/akashAD98/orgs", "repos_url": "https://api.github.com/users/akashAD98/repos", "events_url": "https://api.github.com/users/akashAD98/events{/privacy}", "received_events_url": "https://api.github.com/users/akashAD98/received_events", "type": "User", "site_admin": false }
[ { "id": 5496111774, "node_id": "LA_kwDOIPDwls8AAAABR5gCng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work", "name": "needs work", "color": "F9D0C4", "default": false, "description": "PRs that need more work" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" } ]
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
9
2023-11-10T11:45:58
2024-01-17T13:29:53
2023-11-11T00:50:20
NONE
null
added template code for lancedb
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13193/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/13193/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13193", "html_url": "https://github.com/langchain-ai/langchain/pull/13193", "diff_url": "https://github.com/langchain-ai/langchain/pull/13193.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13193.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13192
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13192/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13192/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13192/events
https://github.com/langchain-ai/langchain/issues/13192
1,987,429,747
I_kwDOIPDwls52dcVz
13,192
Issue: <Please write a comprehensive title after the 'Issue: ' prefix>
{ "login": "4entertainment", "id": 58992739, "node_id": "MDQ6VXNlcjU4OTkyNzM5", "avatar_url": "https://avatars.githubusercontent.com/u/58992739?v=4", "gravatar_id": "", "url": "https://api.github.com/users/4entertainment", "html_url": "https://github.com/4entertainment", "followers_url": "https://api.github.com/users/4entertainment/followers", "following_url": "https://api.github.com/users/4entertainment/following{/other_user}", "gists_url": "https://api.github.com/users/4entertainment/gists{/gist_id}", "starred_url": "https://api.github.com/users/4entertainment/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/4entertainment/subscriptions", "organizations_url": "https://api.github.com/users/4entertainment/orgs", "repos_url": "https://api.github.com/users/4entertainment/repos", "events_url": "https://api.github.com/users/4entertainment/events{/privacy}", "received_events_url": "https://api.github.com/users/4entertainment/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": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
open
false
null
[]
null
3
2023-11-10T11:17:39
2023-11-15T07:52:51
null
NONE
null
### Issue you'd like to raise. _No response_ ### Suggestion: my code: ``` # import from langchain.embeddings.sentence_transformer import SentenceTransformerEmbeddings from langchain.text_splitter import CharacterTextSplitter from langchain.vectorstores import Chroma from langchain.document_loaders import TextLoader from silly import no_ssl_verification from langchain.embeddings.huggingface import HuggingFaceEmbeddings with no_ssl_verification(): # load the document and split it into chunks loader = TextLoader("nazim.txt") documents = loader.load() # split it into chunks text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) docs = text_splitter.split_documents(documents) # create the open-source embedding function embedding_function = SentenceTransformerEmbeddings(model_name="all-MiniLM-L6-v2") # hfemb = HuggingFaceEmbeddings() # load it into Chroma db = Chroma.from_documents(docs, embedding_function) # query it query = "When was Nâzım Hikmet entered the Naval School?" docs = db.similarity_search(query) # print results print(docs[0].page_content) ``` my nazim.txt: ``` Nâzım Hikmet was born on 21 November 1901 in Salonica, but his birth was certified as 15 January 1902 in order to prevent his age appearing older by a year older on account of 40 days. He died on 3 June 1963 in Moscow. His paternal grandfather Nâzım Pasha the governor was a liberal and a poet. He belonged to Mevlevi Mysticism. He was a close friend to Mithat Pasha. His father, Hikmet was graduated from Mekteb-i Sultani (later the Galatasaray Lycée). He firstly dealt with trade but when he had been unsuccessful in that area, he became a civil servant at the Ministry of Foreign Affairs (Kalem-i Ecnebiye). His mother was the daughter of Enver Pasha who was a linguist and an educator. Celile Hanım spoke French, played the piano and painted pictures as well as an artist. His family environment, with its progressive thoughts, had tremendous effect on the education of Nâzım Hikmet. He was first trained at a school where the language of instruction was French and later attended the Numune Mektep (Taş Mektep) in Göztepe in Istanbul. After graduating primary school, he attended the prep class of the Mekteb-i Sultani with his friend, Vâlâ Nurettin. The year after, because of the financial strait in which his family found themselves, he changed his school to the Nişantaşı Junior High School. In this period, with the influence of his grandfather, he started to write poetry. During a family meeting, Cemal Pasha, the Minister of the Navy, evinced to very much moved when Nâzım Hikmet read a heroic poem he had written about sailors. Cemal Pasha offered to send him to the Heybeliada Naval School and after the acceptance of the offer by the family, he helped Nâzım enter this school. Nâzım Hikmet entered the Naval School in 1917 and graduated thence in 1919 and started to work as intern deck officer on the Hamidiye Cruiser. But in winter of the same year his pleurisy illness repeated. After a medical treatment period of nearly two months, during which he was under control of the head doctor of the Navy Hospital, Hakkı Şinasi Pasha, he was given permission to go home for two months. But he did not recover enough to return to work as a navy officer. By a Health Council Report he was discharged as unfit for duty in May 1920. At this time, he was going to be known among Syllabist Poets as a young voice. Nâzım Hikmet admired Yahya Kemal who was his history and literature teacher and also his family friend, and showed him his poems for his critique. In 1920, the Alemdar Newspaper organised a contest where the jury consisted of famous poets. Nâzım was elected recipient of the award. Young masters, such as Faruk Nafiz, Yusuf Ziya, Orhan Seyfi talked about him with great admiration. Istanbul had been under occupation and Nâzım Hikmet was writing resistance poems reflecting the ebullient patriotism. In the last days of 1920 the poem "Gençlik" (Youth) called the young generation to fight for the liberation of the country. On 1 January 1921, with the help of illegal organisation which provided weapons to Mustafa Kemal, four poets (Faruk Nafiz,Yusuf Ziya, Nâzım Hikmet and Vâlâ Nurettin) secretly got on the Yeni Dünya (New World) Ship in Sirkeci. In order to gain passage to Ankara, one had to wait nearly 5 or 6 days at Inebolu. The passage was granted only to Nâzım Hikmet and Vâlâ Nurettin by Ankara. During the days in Inebolu, they met young students coming from Germany who were waiting for permission to go to Ankara, like them. Among them there were Sadık Ahi ( later Mehmet Eti- Parliamentary of CHP),Vehbi(Prof. Vehbi Sarıdal) Nafi Atuf(Kansu-General Secretary of CHP). These were called as Spartans and they defended socialism and praised SSCB that was the first country which accepted Turkey's National Pact (Misak-ı Milli) Borders. These ideas were new for Nâzım and his friend Vâlâ Nureddin. When they reached Ankara the first duty given to them was to write a poem to summon the youth of Istanbul to the national Struggle. They finished this three-page poem within three days. It was published by the Matbuat Müdürlüğü (Directory of Press) in four pages in 11.5 x 18 cm. format and served out in ten-thousand copies in March 1921. The impact of the poem was so great that the members of the National Assembly started to argue how to resolve the enthusiastic upheaval which was caused by the poem. Muhittin Birgen, the Director of Press, was criticised in the negative because of publishing and serving out of the poem. It would have been a great problem to find jobs if the youth of Istanbul had come to Ankara. Discomforted by having been compelled to report to the National Assembly on the matter, Muhittin Birgen decided to transfer Nâzım Hikmet and Vâlâ Nureddin to the auspices of the Ministry of Education. At this time, İsmail Fazıl Pasha, one of the relatives of Celile Hanım, summoned to the Assembly these two talented poets whose poem had caused such a stir, and introduced them to Mustafa Kemal Pasha. ``` QUESTİON: My output should be one line and correct answer according to question "Nâzım Hikmet entered the Naval School in 1917". What should i change in my code?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13192/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/13192/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13191
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13191/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13191/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13191/events
https://github.com/langchain-ai/langchain/issues/13191
1,987,380,190
I_kwDOIPDwls52dQPe
13,191
langchain & chroma - Basic Example
{ "login": "4entertainment", "id": 58992739, "node_id": "MDQ6VXNlcjU4OTkyNzM5", "avatar_url": "https://avatars.githubusercontent.com/u/58992739?v=4", "gravatar_id": "", "url": "https://api.github.com/users/4entertainment", "html_url": "https://github.com/4entertainment", "followers_url": "https://api.github.com/users/4entertainment/followers", "following_url": "https://api.github.com/users/4entertainment/following{/other_user}", "gists_url": "https://api.github.com/users/4entertainment/gists{/gist_id}", "starred_url": "https://api.github.com/users/4entertainment/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/4entertainment/subscriptions", "organizations_url": "https://api.github.com/users/4entertainment/orgs", "repos_url": "https://api.github.com/users/4entertainment/repos", "events_url": "https://api.github.com/users/4entertainment/events{/privacy}", "received_events_url": "https://api.github.com/users/4entertainment/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": 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": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
open
false
null
[]
null
2
2023-11-10T10:46:38
2023-11-10T10:53:55
null
NONE
null
### Issue you'd like to raise. _No response_ ### Suggestion: ``` # import from langchain.embeddings.sentence_transformer import SentenceTransformerEmbeddings from langchain.text_splitter import CharacterTextSplitter from langchain.vectorstores import Chroma from langchain.document_loaders import TextLoader from silly import no_ssl_verification from langchain.embeddings.huggingface import HuggingFaceEmbeddings with no_ssl_verification(): # load the document and split it into chunks loader = TextLoader("state_of_the_union.txt") documents = loader.load() # split it into chunks text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) docs = text_splitter.split_documents(documents) # create the open-source embedding function embedding_function = SentenceTransformerEmbeddings(model_name="all-MiniLM-L6-v2") # hfemb = HuggingFaceEmbeddings() # load it into Chroma db = Chroma.from_documents(docs, embedding_function) # query it query = "What did the president say about Ketanji Brown Jackson" docs = db.similarity_search(query) # print results print(docs[0].page_content) ``` i use this code but i get the following error: ValueError: Expected EmbeddingFunction.__call__ to have the following signature: odict_keys(['self', 'input']), got odict_keys(['self', 'args', 'kwargs']) Please see https://docs.trychroma.com/embeddings for details of the EmbeddingFunction interface. Please note the recent change to the EmbeddingFunction interface: https://docs.trychroma.com/migration#migration-to-0416---november-7-2023 can you give me fixed code and explain?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13191/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/13191/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13190
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13190/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13190/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13190/events
https://github.com/langchain-ai/langchain/pull/13190
1,987,369,601
PR_kwDOIPDwls5fIJ1M
13,190
Add a Wrapper vectorstore, compatible with SelfQueryRetriever
{ "login": "pprados", "id": 204694, "node_id": "MDQ6VXNlcjIwNDY5NA==", "avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pprados", "html_url": "https://github.com/pprados", "followers_url": "https://api.github.com/users/pprados/followers", "following_url": "https://api.github.com/users/pprados/following{/other_user}", "gists_url": "https://api.github.com/users/pprados/gists{/gist_id}", "starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pprados/subscriptions", "organizations_url": "https://api.github.com/users/pprados/orgs", "repos_url": "https://api.github.com/users/pprados/repos", "events_url": "https://api.github.com/users/pprados/events{/privacy}", "received_events_url": "https://api.github.com/users/pprados/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": 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-10T10:39:45
2023-12-01T13:45:35
2023-11-27T09:44:58
CONTRIBUTOR
null
**Description:** The [`SelfQueryRetriever`](https://python.langchain.com/docs/modules/data_connection/retrievers/self_query/) component is able to convert filter clauses for different vectorstore implementations. If we wish to offer advanced use of vectorstore, by modifying for example certain methods, via a wrapper type approach, we lose the ability to use `SelfQueryRetriever`. We propose to standardize vectorstore wrapper exploitation, to allow flexible integration with `SelfQueryRetriever`. The idea is to add to `_get_builtin_translator()`, taking into account the wrapper. Thus, every vectorstore wrapper automatically benefits from the SelfQueryRetriever. This is the prelude to another full-request, which needs a vectorstore wrapper, while being compatible with `SelfQueryRetriever`. **Tag maintainer:** @baskaryan **Twitter handle:** @pprados <!-- 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/13190/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/13190/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13190", "html_url": "https://github.com/langchain-ai/langchain/pull/13190", "diff_url": "https://github.com/langchain-ai/langchain/pull/13190.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13190.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13189
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13189/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13189/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13189/events
https://github.com/langchain-ai/langchain/pull/13189
1,987,366,533
PR_kwDOIPDwls5fIJK6
13,189
Make it easier to subclass runnable binding with custom init args
{ "login": "nfcampos", "id": 56902, "node_id": "MDQ6VXNlcjU2OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nfcampos", "html_url": "https://github.com/nfcampos", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "repos_url": "https://api.github.com/users/nfcampos/repos", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-11-10T10:37:45
2023-11-11T09:01:18
2023-11-11T09:01:17
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/13189/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/13189/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13189", "html_url": "https://github.com/langchain-ai/langchain/pull/13189", "diff_url": "https://github.com/langchain-ai/langchain/pull/13189.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13189.patch", "merged_at": "2023-11-11T09:01:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/13188
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13188/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13188/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13188/events
https://github.com/langchain-ai/langchain/issues/13188
1,987,355,999
I_kwDOIPDwls52dKVf
13,188
Binding stop to a local llm does not work?
{ "login": "Leon-Sander", "id": 72946124, "node_id": "MDQ6VXNlcjcyOTQ2MTI0", "avatar_url": "https://avatars.githubusercontent.com/u/72946124?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Leon-Sander", "html_url": "https://github.com/Leon-Sander", "followers_url": "https://api.github.com/users/Leon-Sander/followers", "following_url": "https://api.github.com/users/Leon-Sander/following{/other_user}", "gists_url": "https://api.github.com/users/Leon-Sander/gists{/gist_id}", "starred_url": "https://api.github.com/users/Leon-Sander/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Leon-Sander/subscriptions", "organizations_url": "https://api.github.com/users/Leon-Sander/orgs", "repos_url": "https://api.github.com/users/Leon-Sander/repos", "events_url": "https://api.github.com/users/Leon-Sander/events{/privacy}", "received_events_url": "https://api.github.com/users/Leon-Sander/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-10T10:31:00
2023-11-10T10:59:39
null
NONE
null
### System Info newest version ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction When loading a local model it keeps hallucinating a conversation, how to make it stop at "Human:" ? In the create_llm function you see two ways I tried, giving kwars and binding, but both did not work. Is the bind specifically made for LCEL? Is there some other way to make the stopping work? ``` from langchain.llms import CTransformers from langchain.chains import LLMChain from langchain.prompts import PromptTemplate from langchain.memory import ConversationBufferMemory def create_llm(model_path='./models/mistral-7b-instruct-v0.1.Q4_K_M.gguf', model_type="mistral"): llm = CTransformers(model=model_path, model_type=model_type,kwargs={'stop': ['Human:']}) llm.bind(stop=["Human:"]) return llm def create_memory(): memory = ConversationBufferMemory(memory_key="history") return memory def create_memory_prompt(): template = """You are an AI chatbot having a conversation with a human. Answer his questions. Previous conversation: {history} Human: {human_input} AI: """ prompt = PromptTemplate(input_variables=["history", "human_input"], template=template) return prompt def create_normal_chain(llm, prompt, memory): llm_chain = LLMChain(llm=llm, prompt=prompt, memory=memory) return llm_chain chain = create_normal_chain(create_llm(), create_memory_prompt(), create_memory()) out = chain.invoke({"human_input" : "Hello"}) print(out) ``` ### Expected behavior Generation stops at "Human:".
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13188/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/13188/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13187
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13187/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13187/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13187/events
https://github.com/langchain-ai/langchain/issues/13187
1,987,302,580
I_kwDOIPDwls52c9S0
13,187
cookbook/Semi_Structured_RAG.ipynb ERROR:IndexError: list index out of range
{ "login": "pengkang1991", "id": 49478192, "node_id": "MDQ6VXNlcjQ5NDc4MTky", "avatar_url": "https://avatars.githubusercontent.com/u/49478192?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pengkang1991", "html_url": "https://github.com/pengkang1991", "followers_url": "https://api.github.com/users/pengkang1991/followers", "following_url": "https://api.github.com/users/pengkang1991/following{/other_user}", "gists_url": "https://api.github.com/users/pengkang1991/gists{/gist_id}", "starred_url": "https://api.github.com/users/pengkang1991/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pengkang1991/subscriptions", "organizations_url": "https://api.github.com/users/pengkang1991/orgs", "repos_url": "https://api.github.com/users/pengkang1991/repos", "events_url": "https://api.github.com/users/pengkang1991/events{/privacy}", "received_events_url": "https://api.github.com/users/pengkang1991/received_events", "type": "User", "site_admin": false }
[ { "id": 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
3
2023-11-10T09:59:01
2023-11-15T07:58:08
null
NONE
null
### System Info cenos7 python3.9 langchai 0.0.333 Reading error PDF file here: [llm.pdf](https://github.com/langchain-ai/langchain/files/13318006/llm.pdf) ### 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 from lxml import html from pydantic import BaseModel from typing import Any, Optional from unstructured.partition.pdf import partition_pdf from langchain.chat_models import ChatOpenAI from langchain.prompts import ChatPromptTemplate from langchain.schema.output_parser import StrOutputParser import uuid,os from langchain.vectorstores import Chroma from langchain.storage import InMemoryStore from langchain.schema.document import Document from langchain.embeddings import OpenAIEmbeddings from langchain.retrievers.multi_vector import MultiVectorRetriever os.environ["OPENAI_API_KEY"] = '' path=rf"/mnt/PD/PDF/" # Get elements raw_pdf_elements = partition_pdf( filename=path + "llm.pdf", # Unstructured first finds embedded image blocks extract_images_in_pdf=False, # Use layout model (YOLOX) to get bounding boxes (for tables) and find titles # Titles are any sub-section of the document infer_table_structure=True, # Post processing to aggregate text once we have the title chunking_strategy="by_title", # Chunking params to aggregate text blocks # Attempt to create a new chunk 3800 chars # Attempt to keep chunks > 2000 chars max_characters=4000, new_after_n_chars=3800, combine_text_under_n_chars=2000, image_output_dir_path=path, ) ### Expected behavior https://github.com/langchain-ai/langchain/blob/master/cookbook/Semi_Structured_RAG.ipynb?ref=blog.langchain.dev When testing langchain's Semi_Structured_RAG.ipynb, I tested the PDF files used. Some PDFs were read normally, but some PDFs reported errors. The error log is as follows: File "/mnt/PD/test.py", line 20, in <module> raw_pdf_elements = partition_pdf( File "/usr/local/lib/python3.9/site-packages/unstructured/documents/elements.py", line 372, in wrapper elements = func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/unstructured/file_utils/filetype.py", line 591, in wrapper elements = func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/unstructured/file_utils/filetype.py", line 546, in wrapper elements = func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/unstructured/chunking/title.py", line 297, in wrapper elements = func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/unstructured/partition/pdf.py", line 182, in partition_pdf return partition_pdf_or_image( File "/usr/local/lib/python3.9/site-packages/unstructured/partition/pdf.py", line 312, in partition_pdf_or_image _layout_elements = _partition_pdf_or_image_local( File "/usr/local/lib/python3.9/site-packages/unstructured/utils.py", line 179, in wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/unstructured/partition/pdf.py", line 413, in _partition_pdf_or_image_local final_layout = process_file_with_ocr( File "/usr/local/lib/python3.9/site-packages/unstructured/partition/ocr.py", line 170, in process_file_with_ocr raise e File "/usr/local/lib/python3.9/site-packages/unstructured/partition/ocr.py", line 159, in process_file_with_ocr merged_page_layout = supplement_page_layout_with_ocr( File "/usr/local/lib/python3.9/site-packages/unstructured/partition/ocr.py", line 238, in supplement_page_layout_with_ocr page_layout.elements[:] = supplement_element_with_table_extraction( File "/usr/local/lib/python3.9/site-packages/unstructured/partition/ocr.py", line 274, in supplement_element_with_table_extraction element.text_as_html = table_agent.predict(cropped_image, ocr_tokens=table_tokens) File "/usr/local/lib/python3.9/site-packages/unstructured_inference/models/tables.py", line 54, in predict return self.run_prediction(x, ocr_tokens=ocr_tokens) File "/usr/local/lib/python3.9/site-packages/unstructured_inference/models/tables.py", line 191, in run_prediction prediction = recognize(outputs_structure, x, tokens=ocr_tokens)[0] IndexError: list index out of range
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13187/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/13187/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13186
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13186/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13186/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13186/events
https://github.com/langchain-ai/langchain/issues/13186
1,987,293,567
I_kwDOIPDwls52c7F_
13,186
QAGenerationChain output in different languages
{ "login": "Gaia-Wu", "id": 94101986, "node_id": "U_kgDOBZvh4g", "avatar_url": "https://avatars.githubusercontent.com/u/94101986?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Gaia-Wu", "html_url": "https://github.com/Gaia-Wu", "followers_url": "https://api.github.com/users/Gaia-Wu/followers", "following_url": "https://api.github.com/users/Gaia-Wu/following{/other_user}", "gists_url": "https://api.github.com/users/Gaia-Wu/gists{/gist_id}", "starred_url": "https://api.github.com/users/Gaia-Wu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Gaia-Wu/subscriptions", "organizations_url": "https://api.github.com/users/Gaia-Wu/orgs", "repos_url": "https://api.github.com/users/Gaia-Wu/repos", "events_url": "https://api.github.com/users/Gaia-Wu/events{/privacy}", "received_events_url": "https://api.github.com/users/Gaia-Wu/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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
2
2023-11-10T09:53:25
2023-11-10T10:00:53
null
NONE
null
### Issue you'd like to raise. **My code:** loader_pdf = PyMuPDFLoader("/Users/python/test_pdf.pdf") doc_pdf = loader_pdf.load() llm = ChatOpenAI(temperature=0) chain = QAGenerationChain.from_llm(llm=llm) print("pdf:\n",doc_pdf[3].page_content) qa_pdf = chain.run(doc_pdf[3].page_content) ![image](https://github.com/langchain-ai/langchain/assets/94101986/03b32f31-58cb-43cf-a9de-656605775de4) The PDF I am using is a Chinese data file,but the output is in English. There are no relevant records in the document. I would like to know how to solve this problem or can I set a Prompt to solve it? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13186/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/13186/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13185
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13185/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13185/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13185/events
https://github.com/langchain-ai/langchain/issues/13185
1,987,257,994
I_kwDOIPDwls52cyaK
13,185
Setting a custom http_client fails with pydantic ConfigError
{ "login": "daichi-m", "id": 7357338, "node_id": "MDQ6VXNlcjczNTczMzg=", "avatar_url": "https://avatars.githubusercontent.com/u/7357338?v=4", "gravatar_id": "", "url": "https://api.github.com/users/daichi-m", "html_url": "https://github.com/daichi-m", "followers_url": "https://api.github.com/users/daichi-m/followers", "following_url": "https://api.github.com/users/daichi-m/following{/other_user}", "gists_url": "https://api.github.com/users/daichi-m/gists{/gist_id}", "starred_url": "https://api.github.com/users/daichi-m/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/daichi-m/subscriptions", "organizations_url": "https://api.github.com/users/daichi-m/orgs", "repos_url": "https://api.github.com/users/daichi-m/repos", "events_url": "https://api.github.com/users/daichi-m/events{/privacy}", "received_events_url": "https://api.github.com/users/daichi-m/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
5
2023-11-10T09:36:13
2023-11-27T18:50:16
2023-11-27T18:50:15
NONE
null
### System Info <pre> platform = macOS-10.16-x86_64-i386-64bit version = 3.10.13 (main, Sep 11 2023, 08:39:02) [Clang 14.0.6 ] langchain.version = 0.0.332 pydantic.version = 1.10.13 openai.version = 1.2.0 </pre> ### Who can help? @eyurtsev ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I'm trying to initialize an instance of AzureChatOpenAI with a custom http_client. Following is the code I'm using - <pre> from langchain.chat_models import AzureChatOpenAI from langchain.schema import HumanMessage, SystemMessage import httpx messages = [ SystemMessage(content="You are a helpful assistant that translates English to Spanish"), HumanMessage(content="Good morning Vietnam!") ] client = httpx.Client() chat = AzureChatOpenAI( openai_api_key="my-secret-key", openai_api_version="2023-07-01-preview", model="gpt-4", deployment_name="my-deployment-name", azure_endpoint="https://my-instance.openai.azure.com", http_client=client ) # AzureChatOpenAI.update_forward_refs() chat(messages) </pre> This fails with the following pydantic config error: <pre> Traceback (most recent call last): File "azure-custom.py", line 24, in <module> chat = AzureChatOpenAI( File "langchain-env/lib/python3.10/site-packages/langchain/load/serializable.py", line 97, in __init__ super().__init__(**kwargs) File "pydantic/main.py", line 339, in pydantic.main.BaseModel.__init__ File "pydantic/main.py", line 1076, in pydantic.main.validate_model File "pydantic/fields.py", line 860, in pydantic.fields.ModelField.validate pydantic.errors.ConfigError: field "http_client" not yet prepared so type is still a ForwardRef, you might need to call AzureChatOpenAI.update_forward_refs(). </pre> ### Expected behavior As per the [ChatOpenAI API Doc](https://api.python.langchain.com/en/latest/chat_models/langchain.chat_models.openai.ChatOpenAI.html), `http_client` seems to be a valid parameter to set in order to customize the httpx client in the background. But I'm unable to do that customization. Adding `AzureChatOpenAI.update_forward_refs()` also does not solve this issue - the code raises the error even before hitting that line.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13185/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/13185/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13184
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13184/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13184/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13184/events
https://github.com/langchain-ai/langchain/pull/13184
1,987,247,637
PR_kwDOIPDwls5fHvC5
13,184
Remove `_get_kwarg_value` function
{ "login": "Guillem96", "id": 21279306, "node_id": "MDQ6VXNlcjIxMjc5MzA2", "avatar_url": "https://avatars.githubusercontent.com/u/21279306?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Guillem96", "html_url": "https://github.com/Guillem96", "followers_url": "https://api.github.com/users/Guillem96/followers", "following_url": "https://api.github.com/users/Guillem96/following{/other_user}", "gists_url": "https://api.github.com/users/Guillem96/gists{/gist_id}", "starred_url": "https://api.github.com/users/Guillem96/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Guillem96/subscriptions", "organizations_url": "https://api.github.com/users/Guillem96/orgs", "repos_url": "https://api.github.com/users/Guillem96/repos", "events_url": "https://api.github.com/users/Guillem96/events{/privacy}", "received_events_url": "https://api.github.com/users/Guillem96/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": 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" } ]
closed
false
null
[]
null
1
2023-11-10T09:29:31
2023-11-13T08:21:49
2023-11-13T08:09:54
CONTRIBUTOR
null
`_get_kwarg_value` function is useless, one can rely on python builtin functionalities to do the exact same thing. - **Description:** Removed `_get_kwarg_value`. Helps with code readability. - **Issue:** the issue # it fixes (if applicable), - **Twitter handle:** @Guillem_96
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13184/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/13184/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13184", "html_url": "https://github.com/langchain-ai/langchain/pull/13184", "diff_url": "https://github.com/langchain-ai/langchain/pull/13184.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13184.patch", "merged_at": "2023-11-13T08:09:54" }
https://api.github.com/repos/langchain-ai/langchain/issues/13183
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13183/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13183/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13183/events
https://github.com/langchain-ai/langchain/pull/13183
1,987,237,194
PR_kwDOIPDwls5fHsyC
13,183
docugami cookbook
{ "login": "tjaffri", "id": 749277, "node_id": "MDQ6VXNlcjc0OTI3Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/749277?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tjaffri", "html_url": "https://github.com/tjaffri", "followers_url": "https://api.github.com/users/tjaffri/followers", "following_url": "https://api.github.com/users/tjaffri/following{/other_user}", "gists_url": "https://api.github.com/users/tjaffri/gists{/gist_id}", "starred_url": "https://api.github.com/users/tjaffri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tjaffri/subscriptions", "organizations_url": "https://api.github.com/users/tjaffri/orgs", "repos_url": "https://api.github.com/users/tjaffri/repos", "events_url": "https://api.github.com/users/tjaffri/events{/privacy}", "received_events_url": "https://api.github.com/users/tjaffri/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-10T09:22:54
2023-11-21T20:02:21
2023-11-21T20:02:21
CONTRIBUTOR
null
Adds a cookbook for semi-structured RAG via Docugami. This follows the same outline as the semi-structured RAG with Unstructured cookbook: https://github.com/langchain-ai/langchain/blob/master/cookbook/Semi_Structured_RAG.ipynb The main change is this cookbook uses Docugami instead of Unstructured to find text and tables, and shows how XML markup in the output helps with retrieval and generation. We are \@docugami on twitter, I am \@tjaffri
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13183/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/13183/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13183", "html_url": "https://github.com/langchain-ai/langchain/pull/13183", "diff_url": "https://github.com/langchain-ai/langchain/pull/13183.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13183.patch", "merged_at": "2023-11-21T20:02:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/13182
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13182/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13182/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13182/events
https://github.com/langchain-ai/langchain/pull/13182
1,987,226,817
PR_kwDOIPDwls5fHqiW
13,182
Llamacppserver client
{ "login": "emanuel248", "id": 212037, "node_id": "MDQ6VXNlcjIxMjAzNw==", "avatar_url": "https://avatars.githubusercontent.com/u/212037?v=4", "gravatar_id": "", "url": "https://api.github.com/users/emanuel248", "html_url": "https://github.com/emanuel248", "followers_url": "https://api.github.com/users/emanuel248/followers", "following_url": "https://api.github.com/users/emanuel248/following{/other_user}", "gists_url": "https://api.github.com/users/emanuel248/gists{/gist_id}", "starred_url": "https://api.github.com/users/emanuel248/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/emanuel248/subscriptions", "organizations_url": "https://api.github.com/users/emanuel248/orgs", "repos_url": "https://api.github.com/users/emanuel248/repos", "events_url": "https://api.github.com/users/emanuel248/events{/privacy}", "received_events_url": "https://api.github.com/users/emanuel248/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
1
2023-11-10T09:16:38
2023-12-05T04:15:16
null
NONE
null
- **Description:** a client for the llama.cpp native server - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** emanuel248 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/13182/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/13182/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13182", "html_url": "https://github.com/langchain-ai/langchain/pull/13182", "diff_url": "https://github.com/langchain-ai/langchain/pull/13182.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13182.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13181
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13181/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13181/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13181/events
https://github.com/langchain-ai/langchain/pull/13181
1,987,207,110
PR_kwDOIPDwls5fHmQd
13,181
Add SQLDocStore
{ "login": "pprados", "id": 204694, "node_id": "MDQ6VXNlcjIwNDY5NA==", "avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pprados", "html_url": "https://github.com/pprados", "followers_url": "https://api.github.com/users/pprados/followers", "following_url": "https://api.github.com/users/pprados/following{/other_user}", "gists_url": "https://api.github.com/users/pprados/gists{/gist_id}", "starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pprados/subscriptions", "organizations_url": "https://api.github.com/users/pprados/orgs", "repos_url": "https://api.github.com/users/pprados/repos", "events_url": "https://api.github.com/users/pprados/events{/privacy}", "received_events_url": "https://api.github.com/users/pprados/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
1
2023-11-10T09:04:19
2023-11-27T09:26:14
null
CONTRIBUTOR
null
**Description:** langchain offers three technologies to save data: - [vectorstore](https://python.langchain.com/docs/modules/data_connection/vectorstores/) - [docstore](https://js.langchain.com/docs/api/schema/classes/Docstore) - [record manager](https://python.langchain.com/docs/modules/data_connection/indexing) If you want to combine these technologies in a single transaction, to guarantee the consistency of all backups, you need a common implementation for each. This allows, for example, to combine the RecordManager with a vector store using an SQL database. But, there is no SQL docstore. **Tag maintainer:** @baskaryan **Twitter handle:** @pprados
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13181/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/13181/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13181", "html_url": "https://github.com/langchain-ai/langchain/pull/13181", "diff_url": "https://github.com/langchain-ai/langchain/pull/13181.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13181.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13180
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13180/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13180/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13180/events
https://github.com/langchain-ai/langchain/issues/13180
1,987,191,884
I_kwDOIPDwls52ciRM
13,180
DOC: Setting proxy for the whole langchain library, especially web_research_retriever
{ "login": "shadow66603", "id": 10726395, "node_id": "MDQ6VXNlcjEwNzI2Mzk1", "avatar_url": "https://avatars.githubusercontent.com/u/10726395?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shadow66603", "html_url": "https://github.com/shadow66603", "followers_url": "https://api.github.com/users/shadow66603/followers", "following_url": "https://api.github.com/users/shadow66603/following{/other_user}", "gists_url": "https://api.github.com/users/shadow66603/gists{/gist_id}", "starred_url": "https://api.github.com/users/shadow66603/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shadow66603/subscriptions", "organizations_url": "https://api.github.com/users/shadow66603/orgs", "repos_url": "https://api.github.com/users/shadow66603/repos", "events_url": "https://api.github.com/users/shadow66603/events{/privacy}", "received_events_url": "https://api.github.com/users/shadow66603/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
open
false
null
[]
null
3
2023-11-10T08:54:16
2023-11-10T10:37:03
null
NONE
null
### Issue with current documentation: Hello guys, I have to use a proxy to access Azure OpenAi because I'm using a VPN for my company. However when I try to use the [](https://python.langchain.com/docs/modules/data_connection/retrievers/web_research) , I block at fetching the pages because the code inside the langchain library does not use the proxy. So I managed to make it work for GoogleSearchAPIWrapper by setting it in the os.environ but it does not work for the inside request and html_load call in the langchain library. ![bugwebresearch](https://github.com/langchain-ai/langchain/assets/10726395/0db2de66-9cab-4710-a58b-3e4af721848b) ### Idea or request for content: So I would like to have a proxy parameter when I set up a web_research_retriever = WebResearchRetriever.from_llm( vectorstore=vectorstore, llm=llm, search=search ) Or any other tips that can help me to dodge this proxy issue. Thanks in advance
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13180/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/13180/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13179
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13179/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13179/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13179/events
https://github.com/langchain-ai/langchain/issues/13179
1,987,177,608
I_kwDOIPDwls52ceyI
13,179
Document retriever from Knowledge-graph based source
{ "login": "msteiner-google", "id": 78201126, "node_id": "MDQ6VXNlcjc4MjAxMTI2", "avatar_url": "https://avatars.githubusercontent.com/u/78201126?v=4", "gravatar_id": "", "url": "https://api.github.com/users/msteiner-google", "html_url": "https://github.com/msteiner-google", "followers_url": "https://api.github.com/users/msteiner-google/followers", "following_url": "https://api.github.com/users/msteiner-google/following{/other_user}", "gists_url": "https://api.github.com/users/msteiner-google/gists{/gist_id}", "starred_url": "https://api.github.com/users/msteiner-google/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/msteiner-google/subscriptions", "organizations_url": "https://api.github.com/users/msteiner-google/orgs", "repos_url": "https://api.github.com/users/msteiner-google/repos", "events_url": "https://api.github.com/users/msteiner-google/events{/privacy}", "received_events_url": "https://api.github.com/users/msteiner-google/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": 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
1
2023-11-10T08:44:39
2023-11-13T09:08:19
2023-11-13T09:08:18
NONE
null
### Feature request As the title suggests, there is currently no built-in method to retrieve chunks linked through edges in graph-based structures. This is especially relevant in cases where documents are not self-contained and chunks reference other chunks, either within the same document or in other documents. These "children" chunks are often necessary to properly answer user queries. Specifically, I would like to have the ability to perform the following within the same chain: ``` 1. Get the user query 2. Embed it 3. Perform approximate nearest neighbor (ANN) lookup and retrieve the most relevant chunk 4. Given the ID of the chunk, expand the set of matches by navigating the graph 5. Retrieve all of these to provide to the Large Language Model (LLM) 6. Send everything to the LLM to answer the user query ``` To further contextualize my suggestion, I have been considering the following approach to begin with: ```python import networkx as nx GraphType = Union[nx.DiGraph, nx.Graph] class NXInMemoryGraphRetriever(BaseRetriever): def __init__( self, bootstrap_retriever: BaseRetriever, graph: GraphType, navigate_graph_function: Callable[[GraphType, str], List[Document]], ): self._graph = graph self._navigate_graph_fn = navigate_graph_function ... def get_relevant_documents( self, query: str, *, callbacks: Optional[List[Callable]] = None, tags: Optional[List[str]] = None, metadata: Optional[Dict[str, Any]] = None, run_name: Optional[str] = None, **kwargs: Any, ) -> List[Document]: base_documents = self.bootstrap_retriever.get_relevant_documents(...) expanded_set_of_docs = set(base_documents) for document in base_documents: expanded_set_of_docs.update( self.navigate_graph_function(self.graph, document.metadata["id"]) ) ... return list(expanded_set_of_documents) # Example of callable function to pass def get_everything_one_hop_away(graph: GraphType, source_doc_id: str) -> List[Documents]: related_docs = [] for source_doc, related_doc in nx.dfs_edges( graph, source=source_doc_id, depth_limit=1 ): related_docs.add(Document(...)) # From the related docs id. return related_docs ``` Additionally, expanding this to support Neo4J or similar should be rather straightforward. Don't pass the graph but the DB driver and the `navigate_graph_function` with a cypher query string/literal. ### Motivation Use langchain to navigate graph related datasets easily. ### Your contribution Happy to send a PR your way :)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13179/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/13179/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13178
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13178/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13178/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13178/events
https://github.com/langchain-ai/langchain/pull/13178
1,987,161,235
PR_kwDOIPDwls5fHcaS
13,178
Typo fix to quickstart.mdx
{ "login": "marioangst", "id": 19803038, "node_id": "MDQ6VXNlcjE5ODAzMDM4", "avatar_url": "https://avatars.githubusercontent.com/u/19803038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/marioangst", "html_url": "https://github.com/marioangst", "followers_url": "https://api.github.com/users/marioangst/followers", "following_url": "https://api.github.com/users/marioangst/following{/other_user}", "gists_url": "https://api.github.com/users/marioangst/gists{/gist_id}", "starred_url": "https://api.github.com/users/marioangst/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/marioangst/subscriptions", "organizations_url": "https://api.github.com/users/marioangst/orgs", "repos_url": "https://api.github.com/users/marioangst/repos", "events_url": "https://api.github.com/users/marioangst/events{/privacy}", "received_events_url": "https://api.github.com/users/marioangst/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" } ]
closed
false
null
[]
null
1
2023-11-10T08:33:09
2023-11-13T08:02:18
2023-11-13T08:02:18
CONTRIBUTOR
null
- **Description:** I fixed a very small typo in the quickstart docs (BaeMessage -> BaseMessage)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13178/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/13178/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13178", "html_url": "https://github.com/langchain-ai/langchain/pull/13178", "diff_url": "https://github.com/langchain-ai/langchain/pull/13178.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13178.patch", "merged_at": "2023-11-13T08:02:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/13177
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13177/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13177/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13177/events
https://github.com/langchain-ai/langchain/issues/13177
1,987,156,699
I_kwDOIPDwls52cZrb
13,177
Support OpenAI seed for deterministic outputs
{ "login": "chris-boson", "id": 6893229, "node_id": "MDQ6VXNlcjY4OTMyMjk=", "avatar_url": "https://avatars.githubusercontent.com/u/6893229?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chris-boson", "html_url": "https://github.com/chris-boson", "followers_url": "https://api.github.com/users/chris-boson/followers", "following_url": "https://api.github.com/users/chris-boson/following{/other_user}", "gists_url": "https://api.github.com/users/chris-boson/gists{/gist_id}", "starred_url": "https://api.github.com/users/chris-boson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chris-boson/subscriptions", "organizations_url": "https://api.github.com/users/chris-boson/orgs", "repos_url": "https://api.github.com/users/chris-boson/repos", "events_url": "https://api.github.com/users/chris-boson/events{/privacy}", "received_events_url": "https://api.github.com/users/chris-boson/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
5
2023-11-10T08:29:51
2023-12-08T22:26:31
null
NONE
null
### Feature request Support OpenAI seed and fingerprint parameters to get more consistent outputs for the same inputs and model version. https://cookbook.openai.com/examples/deterministic_outputs_with_the_seed_parameter#seed https://platform.openai.com/docs/api-reference/chat/create#chat-create-seed ### Motivation Running unit tests that are dependent on LLM responses often leads to random flakiness. ### Your contribution PR
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13177/reactions", "total_count": 10, "+1": 10, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/13177/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13176
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13176/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13176/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13176/events
https://github.com/langchain-ai/langchain/issues/13176
1,987,140,842
I_kwDOIPDwls52cVzq
13,176
Simple Retrieval QA Example
{ "login": "4entertainment", "id": 58992739, "node_id": "MDQ6VXNlcjU4OTkyNzM5", "avatar_url": "https://avatars.githubusercontent.com/u/58992739?v=4", "gravatar_id": "", "url": "https://api.github.com/users/4entertainment", "html_url": "https://github.com/4entertainment", "followers_url": "https://api.github.com/users/4entertainment/followers", "following_url": "https://api.github.com/users/4entertainment/following{/other_user}", "gists_url": "https://api.github.com/users/4entertainment/gists{/gist_id}", "starred_url": "https://api.github.com/users/4entertainment/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/4entertainment/subscriptions", "organizations_url": "https://api.github.com/users/4entertainment/orgs", "repos_url": "https://api.github.com/users/4entertainment/repos", "events_url": "https://api.github.com/users/4entertainment/events{/privacy}", "received_events_url": "https://api.github.com/users/4entertainment/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": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
open
false
null
[]
null
4
2023-11-10T08:20:00
2023-11-10T10:45:56
null
NONE
null
### Issue you'd like to raise. ` # Import necessary libraries from llama_index import ( LangchainEmbedding, ) from langchain.embeddings.huggingface import HuggingFaceEmbeddings from llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext from llama_index.vector_stores import ChromaVectorStore from llama_index.storage.storage_context import StorageContext import chromadb # Create client and a new collection chroma_client = chromadb.EphemeralClient() chroma_collection = chroma_client.create_collection("quickstart") hfemb = HuggingFaceEmbeddings() embed_model = LangchainEmbedding(hfemb) documents = SimpleDirectoryReader("./docs/examples/data/paul_graham").load_data() # Set up ChromaVectorStore and load in data vector_store = ChromaVectorStore(chroma_collection=chroma_collection) storage_context = StorageContext.from_defaults(vector_store=vector_store) service_context = ServiceContext.from_defaults(llm=None, embed_model=embed_model) index = VectorStoreIndex.from_documents( documents, storage_context=storage_context, service_context=service_context, show_progress=True ) # Query Data query_engine = index.as_query_engine() response = query_engine.query("What did the author do growing up?") print(response) ` I used this code with llama-index retrieval mechanism for question&answer with documents. How can i write this code's LangChain form? I should'nt use model. I retrieve answer from documents. And i should use HuggingFaceEmbeddings for embedding. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13176/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/13176/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13175
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13175/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13175/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13175/events
https://github.com/langchain-ai/langchain/pull/13175
1,987,138,290
PR_kwDOIPDwls5fHXXr
13,175
Pprados/lite google drive
{ "login": "pprados", "id": 204694, "node_id": "MDQ6VXNlcjIwNDY5NA==", "avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pprados", "html_url": "https://github.com/pprados", "followers_url": "https://api.github.com/users/pprados/followers", "following_url": "https://api.github.com/users/pprados/following{/other_user}", "gists_url": "https://api.github.com/users/pprados/gists{/gist_id}", "starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pprados/subscriptions", "organizations_url": "https://api.github.com/users/pprados/orgs", "repos_url": "https://api.github.com/users/pprados/repos", "events_url": "https://api.github.com/users/pprados/events{/privacy}", "received_events_url": "https://api.github.com/users/pprados/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" } ]
closed
false
null
[]
null
1
2023-11-10T08:18:04
2023-12-05T04:31:22
2023-12-05T04:31:21
CONTRIBUTOR
null
- Fix bug in the document - Add clarification on the use of langchain-google drive.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13175/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/13175/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13175", "html_url": "https://github.com/langchain-ai/langchain/pull/13175", "diff_url": "https://github.com/langchain-ai/langchain/pull/13175.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13175.patch", "merged_at": "2023-12-05T04:31:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/13174
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13174/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13174/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13174/events
https://github.com/langchain-ai/langchain/pull/13174
1,987,024,378
PR_kwDOIPDwls5fG-gr
13,174
Add serve to quickstart
{ "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-10T06:50:05
2023-11-10T18:13:00
2023-11-10T07:10:26
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13174/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/13174/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13174", "html_url": "https://github.com/langchain-ai/langchain/pull/13174", "diff_url": "https://github.com/langchain-ai/langchain/pull/13174.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13174.patch", "merged_at": "2023-11-10T07:10:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/13173
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13173/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13173/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13173/events
https://github.com/langchain-ai/langchain/pull/13173
1,987,021,140
PR_kwDOIPDwls5fG9yP
13,173
OpenAI latest Update fixes
{ "login": "parthjain99", "id": 91812749, "node_id": "U_kgDOBXjzjQ", "avatar_url": "https://avatars.githubusercontent.com/u/91812749?v=4", "gravatar_id": "", "url": "https://api.github.com/users/parthjain99", "html_url": "https://github.com/parthjain99", "followers_url": "https://api.github.com/users/parthjain99/followers", "following_url": "https://api.github.com/users/parthjain99/following{/other_user}", "gists_url": "https://api.github.com/users/parthjain99/gists{/gist_id}", "starred_url": "https://api.github.com/users/parthjain99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/parthjain99/subscriptions", "organizations_url": "https://api.github.com/users/parthjain99/orgs", "repos_url": "https://api.github.com/users/parthjain99/repos", "events_url": "https://api.github.com/users/parthjain99/events{/privacy}", "received_events_url": "https://api.github.com/users/parthjain99/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" } ]
closed
false
null
[]
null
5
2023-11-10T06:47:53
2023-12-06T06:03:13
2023-12-05T04:15:53
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/13173/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/13173/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13173", "html_url": "https://github.com/langchain-ai/langchain/pull/13173", "diff_url": "https://github.com/langchain-ai/langchain/pull/13173.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13173.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13172
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13172/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13172/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13172/events
https://github.com/langchain-ai/langchain/issues/13172
1,987,020,797
I_kwDOIPDwls52b4f9
13,172
from langchain.indexes import VectorstoreIndexCreator report errors ""
{ "login": "serlina", "id": 6148167, "node_id": "MDQ6VXNlcjYxNDgxNjc=", "avatar_url": "https://avatars.githubusercontent.com/u/6148167?v=4", "gravatar_id": "", "url": "https://api.github.com/users/serlina", "html_url": "https://github.com/serlina", "followers_url": "https://api.github.com/users/serlina/followers", "following_url": "https://api.github.com/users/serlina/following{/other_user}", "gists_url": "https://api.github.com/users/serlina/gists{/gist_id}", "starred_url": "https://api.github.com/users/serlina/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/serlina/subscriptions", "organizations_url": "https://api.github.com/users/serlina/orgs", "repos_url": "https://api.github.com/users/serlina/repos", "events_url": "https://api.github.com/users/serlina/events{/privacy}", "received_events_url": "https://api.github.com/users/serlina/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": 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
2
2023-11-10T06:47:43
2023-11-10T06:54:24
null
NONE
null
### System Info python version: 3.11 I'm trying to run the sampe code "LangChain: Q&A over Documents", but when I run the below cell, it reports below error ``` pip install --upgrade langchain from llm_commons.langchain.btp_llm import ChatBTPOpenAI from llm_commons.langchain.btp_llm import BTPOpenAIEmbeddings from langchain.chains import RetrievalQA from langchain.document_loaders import CSVLoader from langchain.vectorstores import DocArrayInMemorySearch from IPython.display import display, Markdown file = 'OutdoorClothingCatalog_1000.csv' loader = CSVLoader(file_path=file, encoding='utf-8') from langchain.indexes import VectorstoreIndexCreator ``` ImportError Traceback (most recent call last) Cell In[4], line 1 ----> 1 from langchain.indexes import VectorstoreIndexCreator File /opt/conda/lib/python3.11/site-packages/langchain/indexes/__init__.py:17 1 """Code to support various indexing workflows. 2 3 Provides code to: (...) 14 documents that were derived from parent documents by chunking.) 15 """ 16 from langchain.indexes._api import IndexingResult, aindex, index ---> 17 from langchain.indexes._sql_record_manager import SQLRecordManager 18 from langchain.indexes.graph import GraphIndexCreator 19 from langchain.indexes.vectorstore import VectorstoreIndexCreator File /opt/conda/lib/python3.11/site-packages/langchain/indexes/_sql_record_manager.py:21 18 import uuid 19 from typing import Any, AsyncGenerator, Dict, Generator, List, Optional, Sequence, Union ---> 21 from sqlalchemy import ( 22 URL, 23 Column, 24 Engine, 25 Float, 26 Index, 27 String, 28 UniqueConstraint, 29 and_, 30 create_engine, 31 delete, 32 select, 33 text, 34 ) 35 from sqlalchemy.ext.asyncio import ( 36 AsyncEngine, 37 AsyncSession, 38 async_sessionmaker, 39 create_async_engine, 40 ) 41 from sqlalchemy.ext.declarative import declarative_base ImportError: cannot import name 'URL' from 'sqlalchemy' (/opt/conda/lib/python3.11/site-packages/sqlalchemy/__init__.py) ### 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 - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction python version: 3.11 I'm trying to run the sampe code "LangChain: Q&A over Documents", but when I run the below cell, it reports below error ``` pip install --upgrade langchain from llm_commons.langchain.btp_llm import ChatBTPOpenAI from llm_commons.langchain.btp_llm import BTPOpenAIEmbeddings from langchain.chains import RetrievalQA from langchain.document_loaders import CSVLoader from langchain.vectorstores import DocArrayInMemorySearch from IPython.display import display, Markdown file = 'OutdoorClothingCatalog_1000.csv' loader = CSVLoader(file_path=file, encoding='utf-8') from langchain.indexes import VectorstoreIndexCreator ``` ImportError Traceback (most recent call last) Cell In[4], line 1 ----> 1 from langchain.indexes import VectorstoreIndexCreator File /opt/conda/lib/python3.11/site-packages/langchain/indexes/__init__.py:17 1 """Code to support various indexing workflows. 2 3 Provides code to: (...) 14 documents that were derived from parent documents by chunking.) 15 """ 16 from langchain.indexes._api import IndexingResult, aindex, index ---> 17 from langchain.indexes._sql_record_manager import SQLRecordManager 18 from langchain.indexes.graph import GraphIndexCreator 19 from langchain.indexes.vectorstore import VectorstoreIndexCreator File /opt/conda/lib/python3.11/site-packages/langchain/indexes/_sql_record_manager.py:21 18 import uuid 19 from typing import Any, AsyncGenerator, Dict, Generator, List, Optional, Sequence, Union ---> 21 from sqlalchemy import ( 22 URL, 23 Column, 24 Engine, 25 Float, 26 Index, 27 String, 28 UniqueConstraint, 29 and_, 30 create_engine, 31 delete, 32 select, 33 text, 34 ) 35 from sqlalchemy.ext.asyncio import ( 36 AsyncEngine, 37 AsyncSession, 38 async_sessionmaker, 39 create_async_engine, 40 ) 41 from sqlalchemy.ext.declarative import declarative_base ImportError: cannot import name 'URL' from 'sqlalchemy' (/opt/conda/lib/python3.11/site-packages/sqlalchemy/__init__.py) ### Expected behavior the import should work as expected ![image](https://github.com/langchain-ai/langchain/assets/6148167/6b027323-2598-4577-af80-65e2f90cfcf6)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13172/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/13172/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13171
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13171/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13171/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13171/events
https://github.com/langchain-ai/langchain/issues/13171
1,987,009,878
I_kwDOIPDwls52b11W
13,171
Problem With OpenAI Error update
{ "login": "parthjain99", "id": 91812749, "node_id": "U_kgDOBXjzjQ", "avatar_url": "https://avatars.githubusercontent.com/u/91812749?v=4", "gravatar_id": "", "url": "https://api.github.com/users/parthjain99", "html_url": "https://github.com/parthjain99", "followers_url": "https://api.github.com/users/parthjain99/followers", "following_url": "https://api.github.com/users/parthjain99/following{/other_user}", "gists_url": "https://api.github.com/users/parthjain99/gists{/gist_id}", "starred_url": "https://api.github.com/users/parthjain99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/parthjain99/subscriptions", "organizations_url": "https://api.github.com/users/parthjain99/orgs", "repos_url": "https://api.github.com/users/parthjain99/repos", "events_url": "https://api.github.com/users/parthjain99/events{/privacy}", "received_events_url": "https://api.github.com/users/parthjain99/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-11-10T06:37:20
2023-11-11T01:12:11
null
NONE
null
### System Info langchain==0.0.333 openai == 1.2.2 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [x] My own modified scripts ### Related Components - [x] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Make a simple OpenAI call with the latest OpenAI version ### Expected behavior OpenAI in there recent changes have updated their error API so no longer it has to be referenced with OpenAI.error. The error is in this file. langchain/libs/langchain/langchain/chat_models/openai.py So the error list that is errors = [ openai.error.Timeout, openai.error.APIError, openai.error.APIConnectionError, openai.error.RateLimitError, openai.error.ServiceUnavailableError, ] should be updated to errors = [ openai.Timeout, openai.APIError, openai.APIConnectionError, openai.RateLimitError, openai.ServiceUnavailableError, ]
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13171/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/13171/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13169
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13169/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13169/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13169/events
https://github.com/langchain-ai/langchain/pull/13169
1,986,917,411
PR_kwDOIPDwls5fGnSB
13,169
Improve youtube tool prompting and arg parsing
{ "login": "zachdj", "id": 7102288, "node_id": "MDQ6VXNlcjcxMDIyODg=", "avatar_url": "https://avatars.githubusercontent.com/u/7102288?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zachdj", "html_url": "https://github.com/zachdj", "followers_url": "https://api.github.com/users/zachdj/followers", "following_url": "https://api.github.com/users/zachdj/following{/other_user}", "gists_url": "https://api.github.com/users/zachdj/gists{/gist_id}", "starred_url": "https://api.github.com/users/zachdj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zachdj/subscriptions", "organizations_url": "https://api.github.com/users/zachdj/orgs", "repos_url": "https://api.github.com/users/zachdj/repos", "events_url": "https://api.github.com/users/zachdj/events{/privacy}", "received_events_url": "https://api.github.com/users/zachdj/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
1
2023-11-10T05:15:05
2023-12-05T04:33:55
null
CONTRIBUTOR
null
**Description:** The youtube search tool does not work well with openai function calling. OpenAI infers that it should provide two arguments: `topic: str` and `num_results: int`, but the tool accepts a single argument `query: str` which it tries to parse into a topic and num_results. This is a backwards compatible fix that adds an argument `num_results: Optional[int]` to the tool while maintaining the previous parsing logic if the argument is not provided. This also improves the prompting for the tool. Previously the tool description mentioned only that you could search for a person on YouTube, when in fact the tool can be used to search for any topic. - **Issue:** N/A - **Dependencies:** N/A - **Tag maintainer:** @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13169/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/13169/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13169", "html_url": "https://github.com/langchain-ai/langchain/pull/13169", "diff_url": "https://github.com/langchain-ai/langchain/pull/13169.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13169.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13168
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13168/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13168/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13168/events
https://github.com/langchain-ai/langchain/issues/13168
1,986,880,174
I_kwDOIPDwls52bWKu
13,168
TypeError: multiple bases have instance layout conflict. DOC: <Quick start code dont work with version langchain ==0.333>
{ "login": "Nghiauet", "id": 63385521, "node_id": "MDQ6VXNlcjYzMzg1NTIx", "avatar_url": "https://avatars.githubusercontent.com/u/63385521?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Nghiauet", "html_url": "https://github.com/Nghiauet", "followers_url": "https://api.github.com/users/Nghiauet/followers", "following_url": "https://api.github.com/users/Nghiauet/following{/other_user}", "gists_url": "https://api.github.com/users/Nghiauet/gists{/gist_id}", "starred_url": "https://api.github.com/users/Nghiauet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Nghiauet/subscriptions", "organizations_url": "https://api.github.com/users/Nghiauet/orgs", "repos_url": "https://api.github.com/users/Nghiauet/repos", "events_url": "https://api.github.com/users/Nghiauet/events{/privacy}", "received_events_url": "https://api.github.com/users/Nghiauet/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" }, { "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-10T04:51:26
2023-11-11T07:50:51
2023-11-11T07:50:51
NONE
null
### Issue with current documentation: in https://python.langchain.com/docs/get_started/quickstart in the section LLM / Chat Model with the code from langchain.llms import OpenAI from langchain.chat_models import ChatOpenAI llm = OpenAI() chat_model = ChatOpenAI() # I recevce the error File [~/nghia_1660s_workspace/gates-llm-chatbots/.venv/lib/python3.10/site-packages/langchain/llms/base.py:40](https://vscode-remote+ssh-002dremote-002bnghia-002d1660s.vscode-resource.vscode-cdn.net/home/nghia_1660s/nghia_1660s_workspace/gates-llm-chatbots/learn_langchain/~/nghia_1660s_workspace/gates-llm-chatbots/.venv/lib/python3.10/site-packages/langchain/llms/base.py:40) [29](https://vscode-remote+ssh-002dremote-002bnghia-002d1660s.vscode-resource.vscode-cdn.net/home/nghia_1660s/nghia_1660s_workspace/gates-llm-chatbots/learn_langchain/~/nghia_1660s_workspace/gates-llm-chatbots/.venv/lib/python3.10/site-packages/langchain/llms/base.py:29) import yaml [30](https://vscode-remote+ssh-002dremote-002bnghia-002d1660s.vscode-resource.vscode-cdn.net/home/nghia_1660s/nghia_1660s_workspace/gates-llm-chatbots/learn_langchain/~/nghia_1660s_workspace/gates-llm-chatbots/.venv/lib/python3.10/site-packages/langchain/llms/base.py:30) from tenacity import ( [31](https://vscode-remote+ssh-002dremote-002bnghia-002d1660s.vscode-resource.vscode-cdn.net/home/nghia_1660s/nghia_1660s_workspace/gates-llm-chatbots/learn_langchain/~/nghia_1660s_workspace/gates-llm-chatbots/.venv/lib/python3.10/site-packages/langchain/llms/base.py:31) RetryCallState, [32](https://vscode-remote+ssh-002dremote-002bnghia-002d1660s.vscode-resource.vscode-cdn.net/home/nghia_1660s/nghia_1660s_workspace/gates-llm-chatbots/learn_langchain/~/nghia_1660s_workspace/gates-llm-chatbots/.venv/lib/python3.10/site-packages/langchain/llms/base.py:32) before_sleep_log, ref='~/nghia_1660s_workspace/gates-llm-chatbots/.venv/lib/python3.10/site-packages/langchain/llms/base.py:0'>0</a>;32m (...) ... --> [106](https://vscode-remote+ssh-002dremote-002bnghia-002d1660s.vscode-resource.vscode-cdn.net/usr/lib/python3.10/abc.py:106) cls = super().__new__(mcls, name, bases, namespace, **kwargs) [107](https://vscode-remote+ssh-002dremote-002bnghia-002d1660s.vscode-resource.vscode-cdn.net/usr/lib/python3.10/abc.py:107) _abc_init(cls) [108](https://vscode-remote+ssh-002dremote-002bnghia-002d1660s.vscode-resource.vscode-cdn.net/usr/lib/python3.10/abc.py:108) return cls **TypeError: multiple bases have instance lay-out conflict** ### Idea or request for content: The TypeError: multiple bases have instance lay-out conflict is the error for Here is an example illustrating the instance layout conflict in Python: Let's say we have two extension types defined in C: class Base1(object): __slots__ = () _fields_ = ["field1"] class Base2(object): __slots__ = () _fields_ = ["field2"] Now let's attempt multiple inheritance: class Derived(Base1, Base2): __slots__ = () Here you will get TypeError: multiple bases have instance layout conflict. This error is somewhat specific to extension types and it's due to violating multiple inheritance compatibility in Python under the hood when working with extension types. In simpler terms, Python is complaining about a conflict that occurs due to Base1 and Base2 having a different memory layout. Python doesn't know how to resolve this ambiguity or conflict, so it throws a TypeError. I use python the python I use is 3.10.12
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13168/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/13168/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13167
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13167/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13167/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13167/events
https://github.com/langchain-ai/langchain/pull/13167
1,986,879,116
PR_kwDOIPDwls5fGei9
13,167
Bagatur/update agent docs
{ "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": 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": 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-10T04:50:19
2023-11-10T05:20:38
2023-11-10T05:14:31
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13167/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/13167/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13167", "html_url": "https://github.com/langchain-ai/langchain/pull/13167", "diff_url": "https://github.com/langchain-ai/langchain/pull/13167.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13167.patch", "merged_at": "2023-11-10T05:14:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/13165
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13165/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13165/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13165/events
https://github.com/langchain-ai/langchain/pull/13165
1,986,845,727
PR_kwDOIPDwls5fGXHE
13,165
improve duck duck go tool
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-11-10T04:19:09
2023-11-10T04:49:40
2023-11-10T04:49:39
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13165/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/13165/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13165", "html_url": "https://github.com/langchain-ai/langchain/pull/13165", "diff_url": "https://github.com/langchain-ai/langchain/pull/13165.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13165.patch", "merged_at": "2023-11-10T04:49:39" }
https://api.github.com/repos/langchain-ai/langchain/issues/13164
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13164/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13164/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13164/events
https://github.com/langchain-ai/langchain/pull/13164
1,986,806,877
PR_kwDOIPDwls5fGPVX
13,164
Add MyScaleWithoutJSON which allows user to wrap columns into Document's Metadata
{ "login": "mpskex", "id": 8456706, "node_id": "MDQ6VXNlcjg0NTY3MDY=", "avatar_url": "https://avatars.githubusercontent.com/u/8456706?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mpskex", "html_url": "https://github.com/mpskex", "followers_url": "https://api.github.com/users/mpskex/followers", "following_url": "https://api.github.com/users/mpskex/following{/other_user}", "gists_url": "https://api.github.com/users/mpskex/gists{/gist_id}", "starred_url": "https://api.github.com/users/mpskex/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mpskex/subscriptions", "organizations_url": "https://api.github.com/users/mpskex/orgs", "repos_url": "https://api.github.com/users/mpskex/repos", "events_url": "https://api.github.com/users/mpskex/events{/privacy}", "received_events_url": "https://api.github.com/users/mpskex/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": 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
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
2023-11-10T03:51:25
2023-11-16T09:32:43
2023-11-13T18:10:36
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. --> Replace this entire comment with: - **Description:** Add MyScaleWithoutJSON which allows user to wrap columns into Document's Metadata - **Tag maintainer:** @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13164/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/13164/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13164", "html_url": "https://github.com/langchain-ai/langchain/pull/13164", "diff_url": "https://github.com/langchain-ai/langchain/pull/13164.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13164.patch", "merged_at": "2023-11-13T18:10:36" }
https://api.github.com/repos/langchain-ai/langchain/issues/13162
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13162/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13162/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13162/events
https://github.com/langchain-ai/langchain/issues/13162
1,986,745,002
I_kwDOIPDwls52a1Kq
13,162
getiing an error with openai v1
{ "login": "rajib76", "id": 16340036, "node_id": "MDQ6VXNlcjE2MzQwMDM2", "avatar_url": "https://avatars.githubusercontent.com/u/16340036?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rajib76", "html_url": "https://github.com/rajib76", "followers_url": "https://api.github.com/users/rajib76/followers", "following_url": "https://api.github.com/users/rajib76/following{/other_user}", "gists_url": "https://api.github.com/users/rajib76/gists{/gist_id}", "starred_url": "https://api.github.com/users/rajib76/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rajib76/subscriptions", "organizations_url": "https://api.github.com/users/rajib76/orgs", "repos_url": "https://api.github.com/users/rajib76/repos", "events_url": "https://api.github.com/users/rajib76/events{/privacy}", "received_events_url": "https://api.github.com/users/rajib76/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
6
2023-11-10T02:41:34
2023-11-24T02:40:25
null
CONTRIBUTOR
null
### System Info Getting the below error when try to use load_qa_chain openai.lib._old_api.APIRemovedInV1: You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API. You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface. Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28` A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742 ### Who can help? _No response_ ### 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 run load_qa_chain ### Expected behavior it should not error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13162/reactions", "total_count": 5, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 3 }
https://api.github.com/repos/langchain-ai/langchain/issues/13162/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13161
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13161/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13161/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13161/events
https://github.com/langchain-ai/langchain/issues/13161
1,986,715,808
I_kwDOIPDwls52auCg
13,161
Issue: Can't get response from chain.predict()
{ "login": "RedNoseJJN", "id": 89859275, "node_id": "MDQ6VXNlcjg5ODU5Mjc1", "avatar_url": "https://avatars.githubusercontent.com/u/89859275?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RedNoseJJN", "html_url": "https://github.com/RedNoseJJN", "followers_url": "https://api.github.com/users/RedNoseJJN/followers", "following_url": "https://api.github.com/users/RedNoseJJN/following{/other_user}", "gists_url": "https://api.github.com/users/RedNoseJJN/gists{/gist_id}", "starred_url": "https://api.github.com/users/RedNoseJJN/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RedNoseJJN/subscriptions", "organizations_url": "https://api.github.com/users/RedNoseJJN/orgs", "repos_url": "https://api.github.com/users/RedNoseJJN/repos", "events_url": "https://api.github.com/users/RedNoseJJN/events{/privacy}", "received_events_url": "https://api.github.com/users/RedNoseJJN/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
10
2023-11-10T02:09:17
2023-11-13T03:13:33
2023-11-13T03:05:42
NONE
null
### Issue you'd like to raise. I'm using llama2 with langchain. To use gpu, I re-installed the llama-cpp-python with cublas options, but after that, I can not get response from langchain.LLMChain.predict() anymore. The result is like: ``` User:hi > Entering new LLMChain chain... Prompt after formatting: History: Question: hi Answer: llama_print_timings: load time = 883.81 ms llama_print_timings: sample time = 0.47 ms / 2 runs ( 0.24 ms per token, 4255.32 tokens per second) llama_print_timings: prompt eval time = 883.77 ms / 14 tokens ( 63.13 ms per token, 15.84 tokens per second) llama_print_timings: eval time = 228.71 ms / 1 runs ( 228.71 ms per token, 4.37 tokens per second) llama_print_timings: total time = 1117.20 ms > Finished chain. ``` The following is how I define the llm and the chain: ``` llm = LlamaCpp( model_path = model_path, n_ctx=4096, top_k=10, top_p=0.9, temperature=0.7, repeat_penalty=1.1, verbose=True, callback_manager=callback_manager, n_gpu_layers=35, n_batch=100, stop=["Question:","Human:"] ) memory = ConversationBufferMemory(memory_key='chat_history') llm_chain = LLMChain( prompt=prompt, llm=llm, memory=memory, ) ``` Actually when I used local llama.cpp and normally installed llama-cpp-python, everything went on well. The only change I made is the llama-cpp-python and all the code just remain the same. I wonder why will this happen. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13161/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/13161/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13160
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13160/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13160/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13160/events
https://github.com/langchain-ai/langchain/pull/13160
1,986,656,960
PR_kwDOIPDwls5fFvtq
13,160
Update model i/o
{ "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" }, { "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-10T01:05:34
2023-11-10T04:35:56
2023-11-10T04:35:56
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13160/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/13160/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13160", "html_url": "https://github.com/langchain-ai/langchain/pull/13160", "diff_url": "https://github.com/langchain-ai/langchain/pull/13160.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13160.patch", "merged_at": "2023-11-10T04:35:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/13159
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13159/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13159/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13159/events
https://github.com/langchain-ai/langchain/issues/13159
1,986,646,789
I_kwDOIPDwls52adMF
13,159
Issue: Get cost estimates of GPT-4-Vision
{ "login": "shubhamagarwal92", "id": 7984532, "node_id": "MDQ6VXNlcjc5ODQ1MzI=", "avatar_url": "https://avatars.githubusercontent.com/u/7984532?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shubhamagarwal92", "html_url": "https://github.com/shubhamagarwal92", "followers_url": "https://api.github.com/users/shubhamagarwal92/followers", "following_url": "https://api.github.com/users/shubhamagarwal92/following{/other_user}", "gists_url": "https://api.github.com/users/shubhamagarwal92/gists{/gist_id}", "starred_url": "https://api.github.com/users/shubhamagarwal92/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shubhamagarwal92/subscriptions", "organizations_url": "https://api.github.com/users/shubhamagarwal92/orgs", "repos_url": "https://api.github.com/users/shubhamagarwal92/repos", "events_url": "https://api.github.com/users/shubhamagarwal92/events{/privacy}", "received_events_url": "https://api.github.com/users/shubhamagarwal92/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2023-11-10T00:53:36
2023-11-10T01:00:04
null
NONE
null
### Issue you'd like to raise. Hi @baskaryan! Thanks for open-sourcing the [notebook](https://github.com/langchain-ai/langchain/blob/master/cookbook/openai_v1_cookbook.ipynb) related to GPT-4-Vision. Is there a way, we can estimate the cost for the API calls similar to using `get_openai_callback`? ### Suggestion: We could get the cost using callbacks as: ``` from langchain.callbacks import get_openai_callback from langchain.prompts import ( ChatPromptTemplate, SystemMessagePromptTemplate, HumanMessagePromptTemplate, ) human_message_prompt = HumanMessagePromptTemplate.from_template(prompt) chat_prompt = ChatPromptTemplate.from_messages( [system_message_prompt, human_message_prompt] ) with get_openai_callback() as cb: openai_chain = LLMChain(prompt=chat_prompt, llm=model) response = openai_chain.run({}) n_tokens = cb.total_tokens total_cost = cb.total_cost ``` How do I use `HumanMessage` with the callback?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13159/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/13159/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13158
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13158/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13158/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13158/events
https://github.com/langchain-ai/langchain/pull/13158
1,986,614,215
PR_kwDOIPDwls5fFmmy
13,158
fix module sidebar
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-11-10T00:18:06
2023-11-10T00:31:47
2023-11-10T00:31:46
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13158/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/13158/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13158", "html_url": "https://github.com/langchain-ai/langchain/pull/13158", "diff_url": "https://github.com/langchain-ai/langchain/pull/13158.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13158.patch", "merged_at": "2023-11-10T00:31:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/13157
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13157/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13157/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13157/events
https://github.com/langchain-ai/langchain/pull/13157
1,986,605,838
PR_kwDOIPDwls5fFk0I
13,157
Clean up Fireworks provider documentation
{ "login": "zchenyu", "id": 1039756, "node_id": "MDQ6VXNlcjEwMzk3NTY=", "avatar_url": "https://avatars.githubusercontent.com/u/1039756?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zchenyu", "html_url": "https://github.com/zchenyu", "followers_url": "https://api.github.com/users/zchenyu/followers", "following_url": "https://api.github.com/users/zchenyu/following{/other_user}", "gists_url": "https://api.github.com/users/zchenyu/gists{/gist_id}", "starred_url": "https://api.github.com/users/zchenyu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zchenyu/subscriptions", "organizations_url": "https://api.github.com/users/zchenyu/orgs", "repos_url": "https://api.github.com/users/zchenyu/repos", "events_url": "https://api.github.com/users/zchenyu/events{/privacy}", "received_events_url": "https://api.github.com/users/zchenyu/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-10T00:07:31
2023-11-10T00:35:05
2023-11-10T00:35:05
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13157/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/13157/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13157", "html_url": "https://github.com/langchain-ai/langchain/pull/13157", "diff_url": "https://github.com/langchain-ai/langchain/pull/13157.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13157.patch", "merged_at": "2023-11-10T00:35:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/13156
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13156/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13156/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13156/events
https://github.com/langchain-ai/langchain/pull/13156
1,986,590,904
PR_kwDOIPDwls5fFhsX
13,156
moved `graph/` docs into `integrations/`
{ "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": 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-09T23:48:54
2023-11-14T19:00:38
2023-11-14T18:48:35
COLLABORATOR
null
`Graph` integrations docs mistakenly placed in the `use_cases/`. - Moved `graph/` docs into the `integrations/` - modified vercel.json to reroute old URLs - fixed sidebar
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13156/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/13156/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13156", "html_url": "https://github.com/langchain-ai/langchain/pull/13156", "diff_url": "https://github.com/langchain-ai/langchain/pull/13156.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13156.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13155
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13155/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13155/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13155/events
https://github.com/langchain-ai/langchain/pull/13155
1,986,587,930
PR_kwDOIPDwls5fFhFh
13,155
LCEL nits
{ "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-09T23:44:50
2023-11-10T00:09:35
2023-11-10T00:09:34
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/13155/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/13155/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13155", "html_url": "https://github.com/langchain-ai/langchain/pull/13155", "diff_url": "https://github.com/langchain-ai/langchain/pull/13155.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13155.patch", "merged_at": "2023-11-10T00:09:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/13154
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13154/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13154/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13154/events
https://github.com/langchain-ai/langchain/pull/13154
1,986,496,063
PR_kwDOIPDwls5fFM8j
13,154
OpenAI remove httpx typing
{ "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": 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" } ]
closed
false
null
[]
null
1
2023-11-09T22:20:40
2023-11-09T22:32:10
2023-11-09T22:32:09
COLLABORATOR
null
Addresses #13124
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13154/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/13154/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13154", "html_url": "https://github.com/langchain-ai/langchain/pull/13154", "diff_url": "https://github.com/langchain-ai/langchain/pull/13154.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13154.patch", "merged_at": "2023-11-09T22:32:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/13153
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13153/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13153/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13153/events
https://github.com/langchain-ai/langchain/pull/13153
1,986,473,731
PR_kwDOIPDwls5fFIDO
13,153
Pirate Speak Configurable Template
{ "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": 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-09T22:04:26
2023-11-09T22:13:47
2023-11-09T22:13:46
COLLABORATOR
null
![image](https://github.com/langchain-ai/langchain/assets/9557659/9b61dbad-22bc-4997-b54f-fca89c3a620d)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13153/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/13153/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13153", "html_url": "https://github.com/langchain-ai/langchain/pull/13153", "diff_url": "https://github.com/langchain-ai/langchain/pull/13153.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13153.patch", "merged_at": "2023-11-09T22:13:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/13152
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13152/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13152/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13152/events
https://github.com/langchain-ai/langchain/pull/13152
1,986,455,486
PR_kwDOIPDwls5fFEGY
13,152
template readme's in docs
{ "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-09T21:48:33
2023-11-10T07:36:22
2023-11-10T07:36:21
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13152/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/13152/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13152", "html_url": "https://github.com/langchain-ai/langchain/pull/13152", "diff_url": "https://github.com/langchain-ai/langchain/pull/13152.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13152.patch", "merged_at": "2023-11-10T07:36:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/13151
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13151/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13151/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13151/events
https://github.com/langchain-ai/langchain/pull/13151
1,986,432,455
PR_kwDOIPDwls5fE_Ed
13,151
[LLMonitorCallbackHandler] Various improvements
{ "login": "hughcrt", "id": 24587702, "node_id": "MDQ6VXNlcjI0NTg3NzAy", "avatar_url": "https://avatars.githubusercontent.com/u/24587702?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hughcrt", "html_url": "https://github.com/hughcrt", "followers_url": "https://api.github.com/users/hughcrt/followers", "following_url": "https://api.github.com/users/hughcrt/following{/other_user}", "gists_url": "https://api.github.com/users/hughcrt/gists{/gist_id}", "starred_url": "https://api.github.com/users/hughcrt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hughcrt/subscriptions", "organizations_url": "https://api.github.com/users/hughcrt/orgs", "repos_url": "https://api.github.com/users/hughcrt/repos", "events_url": "https://api.github.com/users/hughcrt/events{/privacy}", "received_events_url": "https://api.github.com/users/hughcrt/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" } ]
closed
false
null
[]
null
2
2023-11-09T21:30:27
2023-11-17T07:39:36
2023-11-17T07:39:36
CONTRIBUTOR
null
Small improvements for the llmonitor callback handler, like better support for non-openai models. @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13151/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/13151/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13151", "html_url": "https://github.com/langchain-ai/langchain/pull/13151", "diff_url": "https://github.com/langchain-ai/langchain/pull/13151.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13151.patch", "merged_at": "2023-11-17T07:39:36" }
https://api.github.com/repos/langchain-ai/langchain/issues/13150
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13150/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13150/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13150/events
https://github.com/langchain-ai/langchain/pull/13150
1,986,425,090
PR_kwDOIPDwls5fE9d7
13,150
Bagatur/docs serve context
{ "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-09T21:24:45
2023-11-09T23:05:19
2023-11-09T23:05:18
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13150/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/13150/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13150", "html_url": "https://github.com/langchain-ai/langchain/pull/13150", "diff_url": "https://github.com/langchain-ai/langchain/pull/13150.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13150.patch", "merged_at": "2023-11-09T23:05:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/13149
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13149/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13149/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13149/events
https://github.com/langchain-ai/langchain/issues/13149
1,986,380,076
I_kwDOIPDwls52ZcEs
13,149
HTMLHeaderTextSplitter won't run (maxHead)
{ "login": "AndyMik90", "id": 119136210, "node_id": "U_kgDOBxnf0g", "avatar_url": "https://avatars.githubusercontent.com/u/119136210?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AndyMik90", "html_url": "https://github.com/AndyMik90", "followers_url": "https://api.github.com/users/AndyMik90/followers", "following_url": "https://api.github.com/users/AndyMik90/following{/other_user}", "gists_url": "https://api.github.com/users/AndyMik90/gists{/gist_id}", "starred_url": "https://api.github.com/users/AndyMik90/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AndyMik90/subscriptions", "organizations_url": "https://api.github.com/users/AndyMik90/orgs", "repos_url": "https://api.github.com/users/AndyMik90/repos", "events_url": "https://api.github.com/users/AndyMik90/events{/privacy}", "received_events_url": "https://api.github.com/users/AndyMik90/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
2
2023-11-09T20:48:09
2023-11-09T20:54:35
null
NONE
null
### System Info Notebook with latest langchain ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Trying in notebook the HTMLHeaderTextSplitter ```jupyter-notebook from langchain.text_splitter import RecursiveCharacterTextSplitter headers_to_split_on = [ ("h1", "Header 1"), ("h2", "Header 2"), ("h3", "Header 3"), ("h4", "Header 4"), ] html_splitter = HTMLHeaderTextSplitter(headers_to_split_on=headers_to_split_on) html_header_splits = html_splitter.split_text_from_file("/content/X.html") chunk_size = 500 chunk_overlap = 30 text_splitter = RecursiveCharacterTextSplitter( chunk_size=chunk_size, chunk_overlap=chunk_overlap ) Split splits = text_splitter.split_documents(html_header_splits) splits[80:85]` ``` ```jupyter-notebook --------------------------------------------------------------------------- XSLTApplyError Traceback (most recent call last) [<ipython-input-54-bd3edea942d1>](https://localhost:8080/#) in <cell line: 12>() 10 html_splitter = HTMLHeaderTextSplitter(headers_to_split_on=headers_to_split_on) 11 ---> 12 html_header_splits = html_splitter.split_text_from_file("/content/X.html") 13 14 chunk_size = 500 [/usr/local/lib/python3.10/dist-packages/langchain/text_splitter.py](https://localhost:8080/#) in split_text_from_file(self, file) 586 xslt_tree = etree.parse(xslt_path) 587 transform = etree.XSLT(xslt_tree) --> 588 result = transform(tree) 589 result_dom = etree.fromstring(str(result)) 590 src/lxml/xslt.pxi in lxml.etree.XSLT.__call__() XSLTApplyError: maxHead``` Is the HTML just to large to be handled by the textsplitter? ### Expected behavior Load the html..
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13149/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/13149/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13148
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13148/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13148/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13148/events
https://github.com/langchain-ai/langchain/pull/13148
1,986,378,120
PR_kwDOIPDwls5fEzNW
13,148
CLI interactivity
{ "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": 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
1
2023-11-09T20:46:28
2023-11-14T17:53:30
2023-11-14T17:53:29
COLLABORATOR
null
Will implement more later
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13148/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/13148/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13148", "html_url": "https://github.com/langchain-ai/langchain/pull/13148", "diff_url": "https://github.com/langchain-ai/langchain/pull/13148.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13148.patch", "merged_at": "2023-11-14T17:53:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/13147
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13147/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13147/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13147/events
https://github.com/langchain-ai/langchain/pull/13147
1,986,363,737
PR_kwDOIPDwls5fEwFn
13,147
update oai tool agent doc
{ "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": 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": 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-09T20:35:49
2023-11-09T20:57:01
2023-11-09T20:37:30
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13147/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/13147/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13147", "html_url": "https://github.com/langchain-ai/langchain/pull/13147", "diff_url": "https://github.com/langchain-ai/langchain/pull/13147.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13147.patch", "merged_at": "2023-11-09T20:37:30" }
https://api.github.com/repos/langchain-ai/langchain/issues/13146
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13146/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13146/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13146/events
https://github.com/langchain-ai/langchain/pull/13146
1,986,314,354
PR_kwDOIPDwls5fElWe
13,146
Added ability to pass arguments to the Playwright browser
{ "login": "seanbearden", "id": 72461227, "node_id": "MDQ6VXNlcjcyNDYxMjI3", "avatar_url": "https://avatars.githubusercontent.com/u/72461227?v=4", "gravatar_id": "", "url": "https://api.github.com/users/seanbearden", "html_url": "https://github.com/seanbearden", "followers_url": "https://api.github.com/users/seanbearden/followers", "following_url": "https://api.github.com/users/seanbearden/following{/other_user}", "gists_url": "https://api.github.com/users/seanbearden/gists{/gist_id}", "starred_url": "https://api.github.com/users/seanbearden/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seanbearden/subscriptions", "organizations_url": "https://api.github.com/users/seanbearden/orgs", "repos_url": "https://api.github.com/users/seanbearden/repos", "events_url": "https://api.github.com/users/seanbearden/events{/privacy}", "received_events_url": "https://api.github.com/users/seanbearden/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": 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-09T20:01:20
2023-12-05T04:48:10
2023-12-05T04:48:09
CONTRIBUTOR
null
- **Description:** Enhanced `create_sync_playwright_browser` and `create_async_playwright_browser` functions to accept a list of arguments. These arguments are now forwarded to `browser.chromium.launch()` for customizable browser instantiation. - **Issue:** #13143 - **Dependencies:** None - **Tag maintainer:** @eyurtsev, - **Twitter handle:** Dr_Bearden
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13146/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/13146/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13146", "html_url": "https://github.com/langchain-ai/langchain/pull/13146", "diff_url": "https://github.com/langchain-ai/langchain/pull/13146.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13146.patch", "merged_at": "2023-12-05T04:48:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/13145
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13145/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13145/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13145/events
https://github.com/langchain-ai/langchain/issues/13145
1,986,306,840
I_kwDOIPDwls52ZKMY
13,145
How to retrieve custom number of docs from parent retriver document , I have 100 docs and i don't want the reteiver to just retrieve only 4 docs
{ "login": "dheekshayogananda", "id": 40366261, "node_id": "MDQ6VXNlcjQwMzY2MjYx", "avatar_url": "https://avatars.githubusercontent.com/u/40366261?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dheekshayogananda", "html_url": "https://github.com/dheekshayogananda", "followers_url": "https://api.github.com/users/dheekshayogananda/followers", "following_url": "https://api.github.com/users/dheekshayogananda/following{/other_user}", "gists_url": "https://api.github.com/users/dheekshayogananda/gists{/gist_id}", "starred_url": "https://api.github.com/users/dheekshayogananda/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dheekshayogananda/subscriptions", "organizations_url": "https://api.github.com/users/dheekshayogananda/orgs", "repos_url": "https://api.github.com/users/dheekshayogananda/repos", "events_url": "https://api.github.com/users/dheekshayogananda/events{/privacy}", "received_events_url": "https://api.github.com/users/dheekshayogananda/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
7
2023-11-09T19:56:05
2023-11-13T11:08:08
null
NONE
null
### Issue you'd like to raise. I have 100 docs , from which i am trying to retrieve top 10 docs which are most relevant to my query using parent document retriever. How can this be achieved. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13145/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/13145/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13144
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13144/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13144/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13144/events
https://github.com/langchain-ai/langchain/pull/13144
1,986,245,356
PR_kwDOIPDwls5fEWNN
13,144
fix langsmith links
{ "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-09T19:12:31
2023-11-09T19:12:52
2023-11-09T19:12:51
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13144/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/13144/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13144", "html_url": "https://github.com/langchain-ai/langchain/pull/13144", "diff_url": "https://github.com/langchain-ai/langchain/pull/13144.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13144.patch", "merged_at": "2023-11-09T19:12:51" }
https://api.github.com/repos/langchain-ai/langchain/issues/13143
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13143/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13143/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13143/events
https://github.com/langchain-ai/langchain/issues/13143
1,986,241,586
I_kwDOIPDwls52Y6Qy
13,143
Add ability to pass arguments when creating Playwright browser
{ "login": "seanbearden", "id": 72461227, "node_id": "MDQ6VXNlcjcyNDYxMjI3", "avatar_url": "https://avatars.githubusercontent.com/u/72461227?v=4", "gravatar_id": "", "url": "https://api.github.com/users/seanbearden", "html_url": "https://github.com/seanbearden", "followers_url": "https://api.github.com/users/seanbearden/followers", "following_url": "https://api.github.com/users/seanbearden/following{/other_user}", "gists_url": "https://api.github.com/users/seanbearden/gists{/gist_id}", "starred_url": "https://api.github.com/users/seanbearden/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seanbearden/subscriptions", "organizations_url": "https://api.github.com/users/seanbearden/orgs", "repos_url": "https://api.github.com/users/seanbearden/repos", "events_url": "https://api.github.com/users/seanbearden/events{/privacy}", "received_events_url": "https://api.github.com/users/seanbearden/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": 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
0
2023-11-09T19:09:40
2023-11-09T19:10:01
null
CONTRIBUTOR
null
### Feature request Need the ability to pass arguments to `browser.chromium.launch()` in the `create_sync_playwright_browser` and `create_async_playwright_browser` functions located in [`langchain.tools.playwright.utils.py`](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/tools/playwright/utils.py). ### Motivation I created an agent that uses `PlayWrightBrowserToolkit`. All local testing worked, but I encounter errors when deploying to an AWS Lambda. I encountered two errors when testing within the AWS Lambda UI: `Target page, context or browser has been closed` and `Timeout 30000ms exceeded`. I did not experience these issues locally. I identified the issue occurred when the agent used the `navigate_browser` tool. I needed to launch the browser with `browser.chromium.launch(headless=True, args=["--disable-gpu", "--single-process"])` ### Your contribution I have modified `utils.py` for Playwright and will submit a PR.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13143/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/13143/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13142
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13142/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13142/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13142/events
https://github.com/langchain-ai/langchain/pull/13142
1,986,230,444
PR_kwDOIPDwls5fES-3
13,142
Docs: combine LCEL index and why
{ "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-09T19:01:47
2023-11-09T19:33:09
2023-11-09T19:16:45
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13142/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/13142/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13142", "html_url": "https://github.com/langchain-ai/langchain/pull/13142", "diff_url": "https://github.com/langchain-ai/langchain/pull/13142.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13142.patch", "merged_at": "2023-11-09T19:16:45" }
https://api.github.com/repos/langchain-ai/langchain/issues/13141
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13141/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13141/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13141/events
https://github.com/langchain-ai/langchain/pull/13141
1,986,214,363
PR_kwDOIPDwls5fEPfJ
13,141
update modules sidebar
{ "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" }, { "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-09T18:50:09
2023-11-09T21:52:30
2023-11-09T19:57:09
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13141/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/13141/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13141", "html_url": "https://github.com/langchain-ai/langchain/pull/13141", "diff_url": "https://github.com/langchain-ai/langchain/pull/13141.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13141.patch", "merged_at": "2023-11-09T19:57:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/13140
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13140/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13140/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13140/events
https://github.com/langchain-ai/langchain/pull/13140
1,986,130,055
PR_kwDOIPDwls5fD8_e
13,140
Multimodal rag traces
{ "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": 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-09T17:52:19
2023-11-09T17:54:01
2023-11-09T17:54:00
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13140/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/13140/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13140", "html_url": "https://github.com/langchain-ai/langchain/pull/13140", "diff_url": "https://github.com/langchain-ai/langchain/pull/13140.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13140.patch", "merged_at": "2023-11-09T17:54:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/13139
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13139/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13139/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13139/events
https://github.com/langchain-ai/langchain/pull/13139
1,986,112,901
PR_kwDOIPDwls5fD5Qc
13,139
Bagatur/docs smith context
{ "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" }, { "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-09T17:40:16
2023-11-09T18:22:50
2023-11-09T18:22:49
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13139/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/13139/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13139", "html_url": "https://github.com/langchain-ai/langchain/pull/13139", "diff_url": "https://github.com/langchain-ai/langchain/pull/13139.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13139.patch", "merged_at": "2023-11-09T18:22:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/13138
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13138/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13138/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13138/events
https://github.com/langchain-ai/langchain/pull/13138
1,986,089,285
PR_kwDOIPDwls5fD0JM
13,138
OpenAIEmbeddings: retry_min_seconds/retry_max_seconds parameters
{ "login": "adumont", "id": 333274, "node_id": "MDQ6VXNlcjMzMzI3NA==", "avatar_url": "https://avatars.githubusercontent.com/u/333274?v=4", "gravatar_id": "", "url": "https://api.github.com/users/adumont", "html_url": "https://github.com/adumont", "followers_url": "https://api.github.com/users/adumont/followers", "following_url": "https://api.github.com/users/adumont/following{/other_user}", "gists_url": "https://api.github.com/users/adumont/gists{/gist_id}", "starred_url": "https://api.github.com/users/adumont/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adumont/subscriptions", "organizations_url": "https://api.github.com/users/adumont/orgs", "repos_url": "https://api.github.com/users/adumont/repos", "events_url": "https://api.github.com/users/adumont/events{/privacy}", "received_events_url": "https://api.github.com/users/adumont/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": 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
6
2023-11-09T17:25:24
2023-12-12T16:49:08
2023-12-06T04:08:18
CONTRIBUTOR
null
- **Description:** new parameters in OpenAIEmbeddings() constructor (retry_min_seconds and retry_max_seconds) that allow parametrization by the user of the former min_seconds and max_seconds that were hidden in _create_retry_decorator() and _async_retry_decorator() - **Issue:** #9298, #12986 - **Dependencies:** none - **Tag maintainer:** @hwchase17 - **Twitter handle:** @adumont make format ✅ make lint ✅ make test ✅
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13138/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/13138/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13138", "html_url": "https://github.com/langchain-ai/langchain/pull/13138", "diff_url": "https://github.com/langchain-ai/langchain/pull/13138.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13138.patch", "merged_at": "2023-12-06T04:08:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/13135
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13135/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13135/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13135/events
https://github.com/langchain-ai/langchain/pull/13135
1,985,947,163
PR_kwDOIPDwls5fDVGr
13,135
update oai cookbooks
{ "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" }, { "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-09T16:02:17
2023-11-09T16:04:52
2023-11-09T16:04:51
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13135/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/13135/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13135", "html_url": "https://github.com/langchain-ai/langchain/pull/13135", "diff_url": "https://github.com/langchain-ai/langchain/pull/13135.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13135.patch", "merged_at": "2023-11-09T16:04:51" }
https://api.github.com/repos/langchain-ai/langchain/issues/13134
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13134/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13134/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13134/events
https://github.com/langchain-ai/langchain/issues/13134
1,985,905,385
I_kwDOIPDwls52XoLp
13,134
DOC: Install openai with langchain[openai]
{ "login": "cbornet", "id": 11633333, "node_id": "MDQ6VXNlcjExNjMzMzMz", "avatar_url": "https://avatars.githubusercontent.com/u/11633333?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cbornet", "html_url": "https://github.com/cbornet", "followers_url": "https://api.github.com/users/cbornet/followers", "following_url": "https://api.github.com/users/cbornet/following{/other_user}", "gists_url": "https://api.github.com/users/cbornet/gists{/gist_id}", "starred_url": "https://api.github.com/users/cbornet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cbornet/subscriptions", "organizations_url": "https://api.github.com/users/cbornet/orgs", "repos_url": "https://api.github.com/users/cbornet/repos", "events_url": "https://api.github.com/users/cbornet/events{/privacy}", "received_events_url": "https://api.github.com/users/cbornet/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
open
false
null
[]
null
9
2023-11-09T15:42:53
2023-11-11T13:20:11
null
CONTRIBUTOR
null
### Issue with current documentation: The documentation recommends to install openai with `pip install openai`. If you do it currently (langchain 0.0.332) then an incompatible openai version is installed (1.1.2). It's better to install it using `pip install langchain[openai]` as that will pick a version compatible with langchain. So I propose to replace it in the docs. WDYT ? ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13134/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/13134/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13133
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13133/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13133/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13133/events
https://github.com/langchain-ai/langchain/pull/13133
1,985,884,545
PR_kwDOIPDwls5fDHNM
13,133
Update huggingface_hub.py
{ "login": "nickprock", "id": 11136646, "node_id": "MDQ6VXNlcjExMTM2NjQ2", "avatar_url": "https://avatars.githubusercontent.com/u/11136646?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nickprock", "html_url": "https://github.com/nickprock", "followers_url": "https://api.github.com/users/nickprock/followers", "following_url": "https://api.github.com/users/nickprock/following{/other_user}", "gists_url": "https://api.github.com/users/nickprock/gists{/gist_id}", "starred_url": "https://api.github.com/users/nickprock/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nickprock/subscriptions", "organizations_url": "https://api.github.com/users/nickprock/orgs", "repos_url": "https://api.github.com/users/nickprock/repos", "events_url": "https://api.github.com/users/nickprock/events{/privacy}", "received_events_url": "https://api.github.com/users/nickprock/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" } ]
closed
false
null
[]
null
2
2023-11-09T15:34:33
2023-11-23T08:05:08
2023-11-23T08:05:08
NONE
null
also allows the e5 and gbe embedder families to be used - **Description:** at the moment allowing only embedders from the sentence-transformer repo is too reductive, I have extended to two other repos with families of embeddings performing and integrated with sentence-transformer, - **Issue:** #12069 , - **Tag maintainer:** @hwchase17,
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13133/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/13133/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13133", "html_url": "https://github.com/langchain-ai/langchain/pull/13133", "diff_url": "https://github.com/langchain-ai/langchain/pull/13133.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13133.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13132
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13132/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13132/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13132/events
https://github.com/langchain-ai/langchain/issues/13132
1,985,875,195
I_kwDOIPDwls52Xgz7
13,132
Import changed of Vertex chatModel
{ "login": "JeremyBon", "id": 44227843, "node_id": "MDQ6VXNlcjQ0MjI3ODQz", "avatar_url": "https://avatars.githubusercontent.com/u/44227843?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JeremyBon", "html_url": "https://github.com/JeremyBon", "followers_url": "https://api.github.com/users/JeremyBon/followers", "following_url": "https://api.github.com/users/JeremyBon/following{/other_user}", "gists_url": "https://api.github.com/users/JeremyBon/gists{/gist_id}", "starred_url": "https://api.github.com/users/JeremyBon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JeremyBon/subscriptions", "organizations_url": "https://api.github.com/users/JeremyBon/orgs", "repos_url": "https://api.github.com/users/JeremyBon/repos", "events_url": "https://api.github.com/users/JeremyBon/events{/privacy}", "received_events_url": "https://api.github.com/users/JeremyBon/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-11-09T15:30:47
2023-11-09T15:31:17
null
NONE
null
https://github.com/langchain-ai/langchain/blob/c52725bdc5958d5295c2d563fa9b7fcb6ed09a3e/libs/langchain/langchain/chat_models/vertexai.py#L136C29-L136C29 seems there is an issue from vertexai.preview.language_models import ChatModel changed into from vertexai.language_models import ChatModel
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13132/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/13132/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13131
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13131/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13131/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13131/events
https://github.com/langchain-ai/langchain/pull/13131
1,985,859,209
PR_kwDOIPDwls5fDBfd
13,131
bump 333
{ "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-09T15:24:40
2023-11-09T15:33:17
2023-11-09T15:33:16
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13131/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/13131/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13131", "html_url": "https://github.com/langchain-ai/langchain/pull/13131", "diff_url": "https://github.com/langchain-ai/langchain/pull/13131.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13131.patch", "merged_at": "2023-11-09T15:33:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/13129
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13129/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13129/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13129/events
https://github.com/langchain-ai/langchain/issues/13129
1,985,703,330
I_kwDOIPDwls52W22i
13,129
Modify mysql query before execution
{ "login": "sud962468", "id": 5613310, "node_id": "MDQ6VXNlcjU2MTMzMTA=", "avatar_url": "https://avatars.githubusercontent.com/u/5613310?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sud962468", "html_url": "https://github.com/sud962468", "followers_url": "https://api.github.com/users/sud962468/followers", "following_url": "https://api.github.com/users/sud962468/following{/other_user}", "gists_url": "https://api.github.com/users/sud962468/gists{/gist_id}", "starred_url": "https://api.github.com/users/sud962468/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sud962468/subscriptions", "organizations_url": "https://api.github.com/users/sud962468/orgs", "repos_url": "https://api.github.com/users/sud962468/repos", "events_url": "https://api.github.com/users/sud962468/events{/privacy}", "received_events_url": "https://api.github.com/users/sud962468/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
13
2023-11-09T14:07:57
2023-11-09T17:22:12
null
NONE
null
### Feature request We are using langchain create_sql_agent to build a chat engine with database. generation and execution of query will be handled by create_sql_agent. I want to modify the query before execution. Please find below example: original query : select * from transaction where type = IPC modified query : select * from (select * from transaction where account_id = 123) where type = IPC Can you please provide me way forward to achieve this ? ### Motivation To protect some data from client, need this functionality ### Your contribution I'm not familiar with the internal code, but I can help if guided.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13129/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/13129/timeline
null
null
null
null