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.
|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using LLama.OldVersion;
-
- namespace LLama.Examples.Old
- {
- [Obsolete("The entire LLama.OldVersion namespace will be removed")]
- public class GetEmbeddings
- {
- LLama.OldVersion.LLamaEmbedder _embedder;
- public GetEmbeddings(string modelPath)
- {
- _embedder = new LLama.OldVersion.LLamaEmbedder(new LLamaParams(model: modelPath));
- }
-
- public void Run(string text)
- {
- Console.WriteLine(string.Join(", ", _embedder.GetEmbeddings(text)));
- }
- }
- }
|