{"id":17682028,"url":"https://github.com/ajay-dhangar/answer-engine-generative-ai","last_synced_at":"2025-06-28T18:06:25.727Z","repository":{"id":236886737,"uuid":"793343469","full_name":"ajay-dhangar/answer-engine-generative-ai","owner":"ajay-dhangar","description":"An AI-powered search engine with a generative UI.","archived":false,"fork":false,"pushed_at":"2024-09-18T08:29:43.000Z","size":4155,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T06:36:51.535Z","etag":null,"topics":["ai","generative-ai","generative-model","generative-ui","openai","tavily"],"latest_commit_sha":null,"homepage":"https://codeharborhub-answer-ai.vercel.app/","language":"TypeScript","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/ajay-dhangar.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,"zenodo":null},"funding":{"github":"Ajay-Dhangar","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-04-29T03:26:55.000Z","updated_at":"2025-03-08T17:53:39.000Z","dependencies_parsed_at":"2024-04-29T05:23:19.892Z","dependency_job_id":"89e41e32-eb0c-4ce1-aa61-3e1a53e5d44d","html_url":"https://github.com/ajay-dhangar/answer-engine-generative-ai","commit_stats":null,"previous_names":["ajay-dhangar/answer-engine-generative-ai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajay-dhangar/answer-engine-generative-ai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-dhangar%2Fanswer-engine-generative-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-dhangar%2Fanswer-engine-generative-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-dhangar%2Fanswer-engine-generative-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-dhangar%2Fanswer-engine-generative-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajay-dhangar","download_url":"https://codeload.github.com/ajay-dhangar/answer-engine-generative-ai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-dhangar%2Fanswer-engine-generative-ai/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262473883,"owners_count":23316897,"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":["ai","generative-ai","generative-model","generative-ui","openai","tavily"],"created_at":"2024-10-24T09:12:44.797Z","updated_at":"2025-06-28T18:06:25.680Z","avatar_url":"https://github.com/ajay-dhangar.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Ajay-Dhangar"],"categories":[],"sub_categories":[],"readme":"# Morphic\n\nAn AI-powered search engine with a generative UI.\n\n![capture](https://github.com/Ajay-Dhangar/answer-engine-generative-ai/assets/99037494/5416d57c-6d1b-4155-8cb1-245f3ee93602)\n\n## 🔍 Overview\n\n- 🧱 [Stack](#-stack)\n- 🚀 [Quickstart](#-quickstart)\n- 🌐 [Deploy](#-deploy)\n- ✅ [Verified models](#-verified-models)\n\n### 🚗 Roadmap [WIP]\n\n- [x] Enable specifying the model to use (only writer agent)\n- [ ] Implement chat history functionality\n- [ ] Develop features for sharing results\n- [ ] Add video support for search functionality\n- [ ] Implement Retrieval-Augmented Generation (RAG) support\n- [ ] Introduce tool support for enhanced productivity\n- [ ] Expand Generative UI capabilities\n\n## 🧱 Stack\n\n- App framework: [Next.js](https://nextjs.org/)\n- Text streaming / Generative UI: [Vercel AI SDK](https://sdk.vercel.ai/docs)\n- Generative Model: [OpenAI](https://openai.com/)\n- Search API: [Tavily AI](https://tavily.com/)\n- Component library: [shadcn/ui](https://ui.shadcn.com/)\n- Headless component primitives: [Radix UI](https://www.radix-ui.com/)\n- Styling: [Tailwind CSS](https://tailwindcss.com/)\n\n## 🚀 Quickstart\n\n### 1. Fork and Clone repo\n\nFork the repo to your Github account, then run the following command to clone the repo:\n\n```\ngit clone git@github.com:[YOUR_GITHUB_ACCOUNT]/answer-engine-generative-ai.git\n```\n\n### 2. Install dependencies\n\n```\ncd answer-engine-generative-ai\nbun i\n```\n\n### 3. Fill out secrets\n\n```\ncp .env.local.example .env.local\n```\n\nYour .env.local file should look like this:\n\n```\n# Used to set the base URL path for OpenAI API requests.\n# If you need to set a BASE URL, uncomment and set the following:\n# OPENAI_API_BASE=\n\n# Used to set the model for OpenAI API requests.\n# If not set, the default is gpt-4-turbo.\n# OPENAI_API_MODEL='gpt-4-turbo'\n\n# OpenAI API key retrieved here: https://platform.openai.com/api-keys\nOPENAI_API_KEY=[YOUR_OPENAI_API_KEY]\n\n# Tavily API Key retrieved here: https://app.tavily.com/home\nTAVILY_API_KEY=[YOUR_TAVILY_API_KEY]\n\n# Only writers can set a specific model. It must be compatible with the OpenAI API.\n# USE_SPECIFIC_API_FOR_WRITER=true\n# SPECIFIC_API_BASE=\n# SPECIFIC_API_KEY=\n# SPECIFIC_API_MODEL=\n```\n\n_Note: This project focuses on Generative UI and requires complex output from LLMs. Currently, it's assumed that the official OpenAI models will be used. Although it's possible to set up other models, if you use an OpenAI-compatible model, but we don't guarantee that it'll work._\n\n### 4. Run app locally\n\n```\nbun dev\n```\n\nYou can now visit http://localhost:3000.\n\n## 🌐 Deploy\n\nHost your own live version of Morphic with Vercel or Cloudflare Pages.\n\n### Vercel\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fajay-dhangar%2Fanswer-engine-generative-aic\u0026env=OPENAI_API_KEY,TAVILY_API_KEY)\n\n### Cloudflare Pages\n\n1. Fork the repo to your GitHub.\n2. Create a Cloudflare Pages project.\n3. Select `Morphic` repo and `Next.js` preset.\n4. Set `OPENAI_API_KEY` and `TAVILY_API_KEY` env vars.\n5. Save and deploy.\n6. Cancel deployment, go to `Settings` -\u003e `Functions` -\u003e `Compatibility flags`, add `nodejs_compat` to preview and production.\n7. Redeploy.\n\n## ✅ Verified models\n\nList of verified models that can be specified to writers.\n\n- [Groq](https://console.groq.com/docs/models)\n  - LLaMA3 8b\n  - LLaMA3 70b\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajay-dhangar%2Fanswer-engine-generative-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajay-dhangar%2Fanswer-engine-generative-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajay-dhangar%2Fanswer-engine-generative-ai/lists"}