dodeeric / langchain-ai-assistant-with-hybrid-rag

This is a LLM chatbot coded with LangChain. The web interface is coded with Streamlit. It implements a hybrid RAG (keyword and semantic search) and chat memory.
https://bmae-ragai-webapp.azurewebsites.net
GNU General Public License v3.0
8 stars 1 forks source link

display in admin interface the number of items (json items and pdf pages) in the chroma db #19

Open dodeeric opened 1 month ago

dodeeric commented 1 month ago

connection = chromadb.connect('path_to_chromadb') cursor = connection.cursor() cursor.execute('SELECT COUNT(*) FROM your_table_name') row_count = cursor.fetchone()[0] print(f'The number of rows in the database is: {row_count}') cursor.close() connection.close()

dodeeric commented 1 month ago

https://docs.trychroma.com/guides