https://github.com/raheesahmed/ottavio
Real Estate Assistant conversational AI assistant using OpenAI's API. The assistant is designed to provide comprehensive summaries of real estate listings based on user queries.
https://github.com/raheesahmed/ottavio
assistant-chat-bots chatbot openai openai-api openai-assistant-api openai-assistant-api-chatbot
Last synced: 6 months ago
JSON representation
Real Estate Assistant conversational AI assistant using OpenAI's API. The assistant is designed to provide comprehensive summaries of real estate listings based on user queries.
- Host: GitHub
- URL: https://github.com/raheesahmed/ottavio
- Owner: RaheesAhmed
- Created: 2024-03-08T21:32:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-21T18:46:22.000Z (over 1 year ago)
- Last Synced: 2025-03-29T08:23:41.092Z (7 months ago)
- Topics: assistant-chat-bots, chatbot, openai, openai-api, openai-assistant-api, openai-assistant-api-chatbot
- Language: Python
- Homepage:
- Size: 132 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Real Estate Assistant AI
This Python script creates a conversational AI assistant using OpenAI's API. The assistant is designed to provide comprehensive summaries of real estate listings based on user queries.
## Features
- Initializes the OpenAI client with API key.
- Creates an assistant with specific instructions for real estate listings.
- Uploads a file to OpenAI and returns the file ID.
- Runs the assistant and returns the thread ID and run ID.
- Waits for the run to be completed and returns the run status.
- Prints the messages from the thread.
- Allows users to chat with the assistant until they type 'exit'.## Installation
Download VS Code or Editor of your choice
### Clone the Reposotry
```
git clone https://github.com/RaheesAhmed/Ottavio.git
```Go to the Folder
```
cd ottavio
```### create virtual Environment for python
```
python -m venv venv
```### Active the virtual Environment
```
venv/scripts/Activate
```### Rename the `.env.example` to `.env` and add you api key:
```
OPENAI_API_KEY=
```### Install Packages
```
pip install -r requirments.txt
```### Not Necessary
```
pip install -U langchain-openai
``````
pip install -U langchain-community
```### Run the Code
To Run Assistant
```
python assistantapi.py
```Enter your queries when prompted, and the assistant will provide summaries of real estate listings based on your input. Type 'exit' to end the conversation.
Example Query:Enter your query (type 'exit' to end): I'm looking for a flat in Cannes around 400000€
### you can also change the assistant instructions:
```
def create_assistant(client, file_id):
assistant = client.beta.assistants.create(
name="Ottavio",
instructions=f"""add your instruction here"""```
# Run the filter data
```
python filter_data.py
```Enter the price range