Crates.io | archiver |
lib.rs | archiver |
version | 0.3.2 |
source | src |
created_at | 2024-06-19 17:08:26.435536 |
updated_at | 2024-06-26 11:45:12.865928 |
description | RAG implementation with langchain-rust |
homepage | |
repository | https://github.com/lukemilby/archiver |
max_upload_size | |
id | 1277194 |
size | 1,821,131 |
Archiver is a command-line application designed to interact with large language models (LLMs) for testing purposes. It leverages Ollama for model integration and SurrealDB as the vector store. The application uses Langchain-rust as the framework for interacting with the Ollama and SurrealDB.
Before setting up Archiver, ensure you have the following installed on your system:
Rust (latest stable version)
just
(command runner)
Pandoc (load text when adding to vector db)
Ollama
SurrealDB
Ensure docker is running and make sure docker compose is setup
docker ps
brew install pandoc just
just docker
just add <markdown file>
Or
cargo run -- -a <markdown file>
Add directory of Markdown
cargo run -- -d <directory>
just run
Install using Cargo:
cargo install archiver
Make sure you have SurrealDB setup and Ollama before running Archiver
Download and Install SurrealDB:
curl -sSf https://install.surrealdb.com | sh
Run SurrealDB:
just db_dev
Once Surreal is up and running you can use https://surrealist.app/ to access the instance of Surreal. But before doing that a Namespace and Table need to be setup. Fastest way to get this done is to run Archiver once.
Set Namespace and Table:
just run
Add Markdown File to the SurrealDB:
cargo run -- -a <markdownfile>
git clone https://github.com/yourusername/archiver.git
cd archiver
just db_dev # run in a seperate terminal
just run
This project is licensed under the Apache Livense (Version 2.0). See the LICENSE file for details.