Skip to content

[FEATURE] Create a New Chat Interface Component #177

@amrutha97

Description

@amrutha97

Overview

We want to introduce an AI-powered chat interface that allows users to:

  • Select a data source.
  • Ask natural language questions about the data.
  • Receive AI-generated responses.

This component should work similarly to ChatGPT

Adding a new component

https://docs.preswald.com/addnewcomponent

Changes Required

  1. Create chat.py in preswald components.

  2. Expose chat as a Preswald component:

    from preswald import chat
    chat(source="sample_csv")  # Queries 'sample_csv'
    chat()  # Defaults to all sources
  3. Integrate with an open-source chat UI, such as Assistant UI. -- evaluate if this is a good option otherwise build our own

  4. Ensure backend integration for handling chat queries (with duckdb)

Testing

  • Run preswald tutorial and verify that users can ask questions and receive answers.
  • Ensure responses are accurate

Update Documentation

  • Document chat usage in docs, with examples and screenshots.
  • Add an example to preswald/tutorial demonstrating how to use the chat interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions