aumento de velocidad y cambios en el tema de noticias relacionadas
This commit is contained in:
parent
3eca832c1a
commit
95adc07f37
9 changed files with 275 additions and 97 deletions
21
inspect_qdrant.py
Normal file
21
inspect_qdrant.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
sys.path.append(os.getcwd())
|
||||
from utils.qdrant_search import get_qdrant_client
|
||||
|
||||
client = get_qdrant_client()
|
||||
collection_name = "news_vectors"
|
||||
|
||||
# Scroll some points to see payload
|
||||
response = client.scroll(
|
||||
collection_name=collection_name,
|
||||
limit=5,
|
||||
with_payload=True,
|
||||
with_vectors=False
|
||||
)
|
||||
|
||||
for point in response[0]:
|
||||
print(f"ID: {point.id}")
|
||||
print(f"Payload: {point.payload}")
|
||||
print("-" * 20)
|
||||
Loading…
Add table
Add a link
Reference in a new issue