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.
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()
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()