Skip to content

suvansh/CLAIRe

Repository files navigation

CLAIRe

Log

  • 7/31 (eba9ffb): Important bug fix that everyone will need – the .claire directory was not being created before being used, resulting in errors for all message and profile operations.

Abilities

Active messaging

CLAIRe can proactively reach out to you to follow up on past conversations, challenging the conventional call-response paradigm of AI interactions:

Active Messaging

Entity recall

CLAIRe remembers information it has learned about entities in its conversations and can synthesize information from the current conversational context, known information about entities, and semantically relevant past messages to form cohesive, natural responses.

Entity Recall

Message search/history

CLAIRe autoloads message history as you scroll through your messages. It also supports both exact and semantic (through Chroma) message search. The syntax for semantic message search is as follows:

Format: /semantic {number of results – default 10} search term

Example: /semantic adventure story

Example: /semantic {2} bad dates

Semantic Search

Profiles

CLAIRe supports separate profiles backed by separate Chroma collections to prevent cross-over of information.

Architecture

Learn more about how CLAIRe works here.

The below diagram illustrates the relationship between some of the main components of CLAIRe's backend.

Architecture

Getting Started

Using CLAIRe as is

To run CLAIRe, you'll need to have Docker.

git clone https://github.com/suvansh/CLAIRe.git  # clone this repo
git clone https://github.com/chroma-core/chroma.git  # clone Chroma, used for the DB
cd CLAIRe
cp .env.example .env.local

Now edit .env.local and fill in your OpenAI API key, used for chat responses as well as the embeddings backing Chroma's semantic search.

Staying in the CLAIRe directory, you can launch CLAIRe and Chroma in a shared network:

docker-compose up -d --build

Note that CLAIRe's Docker Compose file relies on Chroma being in the same directory as CLAIRe, but you can edit the path to suit your setup.

Open http://localhost:3000 in your browser to use CLAIRe!

Debugging

To debug issues with CLAIRe, the first stop is the Docker logs: docker logs claire-claire-1 for the CLAIRe container, and docker logs claire-server-1 for the Chroma container. The frontend will display a catch-all error message in red text if there's an issue with the backend, but the logs will be the best way to figure out what's going on.

Development

First, run Chroma

Next, the development server in the project root directory:

npm run dev

Open http://localhost:3000 in your browser to use CLAIRe!

About

CLAIRe: Conversational Learning AI with Recall

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages