url
stringlengths
60
60
repository_url
stringclasses
1 value
labels_url
stringlengths
74
74
comments_url
stringlengths
69
69
events_url
stringlengths
67
67
html_url
stringlengths
48
50
id
int64
1.63B
1.63B
node_id
stringlengths
18
19
number
int64
1.73k
1.83k
title
stringlengths
6
173
user
dict
labels
list
state
stringclasses
2 values
locked
bool
1 class
assignee
null
assignees
sequence
milestone
null
comments
sequence
created_at
timestamp[s]
updated_at
timestamp[s]
closed_at
timestamp[s]
author_association
stringclasses
4 values
active_lock_reason
null
draft
bool
1 class
pull_request
dict
body
stringlengths
23
7.41k
reactions
dict
timeline_url
stringlengths
69
69
performed_via_github_app
null
state_reason
stringclasses
1 value
is_pull_request
bool
2 classes
https://api.github.com/repos/hwchase17/langchain/issues/1828
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1828/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1828/comments
https://api.github.com/repos/hwchase17/langchain/issues/1828/events
https://github.com/hwchase17/langchain/pull/1828
1,632,666,243
PR_kwDOIPDwls5MevLS
1,828
Fix typo in sqlite.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 }
[]
open
false
null
[]
null
[]
2023-03-20T18:37:47
2023-03-20T18:37:47
null
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1828", "html_url": "https://github.com/hwchase17/langchain/pull/1828", "diff_url": "https://github.com/hwchase17/langchain/pull/1828.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1828.patch", "merged_at": null }
overriden -> overridden
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1828/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1828/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1827
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1827/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1827/comments
https://api.github.com/repos/hwchase17/langchain/issues/1827/events
https://github.com/hwchase17/langchain/issues/1827
1,632,628,572
I_kwDOIPDwls5hT-9c
1,827
Documentation not up to date
{ "login": "tomsib2001", "id": 2067520, "node_id": "MDQ6VXNlcjIwNjc1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2067520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tomsib2001", "html_url": "https://github.com/tomsib2001", "followers_url": "https://api.github.com/users/tomsib2001/followers", "following_url": "https://api.github.com/users/tomsib2001/following{/other_user}", "gists_url": "https://api.github.com/users/tomsib2001/gists{/gist_id}", "starred_url": "https://api.github.com/users/tomsib2001/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tomsib2001/subscriptions", "organizations_url": "https://api.github.com/users/tomsib2001/orgs", "repos_url": "https://api.github.com/users/tomsib2001/repos", "events_url": "https://api.github.com/users/tomsib2001/events{/privacy}", "received_events_url": "https://api.github.com/users/tomsib2001/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T18:10:51
2023-03-20T18:10:51
null
NONE
null
null
null
The current documentation https://langchain.readthedocs.io/en/latest/modules/agents/getting_started.html seems to not be up to date with version 0.0.117: ```shell UserWarning: You are trying to use a chat model. This way of initializing it is no longer supported. Instead, please use: `from langchain.chat_models import ChatOpenAI` ```
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1827/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/hwchase17/langchain/issues/1827/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1826
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1826/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1826/comments
https://api.github.com/repos/hwchase17/langchain/issues/1826/events
https://github.com/hwchase17/langchain/pull/1826
1,632,605,604
PR_kwDOIPDwls5Meh9B
1,826
gpt turbo patch DEMO
{ "login": "FergusFettes", "id": 18656755, "node_id": "MDQ6VXNlcjE4NjU2NzU1", "avatar_url": "https://avatars.githubusercontent.com/u/18656755?v=4", "gravatar_id": "", "url": "https://api.github.com/users/FergusFettes", "html_url": "https://github.com/FergusFettes", "followers_url": "https://api.github.com/users/FergusFettes/followers", "following_url": "https://api.github.com/users/FergusFettes/following{/other_user}", "gists_url": "https://api.github.com/users/FergusFettes/gists{/gist_id}", "starred_url": "https://api.github.com/users/FergusFettes/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/FergusFettes/subscriptions", "organizations_url": "https://api.github.com/users/FergusFettes/orgs", "repos_url": "https://api.github.com/users/FergusFettes/repos", "events_url": "https://api.github.com/users/FergusFettes/events{/privacy}", "received_events_url": "https://api.github.com/users/FergusFettes/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T17:58:39
2023-03-20T17:58:39
null
NONE
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1826", "html_url": "https://github.com/hwchase17/langchain/pull/1826", "diff_url": "https://github.com/hwchase17/langchain/pull/1826.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1826.patch", "merged_at": null }
Not a serious PR, just a demo. Using the normal completions endpoint with Chat models. With this patch, you can use the summarizing chains and agents with gpt-3.5-turbo and gpt-4.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1826/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1826/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1825
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1825/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1825/comments
https://api.github.com/repos/hwchase17/langchain/issues/1825/events
https://github.com/hwchase17/langchain/issues/1825
1,632,592,766
I_kwDOIPDwls5hT2N-
1,825
Validation error- Metadata should not be empty or None
{ "login": "Abonia1", "id": 22887323, "node_id": "MDQ6VXNlcjIyODg3MzIz", "avatar_url": "https://avatars.githubusercontent.com/u/22887323?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Abonia1", "html_url": "https://github.com/Abonia1", "followers_url": "https://api.github.com/users/Abonia1/followers", "following_url": "https://api.github.com/users/Abonia1/following{/other_user}", "gists_url": "https://api.github.com/users/Abonia1/gists{/gist_id}", "starred_url": "https://api.github.com/users/Abonia1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Abonia1/subscriptions", "organizations_url": "https://api.github.com/users/Abonia1/orgs", "repos_url": "https://api.github.com/users/Abonia1/repos", "events_url": "https://api.github.com/users/Abonia1/events{/privacy}", "received_events_url": "https://api.github.com/users/Abonia1/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T17:50:04
2023-03-20T17:50:04
null
NONE
null
null
null
I am experiencing an issue with Chroma: `Chroma.from_texts(texts=chunks, embedding=embeddings, persist_directory=config.PERSIST_DIR, metadatas=None)` opt/anaconda3/lib/python3.8/site-packages/langchain/vectorstores/chroma.py", line 27, in <listcomp> (Document(page_content=result[0], metadata=result[1]), result[2]) File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__ pydantic.error_wrappers.ValidationError: 1 validation error for Document metadata none is not an allowed value (type=type_error.none.not_allowed) Thanks for all the help!
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1825/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1825/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1824
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1824/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1824/comments
https://api.github.com/repos/hwchase17/langchain/issues/1824/events
https://github.com/hwchase17/langchain/issues/1824
1,632,590,839
I_kwDOIPDwls5hT1v3
1,824
Avoiding recomputation of embeddings with Chroma
{ "login": "murbard", "id": 1591742, "node_id": "MDQ6VXNlcjE1OTE3NDI=", "avatar_url": "https://avatars.githubusercontent.com/u/1591742?v=4", "gravatar_id": "", "url": "https://api.github.com/users/murbard", "html_url": "https://github.com/murbard", "followers_url": "https://api.github.com/users/murbard/followers", "following_url": "https://api.github.com/users/murbard/following{/other_user}", "gists_url": "https://api.github.com/users/murbard/gists{/gist_id}", "starred_url": "https://api.github.com/users/murbard/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/murbard/subscriptions", "organizations_url": "https://api.github.com/users/murbard/orgs", "repos_url": "https://api.github.com/users/murbard/repos", "events_url": "https://api.github.com/users/murbard/events{/privacy}", "received_events_url": "https://api.github.com/users/murbard/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T17:48:30
2023-03-20T17:48:30
null
NONE
null
null
null
If I'm reading correctly, this is the function to add_texts to Chroma ``` def add_texts( self, texts: Iterable[str], metadatas: Optional[List[dict]] = None, ids: Optional[List[str]] = None, **kwargs: Any, ) -> List[str]: """Run more texts through the embeddings and add to the vectorstore. Args: texts (Iterable[str]): Texts to add to the vectorstore. metadatas (Optional[List[dict]], optional): Optional list of metadatas. ids (Optional[List[str]], optional): Optional list of IDs. Returns: List[str]: List of IDs of the added texts. """ # TODO: Handle the case where the user doesn't provide ids on the Collection if ids is None: ids = [str(uuid.uuid1()) for _ in texts] embeddings = None if self._embedding_function is not None: embeddings = self._embedding_function.embed_documents(list(texts)) self._collection.add( metadatas=metadatas, embeddings=embeddings, documents=texts, ids=ids ) return ids ``` It does not seem to check if the texts are already inside the database. This means it's very easy to duplicate work when running indexing jobs incrementally. What's more, the Chroma class from langchain.vectorstores does not seem to expose functions to see if some text is already inside the vector store. What's the preferred way of dealing with this? I can of course set up a separate db that keeps track of hashes of text inside the Chromadb, but this seems unnecessarily clunky and something that you'd expect the db to do for you.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1824/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1824/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1823
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1823/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1823/comments
https://api.github.com/repos/hwchase17/langchain/issues/1823/events
https://github.com/hwchase17/langchain/issues/1823
1,632,522,870
I_kwDOIPDwls5hTlJ2
1,823
New feature: Contribution
{ "login": "moshere", "id": 7210322, "node_id": "MDQ6VXNlcjcyMTAzMjI=", "avatar_url": "https://avatars.githubusercontent.com/u/7210322?v=4", "gravatar_id": "", "url": "https://api.github.com/users/moshere", "html_url": "https://github.com/moshere", "followers_url": "https://api.github.com/users/moshere/followers", "following_url": "https://api.github.com/users/moshere/following{/other_user}", "gists_url": "https://api.github.com/users/moshere/gists{/gist_id}", "starred_url": "https://api.github.com/users/moshere/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/moshere/subscriptions", "organizations_url": "https://api.github.com/users/moshere/orgs", "repos_url": "https://api.github.com/users/moshere/repos", "events_url": "https://api.github.com/users/moshere/events{/privacy}", "received_events_url": "https://api.github.com/users/moshere/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T17:03:16
2023-03-20T17:03:16
null
NONE
null
null
null
Hi, I would like to contribute to LangChain, need to know if our feature is relevant as part of LangChain. Would like check with you in private. How we can share our idea? Moshe
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1823/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1823/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1822
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1822/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1822/comments
https://api.github.com/repos/hwchase17/langchain/issues/1822/events
https://github.com/hwchase17/langchain/issues/1822
1,632,466,855
I_kwDOIPDwls5hTXen
1,822
Creating and using AzureChatOpenAI directly works fine, but crashing through ChatVectorDBChain with "ValueError: Should always be something for OpenAI."
{ "login": "mkeywood1", "id": 48513874, "node_id": "MDQ6VXNlcjQ4NTEzODc0", "avatar_url": "https://avatars.githubusercontent.com/u/48513874?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mkeywood1", "html_url": "https://github.com/mkeywood1", "followers_url": "https://api.github.com/users/mkeywood1/followers", "following_url": "https://api.github.com/users/mkeywood1/following{/other_user}", "gists_url": "https://api.github.com/users/mkeywood1/gists{/gist_id}", "starred_url": "https://api.github.com/users/mkeywood1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mkeywood1/subscriptions", "organizations_url": "https://api.github.com/users/mkeywood1/orgs", "repos_url": "https://api.github.com/users/mkeywood1/repos", "events_url": "https://api.github.com/users/mkeywood1/events{/privacy}", "received_events_url": "https://api.github.com/users/mkeywood1/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "This is fixed in [v0.0.117](https://github.com/hwchase17/langchain/releases/tag/v0.0.117)", "Argh apologies, I updated it to that version but in wrong conda environment.\r\nSorry about that. Thanks a lot." ]
2023-03-20T16:27:16
2023-03-20T16:47:11
2023-03-20T16:47:11
NONE
null
null
null
Creating and using AzureChatOpenAI directly works fine, but crashing through ChatVectorDBChain with "ValueError: Should always be something for OpenAI." Example: ``` from langchain.embeddings.openai import OpenAIEmbeddings from langchain.vectorstores import FAISS from langchain.text_splitter import CharacterTextSplitter from langchain.chains import ChatVectorDBChain from langchain.document_loaders import PagedPDFSplitter from langchain.chat_models import AzureChatOpenAI from langchain.prompts.chat import ChatPromptTemplate, SystemMessagePromptTemplate, AIMessagePromptTemplate, HumanMessagePromptTemplate from langchain.schema import AIMessage, HumanMessage, SystemMessage system_template="""Use the following pieces of context to answer the users question. If you don't know the answer, just say that you don't know, don't try to make up an answer. ---------------- {context}""" messages = [ SystemMessagePromptTemplate.from_template(system_template), HumanMessagePromptTemplate.from_template("{question}") ] prompt = ChatPromptTemplate.from_messages(messages) loader = PagedPDFSplitter("myfile.pdf") text_splitter = CharacterTextSplitter(chunk_size=700, chunk_overlap=50) documents = loader.load_and_split(text_splitter) embeddings = OpenAIEmbeddings(chunk_size=1) vectorstore = FAISS.from_documents(documents, embeddings) qa = ChatVectorDBChain.from_llm(AzureChatOpenAI(temperature=0, deployment_name='gpt-35-turbo'), vectorstore, qa_prompt=prompt, top_k_docs_for_context=2) ## All good to here, but following line crashes: result = qa({"question": "what is section 2 about?", "chat_history": []}) ``` Crashes with: ValueError: Should always be something for OpenAI. This works fine on ChatOpenAI but not AzureChatOpenAI.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1822/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1822/timeline
null
completed
false
https://api.github.com/repos/hwchase17/langchain/issues/1821
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1821/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1821/comments
https://api.github.com/repos/hwchase17/langchain/issues/1821/events
https://github.com/hwchase17/langchain/pull/1821
1,632,461,114
PR_kwDOIPDwls5MeDCR
1,821
allow FAISS object to merge with another FAISS object
{ "login": "MathildaSu", "id": 26279232, "node_id": "MDQ6VXNlcjI2Mjc5MjMy", "avatar_url": "https://avatars.githubusercontent.com/u/26279232?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MathildaSu", "html_url": "https://github.com/MathildaSu", "followers_url": "https://api.github.com/users/MathildaSu/followers", "following_url": "https://api.github.com/users/MathildaSu/following{/other_user}", "gists_url": "https://api.github.com/users/MathildaSu/gists{/gist_id}", "starred_url": "https://api.github.com/users/MathildaSu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MathildaSu/subscriptions", "organizations_url": "https://api.github.com/users/MathildaSu/orgs", "repos_url": "https://api.github.com/users/MathildaSu/repos", "events_url": "https://api.github.com/users/MathildaSu/events{/privacy}", "received_events_url": "https://api.github.com/users/MathildaSu/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T16:24:36
2023-03-20T16:24:36
null
NONE
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1821", "html_url": "https://github.com/hwchase17/langchain/pull/1821", "diff_url": "https://github.com/hwchase17/langchain/pull/1821.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1821.patch", "merged_at": null }
Allow a FAISS object (self) to merge with another FAISS object (target). The self FAISS will be updated, while the target will remain untouched. It will generate new UUID for docs in target FAISS (can be optional, but currently, it automatically generates new UUID).
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1821/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/hwchase17/langchain/issues/1821/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1820
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1820/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1820/comments
https://api.github.com/repos/hwchase17/langchain/issues/1820/events
https://github.com/hwchase17/langchain/pull/1820
1,632,442,515
PR_kwDOIPDwls5Md--V
1,820
Add keyword arguments to OpenSearch Vectorstore
{ "login": "Pipboyguy", "id": 34739235, "node_id": "MDQ6VXNlcjM0NzM5MjM1", "avatar_url": "https://avatars.githubusercontent.com/u/34739235?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Pipboyguy", "html_url": "https://github.com/Pipboyguy", "followers_url": "https://api.github.com/users/Pipboyguy/followers", "following_url": "https://api.github.com/users/Pipboyguy/following{/other_user}", "gists_url": "https://api.github.com/users/Pipboyguy/gists{/gist_id}", "starred_url": "https://api.github.com/users/Pipboyguy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Pipboyguy/subscriptions", "organizations_url": "https://api.github.com/users/Pipboyguy/orgs", "repos_url": "https://api.github.com/users/Pipboyguy/repos", "events_url": "https://api.github.com/users/Pipboyguy/events{/privacy}", "received_events_url": "https://api.github.com/users/Pipboyguy/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T16:14:25
2023-03-20T16:14:25
null
NONE
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1820", "html_url": "https://github.com/hwchase17/langchain/pull/1820", "diff_url": "https://github.com/hwchase17/langchain/pull/1820.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1820.patch", "merged_at": null }
Allows user to specify keyword arguments like `use_ssl=False` and `http_auth=('username', 'password')`. Most opensearch deployments need authentication and SSL is a headache to setup and understand.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1820/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1820/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1819
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1819/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1819/comments
https://api.github.com/repos/hwchase17/langchain/issues/1819/events
https://github.com/hwchase17/langchain/pull/1819
1,632,287,372
PR_kwDOIPDwls5MddTI
1,819
release 0.0.117
{ "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": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/hwchase17/langchain/labels/release", "name": "release", "color": "07D4BE", "default": false, "description": "" } ]
closed
false
null
[]
null
[]
2023-03-20T14:59:08
2023-03-20T15:04:09
2023-03-20T15:04:05
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1819", "html_url": "https://github.com/hwchase17/langchain/pull/1819", "diff_url": "https://github.com/hwchase17/langchain/pull/1819.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1819.patch", "merged_at": "2023-03-20T15:04:05" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1819/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1819/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1818
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1818/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1818/comments
https://api.github.com/repos/hwchase17/langchain/issues/1818/events
https://github.com/hwchase17/langchain/pull/1818
1,632,212,776
PR_kwDOIPDwls5MdNhz
1,818
Follow up to #1803 to remove dynamic docs route.
{ "login": "bryanhelmig", "id": 534177, "node_id": "MDQ6VXNlcjUzNDE3Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/534177?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bryanhelmig", "html_url": "https://github.com/bryanhelmig", "followers_url": "https://api.github.com/users/bryanhelmig/followers", "following_url": "https://api.github.com/users/bryanhelmig/following{/other_user}", "gists_url": "https://api.github.com/users/bryanhelmig/gists{/gist_id}", "starred_url": "https://api.github.com/users/bryanhelmig/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bryanhelmig/subscriptions", "organizations_url": "https://api.github.com/users/bryanhelmig/orgs", "repos_url": "https://api.github.com/users/bryanhelmig/repos", "events_url": "https://api.github.com/users/bryanhelmig/events{/privacy}", "received_events_url": "https://api.github.com/users/bryanhelmig/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-20T14:18:03
2023-03-20T14:52:42
2023-03-20T14:52:42
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1818", "html_url": "https://github.com/hwchase17/langchain/pull/1818", "diff_url": "https://github.com/hwchase17/langchain/pull/1818.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1818.patch", "merged_at": "2023-03-20T14:52:42" }
The base docs are going to be more stable and familiar for folks. Dynamic route is currently in flux.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1818/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/hwchase17/langchain/issues/1818/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1817
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1817/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1817/comments
https://api.github.com/repos/hwchase17/langchain/issues/1817/events
https://github.com/hwchase17/langchain/pull/1817
1,632,186,412
PR_kwDOIPDwls5MdHzA
1,817
WIP: Small fixes to get the AzureChatOpenAI working
{ "login": "eavanvalkenburg", "id": 13749212, "node_id": "MDQ6VXNlcjEzNzQ5MjEy", "avatar_url": "https://avatars.githubusercontent.com/u/13749212?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eavanvalkenburg", "html_url": "https://github.com/eavanvalkenburg", "followers_url": "https://api.github.com/users/eavanvalkenburg/followers", "following_url": "https://api.github.com/users/eavanvalkenburg/following{/other_user}", "gists_url": "https://api.github.com/users/eavanvalkenburg/gists{/gist_id}", "starred_url": "https://api.github.com/users/eavanvalkenburg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eavanvalkenburg/subscriptions", "organizations_url": "https://api.github.com/users/eavanvalkenburg/orgs", "repos_url": "https://api.github.com/users/eavanvalkenburg/repos", "events_url": "https://api.github.com/users/eavanvalkenburg/events{/privacy}", "received_events_url": "https://api.github.com/users/eavanvalkenburg/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T14:05:22
2023-03-20T15:39:40
null
NONE
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1817", "html_url": "https://github.com/hwchase17/langchain/pull/1817", "diff_url": "https://github.com/hwchase17/langchain/pull/1817.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1817.patch", "merged_at": null }
I ran into some issues with AzureChatOpenAI in a agent so starting fixing, not fully tested quite yet!
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1817/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/hwchase17/langchain/issues/1817/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1816
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1816/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1816/comments
https://api.github.com/repos/hwchase17/langchain/issues/1816/events
https://github.com/hwchase17/langchain/issues/1816
1,632,175,081
I_kwDOIPDwls5hSQPp
1,816
async call for question answering
{ "login": "dheerajiiitv", "id": 24246192, "node_id": "MDQ6VXNlcjI0MjQ2MTky", "avatar_url": "https://avatars.githubusercontent.com/u/24246192?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dheerajiiitv", "html_url": "https://github.com/dheerajiiitv", "followers_url": "https://api.github.com/users/dheerajiiitv/followers", "following_url": "https://api.github.com/users/dheerajiiitv/following{/other_user}", "gists_url": "https://api.github.com/users/dheerajiiitv/gists{/gist_id}", "starred_url": "https://api.github.com/users/dheerajiiitv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dheerajiiitv/subscriptions", "organizations_url": "https://api.github.com/users/dheerajiiitv/orgs", "repos_url": "https://api.github.com/users/dheerajiiitv/repos", "events_url": "https://api.github.com/users/dheerajiiitv/events{/privacy}", "received_events_url": "https://api.github.com/users/dheerajiiitv/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T13:59:50
2023-03-20T14:00:22
null
CONTRIBUTOR
null
null
null
Hey team, i have created an API in the below format ` @app.post("/get_answer") async def get_answer(user_query): return vector_db.qa(user_query) ` And I call this function for 5 user_query, but it only able to process first query other query faces issues from OpenAI. Is calling OpenAI API parallely not allowed at all?
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1816/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1816/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1815
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1815/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1815/comments
https://api.github.com/repos/hwchase17/langchain/issues/1815/events
https://github.com/hwchase17/langchain/issues/1815
1,631,865,900
I_kwDOIPDwls5hREws
1,815
During the tracing of ChatVectorDBChain, even though it shows source_documents but when clicked on Explore, source_documents suddenly becomes [object Object],[object Object]
{ "login": "srithedesigner", "id": 59601228, "node_id": "MDQ6VXNlcjU5NjAxMjI4", "avatar_url": "https://avatars.githubusercontent.com/u/59601228?v=4", "gravatar_id": "", "url": "https://api.github.com/users/srithedesigner", "html_url": "https://github.com/srithedesigner", "followers_url": "https://api.github.com/users/srithedesigner/followers", "following_url": "https://api.github.com/users/srithedesigner/following{/other_user}", "gists_url": "https://api.github.com/users/srithedesigner/gists{/gist_id}", "starred_url": "https://api.github.com/users/srithedesigner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/srithedesigner/subscriptions", "organizations_url": "https://api.github.com/users/srithedesigner/orgs", "repos_url": "https://api.github.com/users/srithedesigner/repos", "events_url": "https://api.github.com/users/srithedesigner/events{/privacy}", "received_events_url": "https://api.github.com/users/srithedesigner/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "are you using ChatOpenAI model? or normal OpenAI model?", "Currently, we are using AzureOpenAI **text-davinci-003** model" ]
2023-03-20T10:58:37
2023-03-20T17:41:15
null
NONE
null
null
null
During the tracing of ChatVectorDBChain, even though it shows source_documents but when clicked on Explore, source_documents suddenly becomes [object Object],[object Object]. Here is an example: ![image](https://user-images.githubusercontent.com/59601228/226320060-a1adf3c5-01d7-4d2b-a978-5ba505749d7b.png) and then after clicking on explore button: ![image](https://user-images.githubusercontent.com/59601228/226320223-b41cbd06-6f91-4dd9-a2aa-8d7b80812ea1.png)
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1815/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1815/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1813
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1813/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1813/comments
https://api.github.com/repos/hwchase17/langchain/issues/1813/events
https://github.com/hwchase17/langchain/pull/1813
1,631,445,824
PR_kwDOIPDwls5MankV
1,813
add from to add texts from embeddings
{ "login": "shibuiwilliam", "id": 23517545, "node_id": "MDQ6VXNlcjIzNTE3NTQ1", "avatar_url": "https://avatars.githubusercontent.com/u/23517545?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shibuiwilliam", "html_url": "https://github.com/shibuiwilliam", "followers_url": "https://api.github.com/users/shibuiwilliam/followers", "following_url": "https://api.github.com/users/shibuiwilliam/following{/other_user}", "gists_url": "https://api.github.com/users/shibuiwilliam/gists{/gist_id}", "starred_url": "https://api.github.com/users/shibuiwilliam/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shibuiwilliam/subscriptions", "organizations_url": "https://api.github.com/users/shibuiwilliam/orgs", "repos_url": "https://api.github.com/users/shibuiwilliam/repos", "events_url": "https://api.github.com/users/shibuiwilliam/events{/privacy}", "received_events_url": "https://api.github.com/users/shibuiwilliam/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T06:01:08
2023-03-20T07:25:17
null
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1813", "html_url": "https://github.com/hwchase17/langchain/pull/1813", "diff_url": "https://github.com/hwchase17/langchain/pull/1813.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1813.patch", "merged_at": null }
# Why - Since making vectors of texts can be done outside of langchain Faiss, this PR is to add functionality to pass text and its vector pair to initialize and add embedding to Faiss. # What - Add `from_embedding` method in Faiss to initialize Faiss index by passing the embeddings paired with original text made outside of the langchain. - Add `add_embedding` method to add embedding paired with original text to append the embedding made outside of the langchain.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1813/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1813/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1812
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1812/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1812/comments
https://api.github.com/repos/hwchase17/langchain/issues/1812/events
https://github.com/hwchase17/langchain/pull/1812
1,631,442,344
PR_kwDOIPDwls5MamyV
1,812
fix: AzureChatOpenAI take base, version and type from model_kwargs
{ "login": "sheikalthaf", "id": 22526247, "node_id": "MDQ6VXNlcjIyNTI2MjQ3", "avatar_url": "https://avatars.githubusercontent.com/u/22526247?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sheikalthaf", "html_url": "https://github.com/sheikalthaf", "followers_url": "https://api.github.com/users/sheikalthaf/followers", "following_url": "https://api.github.com/users/sheikalthaf/following{/other_user}", "gists_url": "https://api.github.com/users/sheikalthaf/gists{/gist_id}", "starred_url": "https://api.github.com/users/sheikalthaf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sheikalthaf/subscriptions", "organizations_url": "https://api.github.com/users/sheikalthaf/orgs", "repos_url": "https://api.github.com/users/sheikalthaf/repos", "events_url": "https://api.github.com/users/sheikalthaf/events{/privacy}", "received_events_url": "https://api.github.com/users/sheikalthaf/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-20T05:58:41
2023-03-20T06:29:12
2023-03-20T06:29:12
NONE
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1812", "html_url": "https://github.com/hwchase17/langchain/pull/1812", "diff_url": "https://github.com/hwchase17/langchain/pull/1812.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1812.patch", "merged_at": null }
Currently **openai_api_base**, **openai_api_version**, **openai_api_type** are not part of required fields of ChatOpenAI, So these fields are part of **model_kwargs**. This PR fix the issue #1810
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1812/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1812/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1811
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1811/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1811/comments
https://api.github.com/repos/hwchase17/langchain/issues/1811/events
https://github.com/hwchase17/langchain/issues/1811
1,631,430,634
I_kwDOIPDwls5hPafq
1,811
Need better exception Handling at Pinecone.from_texts()
{ "login": "Gupta-Anubhav12", "id": 64721638, "node_id": "MDQ6VXNlcjY0NzIxNjM4", "avatar_url": "https://avatars.githubusercontent.com/u/64721638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Gupta-Anubhav12", "html_url": "https://github.com/Gupta-Anubhav12", "followers_url": "https://api.github.com/users/Gupta-Anubhav12/followers", "following_url": "https://api.github.com/users/Gupta-Anubhav12/following{/other_user}", "gists_url": "https://api.github.com/users/Gupta-Anubhav12/gists{/gist_id}", "starred_url": "https://api.github.com/users/Gupta-Anubhav12/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Gupta-Anubhav12/subscriptions", "organizations_url": "https://api.github.com/users/Gupta-Anubhav12/orgs", "repos_url": "https://api.github.com/users/Gupta-Anubhav12/repos", "events_url": "https://api.github.com/users/Gupta-Anubhav12/events{/privacy}", "received_events_url": "https://api.github.com/users/Gupta-Anubhav12/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T05:48:55
2023-03-20T05:48:55
null
NONE
null
null
null
OpenAI has been fairly unstable with keeping up the load after back to back releases and it tends to fail at some requests. now If we're embedding a big document in chunks, it tends to fail at some point and Pinecone.from_texts() does not have exception handling, on failure of a chunk whole document that is left is wasted. <img width="641" alt="image" src="https://user-images.githubusercontent.com/64721638/226257394-76ba84f7-2801-49e9-9261-b4a4550a4660.png"> - we should use exponential retry or some better exception handling so that whole document does not crashes. please let me know if I can work on the issue and submit a PR
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1811/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1811/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1810
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1810/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1810/comments
https://api.github.com/repos/hwchase17/langchain/issues/1810/events
https://github.com/hwchase17/langchain/issues/1810
1,631,427,537
I_kwDOIPDwls5hPZvR
1,810
AzureChatOpenAI failed to accept openai_api_base, throwing error
{ "login": "sheikalthaf", "id": 22526247, "node_id": "MDQ6VXNlcjIyNTI2MjQ3", "avatar_url": "https://avatars.githubusercontent.com/u/22526247?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sheikalthaf", "html_url": "https://github.com/sheikalthaf", "followers_url": "https://api.github.com/users/sheikalthaf/followers", "following_url": "https://api.github.com/users/sheikalthaf/following{/other_user}", "gists_url": "https://api.github.com/users/sheikalthaf/gists{/gist_id}", "starred_url": "https://api.github.com/users/sheikalthaf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sheikalthaf/subscriptions", "organizations_url": "https://api.github.com/users/sheikalthaf/orgs", "repos_url": "https://api.github.com/users/sheikalthaf/repos", "events_url": "https://api.github.com/users/sheikalthaf/events{/privacy}", "received_events_url": "https://api.github.com/users/sheikalthaf/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T05:44:48
2023-03-20T05:44:48
null
NONE
null
null
null
Error Message: ![image](https://user-images.githubusercontent.com/22526247/226255025-23efc899-74f6-4050-aac0-b1dc08dc298b.png) Usage: I currently using **AzureChatOpenAI** with below parameters ![image](https://user-images.githubusercontent.com/22526247/226255310-8b28a2eb-6ea6-428d-b818-72776135f721.png) But it is not taking the value from parameter and throwing error.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1810/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1810/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1809
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1809/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1809/comments
https://api.github.com/repos/hwchase17/langchain/issues/1809/events
https://github.com/hwchase17/langchain/issues/1809
1,631,399,350
I_kwDOIPDwls5hPS22
1,809
issue with pinecone similarity_search function
{ "login": "butzhang", "id": 4190704, "node_id": "MDQ6VXNlcjQxOTA3MDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/4190704?v=4", "gravatar_id": "", "url": "https://api.github.com/users/butzhang", "html_url": "https://github.com/butzhang", "followers_url": "https://api.github.com/users/butzhang/followers", "following_url": "https://api.github.com/users/butzhang/following{/other_user}", "gists_url": "https://api.github.com/users/butzhang/gists{/gist_id}", "starred_url": "https://api.github.com/users/butzhang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/butzhang/subscriptions", "organizations_url": "https://api.github.com/users/butzhang/orgs", "repos_url": "https://api.github.com/users/butzhang/repos", "events_url": "https://api.github.com/users/butzhang/events{/privacy}", "received_events_url": "https://api.github.com/users/butzhang/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T05:13:20
2023-03-20T05:37:20
null
NONE
null
null
null
While I am trying to rebuild chat_pdf based on mayo's example. I noticed that vector store with pinecone doesn't respond with similar docs when it performs similarity_search function. I test it against other vector provider like faiss and chroma. In both cases, those all works. Here is the [code link](https://github.com/butzhang/simple_chat_pdf/blob/main/simple_chat_pdf/components/question_handler.py#L28-L30) Steps to reproduce. """ from simple_chat_pdf.components.question_handler import QuestionHandler question = 'what is this legal case about' r = QuestionHandler().get_answer(question=question, chat_history=[]) """ You can switch from different vector and see only pinecone provide failed and didn't find similar docs you need to switch to your open_api key because mine might expire
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1809/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1809/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1808
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1808/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1808/comments
https://api.github.com/repos/hwchase17/langchain/issues/1808/events
https://github.com/hwchase17/langchain/pull/1808
1,631,333,124
PR_kwDOIPDwls5MaOsK
1,808
Harrison/llm math
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-20T03:55:51
2023-03-20T14:53:28
2023-03-20T14:53:27
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1808", "html_url": "https://github.com/hwchase17/langchain/pull/1808", "diff_url": "https://github.com/hwchase17/langchain/pull/1808.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1808.patch", "merged_at": "2023-03-20T14:53:27" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1808/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1808/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1807
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1807/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1807/comments
https://api.github.com/repos/hwchase17/langchain/issues/1807/events
https://github.com/hwchase17/langchain/pull/1807
1,631,325,155
PR_kwDOIPDwls5MaNAc
1,807
fix typing
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-20T03:42:36
2023-03-20T14:50:51
2023-03-20T14:50:50
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1807", "html_url": "https://github.com/hwchase17/langchain/pull/1807", "diff_url": "https://github.com/hwchase17/langchain/pull/1807.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1807.patch", "merged_at": "2023-03-20T14:50:50" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1807/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1807/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1806
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1806/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1806/comments
https://api.github.com/repos/hwchase17/langchain/issues/1806/events
https://github.com/hwchase17/langchain/pull/1806
1,631,315,080
PR_kwDOIPDwls5MaLVb
1,806
fix bug with openai token count
{ "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 }
[]
closed
false
null
[]
null
[ "Just came here to report this. The current master (b6ba989) test_openai integration test is failing, and this should fix it! Thanks\r\n\r\n![image](https://user-images.githubusercontent.com/35026793/226252291-02848627-0286-41a4-aedf-97a2b966d513.png)\r\n" ]
2023-03-20T03:27:12
2023-03-20T14:51:20
2023-03-20T14:51:19
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1806", "html_url": "https://github.com/hwchase17/langchain/pull/1806", "diff_url": "https://github.com/hwchase17/langchain/pull/1806.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1806.patch", "merged_at": "2023-03-20T14:51:19" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1806/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/hwchase17/langchain/issues/1806/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1805
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1805/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1805/comments
https://api.github.com/repos/hwchase17/langchain/issues/1805/events
https://github.com/hwchase17/langchain/issues/1805
1,631,276,872
I_kwDOIPDwls5hO09I
1,805
Document loader for Azure Blob storage
{ "login": "amitmukh", "id": 45551399, "node_id": "MDQ6VXNlcjQ1NTUxMzk5", "avatar_url": "https://avatars.githubusercontent.com/u/45551399?v=4", "gravatar_id": "", "url": "https://api.github.com/users/amitmukh", "html_url": "https://github.com/amitmukh", "followers_url": "https://api.github.com/users/amitmukh/followers", "following_url": "https://api.github.com/users/amitmukh/following{/other_user}", "gists_url": "https://api.github.com/users/amitmukh/gists{/gist_id}", "starred_url": "https://api.github.com/users/amitmukh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amitmukh/subscriptions", "organizations_url": "https://api.github.com/users/amitmukh/orgs", "repos_url": "https://api.github.com/users/amitmukh/repos", "events_url": "https://api.github.com/users/amitmukh/events{/privacy}", "received_events_url": "https://api.github.com/users/amitmukh/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-20T02:39:16
2023-03-20T02:39:16
null
NONE
null
null
null
Lots of customers is asking if langchain have a document loader like AWS S3 or GCS for Azure Blob Storage as well. As you know Microsoft is a big partner for OpenAI , so there is a real need to have native document loader for Azure Blob storage as well. We will be very happy to see this feature ASAP.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1805/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1805/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1804
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1804/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1804/comments
https://api.github.com/repos/hwchase17/langchain/issues/1804/events
https://github.com/hwchase17/langchain/pull/1804
1,631,206,822
PR_kwDOIPDwls5MZz-x
1,804
Harrison/guarded output parser
{ "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 }
[]
open
false
null
[]
null
[]
2023-03-20T01:10:49
2023-03-20T21:05:00
null
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1804", "html_url": "https://github.com/hwchase17/langchain/pull/1804", "diff_url": "https://github.com/hwchase17/langchain/pull/1804.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1804.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1804/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1804/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1803
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1803/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1803/comments
https://api.github.com/repos/hwchase17/langchain/issues/1803/events
https://github.com/hwchase17/langchain/pull/1803
1,631,175,854
PR_kwDOIPDwls5MZtlw
1,803
Don't use dynamic api endpoint for Zapier NLA
{ "login": "agola11", "id": 9536492, "node_id": "MDQ6VXNlcjk1MzY0OTI=", "avatar_url": "https://avatars.githubusercontent.com/u/9536492?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agola11", "html_url": "https://github.com/agola11", "followers_url": "https://api.github.com/users/agola11/followers", "following_url": "https://api.github.com/users/agola11/following{/other_user}", "gists_url": "https://api.github.com/users/agola11/gists{/gist_id}", "starred_url": "https://api.github.com/users/agola11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agola11/subscriptions", "organizations_url": "https://api.github.com/users/agola11/orgs", "repos_url": "https://api.github.com/users/agola11/repos", "events_url": "https://api.github.com/users/agola11/events{/privacy}", "received_events_url": "https://api.github.com/users/agola11/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "LGTM!" ]
2023-03-20T00:12:04
2023-03-20T03:12:34
2023-03-20T03:12:33
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1803", "html_url": "https://github.com/hwchase17/langchain/pull/1803", "diff_url": "https://github.com/hwchase17/langchain/pull/1803.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1803.patch", "merged_at": "2023-03-20T03:12:33" }
From Robert "Right now the dynamic/ route for specifically the above endpoints is acting on all providers a user has set up, not just the provider for the supplied API key."
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1803/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1803/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1801
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1801/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1801/comments
https://api.github.com/repos/hwchase17/langchain/issues/1801/events
https://github.com/hwchase17/langchain/issues/1801
1,631,163,256
I_kwDOIPDwls5hOZN4
1,801
Poetry 1.4.0 installation fails
{ "login": "dlqqq", "id": 44106031, "node_id": "MDQ6VXNlcjQ0MTA2MDMx", "avatar_url": "https://avatars.githubusercontent.com/u/44106031?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dlqqq", "html_url": "https://github.com/dlqqq", "followers_url": "https://api.github.com/users/dlqqq/followers", "following_url": "https://api.github.com/users/dlqqq/following{/other_user}", "gists_url": "https://api.github.com/users/dlqqq/gists{/gist_id}", "starred_url": "https://api.github.com/users/dlqqq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dlqqq/subscriptions", "organizations_url": "https://api.github.com/users/dlqqq/orgs", "repos_url": "https://api.github.com/users/dlqqq/repos", "events_url": "https://api.github.com/users/dlqqq/events{/privacy}", "received_events_url": "https://api.github.com/users/dlqqq/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "Cut a PR upstream to fix `pydata-sphinx-theme` wheels: https://github.com/pradyunsg/sphinx-theme-builder/pull/39" ]
2023-03-19T23:42:55
2023-03-20T01:54:33
null
NONE
null
null
null
`poetry install -E all` fails with Poetry >=1.4.0 due to upstream incompatibility between `poetry>=1.4.0` and `pydata_sphinx_theme`. This is a tracking issue. I've already created an issue upstream here: https://github.com/pydata/pydata-sphinx-theme/issues/1253
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1801/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1801/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1800
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1800/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1800/comments
https://api.github.com/repos/hwchase17/langchain/issues/1800/events
https://github.com/hwchase17/langchain/issues/1800
1,631,160,642
I_kwDOIPDwls5hOYlC
1,800
Error when overriding default prompt template of ConversationChain
{ "login": "universe6666", "id": 72682087, "node_id": "MDQ6VXNlcjcyNjgyMDg3", "avatar_url": "https://avatars.githubusercontent.com/u/72682087?v=4", "gravatar_id": "", "url": "https://api.github.com/users/universe6666", "html_url": "https://github.com/universe6666", "followers_url": "https://api.github.com/users/universe6666/followers", "following_url": "https://api.github.com/users/universe6666/following{/other_user}", "gists_url": "https://api.github.com/users/universe6666/gists{/gist_id}", "starred_url": "https://api.github.com/users/universe6666/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/universe6666/subscriptions", "organizations_url": "https://api.github.com/users/universe6666/orgs", "repos_url": "https://api.github.com/users/universe6666/repos", "events_url": "https://api.github.com/users/universe6666/events{/privacy}", "received_events_url": "https://api.github.com/users/universe6666/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "yes you're correct - conversation chain only currently allows for a single input, that being the input key, and then also history (coming from memory)", "How should I handle this situation if I want to add _context_?\r\n\r\n```\r\nsystem_template=\"\"\"Use the following pieces of context to answer the users question. \r\nIf you don't know the answer, just say that you don't know, don't try to make up an answer.\r\n----------------\r\n{context}\"\"\"\r\nmessages = [\r\n SystemMessagePromptTemplate.from_template(system_template),\r\n MessagesPlaceholder(variable_name=\"history\"),\r\n HumanMessagePromptTemplate.from_template(\"{input}\")\r\n]\r\n```" ]
2023-03-19T23:33:20
2023-03-20T14:50:20
null
NONE
null
null
null
Hi, does anyone know how to override the prompt template of ConversationChain? I am creating a custom prompt template that takes in an additional input variable ``` PROMPT_TEMPLATE = """ {my_info} {history} Human: {input} AI:""" PROMPT = PromptTemplate( input_variables=["history", "input", "my_info"], template=PROMPT_TEMPLATE ) conversation_chain = ConversationChain( prompt=PROMPT, llm=OpenAI(temperature=0.7), verbose=True, memory=ConversationBufferMemory() ) ``` but got the following error: ``` Got unexpected prompt input variables. The prompt expects ['history', 'input', 'my_info'], but got ['history'] as inputs from memory, and input as the normal input key. (type=value_error) ``` Is my understanding correct that currently ConversationChain can only support prompt template that takes in "history" and "input" as the input variables?
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1800/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1800/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1799
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1799/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1799/comments
https://api.github.com/repos/hwchase17/langchain/issues/1799/events
https://github.com/hwchase17/langchain/issues/1799
1,631,156,471
I_kwDOIPDwls5hOXj3
1,799
v0.0.116 ChatVectorDBChain with ChatOpenAI fails with `Should always be something for OpenAI.`
{ "login": "danielchalef", "id": 131175, "node_id": "MDQ6VXNlcjEzMTE3NQ==", "avatar_url": "https://avatars.githubusercontent.com/u/131175?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danielchalef", "html_url": "https://github.com/danielchalef", "followers_url": "https://api.github.com/users/danielchalef/followers", "following_url": "https://api.github.com/users/danielchalef/following{/other_user}", "gists_url": "https://api.github.com/users/danielchalef/gists{/gist_id}", "starred_url": "https://api.github.com/users/danielchalef/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danielchalef/subscriptions", "organizations_url": "https://api.github.com/users/danielchalef/orgs", "repos_url": "https://api.github.com/users/danielchalef/repos", "events_url": "https://api.github.com/users/danielchalef/events{/privacy}", "received_events_url": "https://api.github.com/users/danielchalef/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "Yes, facing the same issue with `QA with Sources` Chain as well for both `ChatOpenAI` and `AzureChatOpenAI`.", "ah sorry - will fix" ]
2023-03-19T23:18:24
2023-03-20T14:51:20
2023-03-20T14:51:20
CONTRIBUTOR
null
null
null
`ChatVectorDBChain` with `ChatOpenAI` fails with `Should always be something for OpenAI.` It appears `_combine_llm_outputs` added to `ChatOpenAI` in v0.0.116 is receiving a `llm_outputs` list containing a `None` value. I think this is related to streaming responses from the OpenAI API. see https://github.com/hwchase17/langchain/pull/1785
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1799/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1799/timeline
null
completed
false
https://api.github.com/repos/hwchase17/langchain/issues/1798
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1798/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1798/comments
https://api.github.com/repos/hwchase17/langchain/issues/1798/events
https://github.com/hwchase17/langchain/pull/1798
1,631,150,045
PR_kwDOIPDwls5MZoik
1,798
Add request timeout to ChatOpenAI
{ "login": "danielchalef", "id": 131175, "node_id": "MDQ6VXNlcjEzMTE3NQ==", "avatar_url": "https://avatars.githubusercontent.com/u/131175?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danielchalef", "html_url": "https://github.com/danielchalef", "followers_url": "https://api.github.com/users/danielchalef/followers", "following_url": "https://api.github.com/users/danielchalef/following{/other_user}", "gists_url": "https://api.github.com/users/danielchalef/gists{/gist_id}", "starred_url": "https://api.github.com/users/danielchalef/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danielchalef/subscriptions", "organizations_url": "https://api.github.com/users/danielchalef/orgs", "repos_url": "https://api.github.com/users/danielchalef/repos", "events_url": "https://api.github.com/users/danielchalef/events{/privacy}", "received_events_url": "https://api.github.com/users/danielchalef/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-19T22:57:08
2023-03-20T03:19:42
2023-03-20T03:19:42
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1798", "html_url": "https://github.com/hwchase17/langchain/pull/1798", "diff_url": "https://github.com/hwchase17/langchain/pull/1798.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1798.patch", "merged_at": "2023-03-20T03:19:42" }
Add request_timeout field to ChatOpenAI. Defaults to 60s.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1798/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1798/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1797
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1797/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1797/comments
https://api.github.com/repos/hwchase17/langchain/issues/1797/events
https://github.com/hwchase17/langchain/issues/1797
1,631,141,587
I_kwDOIPDwls5hOT7T
1,797
[Design Proposal] Standardized interface for LLM provider usage
{ "login": "dlqqq", "id": 44106031, "node_id": "MDQ6VXNlcjQ0MTA2MDMx", "avatar_url": "https://avatars.githubusercontent.com/u/44106031?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dlqqq", "html_url": "https://github.com/dlqqq", "followers_url": "https://api.github.com/users/dlqqq/followers", "following_url": "https://api.github.com/users/dlqqq/following{/other_user}", "gists_url": "https://api.github.com/users/dlqqq/gists{/gist_id}", "starred_url": "https://api.github.com/users/dlqqq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dlqqq/subscriptions", "organizations_url": "https://api.github.com/users/dlqqq/orgs", "repos_url": "https://api.github.com/users/dlqqq/repos", "events_url": "https://api.github.com/users/dlqqq/events{/privacy}", "received_events_url": "https://api.github.com/users/dlqqq/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "thanks for this thoughtful proposal, really appreciate the clarity. I think standardizing model/model_name is a quick easy win.\r\n\r\nof the other parts, what do you think the highest value ones are?", "@hwchase17 I think model discovery (use-case 2) is the next greatest value-add, though it is also the most ambiguous and tricky to implement. Although the scope of this proposal is large, I think it's small enough to be doable in a single PR. Since each of these suggestions requires implementing this for every LLM provider anyways, splitting the implementation of this proposal across multiple PRs seems to involve more complexity than not." ]
2023-03-19T22:28:09
2023-03-20T04:01:36
null
NONE
null
null
null
@hwchase17 Thank you for leading work on this repo! It's very clear you've put a lot of love into this project. 🤗 ❤️ My coworker, @3coins, with whom I work daily, is a regular contributor here. I wanted to offer you a design proposal that I think would be a great addition to LangChain. Here goes: # Motivation LLM providers lack a unified interface for common use-cases: - **Specifying a model ID to a model provider** - Users lack a unified interface for specifying the model they wish to use when instantiating a model provider. `openai` and `openai-chat` both expect the model ID in `model_name`, but `ai21` and `anthropic` expect `model`. - **Discovering supported models** - Users don't have any way of determining valid model IDs for a given provider. For example, a user trying to invoke ChatGPT via `OpenAI(model_name="chatgpt")` will be quite confused, and there's no clear way for a user to look up what the allowed values are. - The only solution for this now is to look up upstream API reference documentation on what models are allowed, which is very tedious. - **Determining prerequisites** - Users don't have any way of determining what packages they need without looking at the source code or encountering a runtime `ImportError`, even if they have knowledge of what providers they wish to use. There's no attribute/property on any of the model providers that lists what packages must be installed before using them. - **Determining necessary authentication** - Similar to the use-case above, users don't have any way of knowing in advance what authentication they should supply and how to supply them before using a provider. We have run into this pain points while [integrating LangChain with Jupyter AI](https://github.com/jupyterlab/jupyter-ai/pull/18). This proposal, if accepted, would allow for applications to build on top of LangChain LLM providers much more easily. # Proposal I propose: 1. We formalize the notion of model IDs and provider IDs, and enforce this naming convention broadly throughout the codebase and documentation. 2. We implement a unified interface for provider interaction by expanding the definition of `BaseLanguageModel`: ```python class EnvAuthStrategy(BaseModel): type: Literal["env"] = 'env' name: str # for sagemaker_endpoint expecting creds at ~/.aws/credentials class FileAuthStrategy(BaseModel): type: Literal["file"] = 'file' path: str AuthStrategy = Union[EnvAuthStrategy, FileAuthStrategy] class BaseLanguageModel(BaseModel, ABC): # provider ID. this is currently bound to _llm_type() id: str # ID of the model to invoke by this provider model_id: str # List of supported models # For registry providers, this will just be ["*"] # See rest of the issue for explanation models: List[str] # List of package requirements package_reqs: List[str] # Authn/authz strategy auth_strategy: AuthStrategy ... ``` Subclasses should override these fields and [make all of them constant](https://docs.pydantic.dev/usage/schema/#field-customization) with the exception of `model_id`. For example, the `cohere` provider might look something like this: ```python class CohereAuthStrategy(EnvAuthStrategy): name = "COHERE_API_KEY" class Cohere(LLM, BaseModel): id = Field("cohere", const=True) # "medium" is just the default, still changeable at runtime model_id = "medium" # Cohere model provider supports any model available via # `cohere.Client#generate()`.` # Reference: https://docs.cohere.ai/reference/generate models: Field(["medium", "xlarge"], const=True) package_reqs: Field(["cohere"], const=True) auth_strategy: Field(CohereAuthStrategy, const=True) ``` This strategy also handles registry providers (see "Terminology" section below) nicely. **A model ID can be defined as any identifier for an instance of a model**. This is best illustrated with a few examples: - `huggingface_hub`: the HF repo ID, e.g. `gpt2` or `google/flan-t5-xxl` - `huggingface_endpoint`: the URL to the HF endpoint, e.g. `https://foo.us-west-2.aws.endpoints.huggingface.cloud/bar` - `sagemaker_endpoint`: the endpoint name. Your region and authentication credentials should already be specified via boto3. While the syntax of model IDs is indeed very different for registry providers, if you think about it, it still functions exactly as a model ID: it identifies one and only one model hosted elsewhere. Because registry providers have a dynamic, unknown, and very large set of valid model IDs, they declare their supported models using a wildcard like so: ``` models: Field(["*"], const=True) ``` # Next steps Let's first get consensus on this proposal and assign the work later. I'd be happy to kick off the PR and define the types, but I'll likely need to loop in other contributors to assist due to the scope of this proposal. There will also need to be some work done on the documentation as well. # Appendix ## Terminology - **Model provider / LLM provider**: A class that can provide one or more models. In LangChain, these currently inherit `BaseLanguageModel`. - **Registry provider**: A special subset of model providers that have a dynamic number of provided models. - These include but are not limited to: `huggingface_hub`, `huggingface_endpoint`, `sagemaker_endpoint` - These providers are unique in the sense that they do not have a static number of models they support. New models are being uploaded to HuggingFace Hub daily. - We call these providers "registry providers" (since they mimic the behavior of a package registry, like NPM/PyPi) - **Model**: A model provided by a model provider (forgive the circular working definition, models are quite difficult to define strictly). For example, `text-davinci-003` is a model provided by the `openai` model provider. - **Model provider ID**: a string identifier for a model provider. Currently this is retrieved from the `_llm_type` property. - **Model ID**: a string identifier for a model.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1797/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1797/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1796
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1796/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1796/comments
https://api.github.com/repos/hwchase17/langchain/issues/1796/events
https://github.com/hwchase17/langchain/issues/1796
1,631,129,215
I_kwDOIPDwls5hOQ5_
1,796
OpenAI base model initialization ignores currently set openi.api_key
{ "login": "gojira", "id": 137710, "node_id": "MDQ6VXNlcjEzNzcxMA==", "avatar_url": "https://avatars.githubusercontent.com/u/137710?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gojira", "html_url": "https://github.com/gojira", "followers_url": "https://api.github.com/users/gojira/followers", "following_url": "https://api.github.com/users/gojira/following{/other_user}", "gists_url": "https://api.github.com/users/gojira/gists{/gist_id}", "starred_url": "https://api.github.com/users/gojira/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gojira/subscriptions", "organizations_url": "https://api.github.com/users/gojira/orgs", "repos_url": "https://api.github.com/users/gojira/repos", "events_url": "https://api.github.com/users/gojira/events{/privacy}", "received_events_url": "https://api.github.com/users/gojira/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-19T21:45:28
2023-03-19T21:45:28
null
CONTRIBUTOR
null
null
null
The current design leaves only two options for initialization `openai-python`: 1. `OPENAI_API_KEY` environment variable 2. pass in `openai_api_key` LangChain works just fine with the other `openai-python` settings like `openai.api_type`. Can we make it so it uses `openai.api_key` if it is not `None`? Happy to try a PR but wanted to understand design choice first. https://github.com/hwchase17/langchain/blob/master/langchain/llms/openai.py#LL202C9-L202C29
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1796/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1796/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1795
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1795/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1795/comments
https://api.github.com/repos/hwchase17/langchain/issues/1795/events
https://github.com/hwchase17/langchain/issues/1795
1,631,126,760
I_kwDOIPDwls5hOQTo
1,795
chain.run threw 403 error
{ "login": "mzhadigerov", "id": 55549813, "node_id": "MDQ6VXNlcjU1NTQ5ODEz", "avatar_url": "https://avatars.githubusercontent.com/u/55549813?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mzhadigerov", "html_url": "https://github.com/mzhadigerov", "followers_url": "https://api.github.com/users/mzhadigerov/followers", "following_url": "https://api.github.com/users/mzhadigerov/following{/other_user}", "gists_url": "https://api.github.com/users/mzhadigerov/gists{/gist_id}", "starred_url": "https://api.github.com/users/mzhadigerov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mzhadigerov/subscriptions", "organizations_url": "https://api.github.com/users/mzhadigerov/orgs", "repos_url": "https://api.github.com/users/mzhadigerov/repos", "events_url": "https://api.github.com/users/mzhadigerov/events{/privacy}", "received_events_url": "https://api.github.com/users/mzhadigerov/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "This looks like an issue with the upstream API and not LangChain itself. LangChain is not responsible for upstream API availability or rate limiting policies.", "@dlqqq How can I set a limit for response time? I'm using `signal` library from python. Wondering If there are alternative ways", "@mzhadigerov Unfortunately, a quick glance at the `pinecone.py` source seems to show that there isn't timeout support at the moment for Pinecone. The community is still working to bring timeouts to classes throughout the repo: https://github.com/hwchase17/langchain/pull/1798" ]
2023-03-19T21:35:50
2023-03-20T01:59:37
null
NONE
null
null
null
I'm using the pipeline for Q&A pipeline on non-english language: ``` pinecone.init( api_key=PINECONE_API_KEY, # find at app.pinecone.io environment=PINECONE_API_ENV # next to api key in console ) index_name = "langchain2" embeddings = OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY) docsearch = Pinecone.from_existing_index(index_name=index_name, embedding=embeddings) llm = OpenAI(temperature=0, openai_api_key=OPENAI_API_KEY) chain = load_qa_chain(llm, chain_type="stuff") query = "QUESTION" docs = docsearch.similarity_search(query, include_metadata=True) res = chain.run(input_documents=docs, question=query) print(res) ``` It stucks in `res = chain.run(input_documents=docs, question=query)` lane. I'm waiting for ~20 mins already. What's the reason for that and how to investigate? --------------- **UPD** After ~30 mins I got ``` Retrying langchain.llms.openai.completion_with_retry.<locals>._completion_with_retry in 4.0 seconds as it raised Timeout: Request timed out: HTTPSConnectionPool(host='api.openai.com', port=443): Read timed out. (read timeout=600). ``` What's the reason for that and how can I fix it?
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1795/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1795/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1794
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1794/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1794/comments
https://api.github.com/repos/hwchase17/langchain/issues/1794/events
https://github.com/hwchase17/langchain/pull/1794
1,631,124,979
PR_kwDOIPDwls5MZjpQ
1,794
update the LLM math prompt to use simpler logic
{ "login": "vbarda", "id": 19161700, "node_id": "MDQ6VXNlcjE5MTYxNzAw", "avatar_url": "https://avatars.githubusercontent.com/u/19161700?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vbarda", "html_url": "https://github.com/vbarda", "followers_url": "https://api.github.com/users/vbarda/followers", "following_url": "https://api.github.com/users/vbarda/following{/other_user}", "gists_url": "https://api.github.com/users/vbarda/gists{/gist_id}", "starred_url": "https://api.github.com/users/vbarda/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vbarda/subscriptions", "organizations_url": "https://api.github.com/users/vbarda/orgs", "repos_url": "https://api.github.com/users/vbarda/repos", "events_url": "https://api.github.com/users/vbarda/events{/privacy}", "received_events_url": "https://api.github.com/users/vbarda/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-19T21:28:58
2023-03-20T03:44:07
2023-03-20T03:44:07
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1794", "html_url": "https://github.com/hwchase17/langchain/pull/1794", "diff_url": "https://github.com/hwchase17/langchain/pull/1794.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1794.patch", "merged_at": "2023-03-20T03:44:07" }
Existing `LLMMathChain` is a bit unpredictable in its behavior. I suspect that it’s because the prompt allows the model to generate the answer bypassing python code altogether [here](https://github.com/hwchase17/langchain/blob/df8702fead4a26263f8a3f0a6fc36db1a8c37c7b/langchain/chains/llm_math/prompt.py#L19), and it can occasionally hallucinate an answer. This PR introduces a simplified version of the prompt. The new version improves the behavior in the following ways: - more robust to the variations in the input format (literal values / spelled out values / whitespacing, etc) - smaller prompt size -> cheaper queries **CAUTION**⚠️: both the new and the old prompts suffer from injection attacks and are quite dangerous since both are executing Python code blindly. In the future this chain would benefit from using a much more constrained executor See examples below that compare old vs new behavior: ```python test_cases = [ # input, expected output ("5", 5), # same value ("5 + 3", 8), # trivial math ("2^3.171", 2 ** 3.171), # insensitivity to the spaces around operator (" 2 ^3.171 ", 2 ** 3.171), # insensitivity to whitespacing overall ("two to the power of three point one hundred seventy one", 2 ** 3.171), # spelled out values and operations ("five + three squared minus 1", 5 + 3 ** 2 - 1), # mixed literal and spelled out values / operations ("2097 times 27.31", 2097 * 27.31), # mixed types ("two thousand ninety seven times twenty seven point thirty one", 2097 * 27.31), # spelled out mixed types ("209758 / 2714", 209758 / 2714), # int division ("209758.857 divided by 2714.31", 209758.857 / 2714.31) # float division ] for input_text, expected_output in test_cases: print("input: ", input_text) print("expected output :", expected_output) print("old chain: ", math_chain.run(input_text)) print("new chain: ", new_math_chain.run(input_text), "\n") ``` ``` input: 5 expected output : 5 old chain: Answer: 8 new chain: Answer: 5 input: 5 + 3 expected output : 8 old chain: Answer: 8 new chain: Answer: 8 input: 2^3.171 expected output : 9.006708689094099 old chain: Answer: 10.945 new chain: Answer: 9.006708689094099 input: 2 ^3.171 expected output : 9.006708689094099 old chain: Answer: 10.945 new chain: Answer: 9.006708689094099 input: two to the power of three point one hundred seventy one expected output : 9.006708689094099 old chain: Answer: 9.9078598877 new chain: Answer: 9.006708689094099 input: five + three squared minus 1 expected output : 13 old chain: Answer: 19 new chain: Answer: 13 input: 2097 times 27.31 expected output : 57269.07 old chain: Answer: 57239.07 new chain: Answer: 57269.07 input: two thousand ninety seven times twenty seven point thirty one expected output : 57269.07 old chain: Answer: 56753.97 new chain: Answer: 57269.07 input: 209758 / 2714 expected output : 77.28739867354459 old chain: Answer: 77.2 new chain: Answer: 77.28739867354459 input: 209758.857 divided by 2714.31 expected output : 77.27888745205964 old chain: Answer: 77.27888745205964 new chain: Answer: 77.27888745205964 ```
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1794/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1794/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1793
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1793/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1793/comments
https://api.github.com/repos/hwchase17/langchain/issues/1793/events
https://github.com/hwchase17/langchain/issues/1793
1,631,119,009
I_kwDOIPDwls5hOOah
1,793
[BUG] Chroma DB - similarity_search - chromadb.errors.NotEnoughElementsException
{ "login": "ventz", "id": 901168, "node_id": "MDQ6VXNlcjkwMTE2OA==", "avatar_url": "https://avatars.githubusercontent.com/u/901168?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ventz", "html_url": "https://github.com/ventz", "followers_url": "https://api.github.com/users/ventz/followers", "following_url": "https://api.github.com/users/ventz/following{/other_user}", "gists_url": "https://api.github.com/users/ventz/gists{/gist_id}", "starred_url": "https://api.github.com/users/ventz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ventz/subscriptions", "organizations_url": "https://api.github.com/users/ventz/orgs", "repos_url": "https://api.github.com/users/ventz/repos", "events_url": "https://api.github.com/users/ventz/events{/privacy}", "received_events_url": "https://api.github.com/users/ventz/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "Facing the same issue. Is it possible to pass the minimum number of query results it can return from our end?", "Facing the same issue" ]
2023-03-19T21:11:37
2023-03-20T15:10:53
null
NONE
null
null
null
Within the Chroma DB, similarity_search has a default "k" of 4. However, if there are less than 4 results to return to the query, it will crash instead of returning whatever is available. ```similarity_search(query: str, k: int = 4, filter: Optional[Dict[str, str]] = None, **kwargs: Any) → List[langchain.docstore.document.Document][[source]](https://langchain.readthedocs.io/en/latest/_modules/langchain/vectorstores/chroma.html#Chroma.similarity_search) Run similarity search with Chroma. Parameters query (str) – Query text to search for. k (int) – Number of results to return. Defaults to 4. filter (Optional[Dict[str, str]]) – Filter by metadata. Defaults to None. Returns List of documents most simmilar to the query text. Return type List[Document] ``` ``` raise NotEnoughElementsException( chromadb.errors.NotEnoughElementsException: Number of requested results 4 cannot be greater than number of elements in index 1 ``` I believe a check is needed to return whatever is available whenever the results are < k. Edit: You can set `k=1` for the search, but then you are artificially limiting yourself, without knowing what is available. It really should check if the N results returned are <= K, and if so, instead of crashing it should return whatever is availab.e.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1793/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1793/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1792
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1792/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1792/comments
https://api.github.com/repos/hwchase17/langchain/issues/1792/events
https://github.com/hwchase17/langchain/issues/1792
1,631,113,414
I_kwDOIPDwls5hONDG
1,792
Query on existing index
{ "login": "mzhadigerov", "id": 55549813, "node_id": "MDQ6VXNlcjU1NTQ5ODEz", "avatar_url": "https://avatars.githubusercontent.com/u/55549813?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mzhadigerov", "html_url": "https://github.com/mzhadigerov", "followers_url": "https://api.github.com/users/mzhadigerov/followers", "following_url": "https://api.github.com/users/mzhadigerov/following{/other_user}", "gists_url": "https://api.github.com/users/mzhadigerov/gists{/gist_id}", "starred_url": "https://api.github.com/users/mzhadigerov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mzhadigerov/subscriptions", "organizations_url": "https://api.github.com/users/mzhadigerov/orgs", "repos_url": "https://api.github.com/users/mzhadigerov/repos", "events_url": "https://api.github.com/users/mzhadigerov/events{/privacy}", "received_events_url": "https://api.github.com/users/mzhadigerov/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "Okay, seems like sending `index_name` and `embedding` is enough.", "text_key is the key in the metadata where the text associated with the embeddings is stored. namespace is optional, depends if you are using it or not\r\n\r\n" ]
2023-03-19T20:55:14
2023-03-20T03:35:45
null
NONE
null
null
null
How to query from an existing index? I filled up an index in Pinecode using: ``` docsearch = Pinecone.from_texts([t.page_content for t in texts], embeddings, index_name=index_name) ``` Now, I'm creating a separate `.py` file, where I need to use the existing index to query. As I understand I need to use the following function: ``` @classmethod def from_existing_index( cls, index_name: str, embedding: Embeddings, text_key: str = "text", namespace: Optional[str] = None, ) -> Pinecone: """Load pinecone vectorstore from index name.""" try: import pinecone except ImportError: raise ValueError( "Could not import pinecone python package. " "Please install it with `pip install pinecone-client`." ) return cls( pinecone.Index(index_name), embedding.embed_query, text_key, namespace ) ``` but what are the arguments there? I know only my `index_name` . What are the rest arguments? Embeddings are embeddings from OpenAI, right? e.g.: ``` embeddings = OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY) ``` What is the `text_key`? And what `name_space` ?
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1792/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1792/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1791
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1791/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1791/comments
https://api.github.com/repos/hwchase17/langchain/issues/1791/events
https://github.com/hwchase17/langchain/pull/1791
1,631,111,699
PR_kwDOIPDwls5MZg9u
1,791
Corrected small typo in error message.
{ "login": "CodeJunkie01", "id": 57178183, "node_id": "MDQ6VXNlcjU3MTc4MTgz", "avatar_url": "https://avatars.githubusercontent.com/u/57178183?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CodeJunkie01", "html_url": "https://github.com/CodeJunkie01", "followers_url": "https://api.github.com/users/CodeJunkie01/followers", "following_url": "https://api.github.com/users/CodeJunkie01/following{/other_user}", "gists_url": "https://api.github.com/users/CodeJunkie01/gists{/gist_id}", "starred_url": "https://api.github.com/users/CodeJunkie01/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CodeJunkie01/subscriptions", "organizations_url": "https://api.github.com/users/CodeJunkie01/orgs", "repos_url": "https://api.github.com/users/CodeJunkie01/repos", "events_url": "https://api.github.com/users/CodeJunkie01/events{/privacy}", "received_events_url": "https://api.github.com/users/CodeJunkie01/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-19T20:49:01
2023-03-20T14:51:36
2023-03-20T14:51:36
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1791", "html_url": "https://github.com/hwchase17/langchain/pull/1791", "diff_url": "https://github.com/hwchase17/langchain/pull/1791.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1791.patch", "merged_at": "2023-03-20T14:51:36" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1791/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1791/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1790
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1790/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1790/comments
https://api.github.com/repos/hwchase17/langchain/issues/1790/events
https://github.com/hwchase17/langchain/issues/1790
1,631,067,675
I_kwDOIPDwls5hOB4b
1,790
[BUG] OpenMetero prompt token count error
{ "login": "CypherpunkSamurai", "id": 66906402, "node_id": "MDQ6VXNlcjY2OTA2NDAy", "avatar_url": "https://avatars.githubusercontent.com/u/66906402?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CypherpunkSamurai", "html_url": "https://github.com/CypherpunkSamurai", "followers_url": "https://api.github.com/users/CypherpunkSamurai/followers", "following_url": "https://api.github.com/users/CypherpunkSamurai/following{/other_user}", "gists_url": "https://api.github.com/users/CypherpunkSamurai/gists{/gist_id}", "starred_url": "https://api.github.com/users/CypherpunkSamurai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CypherpunkSamurai/subscriptions", "organizations_url": "https://api.github.com/users/CypherpunkSamurai/orgs", "repos_url": "https://api.github.com/users/CypherpunkSamurai/repos", "events_url": "https://api.github.com/users/CypherpunkSamurai/events{/privacy}", "received_events_url": "https://api.github.com/users/CypherpunkSamurai/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-19T18:40:49
2023-03-19T18:40:49
null
NONE
null
null
null
# [BUG] OpenMetero prompt token count error The OpenMetero api returns a json that is large and the GPT-3 api cannot study it to return information ## What and Why? While running the OpenMetero Lang chain the open metero api returns a large json file that is then sent to the gpt-3 api to understand, which is larger than the token size thus returning errors. ## Suggestions? Add another step to parse json using json chain
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1790/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1790/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1789
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1789/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1789/comments
https://api.github.com/repos/hwchase17/langchain/issues/1789/events
https://github.com/hwchase17/langchain/pull/1789
1,631,048,617
PR_kwDOIPDwls5MZUex
1,789
Small fix: Remove unused variable `summary_message_role`
{ "login": "Aratako", "id": 127325395, "node_id": "U_kgDOB5bU0w", "avatar_url": "https://avatars.githubusercontent.com/u/127325395?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Aratako", "html_url": "https://github.com/Aratako", "followers_url": "https://api.github.com/users/Aratako/followers", "following_url": "https://api.github.com/users/Aratako/following{/other_user}", "gists_url": "https://api.github.com/users/Aratako/gists{/gist_id}", "starred_url": "https://api.github.com/users/Aratako/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aratako/subscriptions", "organizations_url": "https://api.github.com/users/Aratako/orgs", "repos_url": "https://api.github.com/users/Aratako/repos", "events_url": "https://api.github.com/users/Aratako/events{/privacy}", "received_events_url": "https://api.github.com/users/Aratako/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "thanks!" ]
2023-03-19T17:49:21
2023-03-20T01:18:24
2023-03-19T18:01:04
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1789", "html_url": "https://github.com/hwchase17/langchain/pull/1789", "diff_url": "https://github.com/hwchase17/langchain/pull/1789.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1789.patch", "merged_at": "2023-03-19T18:01:04" }
After the changes in #1783, `summary_message_role` is no longer used in `ConversationSummaryBufferMemory`, so this PR removes it.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1789/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1789/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1788
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1788/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1788/comments
https://api.github.com/repos/hwchase17/langchain/issues/1788/events
https://github.com/hwchase17/langchain/pull/1788
1,631,047,284
PR_kwDOIPDwls5MZUN1
1,788
bump version to 0.0.116
{ "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": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/hwchase17/langchain/labels/release", "name": "release", "color": "07D4BE", "default": false, "description": "" } ]
closed
false
null
[]
null
[]
2023-03-19T17:44:39
2023-03-19T18:01:17
2023-03-19T18:01:16
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1788", "html_url": "https://github.com/hwchase17/langchain/pull/1788", "diff_url": "https://github.com/hwchase17/langchain/pull/1788.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1788.patch", "merged_at": "2023-03-19T18:01:16" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1788/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1788/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1787
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1787/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1787/comments
https://api.github.com/repos/hwchase17/langchain/issues/1787/events
https://github.com/hwchase17/langchain/pull/1787
1,631,045,009
PR_kwDOIPDwls5MZTwd
1,787
Harrison/azure embeddings
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-19T17:38:04
2023-03-19T17:42:34
2023-03-19T17:42:33
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1787", "html_url": "https://github.com/hwchase17/langchain/pull/1787", "diff_url": "https://github.com/hwchase17/langchain/pull/1787.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1787.patch", "merged_at": "2023-03-19T17:42:33" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1787/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1787/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1786
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1786/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1786/comments
https://api.github.com/repos/hwchase17/langchain/issues/1786/events
https://github.com/hwchase17/langchain/pull/1786
1,631,042,195
PR_kwDOIPDwls5MZTKB
1,786
Harrison/token buffer memory
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-19T17:32:45
2023-03-19T17:42:25
2023-03-19T17:42:24
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1786", "html_url": "https://github.com/hwchase17/langchain/pull/1786", "diff_url": "https://github.com/hwchase17/langchain/pull/1786.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1786.patch", "merged_at": "2023-03-19T17:42:24" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1786/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1786/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1785
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1785/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1785/comments
https://api.github.com/repos/hwchase17/langchain/issues/1785/events
https://github.com/hwchase17/langchain/pull/1785
1,631,034,554
PR_kwDOIPDwls5MZRcV
1,785
Harrison/chat token usage
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-19T17:22:45
2023-03-19T17:32:32
2023-03-19T17:32:31
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1785", "html_url": "https://github.com/hwchase17/langchain/pull/1785", "diff_url": "https://github.com/hwchase17/langchain/pull/1785.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1785.patch", "merged_at": "2023-03-19T17:32:31" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1785/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1785/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1784
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1784/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1784/comments
https://api.github.com/repos/hwchase17/langchain/issues/1784/events
https://github.com/hwchase17/langchain/pull/1784
1,631,030,278
PR_kwDOIPDwls5MZQnN
1,784
Harrison/add source column
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-19T17:09:08
2023-03-19T17:32:14
2023-03-19T17:32:13
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1784", "html_url": "https://github.com/hwchase17/langchain/pull/1784", "diff_url": "https://github.com/hwchase17/langchain/pull/1784.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1784.patch", "merged_at": "2023-03-19T17:32:13" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1784/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1784/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1783
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1783/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1783/comments
https://api.github.com/repos/hwchase17/langchain/issues/1783/events
https://github.com/hwchase17/langchain/pull/1783
1,631,026,105
PR_kwDOIPDwls5MZPyK
1,783
Harrison/summary message rol
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-19T16:56:55
2023-03-19T17:09:20
2023-03-19T17:09:19
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1783", "html_url": "https://github.com/hwchase17/langchain/pull/1783", "diff_url": "https://github.com/hwchase17/langchain/pull/1783.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1783.patch", "merged_at": "2023-03-19T17:09:19" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1783/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1783/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1782
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1782/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1782/comments
https://api.github.com/repos/hwchase17/langchain/issues/1782/events
https://github.com/hwchase17/langchain/pull/1782
1,631,020,619
PR_kwDOIPDwls5MZOpo
1,782
change chat default
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-19T16:44:12
2023-03-19T17:02:00
2023-03-19T17:01:59
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1782", "html_url": "https://github.com/hwchase17/langchain/pull/1782", "diff_url": "https://github.com/hwchase17/langchain/pull/1782.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1782.patch", "merged_at": "2023-03-19T17:01:59" }
Resolves https://github.com/hwchase17/langchain/issues/1532, resolves https://github.com/hwchase17/langchain/issues/1652.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1782/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1782/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1781
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1781/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1781/comments
https://api.github.com/repos/hwchase17/langchain/issues/1781/events
https://github.com/hwchase17/langchain/pull/1781
1,631,012,739
PR_kwDOIPDwls5MZM6s
1,781
Harrison/add warning to openaichat
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-19T16:34:30
2023-03-19T16:43:58
2023-03-19T16:43:57
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1781", "html_url": "https://github.com/hwchase17/langchain/pull/1781", "diff_url": "https://github.com/hwchase17/langchain/pull/1781.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1781.patch", "merged_at": "2023-03-19T16:43:57" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1781/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1781/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1780
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1780/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1780/comments
https://api.github.com/repos/hwchase17/langchain/issues/1780/events
https://github.com/hwchase17/langchain/issues/1780
1,631,012,518
I_kwDOIPDwls5hN0am
1,780
Add support for selfhost models like ChatGLM or transformer models
{ "login": "imClumsyPanda", "id": 5668498, "node_id": "MDQ6VXNlcjU2Njg0OTg=", "avatar_url": "https://avatars.githubusercontent.com/u/5668498?v=4", "gravatar_id": "", "url": "https://api.github.com/users/imClumsyPanda", "html_url": "https://github.com/imClumsyPanda", "followers_url": "https://api.github.com/users/imClumsyPanda/followers", "following_url": "https://api.github.com/users/imClumsyPanda/following{/other_user}", "gists_url": "https://api.github.com/users/imClumsyPanda/gists{/gist_id}", "starred_url": "https://api.github.com/users/imClumsyPanda/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/imClumsyPanda/subscriptions", "organizations_url": "https://api.github.com/users/imClumsyPanda/orgs", "repos_url": "https://api.github.com/users/imClumsyPanda/repos", "events_url": "https://api.github.com/users/imClumsyPanda/events{/privacy}", "received_events_url": "https://api.github.com/users/imClumsyPanda/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-19T16:33:47
2023-03-19T16:36:25
null
NONE
null
null
null
Is there any chance to add support for selfhost models like ChatGLM or transformer models. Tried to use runhouse with model “ChatGLM-6B”, but not working.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1780/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1780/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1779
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1779/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1779/comments
https://api.github.com/repos/hwchase17/langchain/issues/1779/events
https://github.com/hwchase17/langchain/issues/1779
1,630,987,862
I_kwDOIPDwls5hNuZW
1,779
Fix regex for map_rerank_prompt.py
{ "login": "Knight1997", "id": 29232411, "node_id": "MDQ6VXNlcjI5MjMyNDEx", "avatar_url": "https://avatars.githubusercontent.com/u/29232411?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Knight1997", "html_url": "https://github.com/Knight1997", "followers_url": "https://api.github.com/users/Knight1997/followers", "following_url": "https://api.github.com/users/Knight1997/following{/other_user}", "gists_url": "https://api.github.com/users/Knight1997/gists{/gist_id}", "starred_url": "https://api.github.com/users/Knight1997/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Knight1997/subscriptions", "organizations_url": "https://api.github.com/users/Knight1997/orgs", "repos_url": "https://api.github.com/users/Knight1997/repos", "events_url": "https://api.github.com/users/Knight1997/events{/privacy}", "received_events_url": "https://api.github.com/users/Knight1997/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-19T15:26:29
2023-03-19T15:44:08
null
NONE
null
null
null
https://github.com/hwchase17/langchain/blob/3701b2901e76f2f97239c2152a6a7d01754fb666/langchain/chains/question_answering/map_rerank_prompt.py#L6 This regex is not handling the case where if answer text contains something like: `\n Helpful Score: 100` and the parsing fails even if the score is 100. It should be something like: `(.*?)\n((.?)*)Score: (.*)` to resolve the use case
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1779/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1779/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1778
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1778/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1778/comments
https://api.github.com/repos/hwchase17/langchain/issues/1778/events
https://github.com/hwchase17/langchain/pull/1778
1,630,986,992
PR_kwDOIPDwls5MZH19
1,778
GPT-4 support
{ "login": "ndurner", "id": 903725, "node_id": "MDQ6VXNlcjkwMzcyNQ==", "avatar_url": "https://avatars.githubusercontent.com/u/903725?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ndurner", "html_url": "https://github.com/ndurner", "followers_url": "https://api.github.com/users/ndurner/followers", "following_url": "https://api.github.com/users/ndurner/following{/other_user}", "gists_url": "https://api.github.com/users/ndurner/gists{/gist_id}", "starred_url": "https://api.github.com/users/ndurner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ndurner/subscriptions", "organizations_url": "https://api.github.com/users/ndurner/orgs", "repos_url": "https://api.github.com/users/ndurner/repos", "events_url": "https://api.github.com/users/ndurner/events{/privacy}", "received_events_url": "https://api.github.com/users/ndurner/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-19T15:24:02
2023-03-19T16:29:44
2023-03-19T16:29:44
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1778", "html_url": "https://github.com/hwchase17/langchain/pull/1778", "diff_url": "https://github.com/hwchase17/langchain/pull/1778.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1778.patch", "merged_at": "2023-03-19T16:29:44" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1778/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1778/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1777
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1777/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1777/comments
https://api.github.com/repos/hwchase17/langchain/issues/1777/events
https://github.com/hwchase17/langchain/issues/1777
1,630,984,304
I_kwDOIPDwls5hNthw
1,777
Alpaca (Fine-tuned LLaMA)
{ "login": "slavakurilyak", "id": 6625584, "node_id": "MDQ6VXNlcjY2MjU1ODQ=", "avatar_url": "https://avatars.githubusercontent.com/u/6625584?v=4", "gravatar_id": "", "url": "https://api.github.com/users/slavakurilyak", "html_url": "https://github.com/slavakurilyak", "followers_url": "https://api.github.com/users/slavakurilyak/followers", "following_url": "https://api.github.com/users/slavakurilyak/following{/other_user}", "gists_url": "https://api.github.com/users/slavakurilyak/gists{/gist_id}", "starred_url": "https://api.github.com/users/slavakurilyak/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/slavakurilyak/subscriptions", "organizations_url": "https://api.github.com/users/slavakurilyak/orgs", "repos_url": "https://api.github.com/users/slavakurilyak/repos", "events_url": "https://api.github.com/users/slavakurilyak/events{/privacy}", "received_events_url": "https://api.github.com/users/slavakurilyak/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "Also worth considering Instruct-tuned LLaMA models that can run on consumer hardware, such as \r\nhttps://github.com/tloen/alpaca-lora. ", "A basic LangChainJS package for Alpaca is here https://github.com/linonetwo/langchain-alpaca" ]
2023-03-19T15:16:09
2023-03-20T18:47:20
null
NONE
null
null
null
It would be great to see LangChain integrate with Standford's Alpaca 7B model, a fine-tuned LlaMa (see https://github.com/hwchase17/langchain/issues/1473). Standford created an AI able to generate outputs that were largely on par with OpenAI’s `text-davinci-003` and regularly better than GPT-3 — all for a fraction of the computing power and price. Stanford's Alpaca is a language model that was fine-tuned from Meta's LLaMA with 52,000 instructions generated by GPT-3.5[[1]](https://the-decoder.com/stanfords-alpaca-shows-that-openai-may-have-a-problem/). The researchers used AI-generated instructions to train Alpaca 7B, which exhibits many GPT-3.5-like behaviors[[1]](https://the-decoder.com/stanfords-alpaca-shows-that-openai-may-have-a-problem/). In a blind test using input from the Self-Instruct Evaluation Set, both models performed comparably[[1]](https://the-decoder.com/stanfords-alpaca-shows-that-openai-may-have-a-problem/)[[2]](https://github.com/tatsu-lab/stanford_alpaca). However, Alpaca has problems common to other language models such as hallucinations, toxicity, and stereotyping[[1]](https://the-decoder.com/stanfords-alpaca-shows-that-openai-may-have-a-problem/). The team is releasing an interactive demo, the training dataset, and the training code for research purposes[[1]](https://the-decoder.com/stanfords-alpaca-shows-that-openai-may-have-a-problem/)[[4]](https://crfm.stanford.edu/2023/03/13/alpaca.html). Alpaca is still under development and has limitations that need to be addressed. The researchers have not yet fine-tuned the model to be safe and harmless[[2]](https://github.com/tatsu-lab/stanford_alpaca). They encourage users to be cautious when interacting with Alpaca and report any concerning behavior to help improve it[[2]](https://github.com/tatsu-lab/stanford_alpaca). LLaMA is a new open-source language model from Meta Research that performs as well as closed-source models. Stanford's Alpaca is a fine-tuned version of LLaMA that can respond to instructions like ChatGPT[[3]](https://replicate.com/blog/replicate-alpaca). It functions more like a fancy version of autocomplete than a conversational bot[[3]](https://replicate.com/blog/replicate-alpaca). The researchers are releasing their findings about an instruction-following language model dubbed Alpaca. They trained the Alpaca model on 52K instruction-following demonstrations generated in the style of self-instruct using `text-davinci-003`. On the self-instruct evaluation set, Alpaca shows many behaviors similar to OpenAI’s `text-davinci-003` but is also surprisingly small and easy/cheap to reproduce[[4]](https://crfm.stanford.edu/2023/03/13/alpaca.html).
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1777/reactions", "total_count": 15, "+1": 15, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1777/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1776
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1776/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1776/comments
https://api.github.com/repos/hwchase17/langchain/issues/1776/events
https://github.com/hwchase17/langchain/pull/1776
1,630,945,121
PR_kwDOIPDwls5MY_jZ
1,776
Add load json prompt example
{ "login": "minhhung123", "id": 51025722, "node_id": "MDQ6VXNlcjUxMDI1NzIy", "avatar_url": "https://avatars.githubusercontent.com/u/51025722?v=4", "gravatar_id": "", "url": "https://api.github.com/users/minhhung123", "html_url": "https://github.com/minhhung123", "followers_url": "https://api.github.com/users/minhhung123/followers", "following_url": "https://api.github.com/users/minhhung123/following{/other_user}", "gists_url": "https://api.github.com/users/minhhung123/gists{/gist_id}", "starred_url": "https://api.github.com/users/minhhung123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/minhhung123/subscriptions", "organizations_url": "https://api.github.com/users/minhhung123/orgs", "repos_url": "https://api.github.com/users/minhhung123/repos", "events_url": "https://api.github.com/users/minhhung123/events{/privacy}", "received_events_url": "https://api.github.com/users/minhhung123/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-19T13:34:43
2023-03-19T16:28:57
2023-03-19T16:28:57
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1776", "html_url": "https://github.com/hwchase17/langchain/pull/1776", "diff_url": "https://github.com/hwchase17/langchain/pull/1776.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1776.patch", "merged_at": "2023-03-19T16:28:57" }
Hi, I just want to add a PR on the prompt serialization examples of loading from JSON so that it can contain the same as loading from YAML.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1776/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1776/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1774
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1774/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1774/comments
https://api.github.com/repos/hwchase17/langchain/issues/1774/events
https://github.com/hwchase17/langchain/issues/1774
1,630,889,769
I_kwDOIPDwls5hNWcp
1,774
How to use self defined variable in an Agent?
{ "login": "wokron", "id": 87849241, "node_id": "MDQ6VXNlcjg3ODQ5MjQx", "avatar_url": "https://avatars.githubusercontent.com/u/87849241?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wokron", "html_url": "https://github.com/wokron", "followers_url": "https://api.github.com/users/wokron/followers", "following_url": "https://api.github.com/users/wokron/following{/other_user}", "gists_url": "https://api.github.com/users/wokron/gists{/gist_id}", "starred_url": "https://api.github.com/users/wokron/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wokron/subscriptions", "organizations_url": "https://api.github.com/users/wokron/orgs", "repos_url": "https://api.github.com/users/wokron/repos", "events_url": "https://api.github.com/users/wokron/events{/privacy}", "received_events_url": "https://api.github.com/users/wokron/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-19T11:03:28
2023-03-19T11:03:28
null
NONE
null
null
null
This issue may sound silly, I apologize for not being able to find the answer (and for my poor English). For example, I want my chatbot only use paths from a list I give. I tried to include the following content in suffix: ```py """ omit... You should only use the following file paths: {path_list} omit... """ ``` But how can I add `path_list` to `input_variables`? I noticed that the `create_prompt` method has the following statement: ```py if input_variables is None: input_variables = ["input", "chat_history", "agent_scratchpad"] ``` So I tried adding `input_variables` in `agent_kwargs`: ```py agent = initialize_agent( tools, llm, agent="conversational-react-description", verbose=True, memory=memory, return_intermediate_steps=True, agent_kwargs={ 'prefix': CHAT_BOT_PREFIX, 'format_instructions': CHAT_BOT_FORMAT_INSTRUCTIONS, 'suffix': CHAT_BOT_SUFFIX, 'input_variables': ["input", "chat_history", "agent_scratchpad", "path_list"], # here }, ) ``` This does create a prompt in the agent with a `path_list` variable in it. But how can I pass the value of path_list? The way I thought was to pass it togethor with `input`. ```py result = agent({"input": str_input, "path_list": path_list_str}) ``` But this doesn't work. It raises the following error: ```text ValueError: One input key expected got ['path_list', 'input'] ``` I don't know if there's another way or if I'm missing something.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1774/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1774/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1773
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1773/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1773/comments
https://api.github.com/repos/hwchase17/langchain/issues/1773/events
https://github.com/hwchase17/langchain/pull/1773
1,630,869,854
PR_kwDOIPDwls5MYwGC
1,773
added function for renaming variables
{ "login": "jamescalam", "id": 35938317, "node_id": "MDQ6VXNlcjM1OTM4MzE3", "avatar_url": "https://avatars.githubusercontent.com/u/35938317?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jamescalam", "html_url": "https://github.com/jamescalam", "followers_url": "https://api.github.com/users/jamescalam/followers", "following_url": "https://api.github.com/users/jamescalam/following{/other_user}", "gists_url": "https://api.github.com/users/jamescalam/gists{/gist_id}", "starred_url": "https://api.github.com/users/jamescalam/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamescalam/subscriptions", "organizations_url": "https://api.github.com/users/jamescalam/orgs", "repos_url": "https://api.github.com/users/jamescalam/repos", "events_url": "https://api.github.com/users/jamescalam/events{/privacy}", "received_events_url": "https://api.github.com/users/jamescalam/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "clever, but some issues\r\n\r\n1) the change to the template depends on the format being used (eg what you did is f-string specific)\r\n\r\n2) Id also rather do the renaming outside the constructors - eg have the user get the prompt, renaming the variable, then pass it it. will just keep it cleaner/more scalable\r\n\r\ni have an idea for how to do this tho! because i do like the idea. so let me take a stab", "@hwchase17 okay sure, feel free to let me know what to do to save your time implementing, happy either way!" ]
2023-03-19T10:12:48
2023-03-20T06:11:04
null
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1773", "html_url": "https://github.com/hwchase17/langchain/pull/1773", "diff_url": "https://github.com/hwchase17/langchain/pull/1773.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1773.patch", "merged_at": null }
I came into the issue when using the `VectorDBQAWithSourcesChain` that because of the [example prompt](https://github.com/hwchase17/langchain/blob/master/langchain/chains/qa_with_sources/stuff_prompt.py) being used, it meant my source metadata in the vector DB (pinecone) had to be named `"source"`. I and other users can go back and rename the document IDs, URLs, etc as `"source"` but it seems like an unnecessary restriction. Instead, being able to swap `"source"` for `"url"`, `"filename"`, etc seems like a better solution to me. With that in mind, I'd like to add a new method to prompt templates called `rename_variable`, which simply takes an existing variable and a new variable name as input, and formats the prompt template to use the new variable name. In the example of using `VectorDBQAWithSourcesChain`, this looks like: ```python qa = VectorDBQAWithSourcesChain.from_chain_type( llm=llm, chain_type='stuff', vectorstore=vectorstore ) qa.combine_documents_chain.document_prompt.rename_variable( 'source', 'pdf_url' ) ``` And if we view the `qa.combine_documents_chain.document_prompt` we'll see: ``` PromptTemplate(input_variables=['page_content', 'pdf_url'], output_parser=None, partial_variables={}, template='Content: {page_content}\nSource: {pdf_url}', template_format='f-string', validate_template=True) ``` Alternatively, I added a `sources_variable` parameter to the initialization calls for `VectorDBQAWithSourcesChain`, so the following can be run with the same result: ```python qa = VectorDBQAWithSourcesChain.from_chain_type( llm=llm, chain_type='stuff', vectorstore=vectorstore, sources_variable="pdf_url" ) ```
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1773/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1773/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1772
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1772/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1772/comments
https://api.github.com/repos/hwchase17/langchain/issues/1772/events
https://github.com/hwchase17/langchain/pull/1772
1,630,784,584
PR_kwDOIPDwls5MYe8C
1,772
guards changes
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-19T04:59:55
2023-03-19T04:59:55
null
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1772", "html_url": "https://github.com/hwchase17/langchain/pull/1772", "diff_url": "https://github.com/hwchase17/langchain/pull/1772.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1772.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1772/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1772/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1771
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1771/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1771/comments
https://api.github.com/repos/hwchase17/langchain/issues/1771/events
https://github.com/hwchase17/langchain/pull/1771
1,630,767,125
PR_kwDOIPDwls5MYbdF
1,771
Allow `max_tokens`=-1 for `ChatOpenAI` and set the default value to -1
{ "login": "Aratako", "id": 127325395, "node_id": "U_kgDOB5bU0w", "avatar_url": "https://avatars.githubusercontent.com/u/127325395?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Aratako", "html_url": "https://github.com/Aratako", "followers_url": "https://api.github.com/users/Aratako/followers", "following_url": "https://api.github.com/users/Aratako/following{/other_user}", "gists_url": "https://api.github.com/users/Aratako/gists{/gist_id}", "starred_url": "https://api.github.com/users/Aratako/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aratako/subscriptions", "organizations_url": "https://api.github.com/users/Aratako/orgs", "repos_url": "https://api.github.com/users/Aratako/repos", "events_url": "https://api.github.com/users/Aratako/events{/privacy}", "received_events_url": "https://api.github.com/users/Aratako/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "https://github.com/hwchase17/langchain/pull/1782", "Yeah it seems working well. Thank you for your feedback.\r\nI will close this PR now." ]
2023-03-19T03:41:46
2023-03-19T17:53:39
2023-03-19T17:23:16
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1771", "html_url": "https://github.com/hwchase17/langchain/pull/1771", "diff_url": "https://github.com/hwchase17/langchain/pull/1771.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1771.patch", "merged_at": null }
Resolves #1532, resolves #1652. In the current implementation of `ChatOpenAI`, the default value for max_tokens is set to 256, and it cannot take a value of -1. In this PR, we will allow `max_tokens` to take a value of -1. When `max_tokens`=-1, the `max_tokens` parameter will be omitted, which means there will be no token limit for the response. Originally, the default value of `max_tokens` was set to 256, causing longer responses to be cut off and creating confusion (as in issue #1652). This PR sets the default value of `max_tokens` to -1, preventing cutoffs from occurring. The solution was originally proposed by @adlindenberg in the issue discussion (#1532). Thank you, @adlindenberg, for providing the idea for this fix.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1771/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1771/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1770
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1770/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1770/comments
https://api.github.com/repos/hwchase17/langchain/issues/1770/events
https://github.com/hwchase17/langchain/pull/1770
1,630,755,767
PR_kwDOIPDwls5MYZAP
1,770
Fix wrong prompt in refine chain
{ "login": "nqbao", "id": 177742, "node_id": "MDQ6VXNlcjE3Nzc0Mg==", "avatar_url": "https://avatars.githubusercontent.com/u/177742?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nqbao", "html_url": "https://github.com/nqbao", "followers_url": "https://api.github.com/users/nqbao/followers", "following_url": "https://api.github.com/users/nqbao/following{/other_user}", "gists_url": "https://api.github.com/users/nqbao/gists{/gist_id}", "starred_url": "https://api.github.com/users/nqbao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nqbao/subscriptions", "organizations_url": "https://api.github.com/users/nqbao/orgs", "repos_url": "https://api.github.com/users/nqbao/repos", "events_url": "https://api.github.com/users/nqbao/events{/privacy}", "received_events_url": "https://api.github.com/users/nqbao/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "@hwchase17 can you take a look? thanks!" ]
2023-03-19T03:11:10
2023-03-20T14:29:50
2023-03-19T17:03:45
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1770", "html_url": "https://github.com/hwchase17/langchain/pull/1770", "diff_url": "https://github.com/hwchase17/langchain/pull/1770.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1770.patch", "merged_at": "2023-03-19T17:03:45" }
I got this during testing ``` ValueError: Missing some input keys: {'existing_answer'} ``` Upon review, the initial prompt should be `QUESTION_PROMPT_SELECTOR`.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1770/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1770/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1769
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1769/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1769/comments
https://api.github.com/repos/hwchase17/langchain/issues/1769/events
https://github.com/hwchase17/langchain/pull/1769
1,630,748,771
PR_kwDOIPDwls5MYXpA
1,769
WIP Jeremy/guardrails
{ "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 }
[]
open
false
null
[]
null
[]
2023-03-19T02:37:31
2023-03-19T20:32:07
null
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1769", "html_url": "https://github.com/hwchase17/langchain/pull/1769", "diff_url": "https://github.com/hwchase17/langchain/pull/1769.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1769.patch", "merged_at": null }
opening so i can leave comments
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1769/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1769/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1768
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1768/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1768/comments
https://api.github.com/repos/hwchase17/langchain/issues/1768/events
https://github.com/hwchase17/langchain/pull/1768
1,630,740,499
PR_kwDOIPDwls5MYWCL
1,768
feat: SimpleParallelChain
{ "login": "mbchang", "id": 6439365, "node_id": "MDQ6VXNlcjY0MzkzNjU=", "avatar_url": "https://avatars.githubusercontent.com/u/6439365?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mbchang", "html_url": "https://github.com/mbchang", "followers_url": "https://api.github.com/users/mbchang/followers", "following_url": "https://api.github.com/users/mbchang/following{/other_user}", "gists_url": "https://api.github.com/users/mbchang/gists{/gist_id}", "starred_url": "https://api.github.com/users/mbchang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mbchang/subscriptions", "organizations_url": "https://api.github.com/users/mbchang/orgs", "repos_url": "https://api.github.com/users/mbchang/repos", "events_url": "https://api.github.com/users/mbchang/events{/privacy}", "received_events_url": "https://api.github.com/users/mbchang/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "Oops, apologies. It should be fixed now. We should expect four files to have changed." ]
2023-03-19T02:01:35
2023-03-20T17:18:57
null
NONE
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1768", "html_url": "https://github.com/hwchase17/langchain/pull/1768", "diff_url": "https://github.com/hwchase17/langchain/pull/1768.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1768.patch", "merged_at": null }
Similarly to how sequential chains connect chains in series, I thought we could have `ParallelChain`s connect chains in parallel. This is a useful abstraction when you want to independently process the same input with multiple different chains, possibly asynchronously (although I haven't added async yet). This was largely inspired by the `ConcatenateChain` example [here](https://langchain.readthedocs.io/en/latest/modules/chains/getting_started.html#create-a-custom-chain-with-the-chain-class), although I thought that it would be good to have a generic class for handling multiple chains in parallel, to make nested composition easier. The larger intent is to compose chains similar to how `nn.Sequential` and `nn.Parallel` allowed for composing neural modules in series and in parallel in Torch7. Here is an example (which is added to the docs) ``` from langchain.llms import OpenAI from langchain.prompts import PromptTemplate from langchain.chains import LLMChain, SimpleParallelChain llm = OpenAI(temperature=0.9) prompt_1 = PromptTemplate( input_variables=["product"], template="What is a good name for a company that makes {product}?", ) chain_1 = LLMChain(llm=llm, prompt=prompt_1) prompt_2 = PromptTemplate( input_variables=["product"], template="What is a good slogan for a company that makes {product}?", ) chain_2 = LLMChain(llm=llm, prompt=prompt_2) parallel_chain = SimpleParallelChain( chains=[chain_1, chain_2], input_variables=['product'], output_variables=['name', 'slogan'], verbose=True ) output = parallel_chain("colorful socks") print(f"Output:\n{output}") ``` which produces the output: ``` > Entering new SimpleParallelChain chain... > Finished chain. Output: {'product': 'colorful socks', 'name': '\n\nLively Sockery.', 'slogan': '\n\n"Step Into Color with Our Socks!"'} ``` If having a class like this would be useful, there a few design choices I'd love to discuss: 1. Would it make more sense to have all the chains define their own input variables manually, or should we let the parallel chain define the input variables once and propagate that to all the child chains? An argument for the former would be that it follows the existing convention I've seen in defining chains so far. An argument for the latter would be that it would allow the user to define the input variables to the entire parallel block in one place (which would make the ParallelChain abstraction more powerful), without having to copy the same input variables for all child chains. 2. Any thoughts on whether it makes sense for this to be refactored in as a subcomponent of the MapReduceChain? The main reason for replacing the map component of the mapreduce by a ParallelChain would be that users can use ParallelChain for use cases other than applying the same llm for reducing a set of documents with the same prompt - they would instead be able to use multiple chains with different prompts each. 3. Any thoughts on how we would want to support multiple outputs for each child chain, i.e. how we would want to format the output of the ParallelChain? One possibility is to do a nested dict, like: ``` { 'output_for_chain_1: {'chain_1_output_1': str, 'chain_1_output_2': str, ... }, 'output_for_chain_2: {'chain_2_output_1': str, 'chain_2_output_2': str, ... }, } ``` or flatten the keys with a delimiter, like: ``` { 'output_for_chain_1/chain_1_output_1': str, 'output_for_chain_1/chain_1_output_2': str, ... }, 'output_for_chain_2/chain_2_output_1': str, 'output_for_chain_2/chain_2_output_2': str, ... }, } ```
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1768/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1768/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1767
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1767/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1767/comments
https://api.github.com/repos/hwchase17/langchain/issues/1767/events
https://github.com/hwchase17/langchain/issues/1767
1,630,737,686
I_kwDOIPDwls5hMxUW
1,767
openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens
{ "login": "abdellahiheiballa", "id": 25929712, "node_id": "MDQ6VXNlcjI1OTI5NzEy", "avatar_url": "https://avatars.githubusercontent.com/u/25929712?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abdellahiheiballa", "html_url": "https://github.com/abdellahiheiballa", "followers_url": "https://api.github.com/users/abdellahiheiballa/followers", "following_url": "https://api.github.com/users/abdellahiheiballa/following{/other_user}", "gists_url": "https://api.github.com/users/abdellahiheiballa/gists{/gist_id}", "starred_url": "https://api.github.com/users/abdellahiheiballa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abdellahiheiballa/subscriptions", "organizations_url": "https://api.github.com/users/abdellahiheiballa/orgs", "repos_url": "https://api.github.com/users/abdellahiheiballa/repos", "events_url": "https://api.github.com/users/abdellahiheiballa/events{/privacy}", "received_events_url": "https://api.github.com/users/abdellahiheiballa/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "I got the same error message today. It suggested the following. \r\n\r\nInvalidRequestError: This model's maximum context length is 4097 tokens. However, you requested 4245 tokens (1745 in the messages, 2500 in the completion). Please reduce the length of the messages or completion. Clearly I will need a text request or response clipping approach to reduce seeing this error.", "It was preceded by this warning - openai.py:608: UserWarning: You are trying to use a chat model. This way of initializing it **is no longer supported.** Instead, please use: `from langchain.chat_models import ChatOpenAI`\r\n warnings.warn(. _ I will check and see if calling using this new style performs better and report back" ]
2023-03-19T01:53:30
2023-03-20T18:15:46
null
NONE
null
null
null
When using the chat application, I encountered an error message stating "openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens" when I asked a question like "Did he mention Stephen Breyer?". ![image](https://user-images.githubusercontent.com/25929712/226149401-8de39f47-6cd6-4ba4-9a74-f1a1eb389779.png)
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1767/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1767/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1766
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1766/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1766/comments
https://api.github.com/repos/hwchase17/langchain/issues/1766/events
https://github.com/hwchase17/langchain/issues/1766
1,630,736,276
I_kwDOIPDwls5hMw-U
1,766
Update poetry lock to allow SQLAlchemy v2
{ "login": "baron", "id": 2617, "node_id": "MDQ6VXNlcjI2MTc=", "avatar_url": "https://avatars.githubusercontent.com/u/2617?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baron", "html_url": "https://github.com/baron", "followers_url": "https://api.github.com/users/baron/followers", "following_url": "https://api.github.com/users/baron/following{/other_user}", "gists_url": "https://api.github.com/users/baron/gists{/gist_id}", "starred_url": "https://api.github.com/users/baron/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baron/subscriptions", "organizations_url": "https://api.github.com/users/baron/orgs", "repos_url": "https://api.github.com/users/baron/repos", "events_url": "https://api.github.com/users/baron/events{/privacy}", "received_events_url": "https://api.github.com/users/baron/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "It seems that jupyter-cache is another blocking dependency:\r\n\r\njupyter-cache\r\nhttps://github.com/hwchase17/langchain/blob/master/poetry.lock#L2526\r\nhttps://github.com/executablebooks/jupyter-cache/issues/92\r\nhttps://github.com/executablebooks/jupyter-cache/pull/93\r\n\r\nThis dependency was introduced in [pull request #534](https://github.com/hwchase17/langchain/pull/534/) but `jupyter_cache` doesn't seem to be called anywhere in the code base when you do `grep -r \"jupyter_cache\" .` in the root directory of the project.", "`jupyter_cache` is a dependency for myst-nb which is used in creating the docs. [I do have a PR open with `jupyter-cache` to allow SQLAlchemy 2.](https://github.com/executablebooks/jupyter-cache/pull/93)", "Thanks for the clarification and your efforts. Added some reactions and a \"+1\"." ]
2023-03-19T01:48:23
2023-03-19T23:34:51
null
NONE
null
null
null
It seems that #1578 adds support for SQLAlchemy v2 but the [poetry lock file](https://github.com/hwchase17/langchain/blob/8685d53adcdd0310e76349ecb4e2b87f980c4673/poetry.lock#L6211) is still at 1.4.46.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1766/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1766/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1765
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1765/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1765/comments
https://api.github.com/repos/hwchase17/langchain/issues/1765/events
https://github.com/hwchase17/langchain/pull/1765
1,630,725,203
PR_kwDOIPDwls5MYS_E
1,765
WIP: Harrison/index interface
{ "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 }
[]
open
false
null
[]
null
[]
2023-03-19T01:03:17
2023-03-19T02:33:42
null
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1765", "html_url": "https://github.com/hwchase17/langchain/pull/1765", "diff_url": "https://github.com/hwchase17/langchain/pull/1765.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1765.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1765/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1765/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1764
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1764/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1764/comments
https://api.github.com/repos/hwchase17/langchain/issues/1764/events
https://github.com/hwchase17/langchain/pull/1764
1,630,643,656
PR_kwDOIPDwls5MYBIY
1,764
Harrison/wandb
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-18T22:13:18
2023-03-20T14:52:30
2023-03-20T14:52:27
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1764", "html_url": "https://github.com/hwchase17/langchain/pull/1764", "diff_url": "https://github.com/hwchase17/langchain/pull/1764.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1764.patch", "merged_at": "2023-03-20T14:52:27" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1764/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1764/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1763
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1763/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1763/comments
https://api.github.com/repos/hwchase17/langchain/issues/1763/events
https://github.com/hwchase17/langchain/issues/1763
1,630,620,637
I_kwDOIPDwls5hMUvd
1,763
Character offsets for the response/Answer
{ "login": "nlpravi", "id": 1936777, "node_id": "MDQ6VXNlcjE5MzY3Nzc=", "avatar_url": "https://avatars.githubusercontent.com/u/1936777?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nlpravi", "html_url": "https://github.com/nlpravi", "followers_url": "https://api.github.com/users/nlpravi/followers", "following_url": "https://api.github.com/users/nlpravi/following{/other_user}", "gists_url": "https://api.github.com/users/nlpravi/gists{/gist_id}", "starred_url": "https://api.github.com/users/nlpravi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nlpravi/subscriptions", "organizations_url": "https://api.github.com/users/nlpravi/orgs", "repos_url": "https://api.github.com/users/nlpravi/repos", "events_url": "https://api.github.com/users/nlpravi/events{/privacy}", "received_events_url": "https://api.github.com/users/nlpravi/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-18T21:44:36
2023-03-18T21:44:36
null
NONE
null
null
null
If I use langchain for question answering on a single document with any LLM, is there a way to also extract the corresponding character offsets (begin and end) of the response in the original document? Thanks, Ravi.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1763/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1763/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1762
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1762/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1762/comments
https://api.github.com/repos/hwchase17/langchain/issues/1762/events
https://github.com/hwchase17/langchain/pull/1762
1,630,619,528
PR_kwDOIPDwls5MX7tH
1,762
Corrects copyright year
{ "login": "3coins", "id": 289369, "node_id": "MDQ6VXNlcjI4OTM2OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/289369?v=4", "gravatar_id": "", "url": "https://api.github.com/users/3coins", "html_url": "https://github.com/3coins", "followers_url": "https://api.github.com/users/3coins/followers", "following_url": "https://api.github.com/users/3coins/following{/other_user}", "gists_url": "https://api.github.com/users/3coins/gists{/gist_id}", "starred_url": "https://api.github.com/users/3coins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/3coins/subscriptions", "organizations_url": "https://api.github.com/users/3coins/orgs", "repos_url": "https://api.github.com/users/3coins/repos", "events_url": "https://api.github.com/users/3coins/events{/privacy}", "received_events_url": "https://api.github.com/users/3coins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-18T21:43:22
2023-03-19T02:55:06
2023-03-19T02:55:06
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1762", "html_url": "https://github.com/hwchase17/langchain/pull/1762", "diff_url": "https://github.com/hwchase17/langchain/pull/1762.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1762.patch", "merged_at": "2023-03-19T02:55:06" }
Corrected copyright year.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1762/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1762/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1761
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1761/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1761/comments
https://api.github.com/repos/hwchase17/langchain/issues/1761/events
https://github.com/hwchase17/langchain/pull/1761
1,630,521,140
PR_kwDOIPDwls5MXmOr
1,761
Add service account support to Google Drive
{ "login": "K-minutti", "id": 58534537, "node_id": "MDQ6VXNlcjU4NTM0NTM3", "avatar_url": "https://avatars.githubusercontent.com/u/58534537?v=4", "gravatar_id": "", "url": "https://api.github.com/users/K-minutti", "html_url": "https://github.com/K-minutti", "followers_url": "https://api.github.com/users/K-minutti/followers", "following_url": "https://api.github.com/users/K-minutti/following{/other_user}", "gists_url": "https://api.github.com/users/K-minutti/gists{/gist_id}", "starred_url": "https://api.github.com/users/K-minutti/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/K-minutti/subscriptions", "organizations_url": "https://api.github.com/users/K-minutti/orgs", "repos_url": "https://api.github.com/users/K-minutti/repos", "events_url": "https://api.github.com/users/K-minutti/events{/privacy}", "received_events_url": "https://api.github.com/users/K-minutti/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-18T18:58:34
2023-03-19T02:55:17
2023-03-19T02:55:17
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1761", "html_url": "https://github.com/hwchase17/langchain/pull/1761", "diff_url": "https://github.com/hwchase17/langchain/pull/1761.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1761.patch", "merged_at": "2023-03-19T02:55:17" }
Having service account support in the drive document loader would be nice. This is already present in the youtube loader. https://github.com/hwchase17/langchain/blob/cb646082baa173fdee7f2b1e361be368acef4e7e/langchain/document_loaders/youtube.py#L76-L78
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1761/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1761/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1760
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1760/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1760/comments
https://api.github.com/repos/hwchase17/langchain/issues/1760/events
https://github.com/hwchase17/langchain/pull/1760
1,630,494,847
PR_kwDOIPDwls5MXgYE
1,760
Update tool.py
{ "login": "bengahtan", "id": 95045748, "node_id": "U_kgDOBapIdA", "avatar_url": "https://avatars.githubusercontent.com/u/95045748?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bengahtan", "html_url": "https://github.com/bengahtan", "followers_url": "https://api.github.com/users/bengahtan/followers", "following_url": "https://api.github.com/users/bengahtan/following{/other_user}", "gists_url": "https://api.github.com/users/bengahtan/gists{/gist_id}", "starred_url": "https://api.github.com/users/bengahtan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bengahtan/subscriptions", "organizations_url": "https://api.github.com/users/bengahtan/orgs", "repos_url": "https://api.github.com/users/bengahtan/repos", "events_url": "https://api.github.com/users/bengahtan/events{/privacy}", "received_events_url": "https://api.github.com/users/bengahtan/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-18T18:23:23
2023-03-19T02:55:27
2023-03-19T02:55:27
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1760", "html_url": "https://github.com/hwchase17/langchain/pull/1760", "diff_url": "https://github.com/hwchase17/langchain/pull/1760.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1760.patch", "merged_at": "2023-03-19T02:55:27" }
Fixed typo that said the Wikipedia tool was using Wolfram Alpha (instead of Wikipedia)
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1760/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1760/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1759
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1759/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1759/comments
https://api.github.com/repos/hwchase17/langchain/issues/1759/events
https://github.com/hwchase17/langchain/issues/1759
1,630,492,439
I_kwDOIPDwls5hL1cX
1,759
ERROR:root:'OpenAIEmbeddings' object has no attribute 'max_retries' - VERSION 0.0.106 and up
{ "login": "kre8mymedia", "id": 40816745, "node_id": "MDQ6VXNlcjQwODE2NzQ1", "avatar_url": "https://avatars.githubusercontent.com/u/40816745?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kre8mymedia", "html_url": "https://github.com/kre8mymedia", "followers_url": "https://api.github.com/users/kre8mymedia/followers", "following_url": "https://api.github.com/users/kre8mymedia/following{/other_user}", "gists_url": "https://api.github.com/users/kre8mymedia/gists{/gist_id}", "starred_url": "https://api.github.com/users/kre8mymedia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kre8mymedia/subscriptions", "organizations_url": "https://api.github.com/users/kre8mymedia/orgs", "repos_url": "https://api.github.com/users/kre8mymedia/repos", "events_url": "https://api.github.com/users/kre8mymedia/events{/privacy}", "received_events_url": "https://api.github.com/users/kre8mymedia/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-18T18:17:46
2023-03-18T18:31:26
null
NONE
null
null
null
## Summary Occurring in [Chat Langchain Demo](https://github.com/hwchase17/chat-langchain) when upgrading from 0.0.105 -> 0.0.106 getting `ERROR:root:'OpenAIEmbeddings' object has no attribute 'max_retries'` This occurs AFTER the user sends their first message, instantly receive back the error in the logs. The error is thrown from this try catch block. https://github.com/hwchase17/chat-langchain/blob/ba456378e04125ccbdc7715f5be17114df2ee2e1/main.py#L68 My suspicion is that it originates within the `get_chain` method, as the ChatResponse's are really just validation and don't touch Embeddings. Seems like may be deeper. ## Expected Behavior (v0.0.105): ![image](https://user-images.githubusercontent.com/40816745/226126267-dc013237-636d-43a3-8b51-dd2cac6914b4.png) ## Actual Behavior (v0.0.106): ![image](https://user-images.githubusercontent.com/40816745/226126159-fb224124-fb75-4bfa-89d9-7eb1086577b0.png) ## Frequency: Whenever creating a USER message in chat-langchain when upgrading past v0.0.105 ## Environment: [List the operating system, browser, device, and any other relevant software or hardware information] https://github.com/hwchase17/chat-langchain ## Demo https://user-images.githubusercontent.com/40816745/226128476-9d6dfae8-2d4f-438d-b9f7-c7daf39c8646.mp4
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1759/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/hwchase17/langchain/issues/1759/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1758
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1758/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1758/comments
https://api.github.com/repos/hwchase17/langchain/issues/1758/events
https://github.com/hwchase17/langchain/pull/1758
1,630,488,519
PR_kwDOIPDwls5MXfHL
1,758
querying tabular data
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-18T18:08:12
2023-03-18T18:12:19
2023-03-18T18:12:18
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1758", "html_url": "https://github.com/hwchase17/langchain/pull/1758", "diff_url": "https://github.com/hwchase17/langchain/pull/1758.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1758.patch", "merged_at": "2023-03-18T18:12:18" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1758/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1758/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1757
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1757/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1757/comments
https://api.github.com/repos/hwchase17/langchain/issues/1757/events
https://github.com/hwchase17/langchain/pull/1757
1,630,320,575
PR_kwDOIPDwls5MW7LD
1,757
use namespace argument in Pinecone constructor
{ "login": "LeoGrin", "id": 45738728, "node_id": "MDQ6VXNlcjQ1NzM4NzI4", "avatar_url": "https://avatars.githubusercontent.com/u/45738728?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LeoGrin", "html_url": "https://github.com/LeoGrin", "followers_url": "https://api.github.com/users/LeoGrin/followers", "following_url": "https://api.github.com/users/LeoGrin/following{/other_user}", "gists_url": "https://api.github.com/users/LeoGrin/gists{/gist_id}", "starred_url": "https://api.github.com/users/LeoGrin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LeoGrin/subscriptions", "organizations_url": "https://api.github.com/users/LeoGrin/orgs", "repos_url": "https://api.github.com/users/LeoGrin/repos", "events_url": "https://api.github.com/users/LeoGrin/events{/privacy}", "received_events_url": "https://api.github.com/users/LeoGrin/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-18T13:18:14
2023-03-20T14:32:17
2023-03-19T02:55:39
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1757", "html_url": "https://github.com/hwchase17/langchain/pull/1757", "diff_url": "https://github.com/hwchase17/langchain/pull/1757.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1757.patch", "merged_at": "2023-03-19T02:55:39" }
Fix #1756 Use the `namespace` argument of `Pinecone.from_exisiting_index` to set the default value of `namespace` for other methods. Leads to more expected behavior and easier integration in chains. For the test, I've added a line to delete and rebuild the `langchain-demo` index at the beginning of the test. I'm not 100% sure if it's a good idea but it makes the test reproducible.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1757/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1757/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1756
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1756/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1756/comments
https://api.github.com/repos/hwchase17/langchain/issues/1756/events
https://github.com/hwchase17/langchain/issues/1756
1,630,304,145
I_kwDOIPDwls5hLHeR
1,756
namespace argument not taken into account when creating Pinecone index
{ "login": "LeoGrin", "id": 45738728, "node_id": "MDQ6VXNlcjQ1NzM4NzI4", "avatar_url": "https://avatars.githubusercontent.com/u/45738728?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LeoGrin", "html_url": "https://github.com/LeoGrin", "followers_url": "https://api.github.com/users/LeoGrin/followers", "following_url": "https://api.github.com/users/LeoGrin/following{/other_user}", "gists_url": "https://api.github.com/users/LeoGrin/gists{/gist_id}", "starred_url": "https://api.github.com/users/LeoGrin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LeoGrin/subscriptions", "organizations_url": "https://api.github.com/users/LeoGrin/orgs", "repos_url": "https://api.github.com/users/LeoGrin/repos", "events_url": "https://api.github.com/users/LeoGrin/events{/privacy}", "received_events_url": "https://api.github.com/users/LeoGrin/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-18T12:26:39
2023-03-19T02:55:40
2023-03-19T02:55:40
CONTRIBUTOR
null
null
null
# Quick summary Using the `namespace` argument in the function `Pinecone.from_existing_index` has no effect. Indeed, it is passed to `pinecone.Index`, which has no `namespace` argument. # Steps to reproduce a relevant bug ``` import pinecone from langchain.docstore.document import Document from langchain.vectorstores.pinecone import Pinecone from tests.integration_tests.vectorstores.fake_embeddings import FakeEmbeddings index = pinecone.Index("langchain-demo") # this should be a new index texts = ["foo", "bar", "baz"] metadatas = [{"page": i} for i in range(len(texts))] Pinecone.from_texts( texts, FakeEmbeddings(), index_name="langchain-demo", metadatas=metadatas, namespace="test-namespace", ) texts = ["foo2", "bar2", "baz2"] metadatas = [{"page": i} for i in range(len(texts))] Pinecone.from_texts( texts, FakeEmbeddings(), index_name="langchain-demo", metadatas=metadatas, namespace="test-namespace2", ) # Search with namespace docsearch = Pinecone.from_existing_index("langchain-demo", embedding=FakeEmbeddings(), namespace="test-namespace") output = docsearch.similarity_search("foo", k=6) # check that we don't get results from the other namespace page_contents = [o.page_content for o in output] assert set(page_contents) == set(["foo", "bar", "baz"]) ``` # Fix The `namespace` argument used in `Pinecone.from_existing_index` and `Pinecone.from_texts` should be stored as an attribute and used by default by every method.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1756/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1756/timeline
null
completed
false
https://api.github.com/repos/hwchase17/langchain/issues/1755
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1755/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1755/comments
https://api.github.com/repos/hwchase17/langchain/issues/1755/events
https://github.com/hwchase17/langchain/pull/1755
1,630,272,500
PR_kwDOIPDwls5MWxtZ
1,755
Slightly modified the docstring in `BasePromptTemplate` and `StringPromptTemplate`.
{ "login": "hitoshi44", "id": 59504957, "node_id": "MDQ6VXNlcjU5NTA0OTU3", "avatar_url": "https://avatars.githubusercontent.com/u/59504957?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hitoshi44", "html_url": "https://github.com/hitoshi44", "followers_url": "https://api.github.com/users/hitoshi44/followers", "following_url": "https://api.github.com/users/hitoshi44/following{/other_user}", "gists_url": "https://api.github.com/users/hitoshi44/gists{/gist_id}", "starred_url": "https://api.github.com/users/hitoshi44/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hitoshi44/subscriptions", "organizations_url": "https://api.github.com/users/hitoshi44/orgs", "repos_url": "https://api.github.com/users/hitoshi44/repos", "events_url": "https://api.github.com/users/hitoshi44/events{/privacy}", "received_events_url": "https://api.github.com/users/hitoshi44/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "I'm so sorry for my forgetting lint. 😞 " ]
2023-03-18T10:46:46
2023-03-19T16:47:38
2023-03-19T16:47:38
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1755", "html_url": "https://github.com/hwchase17/langchain/pull/1755", "diff_url": "https://github.com/hwchase17/langchain/pull/1755.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1755.patch", "merged_at": "2023-03-19T16:47:38" }
Regarding [this issue](https://github.com/hwchase17/langchain/issues/1754), `BasePromptTample` class docstring is a little outdated, thus it requires new method `format_prompt` for now. As such, I have made some modifications to the docstring to bring it up to date. I tried to adhere to the established document style, and would appreciate you for taking a look at this PR.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1755/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1755/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1754
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1754/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1754/comments
https://api.github.com/repos/hwchase17/langchain/issues/1754/events
https://github.com/hwchase17/langchain/issues/1754
1,630,270,933
I_kwDOIPDwls5hK_XV
1,754
Document for a custom prompt template is outdated.
{ "login": "hitoshi44", "id": 59504957, "node_id": "MDQ6VXNlcjU5NTA0OTU3", "avatar_url": "https://avatars.githubusercontent.com/u/59504957?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hitoshi44", "html_url": "https://github.com/hitoshi44", "followers_url": "https://api.github.com/users/hitoshi44/followers", "following_url": "https://api.github.com/users/hitoshi44/following{/other_user}", "gists_url": "https://api.github.com/users/hitoshi44/gists{/gist_id}", "starred_url": "https://api.github.com/users/hitoshi44/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hitoshi44/subscriptions", "organizations_url": "https://api.github.com/users/hitoshi44/orgs", "repos_url": "https://api.github.com/users/hitoshi44/repos", "events_url": "https://api.github.com/users/hitoshi44/events{/privacy}", "received_events_url": "https://api.github.com/users/hitoshi44/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-18T10:40:32
2023-03-19T23:51:51
2023-03-19T23:51:51
CONTRIBUTOR
null
null
null
Currently, the document on [Creating a custom prompt template](https://langchain.readthedocs.io/en/latest/modules/prompts/examples/custom_prompt_template.html) is outdated, as the code in the guide is no longer functional for the following reasons: 1. The document outlines creating a custom prompt template by inheriting from `BasePromptTemplate` with only the `format` method. However, a new required method `format_prompt` has been introduced as an interface for adapting chat-style prompt template usage. 2. Maybe, the `StringPromptTemplate` was created to absorb the change, but it is currently not exposed. Therefore, I suggest using `StringPromptTemplate` instead of `BasePromptTemplate`, and exposing it in `langchain.prompts`. I have created a [PR#1753](https://github.com/hwchase17/langchain/pull/1753) for this, and would appreciate it if you could review it. Additionally, I have created another PR to slightly modify the class docstring for both `BasePromptTemplate` and `StringPromptTemplate`, as their current docstrings are outdated and require updating in relation to the issue at hand.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1754/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1754/timeline
null
completed
false
https://api.github.com/repos/hwchase17/langchain/issues/1753
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1753/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1753/comments
https://api.github.com/repos/hwchase17/langchain/issues/1753/events
https://github.com/hwchase17/langchain/pull/1753
1,630,270,660
PR_kwDOIPDwls5MWxW-
1,753
Fix Document & Expose StringPromptTemplate as a custom-prompt-template.
{ "login": "hitoshi44", "id": 59504957, "node_id": "MDQ6VXNlcjU5NTA0OTU3", "avatar_url": "https://avatars.githubusercontent.com/u/59504957?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hitoshi44", "html_url": "https://github.com/hitoshi44", "followers_url": "https://api.github.com/users/hitoshi44/followers", "following_url": "https://api.github.com/users/hitoshi44/following{/other_user}", "gists_url": "https://api.github.com/users/hitoshi44/gists{/gist_id}", "starred_url": "https://api.github.com/users/hitoshi44/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hitoshi44/subscriptions", "organizations_url": "https://api.github.com/users/hitoshi44/orgs", "repos_url": "https://api.github.com/users/hitoshi44/repos", "events_url": "https://api.github.com/users/hitoshi44/events{/privacy}", "received_events_url": "https://api.github.com/users/hitoshi44/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-18T10:39:34
2023-03-19T16:47:56
2023-03-19T16:47:56
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1753", "html_url": "https://github.com/hwchase17/langchain/pull/1753", "diff_url": "https://github.com/hwchase17/langchain/pull/1753.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1753.patch", "merged_at": "2023-03-19T16:47:56" }
Regarding [this issue](https://github.com/hwchase17/langchain/issues/1754), the code in the document [Creating a custom prompt template](https://langchain.readthedocs.io/en/latest/modules/prompts/examples/custom_prompt_template.html) is no longer functional and outdated. To address this, I have made the following changes: 1. Updated the guide in the document to use `StringPromptTemplate` instead of `BasePromptTemplate`. 2. Exposed `StringPromptTemplate` in `prompts/__init__.py` for easier importing.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1753/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1753/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1752
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1752/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1752/comments
https://api.github.com/repos/hwchase17/langchain/issues/1752/events
https://github.com/hwchase17/langchain/pull/1752
1,630,249,658
PR_kwDOIPDwls5MWtFu
1,752
add encoding parameter to ObsidianLoader
{ "login": "huangcd", "id": 89918, "node_id": "MDQ6VXNlcjg5OTE4", "avatar_url": "https://avatars.githubusercontent.com/u/89918?v=4", "gravatar_id": "", "url": "https://api.github.com/users/huangcd", "html_url": "https://github.com/huangcd", "followers_url": "https://api.github.com/users/huangcd/followers", "following_url": "https://api.github.com/users/huangcd/following{/other_user}", "gists_url": "https://api.github.com/users/huangcd/gists{/gist_id}", "starred_url": "https://api.github.com/users/huangcd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/huangcd/subscriptions", "organizations_url": "https://api.github.com/users/huangcd/orgs", "repos_url": "https://api.github.com/users/huangcd/repos", "events_url": "https://api.github.com/users/huangcd/events{/privacy}", "received_events_url": "https://api.github.com/users/huangcd/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-18T09:38:29
2023-03-19T23:23:18
2023-03-19T16:48:32
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1752", "html_url": "https://github.com/hwchase17/langchain/pull/1752", "diff_url": "https://github.com/hwchase17/langchain/pull/1752.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1752.patch", "merged_at": "2023-03-19T16:48:31" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1752/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1752/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1751
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1751/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1751/comments
https://api.github.com/repos/hwchase17/langchain/issues/1751/events
https://github.com/hwchase17/langchain/issues/1751
1,630,226,364
I_kwDOIPDwls5hK0e8
1,751
error when using an asynchronous await with ChatGPT
{ "login": "userrand", "id": 114431098, "node_id": "U_kgDOBtIUeg", "avatar_url": "https://avatars.githubusercontent.com/u/114431098?v=4", "gravatar_id": "", "url": "https://api.github.com/users/userrand", "html_url": "https://github.com/userrand", "followers_url": "https://api.github.com/users/userrand/followers", "following_url": "https://api.github.com/users/userrand/following{/other_user}", "gists_url": "https://api.github.com/users/userrand/gists{/gist_id}", "starred_url": "https://api.github.com/users/userrand/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/userrand/subscriptions", "organizations_url": "https://api.github.com/users/userrand/orgs", "repos_url": "https://api.github.com/users/userrand/repos", "events_url": "https://api.github.com/users/userrand/events{/privacy}", "received_events_url": "https://api.github.com/users/userrand/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-18T08:13:50
2023-03-18T17:19:59
null
NONE
null
null
null
I tried the code from the documentation here on a Jupyter notebook from VScode : https://langchain.readthedocs.io/en/latest/modules/llms/async_llm.html?highlight=agenerate#async-api-for-llm It worked but when I replaced: `from langchain.llms import OpenAI` with ` from langchain.chat_models import ChatOpenAI` and ` OpenAI(temperature=0.9)` with ` ChatOpenAI(temperature=0.9)` I received an error "Got unknown type H" shown in the first error message below. The H is the first letter of the prompt and it changes when the prompt changes so I suppose somewhere the string is split. I then tried to run it as a script changing the await outside of a function to asyncio.run( but I got the second error below. -------------- # Error with a Jupyter VScode notebook using `await` ## Code used ``` import time import asyncio def generate_serially(): llm = ChatOpenAI(temperature=0) for _ in range(10): resp = llm.generate(["Hello, how are you?"]) print(resp.generations[0][0].text) async def async_generate(llm): resp = await llm.agenerate(["Hello, how are you?"]) print(resp.generations[0][0].text) async def generate_concurrently(): llm = ChatOpenAI(temperature=0) tasks = [async_generate(llm) for _ in range(10)] await asyncio.gather(*tasks) s = time.perf_counter() # # If running this outside of Jupyter, use asyncio.run(generate_concurrently()) await generate_concurrently() elapsed = time.perf_counter() - s print("\n", f"Concurrent executed in {elapsed:0.2f} seconds.") s = time.perf_counter() generate_serially() elapsed = time.perf_counter() - s print("\n",f"Serial executed in {elapsed:0.2f} seconds.") ``` ## Error obtained ``` ValueError Traceback (most recent call last) /home/username/projects/Latex_Doc_Search.ipynb Cell 35 in () ----> 1 await generate_concurrently() /home/username/projects/Latex_Doc_Search.ipynb Cell 35 in generate_concurrently() 17 llm = ChatOpenAI(temperature=0) 18 tasks = [async_generate(llm) for _ in range(10)] ---> 19 await asyncio.gather(*tasks) /home/username/projects/Latex_Doc_Search.ipynb Cell 35 in async_generate(llm) 11 async def async_generate(llm): ---> 12 resp = await llm.agenerate(["Hello, how are you?"]) 13 print(resp.generations[0][0].text) File ~/anaconda3/lib/python3.9/site-packages/langchain/chat_models/base.py:57, in BaseChatModel.agenerate(self, messages, stop) 53 async def agenerate( 54 self, messages: List[List[BaseMessage]], stop: Optional[List[str]] = None 55 ) -> LLMResult: 56 """Top Level call""" ---> 57 results = [await self._agenerate(m, stop=stop) for m in messages] 58 return LLMResult(generations=[res.generations for res in results]) File ~/anaconda3/lib/python3.9/site-packages/langchain/chat_models/base.py:57, in (.0) 53 async def agenerate( ... ---> 88 raise ValueError(f"Got unknown type {message}") 89 if "name" in message.additional_kwargs: 90 message_dict["name"] = message.additional_kwargs["name"] ValueError: Got unknown type H ``` ------------------ -------------------- # Error with a script using asyncio.run( ``` ValueError Traceback (most recent call last) [/home/username/projects/Latex_Doc_Search.ipynb](https://file+.vscode-resource.vscode-cdn.net/home/username/projects/Latex_Doc_Search.ipynb) Cell 39 in () [1](vscode-notebook-cell:/home/username/projects/Latex_Doc_Search.ipynb#Y150sZmlsZQ%3D%3D?line=0) import nest_asyncio [2](vscode-notebook-cell:/home//projects/Latex_Doc_Search.ipynb#Y150sZmlsZQ%3D%3D?line=1) nest_asyncio.apply() ----> [4](vscode-notebook-cell:/home/username/projects/Latex_Doc_Search.ipynb#Y150sZmlsZQ%3D%3D?line=3) await generate_concurrently() [/home/username/projects/Latex_Doc_Search.ipynb](https://file+.vscode-resource.vscode-cdn.net/home/username/projects/Latex_Doc_Search.ipynb) Cell 39 in generate_concurrently() [17](vscode-notebook-cell:/home/username/projects/Latex_Doc_Search.ipynb#Y150sZmlsZQ%3D%3D?line=16) llm = ChatOpenAI(temperature=0) [18](vscode-notebook-cell:/home/username/projects/Latex_Doc_Search.ipynb#Y150sZmlsZQ%3D%3D?line=17) tasks = [async_generate(llm) for _ in range(10)] ---> [19](vscode-notebook-cell:/home/username/projects/Latex_Doc_Search.ipynb#Y150sZmlsZQ%3D%3D?line=18) await asyncio.gather(*tasks) File [~/anaconda3/lib/python3.9/asyncio/tasks.py:328](https://file+.vscode-resource.vscode-cdn.net/home/username/projects/~/anaconda3/lib/python3.9/asyncio/tasks.py:328), in Task.__wakeup(self, future) 326 def __wakeup(self, future): 327 try: --> 328 future.result() 329 except BaseException as exc: 330 # This may also be a cancellation. 331 self.__step(exc) File [~/anaconda3/lib/python3.9/asyncio/tasks.py:256](https://file+.vscode-resource.vscode-cdn.net/home/username/projects/~/anaconda3/lib/python3.9/asyncio/tasks.py:256), in Task.__step(***failed resolving arguments***) 252 try: 253 if exc is None: 254 # We use the `send` method directly, because coroutines 255 # don't have `__iter__` and `__next__` methods. ... ---> 88 raise ValueError(f"Got unknown type {message}") 89 if "name" in message.additional_kwargs: 90 message_dict["name"] = message.additional_kwargs["name"] ValueError: Got unknown type H ```
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1751/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1751/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1750
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1750/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1750/comments
https://api.github.com/repos/hwchase17/langchain/issues/1750/events
https://github.com/hwchase17/langchain/pull/1750
1,630,171,331
PR_kwDOIPDwls5MWdhk
1,750
Allow saving summary messages in roles other than system in conversation memory
{ "login": "Aratako", "id": 127325395, "node_id": "U_kgDOB5bU0w", "avatar_url": "https://avatars.githubusercontent.com/u/127325395?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Aratako", "html_url": "https://github.com/Aratako", "followers_url": "https://api.github.com/users/Aratako/followers", "following_url": "https://api.github.com/users/Aratako/following{/other_user}", "gists_url": "https://api.github.com/users/Aratako/gists{/gist_id}", "starred_url": "https://api.github.com/users/Aratako/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aratako/subscriptions", "organizations_url": "https://api.github.com/users/Aratako/orgs", "repos_url": "https://api.github.com/users/Aratako/repos", "events_url": "https://api.github.com/users/Aratako/events{/privacy}", "received_events_url": "https://api.github.com/users/Aratako/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-18T05:15:57
2023-03-19T17:53:25
2023-03-19T16:50:00
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1750", "html_url": "https://github.com/hwchase17/langchain/pull/1750", "diff_url": "https://github.com/hwchase17/langchain/pull/1750.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1750.patch", "merged_at": "2023-03-19T16:50:00" }
In the current `ConcersationSummaryMemory`, `ConversationSummaryBufferMemory` and `ConversationKGMemory`, summarized messages are stored as `SystemMessage`. However, according to the official documentation, gpt-3.5-turbo does not pay much attention to the `system` role message and prefers important information to be provided in the `user` role. Quote 1 (https://github.com/openai/openai-python/blob/main/chatml.md) > If adding instructions in the `system` message doesn't work, you can also try putting them into a `user` message. (In the near future, we will train our models to be much more steerable via the system message. But to date, we have trained only on a few system messages, so the models pay much more attention to user examples.) Quote 2 (https://github.com/openai/openai-cookbook/blob/main/examples/How_to_format_inputs_to_ChatGPT_models.ipynb) > The system message can be used to prime the assistant with different personalities or behaviors. > > However, the model does not generally pay as much attention to the system message, and therefore we recommend placing important instructions in the user message instead. Therefore, this PR changes the behavior to allow storing summary messages in roles other than system. A new variable `summary_message_role` is added with a default value of `"system"`. Depending on the value of this variable, the summary will be stored as a `HumanMessage`, `AIMessage`, or `SystemMessage`.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1750/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1750/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1749
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1749/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1749/comments
https://api.github.com/repos/hwchase17/langchain/issues/1749/events
https://github.com/hwchase17/langchain/pull/1749
1,630,156,921
PR_kwDOIPDwls5MWahs
1,749
add support for GPT-4
{ "login": "BrennanColberg", "id": 14948341, "node_id": "MDQ6VXNlcjE0OTQ4MzQx", "avatar_url": "https://avatars.githubusercontent.com/u/14948341?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BrennanColberg", "html_url": "https://github.com/BrennanColberg", "followers_url": "https://api.github.com/users/BrennanColberg/followers", "following_url": "https://api.github.com/users/BrennanColberg/following{/other_user}", "gists_url": "https://api.github.com/users/BrennanColberg/gists{/gist_id}", "starred_url": "https://api.github.com/users/BrennanColberg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BrennanColberg/subscriptions", "organizations_url": "https://api.github.com/users/BrennanColberg/orgs", "repos_url": "https://api.github.com/users/BrennanColberg/repos", "events_url": "https://api.github.com/users/BrennanColberg/events{/privacy}", "received_events_url": "https://api.github.com/users/BrennanColberg/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "fixed in other pr" ]
2023-03-18T04:43:44
2023-03-19T16:48:56
2023-03-19T16:48:56
NONE
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1749", "html_url": "https://github.com/hwchase17/langchain/pull/1749", "diff_url": "https://github.com/hwchase17/langchain/pull/1749.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1749.patch", "merged_at": null }
GPT-4 uses the same ChatCompletion API as `gpt-3.5` before it. However, this API is only "switched to" by llms/openai.py when the model starts with `"gpt-3.5-turbo"`. This makes it impossible to set the model to GPT-4 and have it work properly. My PR fixes this by changing the starts-with checker to accept all 3.5- and 4- versions. source on model APIs: https://platform.openai.com/docs/models/gpt-4
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1749/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1749/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1748
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1748/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1748/comments
https://api.github.com/repos/hwchase17/langchain/issues/1748/events
https://github.com/hwchase17/langchain/pull/1748
1,630,119,096
PR_kwDOIPDwls5MWS6T
1,748
Feat: Adding token usage for ChatOpenAI. Resolves #1519, resolves #1429
{ "login": "stephenleo", "id": 35026793, "node_id": "MDQ6VXNlcjM1MDI2Nzkz", "avatar_url": "https://avatars.githubusercontent.com/u/35026793?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stephenleo", "html_url": "https://github.com/stephenleo", "followers_url": "https://api.github.com/users/stephenleo/followers", "following_url": "https://api.github.com/users/stephenleo/following{/other_user}", "gists_url": "https://api.github.com/users/stephenleo/gists{/gist_id}", "starred_url": "https://api.github.com/users/stephenleo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stephenleo/subscriptions", "organizations_url": "https://api.github.com/users/stephenleo/orgs", "repos_url": "https://api.github.com/users/stephenleo/repos", "events_url": "https://api.github.com/users/stephenleo/events{/privacy}", "received_events_url": "https://api.github.com/users/stephenleo/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "how to make the total_tokens work for streaming mode as well? like \r\n``\r\nchat = ChatOpenAI(streaming=True, callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]), verbose=True, temperature=0.7)\r\n``\r\nI tested the commit finding it only works for non-streaming mode.", "That's right, the streaming mode doesn't support token_usage even for the OpenAI llm\r\n\r\nhttps://langchain.readthedocs.io/en/latest/modules/llms/streaming_llm.html?highlight=token_usage", "on_llm_end is already called on the BaseLanguageModel class, we just need to propogate things up there", "https://github.com/hwchase17/langchain/pull/1785\r\n", "Awesome! #1785 adds much of the functionality of this PR. Will debug the 0 token_usage on the new master and re-submit a cleaner PR" ]
2023-03-18T03:11:17
2023-03-20T02:55:43
2023-03-20T02:16:14
NONE
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1748", "html_url": "https://github.com/hwchase17/langchain/pull/1748", "diff_url": "https://github.com/hwchase17/langchain/pull/1748.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1748.patch", "merged_at": null }
- Added in the `on_llm_end` callback into ChatOpenAI's `__call__` - fixed multiple linting errors arising from above change - added in tests to `chat_models/test_openai.py`
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1748/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/hwchase17/langchain/issues/1748/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1747
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1747/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1747/comments
https://api.github.com/repos/hwchase17/langchain/issues/1747/events
https://github.com/hwchase17/langchain/issues/1747
1,630,060,590
I_kwDOIPDwls5hKMAu
1,747
AzureOpenAI gpt-3.5-turbo doesn't support best_of parameter
{ "login": "starcrafter", "id": 6138257, "node_id": "MDQ6VXNlcjYxMzgyNTc=", "avatar_url": "https://avatars.githubusercontent.com/u/6138257?v=4", "gravatar_id": "", "url": "https://api.github.com/users/starcrafter", "html_url": "https://github.com/starcrafter", "followers_url": "https://api.github.com/users/starcrafter/followers", "following_url": "https://api.github.com/users/starcrafter/following{/other_user}", "gists_url": "https://api.github.com/users/starcrafter/gists{/gist_id}", "starred_url": "https://api.github.com/users/starcrafter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/starcrafter/subscriptions", "organizations_url": "https://api.github.com/users/starcrafter/orgs", "repos_url": "https://api.github.com/users/starcrafter/repos", "events_url": "https://api.github.com/users/starcrafter/events{/privacy}", "received_events_url": "https://api.github.com/users/starcrafter/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-18T00:45:00
2023-03-18T00:45:00
null
NONE
null
null
null
AzureOpenAI seems not work for gpt-3.5-turbo due to this issue
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1747/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1747/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1746
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1746/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1746/comments
https://api.github.com/repos/hwchase17/langchain/issues/1746/events
https://github.com/hwchase17/langchain/pull/1746
1,629,977,842
PR_kwDOIPDwls5MV22d
1,746
feat: add source_column to CSVLoader
{ "login": "briangrahamww", "id": 46691715, "node_id": "MDQ6VXNlcjQ2NjkxNzE1", "avatar_url": "https://avatars.githubusercontent.com/u/46691715?v=4", "gravatar_id": "", "url": "https://api.github.com/users/briangrahamww", "html_url": "https://github.com/briangrahamww", "followers_url": "https://api.github.com/users/briangrahamww/followers", "following_url": "https://api.github.com/users/briangrahamww/following{/other_user}", "gists_url": "https://api.github.com/users/briangrahamww/gists{/gist_id}", "starred_url": "https://api.github.com/users/briangrahamww/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/briangrahamww/subscriptions", "organizations_url": "https://api.github.com/users/briangrahamww/orgs", "repos_url": "https://api.github.com/users/briangrahamww/repos", "events_url": "https://api.github.com/users/briangrahamww/events{/privacy}", "received_events_url": "https://api.github.com/users/briangrahamww/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-17T22:13:00
2023-03-19T17:05:06
2023-03-19T17:05:05
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1746", "html_url": "https://github.com/hwchase17/langchain/pull/1746", "diff_url": "https://github.com/hwchase17/langchain/pull/1746.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1746.patch", "merged_at": "2023-03-19T17:05:05" }
This pull request introduces a new feature to the `CSVLoader` class that allows overriding the default source value for each document loaded from a CSV file, which was previously set to be the `filepath`. By setting the `source_column` argument to the name of a column in the CSV file, the source of each document will be set to the value of that column. This is useful if each row is constitutes a longer doc and one of the columns is some type of identified for that document that you would any question answering models to use when citing the source of their response. I updated documentation with example and fixed the failing import statement in the example notebook.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1746/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1746/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1745
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1745/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1745/comments
https://api.github.com/repos/hwchase17/langchain/issues/1745/events
https://github.com/hwchase17/langchain/issues/1745
1,629,974,694
I_kwDOIPDwls5hJ3Cm
1,745
Getting KeyError: {'context', 'question'} when following Chat Vector DB with streaming example
{ "login": "aadnegture", "id": 91458900, "node_id": "MDQ6VXNlcjkxNDU4OTAw", "avatar_url": "https://avatars.githubusercontent.com/u/91458900?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aadnegture", "html_url": "https://github.com/aadnegture", "followers_url": "https://api.github.com/users/aadnegture/followers", "following_url": "https://api.github.com/users/aadnegture/following{/other_user}", "gists_url": "https://api.github.com/users/aadnegture/gists{/gist_id}", "starred_url": "https://api.github.com/users/aadnegture/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aadnegture/subscriptions", "organizations_url": "https://api.github.com/users/aadnegture/orgs", "repos_url": "https://api.github.com/users/aadnegture/repos", "events_url": "https://api.github.com/users/aadnegture/events{/privacy}", "received_events_url": "https://api.github.com/users/aadnegture/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-17T22:09:27
2023-03-17T22:09:27
null
NONE
null
null
null
I'm trying to follow this example [https://langchain.readthedocs.io/en/latest/modules/indexes/chain_examples/chat_vector_db.html?highlight=chatvectordb#chat-vector-db-with-streaming-to-stdout](url) and I've used PagedPDFSplitter to load a PDF. This is how I've done it (build_vectorstore returns Chroma.from_documents(texts,embeddings)) ``` documents = load_documents() texts= split_text(documents) vectorstore = build_vectorstore(texts) llm = ChatOpenAI(temperature=0) streaming_llm = ChatOpenAI(streaming=True,callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]),verbose=True,temperature=0) question_generator = LLMChain(llm=llm,prompt=CONDENSE_QUESTION_PROMPT) doc_chain = load_qa_chain(streaming_llm,chain_type="stuff",prompt=QA_PROMPT) qa = ChatVectorDBChain(vectorstore=vectorstore,combine_docs_chain=doc_chain,question_generator=question_generator) chat_history = [] query = "What does this document contain?" result = qa({"question": query, "chat_history": chat_history}) ``` And this is the error I'm getting: KeyError: {'context', 'question'} ``` [91] result = qa({"question": query, "chat_history": chat_history}) [114](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=113) except (KeyboardInterrupt, Exception) as e: [115](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=114) self.callback_manager.on_chain_error(e, verbose=self.verbose) --> [116](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=115) raise e [117](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=116) self.callback_manager.on_chain_end(outputs, verbose=self.verbose) [118](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=117) return self.prep_outputs(inputs, outputs, return_only_outputs) [107](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=106) self.callback_manager.on_chain_start( [108](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=107) {"name": self.__class__.__name__}, [109](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=108) inputs, [110](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=109) verbose=self.verbose, [111](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=110) ) [112](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=111) try: --> [113](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=112) outputs = self._call(inputs) [114](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=113) except (KeyboardInterrupt, Exception) as e: [115](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/chains/base.py?line=114) self.callback_manager.on_chain_error(e, verbose=self.verbose) ... [16](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/formatting.py?line=15) extra = set(kwargs).difference(used_args) [17](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/formatting.py?line=16) if extra: ---> [18](file:///c%3A/Users//miniconda3/envs/langchain2/lib/site-packages/langchain/formatting.py?line=17) raise KeyError(extra) KeyError: {'context', 'question'} ```
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1745/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1745/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1743
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1743/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1743/comments
https://api.github.com/repos/hwchase17/langchain/issues/1743/events
https://github.com/hwchase17/langchain/issues/1743
1,629,872,044
I_kwDOIPDwls5hJd-s
1,743
Support for Pinecone Hybrid Search (Sparse-dense embeddings)
{ "login": "sbc-max", "id": 126623788, "node_id": "U_kgDOB4wgLA", "avatar_url": "https://avatars.githubusercontent.com/u/126623788?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sbc-max", "html_url": "https://github.com/sbc-max", "followers_url": "https://api.github.com/users/sbc-max/followers", "following_url": "https://api.github.com/users/sbc-max/following{/other_user}", "gists_url": "https://api.github.com/users/sbc-max/gists{/gist_id}", "starred_url": "https://api.github.com/users/sbc-max/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sbc-max/subscriptions", "organizations_url": "https://api.github.com/users/sbc-max/orgs", "repos_url": "https://api.github.com/users/sbc-max/repos", "events_url": "https://api.github.com/users/sbc-max/events{/privacy}", "received_events_url": "https://api.github.com/users/sbc-max/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-17T20:02:14
2023-03-17T20:22:48
null
NONE
null
null
null
I have found that the OpenAI embeddings are decent, but suffer when you want specific names or keywords to be included. I've found that the [sparse-dense approach](https://www.pinecone.io/learn/sparse-dense) produces better results, but not supported by the current implementation of the Vectorstore or the chains. Has anyone else implemented a workaround or is there any planned support for this?
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1743/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1743/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1742
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1742/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1742/comments
https://api.github.com/repos/hwchase17/langchain/issues/1742/events
https://github.com/hwchase17/langchain/pull/1742
1,629,560,814
PR_kwDOIPDwls5MUc0p
1,742
hotfix
{ "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": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/hwchase17/langchain/labels/release", "name": "release", "color": "07D4BE", "default": false, "description": "" } ]
closed
false
null
[]
null
[]
2023-03-17T16:01:06
2023-03-20T14:36:31
2023-03-17T16:05:08
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1742", "html_url": "https://github.com/hwchase17/langchain/pull/1742", "diff_url": "https://github.com/hwchase17/langchain/pull/1742.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1742.patch", "merged_at": "2023-03-17T16:05:08" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1742/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1742/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1741
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1741/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1741/comments
https://api.github.com/repos/hwchase17/langchain/issues/1741/events
https://github.com/hwchase17/langchain/pull/1741
1,629,540,669
PR_kwDOIPDwls5MUYcC
1,741
Harrison/move docs
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-17T15:49:00
2023-03-17T15:49:12
2023-03-17T15:49:11
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1741", "html_url": "https://github.com/hwchase17/langchain/pull/1741", "diff_url": "https://github.com/hwchase17/langchain/pull/1741.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1741.patch", "merged_at": "2023-03-17T15:49:11" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1741/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1741/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1740
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1740/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1740/comments
https://api.github.com/repos/hwchase17/langchain/issues/1740/events
https://github.com/hwchase17/langchain/pull/1740
1,629,530,226
PR_kwDOIPDwls5MUWOP
1,740
move docs
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-17T15:42:12
2023-03-17T15:42:29
2023-03-17T15:42:28
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1740", "html_url": "https://github.com/hwchase17/langchain/pull/1740", "diff_url": "https://github.com/hwchase17/langchain/pull/1740.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1740.patch", "merged_at": "2023-03-17T15:42:28" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1740/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1740/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1739
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1739/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1739/comments
https://api.github.com/repos/hwchase17/langchain/issues/1739/events
https://github.com/hwchase17/langchain/pull/1739
1,629,481,740
PR_kwDOIPDwls5MUL0K
1,739
bump version to 114
{ "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": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/hwchase17/langchain/labels/release", "name": "release", "color": "07D4BE", "default": false, "description": "" } ]
closed
false
null
[]
null
[]
2023-03-17T15:11:22
2023-03-17T15:26:08
2023-03-17T15:26:07
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1739", "html_url": "https://github.com/hwchase17/langchain/pull/1739", "diff_url": "https://github.com/hwchase17/langchain/pull/1739.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1739.patch", "merged_at": "2023-03-17T15:26:06" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1739/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1739/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1738
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1738/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1738/comments
https://api.github.com/repos/hwchase17/langchain/issues/1738/events
https://github.com/hwchase17/langchain/pull/1738
1,629,467,639
PR_kwDOIPDwls5MUIzz
1,738
Harrison/latex splitter
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-17T15:02:33
2023-03-17T15:10:29
2023-03-17T15:10:27
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1738", "html_url": "https://github.com/hwchase17/langchain/pull/1738", "diff_url": "https://github.com/hwchase17/langchain/pull/1738.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1738.patch", "merged_at": "2023-03-17T15:10:27" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1738/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1738/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1737
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1737/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1737/comments
https://api.github.com/repos/hwchase17/langchain/issues/1737/events
https://github.com/hwchase17/langchain/pull/1737
1,629,462,603
PR_kwDOIPDwls5MUHvA
1,737
Harrison/blackboard loader
{ "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 }
[]
closed
false
null
[]
null
[ "Thank you for fixing this up!" ]
2023-03-17T14:59:29
2023-03-20T14:38:20
2023-03-17T15:02:45
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1737", "html_url": "https://github.com/hwchase17/langchain/pull/1737", "diff_url": "https://github.com/hwchase17/langchain/pull/1737.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1737.patch", "merged_at": "2023-03-17T15:02:45" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1737/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1737/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1736
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1736/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1736/comments
https://api.github.com/repos/hwchase17/langchain/issues/1736/events
https://github.com/hwchase17/langchain/issues/1736
1,629,261,920
I_kwDOIPDwls5hHJBg
1,736
Chain Serialization Support with Azure OpenAI LLMs
{ "login": "LaxmanSinghTomar", "id": 37807897, "node_id": "MDQ6VXNlcjM3ODA3ODk3", "avatar_url": "https://avatars.githubusercontent.com/u/37807897?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LaxmanSinghTomar", "html_url": "https://github.com/LaxmanSinghTomar", "followers_url": "https://api.github.com/users/LaxmanSinghTomar/followers", "following_url": "https://api.github.com/users/LaxmanSinghTomar/following{/other_user}", "gists_url": "https://api.github.com/users/LaxmanSinghTomar/gists{/gist_id}", "starred_url": "https://api.github.com/users/LaxmanSinghTomar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LaxmanSinghTomar/subscriptions", "organizations_url": "https://api.github.com/users/LaxmanSinghTomar/orgs", "repos_url": "https://api.github.com/users/LaxmanSinghTomar/repos", "events_url": "https://api.github.com/users/LaxmanSinghTomar/events{/privacy}", "received_events_url": "https://api.github.com/users/LaxmanSinghTomar/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-17T12:50:42
2023-03-17T12:50:42
null
NONE
null
null
null
It's really useful to move away the prompts etc. from the main codebase. Currently, from the documentation and my own testing, seems that only those chains can be serialized that have OpenAI LLM (only `text-davinci-003`). But, no such support is available for Azure-based OpenAI LLMs (`text-davinci-003` and `gpt-3.5-turbo`). Is my understanding correct? If yes, any plans on adding it soon?
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1736/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1736/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1735
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1735/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1735/comments
https://api.github.com/repos/hwchase17/langchain/issues/1735/events
https://github.com/hwchase17/langchain/pull/1735
1,629,231,538
PR_kwDOIPDwls5MTWXm
1,735
docs: add docs link to agent toolkits
{ "login": "vinliao", "id": 34117807, "node_id": "MDQ6VXNlcjM0MTE3ODA3", "avatar_url": "https://avatars.githubusercontent.com/u/34117807?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vinliao", "html_url": "https://github.com/vinliao", "followers_url": "https://api.github.com/users/vinliao/followers", "following_url": "https://api.github.com/users/vinliao/following{/other_user}", "gists_url": "https://api.github.com/users/vinliao/gists{/gist_id}", "starred_url": "https://api.github.com/users/vinliao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vinliao/subscriptions", "organizations_url": "https://api.github.com/users/vinliao/orgs", "repos_url": "https://api.github.com/users/vinliao/repos", "events_url": "https://api.github.com/users/vinliao/events{/privacy}", "received_events_url": "https://api.github.com/users/vinliao/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-17T12:27:05
2023-03-17T14:59:50
2023-03-17T14:59:50
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1735", "html_url": "https://github.com/hwchase17/langchain/pull/1735", "diff_url": "https://github.com/hwchase17/langchain/pull/1735.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1735.patch", "merged_at": "2023-03-17T14:59:50" }
New to Langchain, was a bit confused where I should find the toolkits section when I'm at `agent/key_concepts` docs. I added a short link that points to the how to section.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1735/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1735/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1734
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1734/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1734/comments
https://api.github.com/repos/hwchase17/langchain/issues/1734/events
https://github.com/hwchase17/langchain/pull/1734
1,629,162,841
PR_kwDOIPDwls5MTHYH
1,734
fix: agent json parser fails with text in suffix
{ "login": "anselm94", "id": 9033201, "node_id": "MDQ6VXNlcjkwMzMyMDE=", "avatar_url": "https://avatars.githubusercontent.com/u/9033201?v=4", "gravatar_id": "", "url": "https://api.github.com/users/anselm94", "html_url": "https://github.com/anselm94", "followers_url": "https://api.github.com/users/anselm94/followers", "following_url": "https://api.github.com/users/anselm94/following{/other_user}", "gists_url": "https://api.github.com/users/anselm94/gists{/gist_id}", "starred_url": "https://api.github.com/users/anselm94/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anselm94/subscriptions", "organizations_url": "https://api.github.com/users/anselm94/orgs", "repos_url": "https://api.github.com/users/anselm94/repos", "events_url": "https://api.github.com/users/anselm94/events{/privacy}", "received_events_url": "https://api.github.com/users/anselm94/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-17T11:38:12
2023-03-17T15:41:37
2023-03-17T14:59:39
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1734", "html_url": "https://github.com/hwchase17/langchain/pull/1734", "diff_url": "https://github.com/hwchase17/langchain/pull/1734.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1734.patch", "merged_at": "2023-03-17T14:59:39" }
While testing out `VectorDBQA` as a `Tool` for one of the conversation, I happened to get a response from LLM (OpenAI) like this <code> Could not parse LLM output: Here's a response using the Product Search tool: ```json { "action": "Product Search", "action_input": "pots for plants" } ``` This will allow you to search for pots for your plants and find a variety of options that are available for purchase. You can use this information to choose the pots that best fit your needs and preferences. </code> i.e. The response had a text before & *after* the expected JSON, leading to `JSONDecodeError`. It's fixed now, by removing text after '```' to remove unwanted text. The error I encountered in this Jupyter Notebook - [link](https://github.com/anselm94/chatbot-llm-ecommerce/blob/main/chatcommerce.ipynb) <details> <summary>Error encountered</summary> <code> --------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) File ~/Git/chatbot-llm-ecommerce/.venv/lib/python3.11/site-packages/langchain/agents/conversational_chat/base.py:104, in ConversationalChatAgent._extract_tool_and_input(self, llm_output) 103 try: --> 104 response = self.output_parser.parse(llm_output) 105 return response["action"], response["action_input"] File ~/Git/chatbot-llm-ecommerce/.venv/lib/python3.11/site-packages/langchain/agents/conversational_chat/base.py:49, in AgentOutputParser.parse(self, text) 48 cleaned_output = cleaned_output.strip() ---> 49 response = json.loads(cleaned_output) 50 return {"action": response["action"], "action_input": response["action_input"]} File /opt/homebrew/Cellar/python@3.11/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/__init__.py:346, in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 343 if (cls is None and object_hook is None and 344 parse_int is None and parse_float is None and 345 parse_constant is None and object_pairs_hook is None and not kw): --> 346 return _default_decoder.decode(s) 347 if cls is None: File /opt/homebrew/Cellar/python@3.11/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py:340, in JSONDecoder.decode(self, s, _w) 339 if end != len(s): --> 340 raise JSONDecodeError("Extra data", s, end) 341 return obj JSONDecodeError: Extra data: line 5 column 1 (char 74) During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) Cell In[22], line 1 ----> 1 ask_ai.run("Yes. I need pots for my plants") File ~/Git/chatbot-llm-ecommerce/.venv/lib/python3.11/site-packages/langchain/chains/base.py:213, in Chain.run(self, *args, **kwargs) 211 if len(args) != 1: 212 raise ValueError("`run` supports only one positional argument.") --> 213 return self(args[0])[self.output_keys[0]] 215 if kwargs and not args: 216 return self(kwargs)[self.output_keys[0]] File ~/Git/chatbot-llm-ecommerce/.venv/lib/python3.11/site-packages/langchain/chains/base.py:116, in Chain.__call__(self, inputs, return_only_outputs) 114 except (KeyboardInterrupt, Exception) as e: 115 self.callback_manager.on_chain_error(e, verbose=self.verbose) --> 116 raise e 117 self.callback_manager.on_chain_end(outputs, verbose=self.verbose) 118 return self.prep_outputs(inputs, outputs, return_only_outputs) File ~/Git/chatbot-llm-ecommerce/.venv/lib/python3.11/site-packages/langchain/chains/base.py:113, in Chain.__call__(self, inputs, return_only_outputs) 107 self.callback_manager.on_chain_start( 108 {"name": self.__class__.__name__}, 109 inputs, 110 verbose=self.verbose, 111 ) 112 try: --> 113 outputs = self._call(inputs) 114 except (KeyboardInterrupt, Exception) as e: 115 self.callback_manager.on_chain_error(e, verbose=self.verbose) File ~/Git/chatbot-llm-ecommerce/.venv/lib/python3.11/site-packages/langchain/agents/agent.py:499, in AgentExecutor._call(self, inputs) 497 # We now enter the agent loop (until it returns something). 498 while self._should_continue(iterations): --> 499 next_step_output = self._take_next_step( 500 name_to_tool_map, color_mapping, inputs, intermediate_steps 501 ) 502 if isinstance(next_step_output, AgentFinish): 503 return self._return(next_step_output, intermediate_steps) File ~/Git/chatbot-llm-ecommerce/.venv/lib/python3.11/site-packages/langchain/agents/agent.py:409, in AgentExecutor._take_next_step(self, name_to_tool_map, color_mapping, inputs, intermediate_steps) 404 """Take a single step in the thought-action-observation loop. 405 406 Override this to take control of how the agent makes and acts on choices. 407 """ 408 # Call the LLM to see what to do. --> 409 output = self.agent.plan(intermediate_steps, **inputs) 410 # If the tool chosen is the finishing tool, then we end and return. 411 if isinstance(output, AgentFinish): File ~/Git/chatbot-llm-ecommerce/.venv/lib/python3.11/site-packages/langchain/agents/agent.py:105, in Agent.plan(self, intermediate_steps, **kwargs) 94 """Given input, decided what to do. 95 96 Args: (...) 102 Action specifying what tool to use. 103 """ 104 full_inputs = self.get_full_inputs(intermediate_steps, **kwargs) --> 105 action = self._get_next_action(full_inputs) 106 if action.tool == self.finish_tool_name: 107 return AgentFinish({"output": action.tool_input}, action.log) File ~/Git/chatbot-llm-ecommerce/.venv/lib/python3.11/site-packages/langchain/agents/agent.py:67, in Agent._get_next_action(self, full_inputs) 65 def _get_next_action(self, full_inputs: Dict[str, str]) -> AgentAction: 66 full_output = self.llm_chain.predict(**full_inputs) ---> 67 parsed_output = self._extract_tool_and_input(full_output) 68 while parsed_output is None: 69 full_output = self._fix_text(full_output) File ~/Git/chatbot-llm-ecommerce/.venv/lib/python3.11/site-packages/langchain/agents/conversational_chat/base.py:107, in ConversationalChatAgent._extract_tool_and_input(self, llm_output) 105 return response["action"], response["action_input"] 106 except Exception: --> 107 raise ValueError(f"Could not parse LLM output: {llm_output}") ValueError: Could not parse LLM output: Here's a response using the Product Search tool: ```json { "action": "Product Search", "action_input": "pots for plants" } ``` This will allow you to search for pots for your plants and find a variety of options that are available for purchase. You can use this information to choose the pots that best fit your needs and preferences. </details>
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1734/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1734/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1733
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1733/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1733/comments
https://api.github.com/repos/hwchase17/langchain/issues/1733/events
https://github.com/hwchase17/langchain/issues/1733
1,629,133,888
I_kwDOIPDwls5hGpxA
1,733
list index out of range error if similarity search gives 0 docs
{ "login": "sheikalthaf", "id": 22526247, "node_id": "MDQ6VXNlcjIyNTI2MjQ3", "avatar_url": "https://avatars.githubusercontent.com/u/22526247?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sheikalthaf", "html_url": "https://github.com/sheikalthaf", "followers_url": "https://api.github.com/users/sheikalthaf/followers", "following_url": "https://api.github.com/users/sheikalthaf/following{/other_user}", "gists_url": "https://api.github.com/users/sheikalthaf/gists{/gist_id}", "starred_url": "https://api.github.com/users/sheikalthaf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sheikalthaf/subscriptions", "organizations_url": "https://api.github.com/users/sheikalthaf/orgs", "repos_url": "https://api.github.com/users/sheikalthaf/repos", "events_url": "https://api.github.com/users/sheikalthaf/events{/privacy}", "received_events_url": "https://api.github.com/users/sheikalthaf/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-17T11:14:48
2023-03-17T11:18:53
null
NONE
null
null
null
https://github.com/hwchase17/langchain/blob/276940fd9babf8aec570dd869cc84fbca1c766bf/langchain/vectorstores/milvus.py#L319 I'm using milvus where for my question I'm getting 0 documents and so index out of range error occurs Error line: https://github.com/hwchase17/langchain/blob/276940fd9babf8aec570dd869cc84fbca1c766bf/langchain/chains/llm.py#L95
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1733/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1733/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1732
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1732/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1732/comments
https://api.github.com/repos/hwchase17/langchain/issues/1732/events
https://github.com/hwchase17/langchain/pull/1732
1,629,097,695
PR_kwDOIPDwls5MS5Od
1,732
Add LaTeX splitter
{ "login": "Janldeboer", "id": 44832123, "node_id": "MDQ6VXNlcjQ0ODMyMTIz", "avatar_url": "https://avatars.githubusercontent.com/u/44832123?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Janldeboer", "html_url": "https://github.com/Janldeboer", "followers_url": "https://api.github.com/users/Janldeboer/followers", "following_url": "https://api.github.com/users/Janldeboer/following{/other_user}", "gists_url": "https://api.github.com/users/Janldeboer/gists{/gist_id}", "starred_url": "https://api.github.com/users/Janldeboer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Janldeboer/subscriptions", "organizations_url": "https://api.github.com/users/Janldeboer/orgs", "repos_url": "https://api.github.com/users/Janldeboer/repos", "events_url": "https://api.github.com/users/Janldeboer/events{/privacy}", "received_events_url": "https://api.github.com/users/Janldeboer/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "P.S. My twitter is also `janldeboer` :)" ]
2023-03-17T10:49:30
2023-03-17T15:00:32
2023-03-17T15:00:32
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1732", "html_url": "https://github.com/hwchase17/langchain/pull/1732", "diff_url": "https://github.com/hwchase17/langchain/pull/1732.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1732.patch", "merged_at": "2023-03-17T15:00:32" }
This PR is adding a LatexTextSplitter, closing #1731 It's based on the MarkdownTextSplitter, but the separators are adjusted. I also added an entry for it to the according `test_examples.ipynb` One issue I have, is that I can't run the complete notebook without an error in a later part, I'll open up a new issue for that.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1732/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1732/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1731
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1731/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1731/comments
https://api.github.com/repos/hwchase17/langchain/issues/1731/events
https://github.com/hwchase17/langchain/issues/1731
1,629,015,269
I_kwDOIPDwls5hGMzl
1,731
LaTeX Text Splitter
{ "login": "Janldeboer", "id": 44832123, "node_id": "MDQ6VXNlcjQ0ODMyMTIz", "avatar_url": "https://avatars.githubusercontent.com/u/44832123?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Janldeboer", "html_url": "https://github.com/Janldeboer", "followers_url": "https://api.github.com/users/Janldeboer/followers", "following_url": "https://api.github.com/users/Janldeboer/following{/other_user}", "gists_url": "https://api.github.com/users/Janldeboer/gists{/gist_id}", "starred_url": "https://api.github.com/users/Janldeboer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Janldeboer/subscriptions", "organizations_url": "https://api.github.com/users/Janldeboer/orgs", "repos_url": "https://api.github.com/users/Janldeboer/repos", "events_url": "https://api.github.com/users/Janldeboer/events{/privacy}", "received_events_url": "https://api.github.com/users/Janldeboer/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "I will setup my dev environment now and start working on it (shouldn't be too hard I think).\r\nUnfortunately I don't have the right to assign myself to this issue (or to add labels)" ]
2023-03-17T09:51:15
2023-03-18T02:39:19
2023-03-18T02:39:19
CONTRIBUTOR
null
null
null
As most scientific papers are released not only as pdf, but also also source code (LaTeX), I propose adding a LaTeX Text Splitter. I shall split in hierarchical order (e.g. by sections first, then subsections, headings, ...)
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1731/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1731/timeline
null
completed
false
https://api.github.com/repos/hwchase17/langchain/issues/1730
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1730/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1730/comments
https://api.github.com/repos/hwchase17/langchain/issues/1730/events
https://github.com/hwchase17/langchain/issues/1730
1,628,973,092
I_kwDOIPDwls5hGCgk
1,730
Include ChatGPT Turbo model in the Chain (Summarization)
{ "login": "nsankar", "id": 431890, "node_id": "MDQ6VXNlcjQzMTg5MA==", "avatar_url": "https://avatars.githubusercontent.com/u/431890?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nsankar", "html_url": "https://github.com/nsankar", "followers_url": "https://api.github.com/users/nsankar/followers", "following_url": "https://api.github.com/users/nsankar/following{/other_user}", "gists_url": "https://api.github.com/users/nsankar/gists{/gist_id}", "starred_url": "https://api.github.com/users/nsankar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nsankar/subscriptions", "organizations_url": "https://api.github.com/users/nsankar/orgs", "repos_url": "https://api.github.com/users/nsankar/repos", "events_url": "https://api.github.com/users/nsankar/events{/privacy}", "received_events_url": "https://api.github.com/users/nsankar/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[ "im assuming you mean update the typing?", "Currently, with: \r\n`llm = OpenAI(model_name= \"gpt-3.5-turbo\" ,temperature=0)`\r\n\r\nIt loads OpenAIChat and feeding OpenAIChat into \r\n```summary_chain = load_summarize_chain(llm, chain_type=\"map_reduce\", map_prompt=PROMPT, combine_prompt=PROMPT, verbose=True)```\r\n\r\nWill lead to the following error:\r\n```ValueError: OpenAIChat currently only supports single prompt, got [Wha...```\r\n\r\n\r\nI don't know if it is the same issue nsankar referring to. But I think it would be a great improvement as text-davinci-003 is super expensive compared to gpt-3.5-turbo. In particular for map_reduce summarization as it makes a lot of API calls...\r\n\r\nIf it's not the same issue, I can open a new issue ", "The issue is the same as I posted here: https://github.com/hwchase17/langchain/issues/1368#issuecomment-1461853402\r\n\r\nChat models don't work for summarization in langchain, but there is no good reason for this. It is very easy to make chat models act like normal models, would suggest just doing that.", "If you are desperate to get this working, you can cherrypick the commit I made here: https://github.com/hwchase17/langchain/pull/1826\r\n\r\nThen you can use turbo and gpt4 for chains etc." ]
2023-03-17T09:21:12
2023-03-20T18:00:03
null
NONE
null
null
null
Please include ChatGPT Turbo's ChatOpenAI object to be passed as an LLM completion in the Summarizer chain. _(from langchain.chat_models.openai import ChatOpenAI)_ for the following usage `summary_chain = load_summarize_chain(llm, chain_type="map_reduce") summarize_document_chain = AnalyzeDocumentChain(combine_docs_chain=summary_chain)`
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1730/reactions", "total_count": 8, "+1": 8, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1730/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1729
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1729/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1729/comments
https://api.github.com/repos/hwchase17/langchain/issues/1729/events
https://github.com/hwchase17/langchain/issues/1729
1,628,849,552
I_kwDOIPDwls5hFkWQ
1,729
Unable to add vector store and SerpAPI to agent
{ "login": "areeb1501", "id": 64038736, "node_id": "MDQ6VXNlcjY0MDM4NzM2", "avatar_url": "https://avatars.githubusercontent.com/u/64038736?v=4", "gravatar_id": "", "url": "https://api.github.com/users/areeb1501", "html_url": "https://github.com/areeb1501", "followers_url": "https://api.github.com/users/areeb1501/followers", "following_url": "https://api.github.com/users/areeb1501/following{/other_user}", "gists_url": "https://api.github.com/users/areeb1501/gists{/gist_id}", "starred_url": "https://api.github.com/users/areeb1501/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/areeb1501/subscriptions", "organizations_url": "https://api.github.com/users/areeb1501/orgs", "repos_url": "https://api.github.com/users/areeb1501/repos", "events_url": "https://api.github.com/users/areeb1501/events{/privacy}", "received_events_url": "https://api.github.com/users/areeb1501/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
[]
2023-03-17T07:42:56
2023-03-17T07:42:56
null
NONE
null
null
null
Is there anyway I can use my existing vector store that I already have on pinecone? I don't want to keep generating the embeddings because my documents have a lot of text in them. I also want to link pinecone and the serpAPI, so that if the answer is not available in pinecone, I can browse the web for answers. Is this something doable? Any resources would be really helpful.
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1729/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1729/timeline
null
null
false
https://api.github.com/repos/hwchase17/langchain/issues/1728
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1728/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1728/comments
https://api.github.com/repos/hwchase17/langchain/issues/1728/events
https://github.com/hwchase17/langchain/pull/1728
1,628,688,435
PR_kwDOIPDwls5MRiGU
1,728
Harrison/official method
{ "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 }
[]
closed
false
null
[]
null
[]
2023-03-17T04:55:26
2023-03-17T06:20:10
2023-03-17T06:20:08
OWNER
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1728", "html_url": "https://github.com/hwchase17/langchain/pull/1728", "diff_url": "https://github.com/hwchase17/langchain/pull/1728.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1728.patch", "merged_at": "2023-03-17T06:20:08" }
null
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1728/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1728/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1727
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1727/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1727/comments
https://api.github.com/repos/hwchase17/langchain/issues/1727/events
https://github.com/hwchase17/langchain/pull/1727
1,628,660,784
PR_kwDOIPDwls5MRcQq
1,727
feat: add new Blackboard Loader
{ "login": "thehappydinoa", "id": 30162978, "node_id": "MDQ6VXNlcjMwMTYyOTc4", "avatar_url": "https://avatars.githubusercontent.com/u/30162978?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thehappydinoa", "html_url": "https://github.com/thehappydinoa", "followers_url": "https://api.github.com/users/thehappydinoa/followers", "following_url": "https://api.github.com/users/thehappydinoa/following{/other_user}", "gists_url": "https://api.github.com/users/thehappydinoa/gists{/gist_id}", "starred_url": "https://api.github.com/users/thehappydinoa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/thehappydinoa/subscriptions", "organizations_url": "https://api.github.com/users/thehappydinoa/orgs", "repos_url": "https://api.github.com/users/thehappydinoa/repos", "events_url": "https://api.github.com/users/thehappydinoa/events{/privacy}", "received_events_url": "https://api.github.com/users/thehappydinoa/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-17T04:13:48
2023-03-17T14:58:56
2023-03-17T14:58:56
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1727", "html_url": "https://github.com/hwchase17/langchain/pull/1727", "diff_url": "https://github.com/hwchase17/langchain/pull/1727.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1727.patch", "merged_at": "2023-03-17T14:58:56" }
Updates - Added BlackboardLoader - Renamed csv.py to csv_loader.py (on Python 3.11 it causes circular import error) - Fixed typo in YouTubeLoader
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1727/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1727/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1726
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1726/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1726/comments
https://api.github.com/repos/hwchase17/langchain/issues/1726/events
https://github.com/hwchase17/langchain/pull/1726
1,628,630,931
PR_kwDOIPDwls5MRV1m
1,726
Bump duckdb-engine to 0.7.0
{ "login": "alexmavr", "id": 680441, "node_id": "MDQ6VXNlcjY4MDQ0MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/680441?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alexmavr", "html_url": "https://github.com/alexmavr", "followers_url": "https://api.github.com/users/alexmavr/followers", "following_url": "https://api.github.com/users/alexmavr/following{/other_user}", "gists_url": "https://api.github.com/users/alexmavr/gists{/gist_id}", "starred_url": "https://api.github.com/users/alexmavr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexmavr/subscriptions", "organizations_url": "https://api.github.com/users/alexmavr/orgs", "repos_url": "https://api.github.com/users/alexmavr/repos", "events_url": "https://api.github.com/users/alexmavr/events{/privacy}", "received_events_url": "https://api.github.com/users/alexmavr/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-17T03:33:34
2023-03-17T05:37:04
2023-03-17T04:55:35
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1726", "html_url": "https://github.com/hwchase17/langchain/pull/1726", "diff_url": "https://github.com/hwchase17/langchain/pull/1726.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1726.patch", "merged_at": "2023-03-17T04:55:35" }
Resolves https://github.com/hwchase17/langchain/issues/1272 Resolves https://github.com/hwchase17/langchain/issues/1578
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1726/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1726/timeline
null
null
true
https://api.github.com/repos/hwchase17/langchain/issues/1725
https://api.github.com/repos/hwchase17/langchain
https://api.github.com/repos/hwchase17/langchain/issues/1725/labels{/name}
https://api.github.com/repos/hwchase17/langchain/issues/1725/comments
https://api.github.com/repos/hwchase17/langchain/issues/1725/events
https://github.com/hwchase17/langchain/pull/1725
1,628,594,687
PR_kwDOIPDwls5MROWa
1,725
Fix all the bug in init Tool in docs
{ "login": "libratiger", "id": 870144, "node_id": "MDQ6VXNlcjg3MDE0NA==", "avatar_url": "https://avatars.githubusercontent.com/u/870144?v=4", "gravatar_id": "", "url": "https://api.github.com/users/libratiger", "html_url": "https://github.com/libratiger", "followers_url": "https://api.github.com/users/libratiger/followers", "following_url": "https://api.github.com/users/libratiger/following{/other_user}", "gists_url": "https://api.github.com/users/libratiger/gists{/gist_id}", "starred_url": "https://api.github.com/users/libratiger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/libratiger/subscriptions", "organizations_url": "https://api.github.com/users/libratiger/orgs", "repos_url": "https://api.github.com/users/libratiger/repos", "events_url": "https://api.github.com/users/libratiger/events{/privacy}", "received_events_url": "https://api.github.com/users/libratiger/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "![image](https://user-images.githubusercontent.com/870144/225799751-36a3c053-d7b9-4de2-b4e8-f1fb1699fe8c.png)\r\n" ]
2023-03-17T02:45:04
2023-03-17T04:55:45
2023-03-17T04:55:44
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/hwchase17/langchain/pulls/1725", "html_url": "https://github.com/hwchase17/langchain/pull/1725", "diff_url": "https://github.com/hwchase17/langchain/pull/1725.diff", "patch_url": "https://github.com/hwchase17/langchain/pull/1725.patch", "merged_at": "2023-03-17T04:55:44" }
Fix all the example in the docs when init `Tool` Test by render with jupyter
{ "url": "https://api.github.com/repos/hwchase17/langchain/issues/1725/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/hwchase17/langchain/issues/1725/timeline
null
null
true