ArchitectureData flow
User search flow
User Authentication Check
- User enters credentials in webapp login form
- Authentication service validates credentials
- JWT token issued and stored for subsequent requests
Query Processing Flow
- User enters search query in webapp interface
- Webapp sends authenticated API request with query
- Webapp backend validates JWT token and forwards to processing service
- Webapp calls Processing service API to computes vector embedding representation
Vector Search in PostgreSQL
- Webapp backend querys PostgreSQL database
- PGVector extension performs similarity search
- Most similar documents are retrieved
Results Display
- Webapp backend returns results
- Webapp receives JSON response
- Webapp renders results in user interface
- Pagination and filtering options available