Documentation | Blog | Demo Video
Arguflow is a truly all-in-one service for hosting AI powered semantic search and LLM retrieval-augmented generation (RAG) on your data.
- CVE security vulnerability search
- CVE security vulnerability RAG
- Enron Corpus search
- Enron Corpus RAG
- Find an issue in the issues tab that you would like to work on.
- Fork the repository and clone it to your local machine
- Create a new branch with a descriptive name: git checkout -b your-branch-name
- Solve the issue by adding or removing code on your forked branch.
- Test your changes locally to ensure that they do not break anything
- Commit your changes with a descriptive commit message: git commit -m "Add descriptive commit message here"
- Push your changes to your forked repository: git push origin your-branch-name
- Open a pull request to the main repository and describe your changes in the PR description
We have a full self-hosting guide available on our documentation page here.
sudo apt install curl \
gcc \
g++ \
make \
pkg-config \
python3 \
python3-pip \
libpq-dev \
libssl-dev \
openssl
You can install NVM using its install script.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
You should restart the terminal to update bash profile with NVM. Then, you can install NodeJS LTS release and Yarn.
nvm install --lts
npm install -g yarn
pip install -r ./server/server-python/requirements.txt
mkdir server/tmp
cargo install cargo-watch
cp .env.chat ./chat/.env
cp .env.search ./search/.env
cp .env.server ./server/.env
Here is a guide for acquiring that.
- Open the
./server/.env
file - Replace the value for
OPENAI_API_KEY
to be your own OpenAI API key.
cat .env.chat .env.search .env.server .env.docker-compose > .env
./convenience.sh -l
We know this is bad. Currently, We recommend managing this through tmux or VSCode terminal tabs.
cd server
cargo watch -x run
cd search
yarn
yarn dev
cd chat
yarn
yarn dev
You can download the latest version NodeJS from here. Open the downloaded file and follow the steps from the installer.
After completing the installation, open a powershell with administrator permissions.
npm install -g yarn
After installation, yarn might throw an error when used due to Window's execution policy. Change the execution policy to allow scripts to be executed by applications that are signed by a trusted publisher by putting this command in an admin powershell.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
You can download the latest version of Rust from here. Follow the installer's directions and install the prerequisites.
After installation, open a new powershell window with administrator permissions.
cargo install cargo-watch
Follow the instructions to download Docker Desktop for Windows from here. You may need to follow the instructions to enable WSL 2.
Download PostgreSQL 13 from here. You should not use any other version of PostgreSQL due to there being an issue with diesel on other versions.
When installing, ensure that the PostgreSQL server is set to a port other than 5432 to prevent it from interfering with the docker container.
Add Postgres to PATH
[Environment]::SetEnvironmentVariable("PATH", $Env:PATH + ";C:\Program Files\PostgreSQL\13\lib;C:\Program Files\PostgreSQL\13\bin", [EnvironmentVariableTarget]::Machine)
cp .env.chat ./chat/.env
cp .env.search ./search/.env
cp .env.server ./server/.env
Here is a guide for acquiring that.
- Open the
./server/.env
file - Replace the value for
OPENAI_API_KEY
to be your own OpenAI API key.
Start the docker containers using the batch script.
Get-Content .env.chat, .env.search, .env.server, .env.docker-compose | Set-Content .env
./convenience.bat l
You need 3 different windows of powershell or use something like VSCode terminal tabs to manage it.
cd server
cargo watch -x run
cd search
yarn
yarn dev
cd chat
yarn
yarn dev
apt install libjpeg-dev libpng-dev libtiff-dev
curl https://imagemagick.org/archive/ImageMagick.tar.gz | tar xz
cd ImageMagick
./configure
make uninstall
make install
diesel::debug_query(&query).to_string();