Zipstack / unstract

No-code LLM Platform to launch APIs and ETL Pipelines to structure unstructured documents
https://unstract.com
GNU Affero General Public License v3.0
882 stars 54 forks source link

FIX: JSON Enforce Type #293

Closed tahierhussain closed 3 months ago

tahierhussain commented 4 months ago

What

The JSON enforce type in prompt studio was inconsistent and wasn't returning the intended results.

-

Why

The prompt was not built to handle all the corner cases.

-

How

Improved the prompt to generate the result in JSON format so that it is more consistent.

-

Can this PR break any existing features. If yes please list of possible items. If no please exaplin why. (PS: Admins do not merge the PR without this section filled)

This PR will not break any existing features. The changes are solely within the scope of enforce JSON type, and the possibility of them affecting existing features is minimal.

-

Database Migrations

NA

Env Config

NA

Relevant Docs

NA

Related Issues or PRs

NA

Dependencies Versions

NA

Notes on Testing

NA

Screenshots

image

Checklist

I have read and understood the [Contribution Guidelines]().

harini-venkataraman commented 3 months ago

Added minor comments. Otherwise, LGTM

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud