mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
feat: improve dedup with jina embeddings
This commit is contained in:
parent
da608206af
commit
5231493b7a
@ -3,7 +3,7 @@ import { TokenTracker } from "../utils/token-tracker";
|
||||
import {JINA_API_KEY} from "../config";
|
||||
|
||||
const JINA_API_URL = 'https://api.jina.ai/v1/embeddings';
|
||||
const SIMILARITY_THRESHOLD = 0.8; // Adjustable threshold for cosine similarity
|
||||
const SIMILARITY_THRESHOLD = 0.85; // Adjustable threshold for cosine similarity
|
||||
|
||||
// Types for Jina API
|
||||
interface JinaEmbeddingRequest {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user