gopidesupavan commented on code in PR #61794:
URL: https://github.com/apache/airflow/pull/61794#discussion_r2814381556


##########
providers/common/ai/docs/operators.rst:
##########
@@ -0,0 +1,62 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+ ..   http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+LLM Operators
+=============
+
+LLM Operators are specialized Airflow operators designed to generate sql 
queries using Large Language Models (LLMs) based on provided prompts.
+These operators leverage the capabilities DBApi Hook in airflow to get the 
database schema and use it to generate SQL queries. see the currently supported 
databases to extract schema dynamically using
+existing DBApi Hooks or optionally provide the database schema in the input 
datasource config.
+
+Current LLM Operators uses the Pydantic AI framework to connect to different 
LLM providers.
+
+Supported LLM Providers
+-----------------------
+
+- OpenAI
+- Google
+- Anthropic
+- GitHub

Review Comment:
   This relates to the provider setup for AI models. For instance, if a user 
wants to use OpenAI models via GitHub, the provider would be GitHub, the model 
would be OpenAI GPT, and the Pydantic connection should include the GitHub 
token.
   
   There are numerous OpenAI-compatible models from various providers 
(https://ai.pydantic.dev/models/openai/#openai-compatible-models). The current 
PR only implements support for few providers. 
   
   Does this cause more confusion?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to