suh4s commited on
Commit
87341d4
·
1 Parent(s): 31add3b

README in hfspace

Browse files
Files changed (1) hide show
  1. README.md +109 -0
README.md ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: InsightFlow AI
3
+ emoji: 🧠
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: docker
7
+ pinned: true
8
+ # app_port: 7860 # App port is usually not needed here if using standard Chainlit port or Docker EXPOSE
9
+ short_description: Multi-perspective research assistant with RAG and visualizations
10
+ ---
11
+
12
+ # InsightFlow AI: Multi-Perspective Research Assistant
13
+
14
+ InsightFlow AI is an advanced research assistant that analyzes topics from multiple perspectives, providing a comprehensive and nuanced understanding of complex subjects. It now features Retrieval Augmented Generation (RAG) for supported personas and a streamlined UI using Chainlit's chat settings.
15
+
16
+ ![InsightFlow AI](https://huggingface.co/datasets/suhas/InsightFlow-AI-demo/resolve/main/insightflow_banner.png)
17
+
18
+ ## Features
19
+
20
+ ### Multiple Perspective Analysis
21
+ - **Analytical**: Logical examination with methodical connections and patterns
22
+ - **Scientific**: Evidence-based reasoning grounded in empirical data
23
+ - **Philosophical**: Holistic exploration of deeper meaning and implications
24
+ - **Factual**: Straightforward presentation of verified information
25
+ - **Metaphorical**: Creative explanations through vivid analogies
26
+ - **Futuristic**: Forward-looking exploration of potential developments
27
+
28
+ ### Personality Perspectives
29
+ - **Sherlock Holmes**: Deductive reasoning with detailed observation
30
+ - **Richard Feynman**: First-principles physics with clear explanations
31
+ - **Hannah Fry**: Math-meets-society storytelling with practical examples
32
+
33
+ ### Visualization Capabilities
34
+ - **Concept Maps**: Automatically generated Mermaid diagrams showing relationships
35
+ - **Visual Notes**: DALL-E generated hand-drawn style visualizations of key insights
36
+ - **Visual-Only Mode**: Option to focus on visual representations for faster comprehension (via Settings)
37
+
38
+ ### Retrieval Augmented Generation (RAG)
39
+ - Supported personas (e.g., Analytical, Philosophical, Metaphorical) can search dedicated knowledge bases for more informed answers.
40
+ - Toggle RAG functionality via the Settings panel.
41
+
42
+ ### Export Options
43
+ - **Markdown Export**: Save analyses as formatted markdown with embedded visualizations
44
+ - **PDF Export**: Generate professionally formatted PDF documents
45
+
46
+ ## How to Use
47
+
48
+ 1. **Configure Settings (⚙️ icon)**:
49
+ * Select a Persona Team (e.g., Balanced Overview) or toggle individual personas.
50
+ * Adjust other settings like RAG, Direct Mode, Quick Mode, and visibility of perspectives/visualizations.
51
+ 2. **Ask Your Question**: Type any research question or topic to analyze.
52
+ 3. **Review Insights**: Explore the synthesized view and (if enabled) individual perspectives and visualizations.
53
+ 4. **Get Help**: Type `/help` for a detailed guide on features and settings.
54
+ 5. **Export Results**: Use `/export_md` or `/export_pdf` to save your analysis (Note: Full export functionality is under development).
55
+
56
+ ## Commands
57
+
58
+ Most settings are now conveniently managed via the **Settings (⚙️) panel** in the UI.
59
+ Type `/help` for a comprehensive guide to all features and settings.
60
+
61
+ ```
62
+ # Core Commands
63
+ /help - Displays a detailed help message about features and settings.
64
+
65
+ # Mode Toggles (Also available in Settings)
66
+ /direct on|off - Toggle direct LLM mode (bypasses multi-persona).
67
+ /perspectives on|off - Toggle showing individual perspectives.
68
+ /visualization on|off - Toggle showing visualizations (Mermaid & DALL-E).
69
+ /quick_mode on|off - Toggle Quick Mode (uses a smaller, predefined set of personas).
70
+ /rag on|off - Toggle Retrieval Augmented Generation for supported personas.
71
+
72
+ # Export Options (Functionality under development)
73
+ /export_md - Export the current insight analysis to a markdown file.
74
+ /export_pdf - Export the current insight analysis to a PDF file.
75
+
76
+ # Legacy Persona Commands (Advanced - Consider using Settings panel for primary persona management)
77
+ # /add [persona_name] - Add a perspective to your research team
78
+ # /remove [persona_name] - Remove a perspective from your team
79
+ # /list - Show all available perspectives
80
+ # /team - Show your current team and settings
81
+ ```
82
+
83
+ ## Example Topics
84
+
85
+ - Historical events from multiple perspectives
86
+ - Scientific concepts with philosophical implications
87
+ - Societal issues that benefit from diverse viewpoints
88
+ - Future trends analyzed from different angles
89
+ - Complex problems requiring multi-faceted analysis
90
+
91
+ ## Technical Details
92
+
93
+ Built with Python using:
94
+ - LangGraph for orchestration
95
+ - OpenAI APIs for reasoning and visualization
96
+ - Chainlit for the user interface
97
+ - Custom persona system for perspective management
98
+
99
+ ## Try These Examples
100
+
101
+ - "The impact of artificial intelligence on society"
102
+ - "Climate change adaptation strategies"
103
+ - "Consciousness and its relationship to the brain"
104
+ - "The future of work in the next 20 years"
105
+ - "Ancient Greek philosophy and its relevance today"
106
+
107
+ ## Feedback and Support
108
+
109
+ For questions, feedback, or support, please open an issue on the [GitHub repository](https://github.com/suhas/InsightFlow-AI) or comment on this Space.