Skip to content

Commit

Permalink
Merge branch 'langchain-ai:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas0809 authored Nov 20, 2023
2 parents b177d11 + 4eec47b commit cb93663
Show file tree
Hide file tree
Showing 247 changed files with 34,209 additions and 1,468 deletions.
15 changes: 9 additions & 6 deletions cookbook/Multi_modal_RAG.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
"metadata": {},
"outputs": [],
"source": [
"from unstructured.partition.pdf import partition_pdf\n",
"from langchain.text_splitter import CharacterTextSplitter\n",
"from unstructured.partition.pdf import partition_pdf\n",
"\n",
"\n",
"# Extract elements from PDF\n",
Expand Down Expand Up @@ -267,8 +267,9 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import base64\n",
"import os\n",
"\n",
"from langchain.schema.messages import HumanMessage\n",
"\n",
"\n",
Expand Down Expand Up @@ -351,11 +352,12 @@
"outputs": [],
"source": [
"import uuid\n",
"from langchain.vectorstores import Chroma\n",
"from langchain.storage import InMemoryStore\n",
"from langchain.schema.document import Document\n",
"\n",
"from langchain.embeddings import OpenAIEmbeddings\n",
"from langchain.retrievers.multi_vector import MultiVectorRetriever\n",
"from langchain.schema.document import Document\n",
"from langchain.storage import InMemoryStore\n",
"from langchain.vectorstores import Chroma\n",
"\n",
"\n",
"def create_multi_vector_retriever(\n",
Expand Down Expand Up @@ -438,9 +440,10 @@
"source": [
"import io\n",
"import re\n",
"from PIL import Image\n",
"\n",
"from IPython.display import HTML, display\n",
"from langchain.schema.runnable import RunnableLambda, RunnablePassthrough\n",
"from PIL import Image\n",
"\n",
"\n",
"def plt_img_base64(img_base64):\n",
Expand Down
Loading

0 comments on commit cb93663

Please sign in to comment.