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.2 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # LLamaEmbedder
  2. Namespace: LLama.OldVersion
  3. ```csharp
  4. public class LLamaEmbedder : System.IDisposable
  5. ```
  6. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [LLamaEmbedder](./llama.oldversion.llamaembedder.md)<br>
  7. Implements [IDisposable](https://docs.microsoft.com/en-us/dotnet/api/system.idisposable)
  8. ## Constructors
  9. ### **LLamaEmbedder(LLamaParams)**
  10. ```csharp
  11. public LLamaEmbedder(LLamaParams params)
  12. ```
  13. #### Parameters
  14. `params` [LLamaParams](./llama.oldversion.llamaparams.md)<br>
  15. ## Methods
  16. ### **GetEmbeddings(String, Int32, Boolean, String)**
  17. ```csharp
  18. public Single[] GetEmbeddings(string text, int n_thread, bool add_bos, string encoding)
  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. `encoding` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  25. #### Returns
  26. [Single[]](https://docs.microsoft.com/en-us/dotnet/api/system.single)<br>
  27. ### **Dispose()**
  28. ```csharp
  29. public void Dispose()
  30. ```