Glean SE Technical Screen · Live FAQ RAG PrototypeInspect HTTP API →

Enterprise AI that understands your company

Complete context for your FAQ corpus.

Try:

Ingested FAQ Corpus (3 files · 5 chunks)

chunk_size ≈ 200 chars
faq_auth.md1 chunk
# Auth FAQ

Q: How do I reset my password?
A: Use the reset link on the login page.
faq_employee.md3 chunks
# TechFlow Solutions Employee Handbook

## What is our unlimited PTO policy?
TechFlow offers unlimited PTO with a minimum requirement of 15 days per year. Employees must get approval for time off exceeding 2 consecutive weeks. PTO requests require 2-week notice except for emergencies.

## How does our equity vesting schedule work?
New hires receive equity grants vesting over 5 years: 10% after year 1, then 22.5% each subsequent year. Equity grants are reviewed annually in March with potential for additional grants based on performance.
faq_sso.md1 chunk
# SSO FAQ

Q: How do I enable SSO?
A: Contact your admin to enable SSO for your account.

Live HTTP API Endpoints

GET /api/public/health
curl -s https://your-app.lovable.app/api/public/health
POST /api/public/ask
curl -s -X POST https://your-app.lovable.app/api/public/ask -H "Content-Type: application/json" -d '{"question":"How do I reset my password and enable SSO?","top_k":4}'

Design Decisions & Trade-offs

  • Chunking (~200 chars): Whitespace-aware splitting keeps short Q&As intact without mid-word breaks.
  • In-memory vector index: Embeddings are cached per server instance — zero external DB overhead for a small corpus.
  • Cosine similarity + ≥2 sources: Ranks chunks by cosine score and ensures at least two distinct filenames when available.
  • Strict API contract: Validates input with Zod (400 on bad input) and returns only answer and sources.