Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

embedding_configuration.yaml 914 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. prompts:
  3. - This prompt will be evaluated for embedding similarity
  4. defaultTest:
  5. options:
  6. provider:
  7. embedding:
  8. id: cloudflare-ai:embedding:@cf/baai/bge-large-en-v1.5
  9. config:
  10. accountId: your_account_id_here
  11. providers:
  12. - id: cloudflare-ai:chat:@cf/hf/nousresearch/hermes-2-pro-mistral-7b
  13. config:
  14. accountId: your_account_id_here
  15. # ===============
  16. # API key is loaded from CLOUDFLARE_API_KEY environment variable
  17. # Alternatively, use custom environment variable names:
  18. # apiKeyEnvar: CUSTOM_CLOUDFLARE_KEY
  19. # accountIdEnvar: CUSTOM_CLOUDFLARE_ACCOUNT
  20. # ===============
  21. # OpenAI-compatible model parameters
  22. max_tokens: 800
  23. temperature: 0.6
  24. tests:
  25. - assert:
  26. - type: similar
  27. value: embedding similarity
  28. threshold: 0.6
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...