[Autogen Studio UI] Agent not deterministic when using skill #4048
Unanswered
SrijitaRoy913
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm using Autogen for a use-case of fetching relevant information from VectorDB. I've created an agent vectordb_assistant that uses skill fetch_relevant_ddl. When this agent is used in a workflow, it does not always invoke the skill correctly.
`from langchain_postgres.vectorstores import PGVector
import datetime
from langchain_community.vectorstores.pgvector import DistanceStrategy
from langchain_community.embeddings import HuggingFaceEmbeddings
from pprint import pprint
doc: langchain_core.documents.base.Document
from langchain_core.documents.base import Document as LangchainDoc
from dataclasses import dataclass
def fetch_relevant_ddl(question: str):
@DataClass
class Document:
page_content: str
metadata: dict
#Example usage:
from skills import fetch_relevant_ddl
question="How many routes are there?"
results=fetch_relevant_ddl(question)
print(results)`
I've added example usage for it to understand, but it doesn't always invoke the skill correctly on first try.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions