Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dfrho/ai-sdk-internal-kb
https://github.com/dfrho/ai-sdk-internal-kb
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dfrho/ai-sdk-internal-kb
- Owner: dfrho
- Created: 2024-10-24T02:03:59.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-25T20:27:46.000Z (3 months ago)
- Last Synced: 2024-10-27T00:21:31.299Z (2 months ago)
- Language: TypeScript
- Homepage: https://ai-sdk-internal-kb.vercel.app
- Size: 623 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Internal Knowledge Base
## Overview
This template is a customized version of the [Language Model Middleware](https://sdk.vercel.ai/docs/ai-sdk-core/middleware#language-model-middleware) to perform retrieval augmented generation and enforce guardrails using the [AI SDK](https://sdk.vercel.ai/docs) and [Next.js](https://nextjs.org/).
## Features
- Secure authentication and authorization
- Document upload and management
- Advanced search capabilities using Retrieval Augmented Generation (RAG)
- User-friendly interface for easy navigation and content discovery
- Analytics for usage tracking and optimization## Important Notice
**DO NOT upload documents containing Personally Identifiable Information (PII) or private data into the deployed demo version of this application (at https://ai-sdk-internal-kb.vercel.app
).**This demo is for illustration purposes only and may not have the full security measures implemented in a production environment.
# Internal Knowledge Base Preview
## Deploy your own
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Fai-sdk-preview-internal-knowledge-base&env=OPENAI_API_KEY%2CAUTH_SECRET&envDescription=API%20keys%20needed%20for%20application&envLink=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Fai-sdk-preview-internal-knowledge-base%2Fblob%2Fmain%2F.env.example&stores=%5B%7B%22type%22%3A%22blob%22%7D%2C%7B%22type%22%3A%22postgres%22%7D%5D)
## How to use
Run [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:
```bash
npx create-next-app --example https://github.com/vercel-labs/ai-sdk-preview-internal-knowledge-base ai-sdk-preview-internal-knowledge-base-example
``````bash
yarn create next-app --example https://github.com/vercel-labs/ai-sdk-preview-internal-knowledge-base ai-sdk-preview-internal-knowledge-base-example
``````bash
pnpm create next-app --example https://github.com/vercel-labs/ai-sdk-preview-internal-knowledge-base ai-sdk-preview-internal-knowledge-base-example
```To run the example locally you need to:
1. Sign up for accounts with the AI providers you want to use (e.g., OpenAI, Anthropic).
2. Obtain API keys for each provider.
3. Set the required environment variables as shown in the `.env.example` file, but in a new file called `.env`.
4. `npm install` to install the required dependencies.
5. `npm run dev` to launch the development server.## Learn More
To learn more about the AI SDK or Next.js by Vercel, take a look at the following resources:
- [AI SDK Documentation](https://sdk.vercel.ai/docs)
- [Next.js Documentation](https://nextjs.org/docs)## License
MIT
© 2024 Your Company Name. All rights reserved.