LOEMIND.txt 835 B

123456789101112131415161718192021222324252627282930
  1. # Qdrant'i chat'i vestluste andmete kustutamine.
  2. docker exec -ti open-webui bash -c "python /scripts/clean_qdrant.py;"
  3. # Kustuta olemasolev kollektsioon Qdrantis (see eemaldab 768‑dim skeemi).
  4. curl -X DELETE http://qdrant:6333/collections/open-webui_files
  5. # Embeddings näide
  6. curl http://localhost:11434/api/embeddings \
  7. -d '{
  8. "model": "nomic-embed-text",
  9. "prompt": "How to implement semantic search with Python"
  10. }
  11. # LLM serveri testimine
  12. curl -s http://100.87.1.24:8070/v1/chat/completions \
  13. -H "Authorization: Bearer sk-dummy-key-not-required" \
  14. -H "Content-Type: application/json" \
  15. -d '{
  16. "model": "unsloth_gpt-oss-120b-Q4_K_M.gguf",
  17. "messages": [
  18. {"role":"system","content":"You are a helpful assistant."},
  19. {"role":"user","content":"Say hello"}
  20. ],
  21. "stream": false
  22. }' | jq