-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Summary
The project currently provides a hosted demo at chat.knowledge-space.org, which is very helpful for understanding the user-facing behavior of the system.
However, the repository itself does not yet include a minimal, reproducible end-to-end example that shows how a developer can run the knowledge-space agent locally and understand the core workflow directly from code.
Adding a simple example (Python script or Jupyter notebook) would significantly improve developer onboarding and make it easier for new contributors and GSoC students to understand how the hosted demo maps to the underlying implementation.
Proposed Scope
The example could demonstrate:
- Configuring the agent with minimal environment setup
- Running the agent on a sample neuroscience-related query
- Inspecting the output, including:
- Search results returned by the KnowledgeSpace API
- The final synthesized response produced by the agent
The example would focus on clarity and reproducibility rather than performance or UI.
Expected Benefit
- Improves onboarding for new contributors
- Makes the agent workflow easier to understand and extend
- Complements the existing hosted demo by documenting how to run the system locally
- Helps GSoC students explore the codebase more efficiently
Proposed Implementation
examples/
├── README.md # Setup instructions
├── basic_demo.py # Minimal Python script
└── basic_demo.ipynb # (Optional) Interactive notebook
Example Script Preview
(Illustrative example; exact API usage may be adjusted based on current implementation.)
from agents import NeuroscienceAssistant
assistant = NeuroscienceAssistant()
response = assistant.handle_chat(
session_id="demo",
query="Find datasets about hippocampus neurons in mice"
)
print(response)