Op

Open-Source C# Library to Extract Structured Data from OpenAI API

Hacker News

Open-Source C# Library to Extract Structured Data from OpenAI API

Historically, we've done a lot of OCR work with mixed results in the .NET ecosystem. There were always a lot of tradeoffs. We were super excited when the GPT4V was announced, and quickly saw a lot of potential for data extraction from images. There are a few pitfalls though. Primarily, GPT4V does not currently support tooling (i.e. function calling) and you cannot specify that you expect a JSON result in the API call. ...set aside the fact that good OpenAI libraries for .NET are hard to come by... After looking over the way function calling works in completions, we realized we could do the same basic thing against GPT4V. Essentially, we annotate a simple class with a few attribtutes to instruct the API in what we want to accomplish. Then, we convert the object into a JSON schema specification and pass that in the prompt. This has worked pretty well for us, and we've used it in a number of client projects. While I am sure that OpenAI will eventually support all of this directly through the API, I hope that some of our .NET brethren find it useful in the meantime! The library is distributed via nuget, and the GitHub repo includes the library code as well as a simple demo app to check out the functionality locally.

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: openai, code, open · Missing: mac, agents, macos
81%81% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: excited, ide, io · Missing: https docs, just released, exist
67%67% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
62%62% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRFits verified-revenue profile · Strong signals: way · Missing: mobile apps, ios, personal
51%51% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
26%26% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
18%18% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Op
Open-source structured data profiling library68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Open-source structured data profiling library

Hacker News7
ClearDoc
ClearDoc62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI to Extract Structured Data from Documents

Indie Hackers1$99/moai
DataSieve 2.0
DataSieve 2.069%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Extract structured data from text, files and archives.

Product Hunt+119Productivity
Op
Open-Source Library OpenAI/Azure Fallback Tool47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Open-Source Library OpenAI/Azure Fallback Tool

Hacker News4
Ch
ChatGPT-helper – Simple library to extract structured data from ChatGPT47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ChatGPT-helper – Simple library to extract structured data from ChatGPT

Hacker News1
st
structured-ripgrep – Ripgrep over structured data62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

structured-ripgrep – Ripgrep over structured data

Hacker News15
Kn
Knowstory – API to turn unstructured text into structured data66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Knowstory – API to turn unstructured text into structured data

Hacker News2
An
An open-source API built on top of OpenAI Embeddings and Pinecone79%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

An open-source API built on top of OpenAI Embeddings and Pinecone

Hacker News5
Gr
Graphql-scraper – Extract structured data from the web using GraphQL75%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Graphql-scraper – Extract structured data from the web using GraphQL

Hacker News1
Layrda
Layrda49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Make any API return clean, structured data.

Indie Hackerscommitment-full-time