Science Infuse
ArchitectureData flow

User search flow

User Authentication Check

  1. User enters credentials in webapp login form
  2. Authentication service validates credentials
  3. JWT token issued and stored for subsequent requests

Query Processing Flow

  1. User enters search query in webapp interface
  2. Webapp sends authenticated API request with query
  3. Webapp backend validates JWT token and forwards to processing service
  4. Webapp calls Processing service API to computes vector embedding representation

Vector Search in PostgreSQL

  1. Webapp backend querys PostgreSQL database
  2. PGVector extension performs similarity search
  3. Most similar documents are retrieved

Results Display

  1. Webapp backend returns results
  2. Webapp receives JSON response
  3. Webapp renders results in user interface
  4. Pagination and filtering options available

On this page