Spaces:
Running
Running
Commit ·
2c232f0
1
Parent(s): f05f246
added the fix on ChromaDB - ValueError: Could not connect to tenant default_tenant
Browse files17 unmodified lines1819202121222333 unmodified lines575859616260616223 unmodified lines8687889293899091929394959617 unmodified lines
def generate_response(problem): # 1. create an AssistantAgent instance named "assistant"
assistant_system_message = """ You are able to write code blocks in the chat based on the given Open API Specification to complete the given task. Your response must follow the following requirements:33 unmodified lines "https://developer.ferguson.com/sites/default/files/2021-05/Ferguson-API-Products-1.0.12-resolved.json", # "https://developer.ferguson.com/sites/default/files/2021-05/Ferguson-API-API-Quote-1.0.5-resolved.json", "https://developer.ferguson.com/sites/default/files/2021-05/Ferguson-API-API-Location-2.0.0-resolved.json", # # "https://raw.githubusercontent.com/jaredlang/sample-services/refs/heads/main/inventory/inventory-query-service-api-spec.yaml", ], "chunk_token_size": 2000, "model": gpt4o_llm_config["config_list"][0]["model"],23 unmodified lines # With human-in-loop, the conversation will continue until the user says "exit".
# RetrieveUserProxyAgent system message is empty!!! print("RetrieveUserProxyAgent system message: ", ragproxyagent.system_message) print("RetrieveUserProxyAgent message_generator: ", ragproxyagent.message_generator) # print("RetrieveUserProxyAgent system message: ", ragproxyagent.system_message) # print("RetrieveUserProxyAgent message_generator: ", ragproxyagent.message_generator)
import chromadb chromadb.api.client.SharedSystemClient.clear_system_cache()
# initiate the chat with the assistant chat_result = ragproxyagent.initiate_chat(assistant, message=ragproxyagent.message_generator, problem=problem, max_turns=1, silent=False)app.py+5-5