I'm working with LangChain and trying to create a vector database from a text file containing book descriptions and ISBNs. Each line in the text file is a separate book description, so I split the loaded text by newline. Here's my code snippet: from langchain_community.document_loaders import TextLoader from langchain.text_splitter import CharacterTextSplitter from langchain_huggingface import HuggingFaceEmbeddings from langchain_chroma import...
Originally asked by Gruncio on Stack Exchange (stackoverflow) (CC BY-SA 4.0).