I try to use Chroma from Vector stores in following way, after installing chromadb.
loader = PyPDFLoader("data/Diabetes.pdf")
documents = loader.load()
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
docs = text_splitter.split_documents(documents)
db = Chroma.from_documents(docs, OpenAIEmbeddings())
NOTE: I am using Windows machine, installed chromadb via pip, and chromadb client is working. I am able to create collections.
I get following error:
