I am Using gpt-4 model and provide my database connection and provide table name also but some time model use different table name which is not exist in my database why and how we restrict to only use our database
1 Like
Welcome to the OpenAI dev community @dev81
Here are some recommendations from my end:
- Ensure that your DB schema is included within the system message and is actually being sent to the API.
- Set the
temperature = 0
for predictable and accurate outputs. - Employ a recent model, such as
gpt-4o
.
1 Like