Tonic commited on
Commit
399e250
1 Parent(s): 51fa852

fix chroma in memory instantiation

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- chroma_client, chroma_collection = initialize_chroma(collection_name="Tonic-instruct", embedding_function=embedding_function)
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,