This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from llama_stack_client import Agent, AgentEventLogger, RAGDocument, LlamaStackClient | |
from llama_stack.apis.common.content_types import URL | |
client = LlamaStackClient(base_url="http://localhost:8321") | |
models = client.models.list() | |
# Select the first LLM and first embedding models | |
model_id = next(m for m in models if m.model_type == "llm").identifier | |
embedding_model_id = ( |