sofvBV_mcp重构v2

Embedding copy
This commit is contained in:
2025-10-22 23:59:23 +08:00
parent b9ba79d7a8
commit c0b2ec5983
8 changed files with 916 additions and 50 deletions

View File

@@ -0,0 +1,22 @@
from search import PaperSearcher
# Use local model (free)
searcher = PaperSearcher('iclr2026_papers.json', model_type='local')
# Or use OpenAI (better quality)
# searcher = PaperSearcher('iclr2026_papers.json', model_type='openai')
searcher.compute_embeddings()
examples = [
{
"title": "Improving Developer Emotion Classification via LLM-Based Augmentation",
"abstract": "Detecting developer emotion in the informative data stream of technical commit messages..."
},
]
results = searcher.search(examples=examples, top_k=100)
searcher.display(results, n=10)
searcher.save(results, 'results.json')