-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: update docs
- Loading branch information
Showing
6 changed files
with
121 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# Skynet Documentation | ||
|
||
1. [Modules - Summaries](summaries_module.md) | ||
2. [Modules - Streaming Whisper Live Transcription](streaming_whisper_module.md) | ||
3. [Config - Environment Variables](env_vars.md) | ||
4. [Authentication](auth.md) | ||
5. [Monitoring](monitoring.md) | ||
6. [Demos](../demos/) | ||
1. [Modules - RAG Assistant](assistant.md) | ||
2. [Modules - Summaries](summaries_module.md) | ||
3. [Modules - Streaming Whisper Live Transcription](streaming_whisper_module.md) | ||
4. [Config - Environment Variables](env_vars.md) | ||
5. [Authentication](auth.md) | ||
6. [Monitoring](monitoring.md) | ||
7. [Demos](../demos/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Skynet RAG Assistant Module | ||
|
||
Enable the module by setting the `ENABLED_MODULES` env var to `assistant`. | ||
|
||
Allows you to index a crawled website into a vector store, save the store locally and in an s3 bucket and have it augment the prompt with relevant information for various AI assistant tasks. | ||
|
||
> All requests to this service will require a standard HTTP Authorization header with a Bearer JWT. Check the [**Authorization page**](auth.md) for detailed information on how to generate JWTs or disable authorization. | ||
## Requirements | ||
|
||
- Redis | ||
- Poetry | ||
|
||
## Configuration | ||
|
||
All of the configuration is done via env vars. Check the [Skynet Environment Variables](env_vars.md) page for a list of values. | ||
|
||
## Authorization | ||
|
||
Each vector store corresponds to a unique identifier, which the current implementation expects to be provided as a customer id parameter, which can be either be a `cid` field in a JWT, or as a `customer_id` query parameter | ||
|
||
Thus, when deploying this module, the deployer will also have the responsibility for establishing the access-control list based on this spec. | ||
|
||
## First run | ||
|
||
```bash | ||
# start Redis | ||
docker run -d --rm -p 6379:6379 redis | ||
|
||
# If using vLLM (running on NVIDIA GPU) | ||
export LLAMA_PATH="$HOME/models/Llama-3.1-8B-Instruct" | ||
poetry install --with vllm | ||
|
||
# If using Ollama | ||
export LLAMA_PATH="llama.3.1" | ||
poetry install | ||
|
||
./run.sh | ||
``` | ||
|
||
Visit http://127.0.0.1:8000 | ||
|
||
## Build Image | ||
|
||
```bash | ||
docker buildx build --push --progress plain --platform linux/amd64 -t your-registry/skynet:your-tag . | ||
``` | ||
|
||
When running the resulting image, make sure to mount a model under `/models` on the container fs. | ||
|
||
### Code samples | ||
|
||
JavaScript: https://github.com/jitsi/skynet/blob/master/docs/sample.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters