File size: 345 Bytes
55ea01f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import faiss
import numpy as np
# demo embeddings
INDEX = faiss.IndexFlatL2(384)
DOCS = []
def semantic_search(query: str):
# placeholder demo
return [
{
"document": "UAP Analysis Memo",
"agency": "DIA",
"year": 2010,
"excerpt": "Unidentified aerial phenomena..."
}
] |