Skip to content
polycy-botPublic

About

Front end for the polycy bot - built for Innovation Month 2026

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

policy bot banner

polycy is a Retrieval-Augmented Generation (RAG) tool designed to quickly sift through Public Service Legislative Acts (PS LAs) based on a user's prompt and provide highly tailored, accurate responses.

The overall project is split into two parts: an Ingestion Engine and a Full-Stack Frontend. This repository contains the frontend application, which treats the processed artifacts from the ingestion engine as its absolute source of truth to serve the user interface.

Summary

  • Intelligent Querying: Accept natural language user prompts to query legislative documents.
  • Contextual Responses: Display highly tailored responses alongside the source artifacts used to generate them.
  • Artifact Integration: Seamlessly reads and visualizes the structured data generated by the ingestion engine.
  • Svelte-Powered UI: Highly reactive, lightweight, and blazing-fast user experience.

Tech Stack

  • Framework: Svelte / SvelteKit
  • Styling: Tailwind CSS / bits-ui (shadcn-svelte)
  • State Management: Svelte Stores / Runes
  • Build Tool: Vite
  • Google GenAI Framework Currently supporting gemini generative calls
  • marked Markdown parsing
  • pnpm Package management

Installation

Prerequisites

Ensure you have the following installed on your machine:

  • Node.js (v18+ recommended)
  • npm, pnpm, or yarn

1. Clone & Install

# Clone the repository
git clone https://github.com/polycy-bot/polycy-fe.git
cd polycy-fe

# Install dependencies
pnpm install

2. Configure the Source of Truth

The frontend relies on the artifacts generated by the Polycy Ingestion Engine.

  1. Locate your generated ingestion artifacts knowledge.json
  2. Create a .env file in the root directory:
GEMINI_API_KEY=""

3. Run Locally

Start the development server:

pnpm run dev

Open http://localhost:5173 in your browser to see the app in action.

Project Structure

polycy-frontend/
├── src/
│   ├── lib/            # Helper functions, API clients, and types
│   ├── routes/         # SvelteKit pages and API endpoints
│   └── app.html        # Main HTML template
├── static/             # Static assets
├── .env.example        # Example environment variables
└── README.md           # You are here!

About

Front end for the polycy bot - built for Innovation Month 2026

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages