Supports AI-powered functions using LLM.#85442
Supports AI-powered functions using LLM.#85442fastio wants to merge 6 commits intoClickHouse:masterfrom
Conversation
|
Workflow [PR], commit [13b66b9] Summary: ❌
|
|
I like this feature overall, would you consider moving some of the remote LLM and prompt models to https://github.com/ClickHouse/ai-sdk-cpp, this is already pulled in as a dependency and we use it. |
Thanks for the suggestion — I agree it makes sense to reimplement this based on ai-sdk-cpp and migrate the remote LLM and prompt-related code there as well, especially since it’s already a dependency. I’ll look into making this change. |
|
Hi @iskakaushik ,As mentioned earlier, I have submitted two PRs to the ai-sdk-cpp project for supporting AI Functions.. I would really appreciate your review. |
da79ef6 to
7c8972c
Compare
|
@fastio could you please take a look at ClickHouse/ai-sdk-cpp#28, it fixes up some issues with ClickHouse/ai-sdk-cpp#24 and also adds comprehensive integration tests. |
|
@fastio could you please rebase on to latest main and use the new emberddings API support in ai-sdk-cpp please? :) |
|
@iskakaushik Hi, from what I’ve seen, AI functions can offer substantial value in various business scenarios. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
In ClickHouse scenarios, invoking LLM capabilities through SQL enables the analysis of unstructured and text, improving both efficiency and cost-effectiveness. For example, we can use LLMs to perform tasks such as text classification, semantic recognition, text generation, and summarization.
llmComplete: Generates a completion for given text using LLMs.
llmEmbed: Generates an embedding vector for text or other type data. (still working on)
Run the llmComplete example:
Run the llmEmbedding example:
llmEmbeding, llmFilter are on the way.
Documentation entry for user-facing changes