Synced repo using 'sync_with_huggingface' Github Action
Browse files
__pycache__/fact_checker.cpython-310.pyc
CHANGED
Binary files a/__pycache__/fact_checker.cpython-310.pyc and b/__pycache__/fact_checker.cpython-310.pyc differ
|
|
chroma_db/973cff8c-e7bc-4ee9-b987-873e62fd3ab6/length.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 40000
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:be2031382c46bcfa6c595007b24ace3b9b8fab7ec702439665738aa0860a41f6
|
3 |
size 40000
|
chroma_db/chroma.sqlite3
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 344064
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f761dd7b4320caf60c21bb1844026b00a19510dddf858c7ba0702223d91481f
|
3 |
size 344064
|
fact_checker.py
CHANGED
@@ -47,7 +47,7 @@ def robust_json_extractor(response_content):
|
|
47 |
|
48 |
class FactChecker:
|
49 |
def __init__(self, chroma_path, collection_name, groq_client):
|
50 |
-
self.client = chromadb.
|
51 |
self.collection = self.client.get_collection(
|
52 |
name=collection_name,
|
53 |
embedding_function=embedding_functions.SentenceTransformerEmbeddingFunction(
|
|
|
47 |
|
48 |
class FactChecker:
|
49 |
def __init__(self, chroma_path, collection_name, groq_client):
|
50 |
+
self.client = chromadb.PersistentClient(path=chroma_path)
|
51 |
self.collection = self.client.get_collection(
|
52 |
name=collection_name,
|
53 |
embedding_function=embedding_functions.SentenceTransformerEmbeddingFunction(
|