mirror of
https://github.com/csd4ni3l/grass_touching_captcha.git
synced 2026-01-01 04:23:45 +01:00
fix the word embedding cache being included in git and try switching to v3 which might fix jina being so slow
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -181,3 +181,4 @@ logs/
|
|||||||
logs
|
logs
|
||||||
uploads/
|
uploads/
|
||||||
data.db
|
data.db
|
||||||
|
compared_word_emb.json
|
||||||
2
jina.py
2
jina.py
@@ -14,7 +14,7 @@ def get_embedding(input: list):
|
|||||||
headers["Authorization"] = f"Bearer {os.environ['JINA_TOKEN']}"
|
headers["Authorization"] = f"Bearer {os.environ['JINA_TOKEN']}"
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
"model": "jina-embeddings-v4",
|
"model": "jina-embeddings-v3",
|
||||||
"task": "text-matching",
|
"task": "text-matching",
|
||||||
"input": input
|
"input": input
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user