youssefHosni / Chat-with-Pdf

Step-by-Step Guide to Building a PDF-Chat App using LangChain, OpenAI API & Streamlit
MIT License
72 stars 16 forks source link

Building a PDF-Chat App using LangChain, OpenAI API & Streamlit #1

Open sailendukumar opened 1 year ago

sailendukumar commented 1 year ago

While implementing the code getting below error which is related to ChromaDB. Any idea how to get rid of it? or any suggestion to use an alternate vector DB?

ValueError: Expected collection name that (1) contains 3-63 characters, (2) starts and ends with an alphanumeric character, (3) otherwise contains only alphanumeric characters, underscores or hyphens (-), (4) contains no two consecutive periods (..) and (5) is not a valid IPv4 address, got Pdf Traceback:

vincfor commented 1 year ago

On line 64 of app.py changes Pdf to pdf. Capitalization is not allowed for Chroma collection names.

^[a-z0-9][a-z0-9._-]*[a-z0-9]$