This app provides Semantic Search for Hacker News, powered by Vectara. It was generated using the Create-UI code-generator, and updated to the requirements of good search for Hacker News.
Install npm and node.
Install dependencies with:
npm install
Rename .env.example
to .env
or create a new .env
and replace the configurations.
REACT_APP_CORPUS_ID=<Vectara corpus ID>
REACT_APP_CUSTOMER_ID=<Vectara customer ID>
REACT_APP_APP_TITLE=<App title - e.g Search Hackernews >
REACT_APP_API_KEY=<Vectara API KEY>
REACT_APP_ENDPOINT=api.vectara.io
REACT_APP_QUESTION=<Questions , separated - e.g What is Gemini-Flash?,When will GPT-5 be released?>
Run the code locally and serve it at http://localhost:3000/
with:
npm run start
If you make changes to the source code, the app will automatically reload with your changes.
To run it wit docker execute the following command.
bash ./docker/run.sh
To set up this app to pull data from your Vectara corpus:
Pro-tip: After you create an API key, navigate to your corpus and click on the "Access control" tab. Find your API key on the bottom and select the "Copy all" option to copy your customer ID, corpus ID, and API key. This gives you all the data you need to configure a Create-UI app.
Make sure your CUSTOMER_ID
and CORPUS_ID
(in your .env file) point to a Vectara corpus where you have crawled Hacker News stories.
You can use the vectara-ingest hackernews crawler for that purpose.
You can see a live demo here
👤 Vectara
- Website: https://vectara.com
- Twitter: @vectara
- GitHub: @vectara
- LinkedIn: @vectara
- Discord: @vectara
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a ⭐️ if this project helped you!
Copyright © 2024 Vectara.
This project is Apache 2.0 licensed.