Spaces:
Sleeping
Sleeping
File size: 815 Bytes
50dcddc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ---
title: DistanceMetrics
emoji: π
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
---
# DistanceMetrics
Semantic search over structured data with live vector-space visualization.
Upload a CSV/XLSX/JSON file, embed it via OpenAI `text-embedding-3-small`, store in Qdrant, then search and watch your query move through the embedding space in real time.
## Stack
- **Backend** β FastAPI + OpenAI Embeddings + Qdrant
- **Frontend** β Streamlit with interactive Plotly PCA scatter
## Required secrets
Set these in the Space **Settings β Variables and secrets**:
| Secret | Description |
|---|---|
| `OPENAI_API_KEY` | OpenAI API key |
| `QDRANT_URL` | Qdrant cluster URL |
| `QDRANT_API_KEY` | Qdrant API key |
| `QDRANT_COLLECTION` | Collection name (default: `documents`) |
|