Sign inSign up

aklinker1/vitepress-knowledge-server

By aklinker1

•Updated 5 months ago

https://github.com/aklinker1/vitepress-knowledge

Image
Machine learning & AI
0

1.8K

aklinker1/vitepress-knowledge-server repository overview

⁠VitePress Knowledge Server

This page only documents the Server options. See this page to get started⁠.

⁠Environment Variables

The server is configured via environment variables.

NameExampleDescription
Auth
GOOGLE_API_KEYabc...defRequired to use Gemini models. Visit https://aistudio.google.com⁠ to generate an API key.
ANTHROPIC_API_KEYabc...defRequired to use Claude models. Visit https://docs.anthropic.com/en/docs/initial-setup⁠ to get an API key.
Enable Models
GEMINI_2_0_FLASHtrueSet to true to enable Google's Gemini 2.0 Flash⁠ model
CLAUDE_3_5_SONNETtrueSet to true to enable Anthopic's Claude 3.5 Sonnet⁠ model
CLAUDE_3_5_HAIKUtrueSet to true to enable Anthopic's Claude 3.5 Haiku⁠ model
Configuration
PORT5174The port for the server to listen on.
APP_NAMEWXTApp name used throughout the UI
SERVER_URLchat.wxt.devSpecify the domain the server will be hosted at.
DOCS_URLhttps://wxt.devURL to VitePress website. Must use the vitepress-knowledge plugin and host /knowledge/* files.
CORS_ORIGINhttps://wxt.devOptional: Override the allowed origin for CORS. If omitted, will use DOCS_URL for CORS.
ASSISTANT_ICON_URL/logo.svgOptional: Path or full URL to icon to use for the assistant's avatar in the chat. If missing, will default to /favicon.ico.
WELCOME_MESSAGE<p>Hi!</p><p>I'm an AI assistant...Optional: HTML template for customizing the initial message shown before a user sends their first message.
SYSTEM_PROMPTYou are an expert developer trained on ...Optional: Customize the system prompt

Warning

Note that right now, the chat window is hardcoded to use Gemini 2.0 Flash. The other services and models cannot be used yet.

⁠Hosting

To host the backend, you can use docker like the Setup guide does⁠, or clone down the repo and run the server/src/main.ts file yourself.

The server/Dockerfile contains the minimal set of build instructions to run the backend.

Tag summary

Content type

Image

Digest

sha256:92b12f142…

Size

79.8 MB

Last updated

5 months ago

docker pull aklinker1/vitepress-knowledge-server