Full-stack application combining LlamaIndex vector search with Neo4j knowledge graph (GraphRAG) for answering queries about Netflix marketing materials. Flask/Hypercorn backend with custom ReAct agent, React frontend. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.6 KiB
1.6 KiB
Local Development Mode
This document explains how to run the Netflix GraphRAG application in local development mode without requiring MSAL authentication.
Authentication Bypass
When running the application in local development mode (PRODUCTION=false), the authentication system is automatically bypassed:
- The frontend will not redirect to Microsoft login
- A default user "dev_user@local" is automatically used for all API requests
- You can directly start using the application without any login
Setup Instructions
-
Ensure you have a
.envfile in the project root with:PRODUCTION=false -
Start the backend server:
python main.py -
Start the frontend development server:
cd chat-interface npm run dev -
Access the application at http://localhost:5173
How it Works
- The frontend (auth.js) automatically bypasses authentication checks when in development mode
- The backend (routes.py) checks for
PRODUCTION=falsein all authenticated endpoints - When
PRODUCTION=falseand no username is provided, the backend uses "dev_user@local" - All conversations and messages will be associated with this default user
Switching to Production Mode
To disable the authentication bypass and use real MSAL authentication:
- Set
PRODUCTION=truein your.envfile - Restart both frontend and backend servers
Troubleshooting
- If you encounter authentication errors, make sure PRODUCTION is set to "false" in the .env file
- Ensure the backend is running before accessing the frontend
- Check for any error messages in both the frontend and backend consoles