Skip to content

Commit

Permalink
Fixes sqlite version error
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcoole committed Nov 8, 2024
1 parent 63f9d0c commit bb843b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/upload_to_docstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import uuid
from argparse import ArgumentParser

__import__("pysqlite3")
import sys

sys.modules["sqlite3"] = sys.modules.pop("pysqlite3")
import chromadb
from chromadb.utils import embedding_functions
from chromadb.utils.batch_utils import create_batches
Expand Down Expand Up @@ -44,7 +48,7 @@ def main(
embeddings=batch[1],
ids=batch[0],
)


if __name__ == "__main__":
parser = ArgumentParser("prepare_data.py")
Expand Down

0 comments on commit bb843b1

Please sign in to comment.