From 443bbe2fb6bf9db77b2382d42a6f20955195e9c9 Mon Sep 17 00:00:00 2001 From: JAlcocerT Date: Wed, 24 Jul 2024 09:52:39 +0200 Subject: [PATCH] intro message --- LLamaIndex-Mem0/Chat_with_md.py | 3 ++- LLamaIndex-Mem0/Docker-Compose.yml | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/LLamaIndex-Mem0/Chat_with_md.py b/LLamaIndex-Mem0/Chat_with_md.py index 73332b8..e08387b 100644 --- a/LLamaIndex-Mem0/Chat_with_md.py +++ b/LLamaIndex-Mem0/Chat_with_md.py @@ -24,7 +24,7 @@ def __init__(self): # Set up Llama Index with Anthropic llm = Anthropic(temperature=0.0, model='claude-3-opus-20240229') - embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-base-en-v1.5") + embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-base-en-v1.5") #Embedding model will be downloaded during the first use Settings.llm = llm Settings.embed_model = embed_model Settings.chunk_size = 512 @@ -81,6 +81,7 @@ def query_properties(self, user_id): ai_assistant = RealEstateAssistant() def main(): + print("Welcome to our Real Estate Assistant! Give me few ideas of what you are looking for and let it find a perfect property for you") while True: question = input("Question: ") if question.lower() in ['q', 'exit']: diff --git a/LLamaIndex-Mem0/Docker-Compose.yml b/LLamaIndex-Mem0/Docker-Compose.yml index 2836533..62b2a16 100644 --- a/LLamaIndex-Mem0/Docker-Compose.yml +++ b/LLamaIndex-Mem0/Docker-Compose.yml @@ -8,8 +8,8 @@ services: - "8009:8000" command: tail -f /dev/null ##command: streamlit run app.py environment: - - OPENAI_API_KEY=sk-proj-yourapi - - ANTHROPIC_API_KEY=sk-ant-api03-yourapi + - OPENAI_API_KEY=sk-proj-yourapi #without quotes here + - ANTHROPIC_API_KEY=sk-ant-api03-yourapi #without quotes here -#docker exec -it properties_chat /bin/bash -#podman exec -it properties_chat /bin/bash \ No newline at end of file +#docker exec -it Chat_with_Properties /bin/bash +#podman exec -it Chat_with_Properties /bin/bash \ No newline at end of file