Starterkit for OpenAI chat client based on your own content. Main ingredients:
- Deno
- Aleph.js
- Pinecone
- @7-docs/edge
- TypeScript
- UnoCSS
This template runs at 7-docs-aleph-pinecone.deno.dev.
- Use this template
- Clone your new repo
npm install
- Prepare vector database
- Ingest content
cp .env.example .env
and paste your tokens:OPENAI_API_KEY
,PINECONE_URL
,PINECONE_API_KEY
The following commands are using my-namespace
as set in config.ts and ingest content from the
reactjs/react.dev
repository. By all means, you're encouraged to change them to something more original.
Create a Pinecone account if you don't have one already. Then create an index:
npx 7-docs pinecone-create-index --index my-namespace
npx 7-docs ingest --source github --repo denoland/manual --files '**/*.md' --namespace manual-deno
deno task dev
This application can be deployed somewhere with support for Deno + edge functions. Examples:
Make sure to add the environment variables. Also update project
in
.github/workflows/deploy.yml to your Deno Deploy project name.