Pansophy is an AI-powered knowledge visualization tool. Dive deep into any topic and get a comprehensive, interconnected perspective with detailed knowledge graphs.
In today's information era, understanding and visualizing the vast amounts of knowledge available is crucial. Pansophy was inspired by the need for a tool that can represent complex information in an interconnected and easily digestible manner.
"Pansophy" is derived from the term "pansophism", which originates from two Greek words: "pan", meaning "all", and "sophia", meaning "wisdom". Pansophism is a philosophical concept that represents the idea of acquiring universal knowledge or wisdom.
- Streamlit: For the web application interface.
- OpenAI: The LLM models that generates the knowledge graphs.
- instructor: Structured extraction from openai function calls.
- Graphviz & Pyvis: Libraries for visualizing the knowledge graphs.
sample graph generated
- Ensure you have Python >=3.8 installed.
- Clone this repository:
git clone <repository-url>
- Navigate to the project directory:
cd path-to-project-directory
- Install the required dependencies:
pip install -r requirements.txt
- Set up your
.streamlit/secrets.toml
with the OpenAI API key:OPENAI_API_KEY = "your_openai_api_key_here"
- Run the CLI
python knowledge_graph.py
- Run the Streamlit app:
streamlit run app.py
Feel free to open issues or PRs if you have suggestions, improvements, or bug fixes. Your feedback is highly appreciated!
Instructor
pyvis
graphviz
webbrowser