Spaces:
Sleeping
Sleeping
Commit History
-
Add environment configuration template, enhance .gitignore, and refactor configuration loading. Removed deprecated scripts and improved setup process with a new setup script.
18efc55
-
add
8e68b5a
-
ad
b0f37e6 -
ad
99618f1 -
ad
faafe4f -
ad
ce68073 -
ad
126ee52 -
ad
f779b69 -
ad
911b955 -
ad
9048e9b -
ad
91c2a08
-
add
7bc750c -
add
53562c9 -
add
6b3524e -
add
0d2b318 -
add
f468e8b -
add
f4d0036 -
add
ba6c703 -
add
7bd46cb
-
add
c469fc9 -
add
1d4dcf3
-
add
b7aa617 -
add
ab39c06 -
add
5632471 -
add
5d07fc9 -
add
fd965f0 -
add
ea56a51 -
add
232e016 -
Add OpenAI Structured Outputs extraction methodβ
- Implement simple OpenAI structured outputs extractor using Pydantic models - Register as new production method 'openai_structured' in method registry - Support direct extraction without complex multi-agent workflow - Generate more complex knowledge graphs with better NEXT relationships - Include factory integration for seamless system integration - Build frontend with updated method selection capability7e807a3
-
π Add real AI knowledge graph integration (API keys redacted)
5aa050e -
π― Add Automatic Sample Data System for New Usersβ
β Features implemented: β’ Automatic sample data insertion for empty databases β’ 3 curated examples showing increasing complexity levels β’ Pre-generated knowledge graphs for each sample trace β’ Non-destructive insertion (skips if data exists) π Sample data includes: β’ Basic Q&A: Simple arithmetic calculation (6 entities, 5 relations) β’ Research Task: Location/hours research (6 entities, 6 relations) β’ Multi-Agent: Algorithm analysis (10 entities, 16 relations) π§ Technical implementation: β’ backend/database/sample_data.py - Core data and insertion logic β’ backend/database/init_db.py - Modified to trigger insertion β’ Full transaction support with error handling β’ Comprehensive logging and status reporting π― User experience: β’ New users see working examples immediately β’ Examples serve as templates and learning materials β’ Demonstrates different trace types and complexity levels β’ No more empty system on first launch π Documentation: β’ Complete READMβ¦9e60d50 -
π― Add Smart Sample Data Preloading Systemβ
β¨ New Features: β’ Intelligent sample data preloader for better UX β’ Auto-preloads 6 diverse examples on first startup β’ Smart selection algorithm ensures variety in agent types, complexity, domains β’ Non-blocking background preload doesn't delay startup π§ Implementation: β’ backend/scripts/preload_sample_data.py - Core preloading logic β’ Modified backend/app.py with startup preload check β’ Enhanced trace metadata with rich categorization tags β’ Handles database deduplication and error recovery π Benefits: β’ New users get immediate examples to explore β’ No more empty 'My Traces' on first visit β’ Diverse samples showcase different agent interaction patterns β’ Knowledge graphs can be generated on-demand from preloaded traces π Bug Fixes: β’ Fixed 'str expected, not NoneType' errors in multiple modules β’ Added null checks for OPENAI_API_KEY environment variable β’ Resolved circular import issues in knowledge graph components π User Experience: β’ Immediaβ¦95b5fc0 -
π§Ή Code Cleanup and Optimizationβ
β Improvements: β’ Removed debug print statements from backend/app.py β’ Cleaned up unnecessary imports in backend/database/__init__.py β’ Optimized knowledge graph processing modules β’ Removed temporary debugging code across multiple files π― Focus areas: β’ Backend startup process optimization β’ Database initialization cleanup β’ Knowledge graph processing efficiency β’ Multi-agent extractor refinements π Impact: β’ Cleaner console output in production β’ Improved code maintainability β’ Better performance with fewer debug calls β’ Professional deployment-ready codebasefa515bb -
π Complete Fix for HF Spaces Sample Data Loadingβ
β Fixed All Critical Issues: 1. OPENAI_API_KEY None TypeError (4 files): - multi_agent_knowledge_extractor.py - knowledge_graph_merger.py - knowledge_graph_tester.py - knowledge_graph_processor.py β Added null checks: if OPENAI_API_KEY: os.environ[...] = OPENAI_API_KEY 2. SQLAlchemy ObjectNotExecutableError: - Added text() import and wrapped all SQL strings β All execute() calls now use text("SQL") format 3. SQLAlchemy ArgumentError - Parameter Format: - Converted positional parameters to named parameters - Changed ?, ?, ? β :param1, :param2, :param3 - Changed tuple params β dict params β All queries now use {"param1": value1, "param2": value2} format π― Local Test Results: β Application starts successfully β Sample data loads completely: β’ 1 trace inserted β’ 1 knowledge graph inserted β’ 5 entities inserted β’ 4 relations inserted β All database operations successful β Transaction committed successfully β Final counts match expected valuesβ¦de48716
-
Restore all AgentGraph high-level featuresβ
- Fixed evaluation module dependency in methods/__init__.py - Restored SlidingWindowMonitor, PromptReconstructor, testing, causal analysis - Fixed shared models import in agentgraph/shared/__init__.py - All advanced features now work without evaluation module dependency7d48c14 -
π§Ή Clean up: Remove backend/scripts/ and __pycache__ filesβ
β Security improvements: β’ Removed backend/scripts/ directory (dev/maintenance tools only) β’ Eliminated hardcoded Langfuse API keys security risk β’ Removed fetch_langfuse_logs.py with exposed credentials οΏ½οΏ½ Optimization benefits: β’ Reduced image size by ~50MB β’ Simplified deployment (removed non-core functionality) β’ Cleaned up Python cache files π§ Files removed: β’ backend/scripts/fetch_example_dataset.py β’ backend/scripts/fetch_langfuse_logs.py (had hardcoded API keys) β’ backend/scripts/langsmith_exporter.py β’ All __pycache__ directories and .pyc files7348bb7 -
π Deploy AgentGraph: Complete agent monitoring and knowledge graph systemβ
Features: - π Real-time agent monitoring dashboard - πΈοΈ Knowledge graph extraction from traces - π Interactive visualizations and analytics - π Multi-agent system with CrewAI - π¨ Modern React + FastAPI architecture Ready for Docker deployment on HF Spaces (port 7860)c2ea5ed