- Issue created by @mindaugasd
- 🇱🇹Lithuania mindaugasd
Updated info about RAG (retrieval-augmented generation)
- 🇱🇹Lithuania mindaugasd
Created issue 📌 Introduce "simple" mode Active and added to description
I am exploring how prompt system ( https://www.drupal.org/project/aiprompt → ) could cover all the needs.
Cases:
In detail:
Configure system message of any chat (of any assistant)
Configure prompt of AI automator
Use together with AI abstraction layer in code
Exact code example I am already using:
$system_prompt = $prompt->toString();
$input = new ChatInput([
new ChatMessage("system", $system_prompt),
new ChatMessage("user", "[...]"),
]);
$ai_provider = \Drupal::service('ai.provider')->createInstance('openai');
$response = $ai_provider->chat($input, 'gpt-4o')->getNormalized();
$data = $this->processJsonAIResponse($response->getText());
Active
1.0
Discussion
Updated info about RAG (retrieval-augmented generation)
Created issue 📌 Introduce "simple" mode Active and added to description