Spaces:
Build error
Build error
fix chroma in memory instantiation
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ def query_chroma(query_text: str, embedding_function: MyEmbeddingFunction):
|
|
157 |
intention_client = OpenAI(api_key=yi_token, base_url=API_BASE)
|
158 |
embedding_generator = EmbeddingGenerator(model_name=model_name, token=hf_token, intention_client=intention_client)
|
159 |
embedding_function = MyEmbeddingFunction(embedding_generator=embedding_generator)
|
160 |
-
|
161 |
|
162 |
def respond(
|
163 |
message,
|
|
|
157 |
intention_client = OpenAI(api_key=yi_token, base_url=API_BASE)
|
158 |
embedding_generator = EmbeddingGenerator(model_name=model_name, token=hf_token, intention_client=intention_client)
|
159 |
embedding_function = MyEmbeddingFunction(embedding_generator=embedding_generator)
|
160 |
+
chroma_db = initialize_chroma(collection_name="Tonic-instruct", embedding_function=embedding_function)
|
161 |
|
162 |
def respond(
|
163 |
message,
|