Comments (25)
My HANA DB plugin is a go! Closing this issue and adding it to my technical article. Thanks!! @liqul
Cheers! appreciate your help!
Please do share your experience and what you achieved...
from taskweaver.
@amitlals We have a plugin sql_pull_data
for querying sqlite3 which could be used as an entry point for making complicated plugins for other sql dbs. Could you specify your concrete requirements that are not covered in our sample plugin?
from taskweaver.
i have kind of a same task, all i need is a guideline to accomplish it like should i change planner add edit existing one? my task is for it to connect with postgres database and fetch data and on that data apply certain operations depending upon the query? how would i got about it?
from taskweaver.
My HANA DB plugin is a go! Closing this issue and adding it to my technical article. Thanks!! @liqul
Cheers! appreciate your help!
from taskweaver.
@amitlals We have a plugin
sql_pull_data
for querying sqlite3 which could be used as an entry point for making complicated plugins for other sql dbs. Could you specify your concrete requirements that are not covered in our sample plugin?
Yes, I'm building a HANA DB plugin for a quick demo, it seems it's not getting register and trying to hit sql_pull_data plugin again and again;
I can share my HANA Plugin code as well , if required.
Question - Do we really required to manually register new plugin; Though I'm creating this new plugin in same plugin dir only using @plugin syntax.
Any inputs are highly appreciated.
from taskweaver.
Some suggestions:
- first make sure the schema is correct and
enabled: true
in the yaml file. Please go through this doc if you haven't https://microsoft.github.io/TaskWeaver/docs/plugin/plugin_intro - if the existing plugins not useful, please delete them (or move them out of the plugin folder) to make it easier for the model to choose the right plugin
@AR-BABER I don't think you need to modify the planner or the code interpreter if you only need to pull data from a postgresql db. The plugins in the project are samples to follow if you want to make your own. But overall, it is quite flexible. You can view each plugin as a python function and it is free to implement any logic inside it.
Our current sql_pull_data
plugin is based on langchain which provides a set of tools to interact with various databases. Checkout the langchain documents (e.g., https://python.langchain.com/docs/use_cases/qa_structured/sql) to learn more about handling database related tasks.
from taskweaver.
Some suggestions:
- first make sure the schema is correct and
enabled: true
in the yaml file. Please go through this doc if you haven't https://microsoft.github.io/TaskWeaver/docs/plugin/plugin_intro- if the existing plugins not useful, please delete them (or move them out of the plugin folder) to make it easier for the model to choose the right plugin
@AR-BABER I don't think you need to modify the planner or the code interpreter if you only need to pull data from a postgresql db. The plugins in the project are samples to follow if you want to make your own. But overall, it is quite flexible. You can view each plugin as a python function and it is free to implement any logic inside it.
Our current
sql_pull_data
plugin is based on langchain which provides a set of tools to interact with various databases. Checkout the langchain documents (e.g., https://python.langchain.com/docs/use_cases/qa_structured/sql) to learn more about handling database related tasks.
Thanks for your inputs.
I removed the existing SQL plugin to see if my HANA DB plugin works...sounds like it's not able to detect this plugin? any idea?
from taskweaver.
i have the same issue, i followed the exact schema for sql pull data to form my own plugin to pull data from local postgress database, made the necessary changes, but this is happening. i think it fails to run the new plugin i dont know why, and after failure it start creating its own code.
from taskweaver.
YES!!! It appears we're facing a similar situation. It seems like we might be overlooking a step in registering a new plugin with TaskWeaver. It's as if it's hardcoded to work with standard plugins only. We need a solution, else I'll drop this project for customer demo.
Here is my situation , my plugins are in ........\TaskWeaver\project\plugins
from taskweaver.
@amitlals and @AR-BABER without reading your yaml files, I cannot make sure what has caused this issue. It is not hardcoded. Could you please attach your plugin schemas so that we can diagnose what happened?
from taskweaver.
@amitlals @AR-BABER we also find youtube videos demonstrating how to create custom plugins, please check if they could help
https://www.youtube.com/watch?v=o4zmEEKvdTY
from taskweaver.
@amitlals and @AR-BABER without reading your yaml files, I cannot make sure what has caused this issue. It is not hardcoded. Could you please attach your plugin schemas so that we can diagnose what happened?
Thanks for your response. I'm sharing my yaml file for your review.
name hana_pull_data_template.txt
Plugin file
hana_pull_data - template---pypy.txt
Thank you!
from taskweaver.
@amitlals @AR-BABER we also find youtube videos demonstrating how to create custom plugins, please check if they could help https://www.youtube.com/watch?v=o4zmEEKvdTY
Yes, I saw this link earlier before I drafted my plugin. Thanks!!
from taskweaver.
@amitlals and @AR-BABER without reading your yaml files, I cannot make sure what has caused this issue. It is not hardcoded. Could you please attach your plugin schemas so that we can diagnose what happened?
Thanks for your response. I'm sharing my yaml file for your review. name hana_pull_data_template.txt
Is this the complete schema file? I didn't see the parameters
and returns
, so this is invalid.
from taskweaver.
@amitlals and @AR-BABER without reading your yaml files, I cannot make sure what has caused this issue. It is not hardcoded. Could you please attach your plugin schemas so that we can diagnose what happened?
Thanks for your response. I'm sharing my yaml file for your review. name hana_pull_data_template.txt
Is this the complete schema file? I didn't see the
parameters
andreturns
, so this is invalid.
Sorry, Here is the complete file
hana_pull_data.ymal >>
name: hana_pull_data
enabled: true
required: false
description: Pull data from SAP HANA database using SQL queries from specific database table ZDEMO_SOI.
This plugin takes user requests when obtaining data from database is explicitly mentioned.
Otherwise, confirm with the user if they want to pull data from this database table or any other known table.
The data from this database can only used for technical analysis and creating forecasting models with diagrams.
parameters:
- name: query
type: str
required: true
description: >-
This is the query in natural language that the user wants to get data from database.
If any specific column or value is mentioned, make sure to include them in the query,
exactly in the right format or form.
returns:
- name: df
type: pandas.DataFrame
description: This is the dataframe containing the data from the database. - name: description
type: str
description: This is a string describing the data pulled from the database.
configurations:
hana_host: "xxx.xxx.xxx"
hana_port: "30215"
hana_user: "saphana"
hana_password: "xxxxx"
api_type: openai
api_base: https://api.openai.com
api_key:
deployment_name: test
from taskweaver.
Still cannot find your plugin?I'm using exactly the same configures as you.
from taskweaver.
Still cannot find your plugin?I'm using exactly the same configures as you.
![]()
I think still not available...see the detailed error coming up on this plugin name only.
from taskweaver.
The model already finds your plugin (see the generated code calling your plugin). Now, the problem should come from your implementation. You can see the error saying no module named 'hdbcli'. So, this is the root cause.
from taskweaver.
The model already finds your plugin (see the generated code calling your plugin). Now, the problem should come from your implementation. You can see the error saying no module named 'hdbcli'. So, this is the root cause.
Thanks!! I did installed this package. I'm getting strange error now --
Error: Cannot process your request due to Exception: 'ascii' codec can't encode character '\xd7' in position 25: ordinal not in range(128)
from taskweaver.
Is this a persistent issue?
from taskweaver.
Is this a persistent issue?
I've reconstructed the environment twice, yet this ascii issue keeps occurring regularly.
from taskweaver.
Have you succeeded in calling other plugins? This behavior seems inconsistent with your previous screenshots where the planner can successfully generate a plan. In your new screenshots, it seems the LLM calls are failing due to some encoding errors.
from taskweaver.
Yes! Other plugins worked without any issues. This new one is causing issues a lot. Now this new trouble of acsii needs to be reviewed...seems python version is having some compatibility issues.
from taskweaver.
I suggest you first implement a dummy plugin, for example, just returning a static string. Until the end to end path has been gone through, then add more logic to the implementation.
from taskweaver.
I was able to run the plugin. Thanks
from taskweaver.
Related Issues (20)
- debug error in latest version HOT 1
- Track or count the number of tokens being used HOT 2
- Handling Korean Font Issues in Matplotlib Visualizations with Taskweaver and Docker HOT 2
- Not able to leverage session event handler in my code HOT 4
- Request for Scatter plot default marker modify HOT 2
- Permission Errors and Plugin Execution Failures in Dockerized Environment
- I can't import packages which needs to be installed HOT 1
- Failed loading plugin, 'gbk' codec can't decode? HOT 2
- Not able run Taskweaver with LLM Qwen1.5-72B-Chat HOT 2
- Does Taskweaver works with llama3? HOT 2
- Gets stuck in repeating Board messages HOT 1
- Running Ollama with LLama3 and Phi3 HOT 3
- Having trouble getting packages installed for plugins to use HOT 2
- No memory using only code_interperter (without planner) HOT 1
- Couldn't able to change the port number. HOT 1
- After executing the sql_pull_data plugin, the final error displayed is “No such file or directory”. HOT 4
- Front-End Attachment Feature Missing and OpenAI API Key Connection Error in Application HOT 13
- Is it possible to use ollama embedding model while using OpenAI model for agents? HOT 2
- Can Telemetry tracking be used when using TaskWeaver as a library? HOT 6
- Multiple RAG as plugins HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taskweaver.