Skip to content

Commit 236695f

Browse files
committed
Update Docker Documentation
1 parent cc2bd79 commit 236695f

File tree

12 files changed

+94
-49
lines changed

12 files changed

+94
-49
lines changed

CHANGELOG.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,20 @@ All notable changes to this project will be documented in this file.
55
## [0.4.0] - 11.04.2024
66

77
### Added
8+
- Improved Docker Documentation
9+
- Improved Docker Settings
10+
- New Environment Variables for OpenAI proxies: OpenAI_BASE_URL (LiteLLM support) (https://github.com/weaviate/Verba/issues/56)
11+
- Increased version
812

913
### Changed
1014
- Removed spaCy from project
1115

1216
### Fixed
13-
14-
## [0.3.1] - 05.12.2023
15-
16-
### Added
17-
- New Environment Variables for OpenAI proxies: OpenAI_BASE_URL (LiteLLM support) (https://github.com/weaviate/Verba/issues/56)
18-
- Docker also installs HuggingFace stack (https://github.com/weaviate/Verba/issues/84)
19-
20-
### Fixed
17+
- Python not working on version 3.12, 3.11, and 3.9
18+
- GitHub Links on README
2119
- Fix Docker Default Vectorizer (https://github.com/weaviate/Verba/issues/50)
2220
- Fix requirements.txt spelling error
21+
- Minor Bug fixes
2322

2423

2524
## [0.3.1] - 15.11.2023

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.10
22
WORKDIR /Verba
33
COPY . /Verba
4-
RUN pip install -e '.[huggingface]'
4+
RUN pip install -e '.'
55
EXPOSE 8000
66
CMD ["verba", "start"]

README.md

Lines changed: 56 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,57 +13,57 @@ pip install goldenverba
1313
![Demo of Verba](https://github.com/weaviate/Verba/blob/dev/img/verba.gif)
1414

1515
- [Verba](#verba)
16-
- [🎯 What Is Verba?](#🎯-what-is-verba)
17-
- [⚙️ Under the Hood](#️⚙️-under-the-hood)
18-
- [💡 Effortless Data Import with Weaviate](#💡-effortless-data-import-with-weaviate)
19-
- [💥 Advanced Query Resolution with Hybrid Search](#💥-advanced-query-resolution-with-hybrid-search)
20-
- [🔥 Accelerate Queries with Semantic Cache](#🔥-accelerate-queries-with-semantic-cache)
21-
- [✨ Getting Started with Verba](#✨-getting-started-with-verba)
22-
- [🐍 Installing Python and Setting Up a Virtual Environment](#🐍-installing-python-and-setting-up-a-virtual-environment)
16+
- [🎯 What Is Verba?](#what-is-verba)
17+
- [⚙️ Under the Hood](#️under-the-hood)
18+
- [💡 Effortless Data Import with Weaviate](#effortless-data-import-with-weaviate)
19+
- [💥 Advanced Query Resolution with Hybrid Search](#advanced-query-resolution-with-hybrid-search)
20+
- [🔥 Accelerate Queries with Semantic Cache](#accelerate-queries-with-semantic-cache)
21+
- [✨ Getting Started with Verba](#getting-started-with-verba)
22+
- [🐍 Installing Python and Setting Up a Virtual Environment](#installing-python-and-setting-up-a-virtual-environment)
2323
- [Installing Python](#installing-python)
2424
- [Setting Up a Virtual Environment](#setting-up-a-virtual-environment)
25-
- [📦 Choosing the Right Verba Installation Package](#📦-choosing-the-right-verba-installation-package)
25+
- [📦 Choosing the Right Verba Installation Package](#choosing-the-right-verba-installation-package)
2626
- [Default Package](#default-package)
2727
- [HuggingFace Version](#huggingface-version)
2828
- [Development Version](#development-version)
29-
- [🚀 Quickstart: Deploy with pip](#🚀-quickstart-deploy-with-pip)
30-
- [🛠️ Quickstart: Build from Source](#️🛠️-quickstart-build-from-source)
31-
- [🔑 API Keys](#🔑-api-keys)
29+
- [🚀 Quickstart: Deploy with pip](#quickstart-deploy-with-pip)
30+
- [🛠️ Quickstart: Build from Source](#️quickstart-build-from-source)
31+
- [🔑 API Keys](#api-keys)
3232
- [Weaviate](#weaviate)
3333
- [OpenAI](#openai)
3434
- [Cohere](#cohere)
3535
- [HuggingFace](#huggingface)
3636
- [Llama2](#llama2)
3737
- [Unstructured](#unstructured)
3838
- [Github](#github)
39-
- [🐳 Quickstart: Deploy with Docker](#🐳-quickstart-deploy-with-docker)
40-
- [Large Language Model (LLM) Costs](#-large-language-model-llm-costs)
41-
- [💾 Importing Your Data into Verba](#️💾-Importing-Your-Data-into-Verba)
42-
- [🛠️ Project Architecture](#️🛠️-project-architecture)
43-
- [💖 Open Source Contribution](#💖-open-source-contribution)
39+
- [🐳 Quickstart: Deploy with Docker](#quickstart-deploy-with-docker)
40+
- [Large Language Model (LLM) Costs](#large-language-model-llm-costs)
41+
- [💾 Importing Your Data into Verba](#️importing-your-data-into-verba)
42+
- [🛠️ Project Architecture](#️project-architecture)
43+
- [💖 Open Source Contribution](#open-source-contribution)
4444

45-
## 🎯 What Is Verba?
45+
## What Is Verba?
4646
Verba is more than just a tool—it's a personal assistant for querying and interacting with your data, **either locally or deployed via cloud**. Have questions about your documents? Need to cross-reference multiple data points? Want to gain insights from your existing knowledge base? Verba empowers you with the combined capabilities of Weaviate's context-aware database and the analytical power of Large Language Models (LLMs). Interact with your data through an intuitive chat interface that refines search results by using the ongoing conversation context to deliver even more accurate and relevant information.
4747

4848
![Demo of Verba](https://github.com/weaviate/Verba/blob/dev/img/verba_screen.png)
4949

50-
### ⚙️ Under the Hood
50+
### Under the Hood
5151
Verba is engineered with Weaviate's cutting-edge Generative Search technology at its core, extracting relevant context from your pool of documents to resolve queries with precision. By utilizing the power of Large Language Models, Verba doesn't just search for answers—it understands and provides responses that are contextually rich and informed by the content of your documents, all through an intuitive user interface designed for simplicity and efficiency.
5252

53-
### 💡 Effortless Data Import with Weaviate
53+
### Effortless Data Import with Weaviate
5454
Verba offers seamless data import functionality through its frontend, supporting a diverse range of file types including `.txt`, `.md`, `.pdf` and more. Before feeding your data into Weaviate, Verba handles chunking and vectorization to optimize it for search and retrieval. Together with collaborative partners we support popular libraries such as [HuggingFace](https://github.com/huggingface), [Haystack](https://github.com/deepset-ai/haystack), [Unstructured](https://github.com/Unstructured-IO/unstructured) and many more!
5555

5656
![Demo of Verba](https://github.com/weaviate/Verba/blob/dev/img/verba_import.png)
5757

58-
### 💥 Advanced Query Resolution with Hybrid Search
58+
### Advanced Query Resolution with Hybrid Search
5959
Experience the hybrid search capabilities of Weaviate within Verba, which merges vector and lexical search methodologies for even greater precision. This dual approach not only navigates through your documents to pinpoint exact matches but also understands the nuance of context, enabling the Large Language Models to craft responses that are both comprehensive and contextually aware. It's an advanced technique that redefines document retrieval, providing you with precisely what you need, when you need it.
6060

61-
### 🔥 Accelerate Queries with Semantic Cache
61+
### Accelerate Queries with Semantic Cache
6262
Verba enhances search efficiency with Weaviate's Semantic Cache, a sophisticated system that retains the essence of your queries, results, and dialogues. This proactive feature means that Verba anticipates your needs, using cached data to expedite future inquiries. With semantic matching, it quickly determines if your question has been asked before, delivering instant results, and even suggests auto-completions based on historical interactions, streamlining your search experience to be faster and more intuitive.
6363

6464
---
6565

66-
# Getting Started with Verba
66+
# Getting Started with Verba
6767

6868
Starting your Verba journey is super easy, with multiple deployment options tailored to your preferences. Follow these simple steps to get Verba up and running:
6969

@@ -81,7 +81,7 @@ pip install -e .
8181

8282
**Prerequisites**: If you're not using Docker, ensure that you have `Python >=3.10.0` installed on your system.
8383

84-
# 🐍 Installing Python and Setting Up a Virtual Environment
84+
# Installing Python and Setting Up a Virtual Environment
8585
Before you can use Verba, you'll need to ensure that `Python >=3.10.0` is installed on your system and that you can create a virtual environment for a safer and cleaner project setup.
8686

8787
## Installing Python
@@ -137,7 +137,7 @@ Once your virtual environment is activated, you'll see its name in the terminal
137137

138138
> Remember to deactivate the virtual environment when you're done working with Verba by simply running deactivate in the terminal.
139139
140-
# 📦 Choosing the Right Verba Installation Package
140+
# Choosing the Right Verba Installation Package
141141
Verba comes in several installation packages, each tailored for specific use cases and environments. Choose the package that aligns with your requirements:
142142

143143
## Default Package
@@ -167,7 +167,7 @@ pip install goldenverba[dev]
167167

168168
> Keep in mind that this version is intended for development purposes and may contain experimental features.
169169
170-
# 🚀 Quickstart: Deploy with pip
170+
# Quickstart: Deploy with pip
171171

172172
1. **Initialize a new Python Environment**
173173
```
@@ -191,7 +191,7 @@ Visit localhost:8000
191191

192192
5. **Create .env file and add environment variables**
193193

194-
# 🛠️ Quickstart: Build from Source
194+
# Quickstart: Build from Source
195195

196196
1. **Clone the Verba repos**
197197
```
@@ -220,9 +220,10 @@ Visit localhost:8000
220220

221221
6. **Create .env file and add environment variables**
222222

223-
# 🔑 API Keys
223+
# API Keys
224224

225225
Before diving into Verba's capabilities, you'll need to configure access to various components depending on your chosen technologies, such as OpenAI, Cohere, and HuggingFace. Start by obtaining the necessary API keys and setting them up through a `.env` file based on our provided [example](./goldenverba/.env.example) , or by declaring them as environment variables on your system. If you're building from source or using Docker, make sure your `.env` file is within the goldenverba directory.
226+
Please make sure to only include environment variables you really need.
226227

227228
Below is a comprehensive list of the API keys and variables you may require:
228229

@@ -340,7 +341,7 @@ Once configured, you can monitor your Verba installation's health and status via
340341

341342
![Demo of Verba](https://github.com/weaviate/Verba/blob/dev/img/verba_status.png)
342343

343-
# 🐳 Quickstart: Deploy with Docker
344+
# Quickstart: Deploy with Docker
344345

345346
Docker is a set of platform-as-a-service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries, and configuration files; they can communicate with each other through well-defined channels. All containers are run by a single operating system kernel and are thus more lightweight than virtual machines. Docker provides an additional layer of abstraction and automation of operating-system-level virtualization on Windows and Linux.
346347

@@ -357,7 +358,15 @@ Ensure you have Git installed on your system. Then, open a terminal or command p
357358
git clone https://github.com/weaviate/Verba.git
358359
```
359360

360-
1. **Deploy using Docker**
361+
1. **Set neccessary environment variables**
362+
Make sure to set your required environment variables in the ```.env``` file. You can read more about how to set them up in the [API Keys Section](#api-keys)
363+
364+
2. **Adjust the docker-compose file**
365+
You can use the ```docker-compose.yml``` to add required environment variables under the ```verba``` service and can also adjust the Weaviate Docker settings to enable Authentification or change other settings of your database instance. You can read more about the Weaviate configuration in our [docker-compose documentation](https://weaviate.io/developers/weaviate/installation/docker-compose)
366+
367+
> Please make sure to only add environment variables that you really need. If have no authentifcation enabled in your Weaviate Cluster, make sure to not include the ```WEAVIATE_API_KEY_VERBA``` enviroment variable
368+
369+
2. **Deploy using Docker**
361370
With Docker installed and the Verba repository cloned, navigate to the directory containing the Docker Compose file in your terminal or command prompt. Run the following command to start the Verba application in detached mode, which allows it to run in the background:
362371

363372
```
@@ -367,7 +376,21 @@ docker compose up -d
367376
This command will download the necessary Docker images, create containers, and start Verba.
368377
Remember, Docker must be installed on your system to use this method. For installation instructions and more details about Docker, visit the official Docker documentation.
369378

370-
## 💾 Importing Your Data into Verba
379+
4. **Access Verba**
380+
381+
- You can access your local Weaviate instance at ```localhost:8080```
382+
383+
- You can access the Verba frontend at ```localhost:8000```
384+
385+
386+
If you want your Docker Instance to install a specific version of Verba (as described in the [package section](#choosing-the-right-verba-installation-package)) you can edit the ```Dockerfile``` and change the installation line.
387+
388+
```
389+
RUN pip install -e '.'
390+
```
391+
392+
393+
## Importing Your Data into Verba
371394

372395
With Verba configured, you're ready to import your data and start exploring. Follow these simple steps to get your data into Verba:
373396

@@ -401,14 +424,14 @@ With Verba configured, you're ready to import your data and start exploring. Fol
401424

402425
Now your data is ready to be used within Verba, enabling you to leverage its powerful search and retrieval capabilities.
403426

404-
## 💰 Large Language Model (LLM) Costs
427+
## Large Language Model (LLM) Costs
405428

406429
Verba utilizes LLM models through APIs. Be advised that the usage costs for these models will be billed to the API access key you provide. Primarily, costs are incurred during data embedding and answer generation processes.
407430

408-
## 💖 Open Source Contribution
431+
## Open Source Contribution
409432

410433
Your contributions are always welcome! Feel free to contribute ideas, feedback, or create issues and bug reports if you find any! Before contributing, please read the [Contribution Guide](./CONTRIBUTING.md). Visit our [Weaviate Community Forum](https://forum.weaviate.io/) if you need any help!
411434

412-
### 🛠️ Project Architecture
435+
### Project Architecture
413436
You can learn more about Verba's architecture and implementation in its [technical documentation](./TECHNICAL.md) and [frontend documentation](./FRONTEND.md). It's recommended to read them before making any contributions.
414437

frontend/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export default function Home() {
393393
: 'bg-red-500 hover:bg-red-400'
394394
}`}
395395
>
396-
{apiStatus + " v0.3.1"}
396+
{apiStatus + " v0.4.0"}
397397
</span>
398398
</a>
399399
<a href="https://www.weaviate.io" target="_blank" rel="noopener noreferrer">

0 commit comments

Comments
 (0)