The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
bump to version 60 (#583)
Harrison Chase7b6e7f6e1229
diff --git a/docs/modules/utils/combine_docs_examples/vectorstores.ipynb b/docs/modules/utils/combine_docs_examples/vectorstores.ipynbindex 6af9880fce..3fdfdec030 100644--- a/docs/modules/utils/combine_docs_examples/vectorstores.ipynb+++ b/docs/modules/utils/combine_docs_examples/vectorstores.ipynb@@ -68,7 +68,7 @@},{"cell_type": "code",- "execution_count": 4,+ "execution_count": 9,"id": "67baf32e","metadata": {"pycharm": {@@ -90,7 +90,7 @@"\n","One of the most serious constitutional responsibilities a President has is nominating someone to serve on the United States Supreme Court. \n","\n",- "And I did that 4 days ago, when I nominated Circuit Court of Appeals Judge Ketanji Brown Jackson. One of our nation’s top legal minds, who will continue Justice Breyer’s legacy of excellence. \n"+ "And I did that 4 days ago, when I nominated Circuit Court of Appeals Judge Ketanji Brown Jackson. One of our nation’s top legal minds, who will continue Justice Breyer’s legacy of excellence.\n"]}],@@ -158,6 +158,47 @@"print(docs[0].page_content)"]},+ {+ "cell_type": "markdown",+ "id": "2445a5e6",+ "metadata": {},+ "source": [+ "## FAISS-specific\n",+ "There are some FAISS specific methods. One of them is `similarity_search_with_score`, which allows you to return not only the documents but also the similarity score of the query to them."+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 4,+ "id": "b4f49314",+ "metadata": {},+ "outputs": [],+ "source": [+ "docs_and_scores = docsearch.similarity_search_with_score(query)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 5,+ "id": "86f78ab1",+ "metadata": {},+ "outputs": [+ {+ "data": {+ "text/plain": [+ "(Document(page_content='In state after state, new laws have been passed, not only to suppress the vote, but to subvert entire elections. \\n\\nWe cannot let this happen. \\n\\nTonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rights Act. And while you’re at it, pass the Disclose Act so Americans can know who is funding our elections. \\n\\nTonight, I’d like to honor someone who has dedicated his life to serve this country: Justice Stephen Breyer—an Army veteran, Constitutional scholar, and retiring Justice of the United States Supreme Court. Justice Breyer, thank you for your service. \\n\\nOne of the most serious constitutional responsibilities a President has is nominating someone to serve on the United States Supreme Court. \\n\\nAnd I did that 4 days ago, when I nominated Circuit Court of Appeals Judge Ketanji Brown Jackson. One of our nation’s top legal minds, who will continue Justice Breyer’s legacy of excellence.', lookup_str='', metadata={}, lookup_index=0),\n",+ " 0.40834612)"+ ]+ },+ "execution_count": 5,+ "metadata": {},+ "output_type": "execute_result"+ }+ ],+ "source": [+ "docs_and_scores[0]"+ ]+ },{"cell_type": "markdown","id": "eea6e627",diff --git a/pyproject.toml b/pyproject.tomlindex fa178842d7..84cd66bbd3 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "langchain"-version = "0.0.59"+version = "0.0.60"description = "Building applications with LLMs through composability"authors = []license = "MIT"