|
| | embed (not_null< std::shared_ptr< ai_runner >> model_runner, std::string prefix) |
| | Construct a local AI embed chain element with a specific model runner and prefix. More...
|
| |
|
continuation | operator() (message_ptr msg, const message_callbacks &emit_message) override |
| |
| bool | is_leaf () const override |
| | Check if chain element is a leaf (last element which doesn't produce any messages). At this moment only exporters are leafs. More...
|
| |
|
| chain_element (chain_element &&)=default |
| |
|
chain_element & | operator= (chain_element &&)=default |
| |
|
virtual bool | is_generator () const |
| |
Definition at line 24 of file ai_embed.h.
◆ embed()
| docwire::ai::embed::embed |
( |
not_null< std::shared_ptr< ai_runner >> |
model_runner, |
|
|
std::string |
prefix |
|
) |
| |
|
explicit |
Construct a local AI embed chain element with a specific model runner and prefix.
- Parameters
-
| ai_runner | The model runner to use for generating embeddings. |
| prefix | The string to prepend to the input text. Use an empty string for no prefix. |
◆ is_leaf()
| bool docwire::ai::embed::is_leaf |
( |
| ) |
const |
|
inlineoverridevirtual |
Check if chain element is a leaf (last element which doesn't produce any messages). At this moment only exporters are leafs.
- Returns
- true if leaf
Implements docwire::chain_element.
Definition at line 35 of file ai_embed.h.
The documentation for this class was generated from the following file: