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.oldversion.llamaembedder.md 1.3 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # LLamaEmbedder
  2. Namespace: LLama.OldVersion
  3. #### Caution
  4. The entire LLama.OldVersion namespace will be removed
  5. ---
  6. ```csharp
  7. public class LLamaEmbedder : System.IDisposable
  8. ```
  9. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [LLamaEmbedder](./llama.oldversion.llamaembedder.md)<br>
  10. Implements [IDisposable](https://docs.microsoft.com/en-us/dotnet/api/system.idisposable)
  11. ## Constructors
  12. ### **LLamaEmbedder(LLamaParams)**
  13. ```csharp
  14. public LLamaEmbedder(LLamaParams params)
  15. ```
  16. #### Parameters
  17. `params` [LLamaParams](./llama.oldversion.llamaparams.md)<br>
  18. ## Methods
  19. ### **GetEmbeddings(String, Int32, Boolean, String)**
  20. ```csharp
  21. public Single[] GetEmbeddings(string text, int n_thread, bool add_bos, string encoding)
  22. ```
  23. #### Parameters
  24. `text` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  25. `n_thread` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  26. `add_bos` [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  27. `encoding` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  28. #### Returns
  29. [Single[]](https://docs.microsoft.com/en-us/dotnet/api/system.single)<br>
  30. ### **Dispose()**
  31. ```csharp
  32. public void Dispose()
  33. ```