{"id":18482706,"url":"https://github.com/raheesahmed/ottavio","last_synced_at":"2025-04-19T13:50:05.224Z","repository":{"id":226671119,"uuid":"769349058","full_name":"RaheesAhmed/Ottavio","owner":"RaheesAhmed","description":"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.","archived":false,"fork":false,"pushed_at":"2024-03-21T18:46:22.000Z","size":135,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T08:23:41.092Z","etag":null,"topics":["assistant-chat-bots","chatbot","openai","openai-api","openai-assistant-api","openai-assistant-api-chatbot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RaheesAhmed.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-08T21:32:48.000Z","updated_at":"2024-12-27T00:25:58.000Z","dependencies_parsed_at":"2024-11-06T12:37:08.747Z","dependency_job_id":"ee612356-5e45-4ca8-8b11-3c896979ca3f","html_url":"https://github.com/RaheesAhmed/Ottavio","commit_stats":null,"previous_names":["raheesahmed/ottavio"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaheesAhmed%2FOttavio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaheesAhmed%2FOttavio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaheesAhmed%2FOttavio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaheesAhmed%2FOttavio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaheesAhmed","download_url":"https://codeload.github.com/RaheesAhmed/Ottavio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249707463,"owners_count":21313850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assistant-chat-bots","chatbot","openai","openai-api","openai-assistant-api","openai-assistant-api-chatbot"],"created_at":"2024-11-06T12:29:49.287Z","updated_at":"2025-04-19T13:50:05.195Z","avatar_url":"https://github.com/RaheesAhmed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real Estate Assistant AI\n\nThis 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.\n\n## Features\n\n- Initializes the OpenAI client with API key.\n- Creates an assistant with specific instructions for real estate listings.\n- Uploads a file to OpenAI and returns the file ID.\n- Runs the assistant and returns the thread ID and run ID.\n- Waits for the run to be completed and returns the run status.\n- Prints the messages from the thread.\n- Allows users to chat with the assistant until they type 'exit'.\n\n## Installation\n\nDownload VS Code or Editor of your choice\n\n### Clone the Reposotry\n\n```\ngit clone https://github.com/RaheesAhmed/Ottavio.git\n```\n\nGo to the Folder\n\n```\ncd ottavio\n```\n\n### create virtual Environment for python\n\n```\npython -m venv venv\n```\n\n### Active the virtual Environment\n\n```\nvenv/scripts/Activate\n```\n\n### Rename the `.env.example` to `.env` and add you api key:\n\n```\nOPENAI_API_KEY=\n```\n\n### Install Packages\n\n```\npip install -r requirments.txt\n```\n\n### Not Necessary\n\n```\npip install -U langchain-openai\n```\n\n```\npip install -U langchain-community\n```\n\n\n### Run the Code\n\nTo Run Assistant \n\n```\npython assistantapi.py\n```\n\nEnter your queries when prompted, and the assistant will provide summaries of real estate listings based on your input. Type 'exit' to end the conversation.\n\nExample Query:Enter your query (type 'exit' to end): I'm looking for a flat in Cannes around 400000€\n\n### you can also change the assistant instructions:\n\n```\ndef create_assistant(client, file_id):\n    assistant = client.beta.assistants.create(\n        name=\"Ottavio\",\n        instructions=f\"\"\"add your instruction here\"\"\"\n\n```\n\n# Run the filter data\n\n```\npython filter_data.py\n```\n\nEnter the price range\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraheesahmed%2Fottavio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraheesahmed%2Fottavio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraheesahmed%2Fottavio/lists"}