https://github.com/xataio/ask-your-stack
Ask your stack demo
https://github.com/xataio/ask-your-stack
chatgpt documentation frontend openai search webdev
Last synced: 5 months ago
JSON representation
Ask your stack demo
- Host: GitHub
- URL: https://github.com/xataio/ask-your-stack
- Owner: xataio
- Created: 2023-03-30T22:55:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-31T15:13:10.000Z (almost 3 years ago)
- Last Synced: 2025-06-23T11:07:18.807Z (7 months ago)
- Topics: chatgpt, documentation, frontend, openai, search, webdev
- Language: TypeScript
- Homepage: https://ask-your-stack.vercel.app
- Size: 99.6 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ask Your Stack - have ChatGPT query the docs of your stack
We have crawled and loaded in Xata the docs from several projects. Select your stack, ask a question and ChatGPT will query the docs of your stack and return the best answer.
Deployed at: [https://ask-your-stack.vercel.app/](https://ask-your-stack.vercel.app/)
## How it works
The app uses [Xata AI](https://xata.io/chatgpt) to query ChatGPT with context from the up-to-date docs. This provides more recent information and reduces hallucinations. It uses this high-level algorithm:
* Pass the question to ChatGPT and ask it to provide keywords
* Use the Xata search functionality to retrieve the most relevant docs
* Form a prompt using this context and the question and pass it to ChatGPT
This [blog post](https://xata.io/blog/keyword-vs-semantic-search-chatgpt) provides more details on the general approach.
## Development
If you want to deploy this application, start by creating a Xata database and crawling the data by running the instructions from [xata-crawler](https://github.com/tsg/xata-crawler).
### Install Project Dependencies
```bash
npm install
```
### Setup environment variables
Connect to your Xata database by running:
```
xata init
```
and selecting the database that you have created.
### Start the app
```bash
npm run dev
```
By default the app runs on [localhost:3000](http://localhost:3000)
# Questions?
If you have any questions, or you'd like to request more documentations, please head over to our [Discord](https://xata.io/discord).