Skip to content

ball2004244/LogosDB-TopicCluster

Repository files navigation

LogosDB-TopicCluster

This repo support creating dynamic docker compose, allow users to manage multiple containers

Prequisitive

  • Docker
  • Docker Compose
  • C++17

Usage

Create cluster

  1. To create docker compose dynamically, you need to add the database names you like to topics.txt. Each database name should be in a new line.

  2. Then create the dynamic compose.yml file and launch the cluster with

bash ./scripts/build.sh

Cluster cleaning

  • Delete the cluster
bash ./scripts/clean.sh
  • Full clear Docker with
docker system prune -a --volumes

Cluster interaction

You can either insert or query data with the cluster

1. Insert

  • Enter the target database info
  • Bring your input csv file to the inputs folder
  • Then insert with
bash ./scripts/insert.sh

2. Query

  • Enter target database info
  • Query data from 1 database with
bash ./scripts/query.sh

3. Custom You can also write your own SQL at custom/query.sql

Then run custom query with

bash ./scripts/custom.sh

Dynamic Routing

  1. Bring your own data First put your .csv file in inputs folder

Second, modify the process_input.py for convert your data into Cluster readable data

You might need some python libraries for that

pip install -r requirements.txt

Then run process_input script

python3 process_input.py

After all, auto insert processed data with

bash ./scripts/auto_insert.sh

Note: This process will take time

  1. Generate SumDB SumDB acts as a table of content for topic cluster, make querying extremely fast. To create SumDB with default config, you don't need to do anything.

    If you want to use SumDB with intergrated AI, you need to copy .env.copy to a new file called .env and fill out your Google Gemini API.

Then, run

bash ./scripts/summary.sh

which will introduce a summary interface into the TopicCluster, then summarize all data by chunk.

Note: This process will take time

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published