-
Notifications
You must be signed in to change notification settings - Fork 559
Description
ERROR - Error while running the agent: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
Lavague is not working in python script but it is working in jupyter notebook for the same code.
while running the code as a script it show the resource not found error.
Expected behavior
the script must be executed properly.
versions details:
Name: lavague
Version: 1.1.19
Summary: automation code generation from text instructions
Name: llama-index-embeddings-langchain
Version: 0.1.2
Summary: llama-index embeddings langchain integration
code:
embeddings1 = HuggingFaceEmbeddings(model_name = "sentence-transformers/all-MiniLM-L6-v2",
model_kwargs = {'device': 'cpu'},
encode_kwargs = {'normalize_embeddings': False})
llm = AzureOpenAI(
api_key=key,
model=model_name,
azure_endpoint=endpoint,
deployment_name=deployment)
mm_llm = AzureOpenAIMultiModal(
api_key=key,
model=model_name,
azure_endpoint=endpoint,
deployment_name=deployment
)
selenium_driver = SeleniumDriver()
world_model = WorldModel(mm_llm=mm_llm)
action_engine = ActionEngine(llm=llm, embedding=embeddings1, driver=selenium_driver)
agent = WebAgent(world_model, action_engine)
agent.get("file:///D:/IVA/Govind/abcc.html")
data = """
- Name: john carter
- age: 32
- phone: 555-113-4567
- skill: advance
- country: India
"""
instruction = "Use the necessary data provided to fill in the form."
agent.run(instruction, user_data=data)