🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 17 Min Lesezeit
0

Granting autonomy to agents

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht
📺
dev.to

is an all-in-one embeddings database for semantic search, LLM orchestration and language model workflows.



txtai 8.0 was recently released and added the ability to run agents. Agents automatically create workflows to answer multi-faceted user requests.



Agents connect a series of tools with a reasoning engine (i.e. LLM). We're giving the agent a degree of latitude to go through it's own internal logic to address a user's request.



This is a huge paradigm shift. We're talking about handing over control to a program and hoping it makes the right decisions itself. Perhaps there are some parallels to sending your kid to college - we hope we've raised them the right way to be able to make smart decisions 😂.



This article will focus on examples that give agents autonomy to address requests. With this, we can start to the see the path ahead towards more and more automation of tasks.






Install dependencies



Install txtai and all dependencies.




CODE
pip install txtai[graph] autoawq









Let's get creative



In the first example, we'll define an agent that has access to the







  • 💥 Interesting indeed. The fundamental concept of search is we need to know what to look for. In this case, we didn't have that (i.e. we're bored 😀).



    Let's go to another example. This time we'll look at the . So while all of the examples have been using Llama 3.1 8B, other LLMs local and remote are supported (i.e. OpenAI, AWS Bedrock, Anthropic). To change it up, we'll use one of the


    Last Week in Medical AI: Top Research Papers/Models (September 1 - September 7, 2024)
    Outperforms industry giants like GPT-4, Gemini, Meditron-70B, Med-PaLM-1, and Med-PaLM-2 in the biomedical domain.



    Last Week in Medical AI: Top Research Papers/Models (October 5 - October 12, 2024)
    Introduces MMedAgent: Learning to Use Medical Tools with Multi-modal Agent.








    🚀 Once again, very interesting! This time we asked the agent to go read about a topic and report back. The agent did that and left us with links to explore further.






    Autonomous Embeddings



    For our last example, we're going to give an agent free rein to control an embeddings database.



    First, we will create an empty embeddings database and tell the agent how to add and search for data.




    CODE
    from txtai import Agent, Embeddings
    from txtai.pipeline import Textractor
    from txtai.workflow import Workflow, Task

    # Empty embeddings database
    embeddings = Embeddings(
    path="intfloat/e5-large",
    instructions={"query": "query: ", "data": "passage: "},
    content=True
    )

    # Textractor instance
    textractor = Textractor(sections=True, headers={"user-agent": "Mozilla/5.0"})

    def insert(elements):
    """
    Inserts elements into the embeddings database.

    Args:
    elements: list of strings to insert
    """

    def upsert(elements):
    embeddings.upsert(elements)
    return elements

    # Upsert workflow
    workflow = Workflow([Task(textractor), Task(upsert)])
    list(workflow(elements))
    return f"{elements} inserted successfully"

    agent = Agent(
    tools=[insert, embeddings.search, "websearch"],
    llm="Qwen/Qwen2.5-7B-Instruct-AWQ",
    max_iterations=10
    )






    Next, we'll define a workflow process. This creates the rules we want the agent to follow. Then we'll run two requests.




    CODE
    prompt = """
    Run the following process:
    1. Search your internal knowledge for {topic}
    2. If not found, find relevant urls and insert those as a list of strings ONLY. Then rerun the search for {topic}.
    3. Write a detailed report about {topic} with Markdown sections covering the major topics. Include a section with hyperlink references.
    """

    answer = agent(prompt.format(topic="txtai"))
    display(Markdown(answer))









    CODE
    ======== New task ========

    Run the following process:
    1. Search your internal knowledge for txtai
    2. If not found, find relevant urls and insert those as a list of strings ONLY. Then rerun the search for txtai.
    3. Write a detailed report about txtai with Markdown sections covering the major topics. Include a section with hyperlink references.

    === Agent thoughts:
    Thought: First, I will attempt to search for "txtai" in my internal knowledge base.
    >>> Calling tool: 'search' with arguments: {'query': 'txtai'}
    === Agent thoughts:
    Thought: Since the search for "txtai" did not yield any results, I will proceed to find relevant URLs and insert them as a list of strings.
    >>> Calling tool: 'web_search' with arguments: {'query': 'txtai'}
    === Agent thoughts:
    Thought: Now that I have found relevant URLs, I will insert them into the database as a list of strings.
    >>> Calling tool: 'insert' with arguments: {'elements': ['https://github.com/neuml/txtai', 'https://pypi.org/project/txtai/', 'https://neuml.github.io/txtai/', 'https://neuml.com/', 'https://medium.com/neuml/introducing-txtai-the-all-in-one-embeddings-database-c721f4ff91ad', 'https://neuml.github.io/txtai/embeddings/', 'https://neuml.github.io/txtai/examples/']}
    === Agent thoughts:
    Thought: Now that the relevant URLs have been inserted, I will rerun the search for "txtai".
    >>> Calling tool: 'search' with arguments: {'query': 'txtai'}
    === Agent thoughts:
    >>> Calling tool: 'final_answer' with arguments: {'answer': '# txtai Overview\n\ntxtai is an all-in-one open-source embeddings database designed for semantic search, LLM orchestration, and language model workflows. It combines vector indexes (both sparse and dense), graph networks, and relational databases to offer a comprehensive solution for various tasks.\n\n## Semantic Search\n\ntxtai supports semantic search, enabling users to find relevant information based on the meaning of the text rather than just keywords. This makes it suitable for applications such as recommendation systems, content retrieval, and more.\n\n## LLM Orchestration\n\ntxtai includes support for Large Language Models (LLMs) orchestration, which allows users to integrate and manage different LLMs within their workflows. This feature is particularly useful for tasks such as prompt chaining, summarization, transcription, translation, and more.\n\n## Embeddings Databases\n\ntxtai provides a unified interface for embedding, indexing, searching, and processing text and multimedia data. Users can create, index, and search embeddings using code snippets and examples provided in the documentation.\n\n## Hyperlink References\n\n- [txtai on GitHub](https://github.com/neuml/txtai)\n- [PyPI - txtai](https://pypi.org/project/txtai/)\n- [txtai Documentation](https://neuml.github.io/txtai/)\n- [txtai Examples](https://neuml.github.io/txtai/examples/)\n- [txtai Embeddings](https://neuml.github.io/txtai/embeddings/)'}






    [Output shown below]









    txtai Overview



    txtai is an all-in-one open-source embeddings database designed for semantic search, LLM orchestration, and language model workflows. It combines vector indexes (both sparse and dense), graph networks, and relational databases to offer a comprehensive solution for various tasks.






    Semantic Search



    txtai supports semantic search, enabling users to find relevant information based on the meaning of the text rather than just keywords. This makes it suitable for applications such as recommendation systems, content retrieval, and more.






    LLM Orchestration



    txtai includes support for Large Language Models (LLMs) orchestration, which allows users to integrate and manage different LLMs within their workflows. This feature is particularly useful for tasks such as prompt chaining, summarization, transcription, translation, and more.






    Embeddings Databases



    txtai provides a unified interface for embedding, indexing, searching, and processing text and multimedia data. Users can create, index, and search embeddings using code snippets and examples provided in the documentation.






    Hyperlink References













    🔥 Amazing.



    Remember, we started with an empty embeddings database. Then we gave basic instructions on how to use the available tools. From there, the agent autonomously operated and answered user requests. The agent also stored what it learned for future requests. This gave the agent it's own internal memory.



    Of course, we could program a process that implements this workflow. But think about the productivity gains we're opening up to so many more people. We're enabling people to control a process simply by pairing a set of tools with a description of what they want, in English.



    Exciting times!






    Wrapping up



    This article demonstrated ways to run agents in a more autonomous fashion. While the technology isn't perfect, we can certainly see the path ahead where new models will continue to do a better job. With the right agents and targeted tools, much can be done now though.



    Think about the differences between now and 6-12 months ago. Where will we be in another 6-12 months!

    Vollständiger Original-Bericht
    Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
    ↗ Original-Artikel auf dev.to lesen
    Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    3 Quellen
    GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
    1 Quelle
    Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
    1 Quelle
    Major AI platforms go down in unprecedented simultaneous outage
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten Granting autonomy to agents

    Thematisch verwandte Begriffe: Granting, autonomy, agents · 6 Treffer

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...