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 994 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
32
33
  1. prompts:
  2. - This prompt will be evaluated for embedding similarity
  3. defaultTest:
  4. options:
  5. provider:
  6. embedding:
  7. id: cloudflare-ai:embedding:@cf/baai/bge-base-en-v1.5
  8. config:
  9. # accountId: YOUR_ACCOUNT_ID_HERE
  10. providers:
  11. - id: cloudflare-ai:chat:@cf/meta/llama-3-8b-instruct
  12. config:
  13. # accountId: YOUR_ACCOUNT_ID_HERE
  14. # ===============
  15. # It is not recommended to keep your API key on the config file since it is a secret value.
  16. # Use the CLOUDFLARE_API_KEY environment variable or set the apiKeyEnvar value
  17. # in the config
  18. # apiKey: YOUR_API_KEY_HERE
  19. # apiKeyEnvar: SOME_ENV_HAR_CONTAINING_THE_API_KEY
  20. # ===============
  21. # Additional model parameters that are passed through in the HTTP request body to the Cloudflare REST API call
  22. # to run the model
  23. # max_tokens: 800
  24. # seed: 1
  25. tests:
  26. - assert:
  27. - type: similar
  28. value: embedding similarity
  29. threshold: 0.6
Tip!

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

Comments

Loading...