This commit is contained in:
2025-08-27 19:57:14 +08:00
parent bbfc16406b
commit 87eae49468

13
docs/en/core/embedding.md Normal file
View File

@@ -0,0 +1,13 @@
# Embedding
Embedding can be understood simply as follows: there is an algorithm (or model) that can map high-dimensional data to a low-dimensional vector space. This mapping process is essentially a process of feature extraction.
> Low-dimensional vector data can reduce the complexity of data, thereby improving the efficiency of model training and inference.
## Samples
```java
Llm llm = OpenAILlm.of("sk-rts5NF6n*******");
VectorData embeddings = llm.embed(Document.of("some document text"));
System.out.println(Arrays.toString(embeddings.getVector()));
```