Skip to content

Commit

Permalink
Install.sh & Install.bat. Readme Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinaravind committed Jul 20, 2024
1 parent 6e7e017 commit d83a726
Show file tree
Hide file tree
Showing 27 changed files with 340 additions and 4,422 deletions.
10 changes: 10 additions & 0 deletions .env-Sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Description: Environment variables for the project. Rename to .env file for use
OPENAI_API_KEY=XXXXXXXXX
MISTRAL_API_KEY=XXXXXXXXX
MIXPANEL_TOKEN=XXXXXXXXX
HUGGINGFACEHUB_API_TOKEN=XXXXXXXXX
COHERE_API_KEY=XXXXXXXXX
JINA_API_KEY=XXXXXXXXX
ENABLE_ANALYTICS=True
SINGLESTOREDB_URL=userid:password@host:port/dbname
PINECONE_API_KEY=XXXXXXXXX
7 changes: 1 addition & 6 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Brewfile

# Taps
tap "homebrew/core"

# Core libraries
brew "ca-certificates"
brew "cairo"
brew "fontconfig"
Expand Down Expand Up @@ -70,3 +64,4 @@ brew "unbound"
brew "xorgproto"
brew "xz"
brew "zstd"
brew "libheif"
3,082 changes: 0 additions & 3,082 deletions Brewfile.lock.json

This file was deleted.

67 changes: 0 additions & 67 deletions Brewfilelst.txt

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN pip install dist/*.gz
WORKDIR /

# Optionally, you can delete hidden files and directories as well
RUN rm -rf ragbuilder
RUN rm -rf ragbuilder/src
WORKDIR /ragbuilder


Expand Down
Binary file removed InputFiles/arxiv.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright [2024] [KruxAI]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
30 changes: 25 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,25 @@ RagBuilder is a toolkit designed to help you create optimal Production-ready Ret

## Installation

### Option 1: Install using pip:
### Option 1: Install using install script:
#### Mac

```
pip install ragbuilder
curl -fsSL https://raw.githubusercontent.com/KruxAI/ragbuilder-readme/main/install.sh |bash
```

#### Windows
```
curl -fsSL https://raw.githubusercontent.com/KruxAI/ragbuilder-readme/main/install.bat
```

Run Install.bat from command prompt
```
install.bat
```



#### Set your OpenAI API key

Make sure your OpenAI API key is available by setting it as an environment variable. In MacOS and Linux, this is the command:
Expand All @@ -49,9 +62,14 @@ docker pull ashwinzyx/ragbuilder:latest
```

Run the Docker Container.
Create .env as below and use it while running the container
Create .env as below and use it while running the container. The env file must be in the same directory where the docker command is being run
#### Mac
```
docker run -it -v "$(pwd):/ragbuilder" --env-file .env -p 55003:8005 ashwinzyx/ragbuilder:latest
```
docker run --env-file .env -p 55003:8005 ragbuilder
#### Windows
```
docker run -d -v %cd%:/ragbuilder --env-file .env -p 55003:8005 ashwinzyx/ragbuilder
```

OR
Expand All @@ -63,6 +81,8 @@ docker run -p 55003:8005 -e OPENAI_API_KEY=sk-....

Open Ragbuilder [http://localhost:55003/](http://localhost:55003/)

If you are crearting your own synthetic dataset for evaluation, save the csv file in the same directory where the docker run command is being executed and provide the file name only

## Quickstart Guide

Now, run ragbuilder on your command line:
Expand Down Expand Up @@ -140,4 +160,4 @@ PINECONE_API_KEY=XXXXXX
4. Save the .env file.
5. Ensure that the .env file is located in the same directory where you run the ragbuilder command to ensure the environment variables are properly loaded.

By setting up these environment variables, you enable the RagBuilder project to authenticate and interact with the necessary external services.
By setting up these environment variables, you enable the RagBuilder project to authenticate and interact with the necessary external services.
110 changes: 0 additions & 110 deletions READMEold.md

This file was deleted.

8 changes: 7 additions & 1 deletion dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
*.env
*.csv
*.log
*.pyc
*.pyc
*.db


!.env-Sample
!.README.md
!.LICENSE
17 changes: 17 additions & 0 deletions install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
echo Installing RagBuilder
setlocal EnableDelayedExpansion

echo Downloading Brewfile...
curl -fsSL https://raw.githubusercontent.com/KruxAI/ragbuilder-readme/main/Brewfile -o Brewfile

echo Reading Brewfile...
echo Installing packages from Brewfile...
for /f "usebackq tokens=*" %%i in ("Brewfile") do (
python -m pip install %%i
)

echo Installing ragbuilder...
python -m pip install ragbuilder

echo Setup completed successfully.
endlocal
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
long_description = fh.read()
setup(
name='ragbuilder',
version='0.0.5',
version='0.0.6',
author='Ashwin Aravind, Aravind Parameswaran',
author_email='[email protected], [email protected]',
description='RagBuilder is a toolkit designed to help you create optimal Production-ready Retrieval-Augmented Generation (RAG) pipeline for your data',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/kruxai/ragbuilder',
license='Apache 2.0',
license_files=('LICENSE',),
package_dir={'': 'src'},
packages=find_packages(where='src'),
include_package_data=True,
Expand Down
Loading

0 comments on commit d83a726

Please sign in to comment.