save relationship of objects

This commit is contained in:
tsukasa
2023-09-13 17:55:27 +08:00
parent 8ac6065332
commit 6e5beb4cdf
7 changed files with 131 additions and 11 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ async def test_query_email():
KnowledgeBase().query(msg_prompt)
class TestVectorSTorage(unittest.TestCase):
class TestKnowledgeBase(unittest.TestCase):
def test_embedding(self):
asyncio.run(test_embedding_email())
+2 -2
View File
@@ -14,13 +14,13 @@ import asyncio
import unittest
async def test_embedding_email():
async def test_vector():
storage = ChromaVectorStore("test")
await storage.insert([1, 2, 3], "test")
ids = await storage.query([1, 2, 3], 10)
print(ids)
class TestVectorSTorage(unittest.TestCase):
class TestVectorStorage(unittest.TestCase):
def test_run(self):
asyncio.run(test_vector())