Spaces:
Build error
Build error
metadata
title: Govsearch
emoji: π
colorFrom: purple
colorTo: pink
sdk: docker
pinned: true
license: agpl-3.0
app_port: 7860
Govsearch
Govsearch is an unofficial search application for Japanese government documents. Similar to Govbot(https://www.govbot.go.jp/), its aim is to improve accessibility to government documents, but it adopts a search approach instead of a chatbot. Internally, it utilizes Vespa as the search engine, Starlette for the backend, Remix for the frontend, and relies on documents provided by Govbot.
Usage
To run the application, you need to have Docker installed. Then, you can run the following command:
echo "OPENAI_API_KEY=sk-xxx" > .env
docker build -t govsearch . && docker run -it -p 7860:7860 govsearch
open http://localhost:7860
To develop the application, you can run the following command:
echo "OPENAI_API_KEY=sk-xxx" > .env
docker compose up -d
(cd backend_vespa && make deploy && make feed)
open http://localhost:7861
References
- Govbot
- Backend
- Search
- Graphql
- Frontend
- UI Libraries
- UI Issues
- Typescript
- https://www.typescriptlang.org/cheatsheets
- https://www.typescriptlang.org/docs/handbook/modules/introduction.html
- https://www.typescriptlang.org/docs/handbook/declaration-merging.html
- https://www.typescriptlang.org/docs/handbook/utility-types.html
- https://www.typescriptlang.org/docs/handbook/2/types-from-types.html
- https://www.typescriptlang.org/docs/handbook/2/narrowing.html
- Python
- Docker
- Git