You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

llama.llamaembedder.md 949 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # LLamaEmbedder
  2. Namespace: LLama
  3. The embedder for LLama, which supports getting embeddings from text.
  4. ```csharp
  5. public class LLamaEmbedder
  6. ```
  7. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [LLamaEmbedder](./llama.llamaembedder.md)
  8. ## Constructors
  9. ### **LLamaEmbedder(LLamaParams)**
  10. ```csharp
  11. public LLamaEmbedder(LLamaParams params)
  12. ```
  13. #### Parameters
  14. `params` [LLamaParams](./llama.llamaparams.md)<br>
  15. ## Methods
  16. ### **GetEmbeddings(String, Int32, Boolean)**
  17. ```csharp
  18. public Single[] GetEmbeddings(string text, int n_thread, bool add_bos)
  19. ```
  20. #### Parameters
  21. `text` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  22. `n_thread` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  23. `add_bos` [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  24. #### Returns
  25. [Single[]](https://docs.microsoft.com/en-us/dotnet/api/system.single)<br>