skyl / corpora

Corpora is a self-building corpus that can help build other arbitrary corpora
GNU Affero General Public License v3.0
2 stars 0 forks source link

Create TUI for Corpora Rust CLI incorporating `corpora_client` #52

Open skyl opened 4 days ago

skyl commented 4 days ago

Overview

The Corpora project aims to enhance its Rust-based CLI tools by developing a full TUI (Text User Interface) command center. A key component of this effort is the integration of the corpora_client, which is responsible for executing RAG (retrieval-augmented generation) over HTTP calls with pgvector on the backend.

Objectives

Exploratory Tasks

  1. Prototype TUI:

    • Develop a basic TUI prototype using Ratatui in the corpora_cli module.
    • Include support for making HTTP-based retrieval requests using corpora_client.
    • Demonstrate RAG capabilities through interactive commands.
  2. Research TUI Libraries:

    • Evaluate Ratatui for building TUIs in Rust.
    • Identify how it can be effectively integrated with corpora_client for RAG operations.
  3. Integration with corpora_client

    • Ensure seamless interaction between the TUI commands and the corpora_client's API request capabilities.
    • Utilize pgvector for vectorized data retrieval and processing.
  4. Usability Testing:

    • Collect feedback on the TUI prototype's effectiveness compared to existing CLI interactions.

Considerations

The success of this prototype could potentially lead to a full-fledged TUI command center, enhancing the usability and functionality of Corpora's Rust CLI tools.