How to upload all the core files from the directory using langchain

how-to-upload-all-the-core-files-from-the-directory-using-langchain

How to upload all the core files from the directory using langchain import os import sys from dotenv import load_dotenv from langchain.chains import ConversationalRetrievalChain from langchain.text_splitter import CharacterTextSplitter from langchain_community.document_loaders import PyPDFLoader from langchain_community.document_loaders import Docx2txtLoader from langchain_community.document_loaders import TextLoader from langchain_community.document_loaders import UnstructuredXMLLoader from langchain_community.document_loaders import UnstructuredExcelLoader from langchain_community.document_loaders import UnstructuredPowerPointLoader from langchain.text_splitter import … Read more

How to create unique IDS for files in the Chroma

how-to-create-unique-ids-for-files-in-the-chroma-vector-database

How to create unique IDS for files in the Chroma We will also create a new collection in Chroma along the way import os import sys from langchain.chains import ConversationalRetrievalChain from langchain.text_splitter import CharacterTextSplitter from langchain_community.document_loaders import PyPDFLoader from langchain_community.document_loaders import Docx2txtLoader from langchain_community.document_loaders import TextLoader from langchain_community.vectorstores import Chroma import uuid from langchain_openai import … Read more