github_search_engine.clients.ollama_client_manager

Module Contents

class OllamaClientManager[source]
client[source]
embed(content)[source]

Returns the LLM’s embedding for the given input text.

Parameters:

content (str) – The input textual content to embed.

Returns:

The embedding vector for the corresponding segment of the input content.

Return type:

Sequence[Sequence[float]]

chat(prompt)[source]

Generates a response to the input prompt.

Parameters:

prompt (str) – The input text to generate a response for.

Returns:

The generated response.

Return type:

str