{"id":30587336,"url":"https://github.com/deepset-ai/opea-haystack-demo","last_synced_at":"2025-08-29T12:08:54.619Z","repository":{"id":275945418,"uuid":"927701437","full_name":"deepset-ai/opea-haystack-demo","owner":"deepset-ai","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-05T11:58:45.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T12:40:46.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepset-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-02-05T11:57:54.000Z","updated_at":"2025-02-05T11:58:48.000Z","dependencies_parsed_at":"2025-02-05T12:51:05.403Z","dependency_job_id":null,"html_url":"https://github.com/deepset-ai/opea-haystack-demo","commit_stats":null,"previous_names":["deepset-ai/opea-haystack-demo"],"tags_count":0,"template":false,"template_full_name":"deepset-ai/haystack-streamlit-app","purl":"pkg:github/deepset-ai/opea-haystack-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepset-ai%2Fopea-haystack-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepset-ai%2Fopea-haystack-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepset-ai%2Fopea-haystack-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepset-ai%2Fopea-haystack-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepset-ai","download_url":"https://codeload.github.com/deepset-ai/opea-haystack-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepset-ai%2Fopea-haystack-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272680885,"owners_count":24975359,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-29T12:08:54.011Z","updated_at":"2025-08-29T12:08:54.606Z","avatar_url":"https://github.com/deepset-ai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demopalooza: Practical RAG with OPEA and Haystack\n\n![image](https://github.com/user-attachments/assets/96b77b58-0c2e-49f1-9900-df4ec06152ae)\n\n\nThis [Streamlit](https://docs.streamlit.io/) app is set up for simple [Haystack](https://haystack.deepset.ai/) and [OPEA](https://opea.dev/) applications. The template is ready to perform **Retrieval Augmented Generation** with three different retrieval methods on example files.\n\nSee the ['How to use this template'](#how-to-use-this-template) instructions below to create a simple UI for your own Haystack search pipelines.\n\n## Installation and Running\nTo run the bare application:\n1. Install requirements: `pip install -r requirements.txt`\n2. Make sure that your OPEA microservices are running\n3. Run the streamlit app: `streamlit run app.py`\n\nThis will start the app on `localhost:8501`, where you will find a simple search bar. \n\n## How to use this template\n1. Create a new repository from this template or simply open it in a codespace to start playing around 💙\n2. Make sure your `requirements.txt` file includes the Haystack (`haystack-ai`) and Streamlit versions you would like to use.\n3. Change the code in `utils/haystack.py` if you would like a different pipeline. \n4. Create a `.env` file with all of your configuration settings.\n5. Make any UI edits if you'd like to.\n6. Run the app as show in [installation and running](#installation-and-running)\n\n### Repo structure\n- `./utils`: This is where we have 2 files: \n    - `haystack.py`: Here you will find some functions already set up for you to start creating your Haystack search pipeline. It includes 2 main functions called `start_haystack_pipeline()` which is what we use to create a pipeline and cache it, and `query()` which is the function called by `app.py` once a user query is received.\n    - `ui.py`: Use this file for any UI and initial value setups.\n- `app.py`: This is the main Streamlit application file that we will run. In its current state it has a sidebar, a simple search bar, a 'Run' button, and a response.\n- `./files`: You can use this folder to store files to be indexed.\n\n### What to edit?\nThere are default pipelines both in `start_document_store()` and `start_haystack_pipeline()`. Change the pipelines to use different document stores, embedding and generative models or update the pipelines as you need. Check out [📚 Useful Resources](#-useful-resources) section for details.\n\n### 📚 Useful Resources\n* [Get Started](https://haystack.deepset.ai/overview/quick-start)\n* [Docs](https://docs.haystack.deepset.ai/docs/intro)\n* [Tutorials](https://haystack.deepset.ai/tutorials)\n* [Integrations](https://haystack.deepset.ai/integrations)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepset-ai%2Fopea-haystack-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepset-ai%2Fopea-haystack-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepset-ai%2Fopea-haystack-demo/lists"}