Skip to content

Commit

Permalink
SQLite version fix for Chroma
Browse files Browse the repository at this point in the history
  • Loading branch information
yankeexe authored Dec 7, 2024
2 parents fb8c8c2 + d73b925 commit 93fad0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import os
import tempfile


#https://stackoverflow.com/questions/76958817/streamlit-your-system-has-an-unsupported-version-of-sqlite3-chroma-requires-sq
# ruff: noqa: E402
__import__('pysqlite3')
import sys
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
import chromadb

import ollama
import streamlit as st
from chromadb.utils.embedding_functions.ollama_embedding_function import (
Expand Down
1 change: 1 addition & 0 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ sentence-transformers==3.3.1 # CrossEncoder Re-ranking
streamlit==1.40.1 # Application UI
PyMuPDF==1.24.14 # PDF Document loader
langchain-community==0.3.7 # Utils for text splitting
pysqlite3-binary==0.5.4

0 comments on commit 93fad0c

Please sign in to comment.