Skip to content

Ripnrip/AMORC-Search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rosicrucian Knowledge Explorer

A web application that allows users to explore Rosicrucian teachings through a conversational interface. This application uses LlamaIndex to search through a collection of Rosicrucian documents and provide relevant answers to user questions.

Features

  • Conversational Interface: Ask questions about Rosicrucian philosophy, history, practices, or any related topic.
  • Source Attribution: See the source documents that were used to generate each answer.
  • Vector Search: Uses semantic search to find the most relevant content for each query.
  • Beautiful UI: Clean, intuitive interface with a chat-like experience.

Setup

Prerequisites

  • Python 3.9 or higher
  • OpenAI API key (for embeddings and completions)
  • LlamaIndex index stored in a ./storage directory

Installation

  1. Clone this repository:

    git clone <repository-url>
    cd <repository-directory>
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Set up your OpenAI API key:

    export OPENAI_API_KEY=your-api-key

    Or create a .env file in the root directory:

    OPENAI_API_KEY=your-api-key
    

Running the Application

  1. Start the FastAPI backend:

    python llama_index_api.py

    This will start the API server on http://localhost:8000

  2. In a new terminal, start the Streamlit frontend:

    streamlit run rosicrucian_chat_app.py

    This will start the web application on http://localhost:8501

  3. Open your browser and navigate to http://localhost:8501 to use the application.

Usage

  1. Wait for the backend to initialize (this may take a few minutes as it loads the document index).
  2. Type your question in the input box and press Enter.
  3. View the response and the source documents that were used to generate it.
  4. Continue the conversation by asking follow-up questions.

Sample Questions

  • What are the key principles of Rosicrucian teachings?
  • Who was Harvey Spencer Lewis?
  • What is the significance of the Rose Cross symbol?
  • How does Rosicrucian philosophy view reincarnation?
  • What are the stages of initiation in Rosicrucianism?

Architecture

The application consists of two main components:

  1. FastAPI Backend: Handles the loading of the LlamaIndex index and processes queries.
  2. Streamlit Frontend: Provides a user-friendly interface for interacting with the backend.

Customization

  • To modify the appearance of the web application, edit the CSS in rosicrucian_chat_app.py.
  • To change the sample questions, edit the sample_questions list in rosicrucian_chat_app.py.
  • To adjust the query parameters (e.g., number of sources), modify the similarity_top_k parameter in llama_index_api.py.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published