Adding a request to OpenAI in a .NET console application
I developed a .NET8 console application that crawls documentation (for example, an API provider) to find pages containing content relevant to my query. The algorithm works as follows:
Initialization
The queue starts with the main URL and the depth of the crawl.
Processed URLs are tracked and responses are collected.
Crawling Pages
A URL is extracted from the queue, and the page is loaded (or from cache).
HTML is cleaned and text is extracted.
Request to OpenAI
A prompt is formed: the original prompt + the content of the page.
A request is sent to OpenAI with a JSON schema.
The response is cached and parsed into a structured form.
Collecting Responses
Each response is attached to the source URL.
Results are logged and accumulated.
Following Links
Internal links are searched for and added to the queue (if depth allows).
Completion
All responses are saved to the file
api_search_result.txtin the "Documents" folder.The file is automatically opened after completion.
What needs to be done:
Before saving all responses, another request to OpenAI needs to be added, which filters the results (responses) that do not match my filtering prompt (I will provide it later). The request should also be made using structured output, that is, with a JSON schema. (The first request, which is already implemented in this algorithm, also uses this approach; if you haven't worked with SO, you will easily understand it by example.)
In your response, please indicate:
Do you have experience using structured output in the OpenAI API?
What is your comfortable hourly rate?
(I ask for the future, as new features are planned to be added to this project)
-
2344 16 2 1 Good day. I am ready to start working today. I have experience in performing similar tasks. Let's discuss the details in a private chat.
-
252 Good day. I am ready to complete your task. I haven't used structured output but it's not a problem to figure it out. My hourly rate is $14. Feel free to contact me.
-
631 5 0 Good afternoon
I am ready to complete your task for 700 hryvnias, hoping for cooperation.
Current freelance projects in the category AI & Machine Learning
Development of a sales AI agent for an online store on PrestaShop 1.6 with KeyCRM integrationWe are looking for a developer or a small team to create an AI sales consultant for an online store of educational literature. The site runs on PrestaShop 1.6, CRM — KeyCRM. We need not an ordinary chatbot with ready-made answers, but an AI seller that will help the customer… AI & Machine Learning, Online Stores & E-commerce ∙ 1 hour 1 minute back ∙ 17 proposals |
Consultation on creating an AI agent to accelerate the resolution of routine tasks - 60 minutes
16 USD
Consultation on creating an AI agent to speed up the resolution of routine tasks. I have created an agent for automatic contract filling - it's simple, but there are more complex tasks that I would also like to delegate to GPT agents, and there are several questions I would like… AI & Machine Learning ∙ 21 hours 1 minute back ∙ 14 proposals |
Automatic posting of stories on InstagramGood day, I need help with setting up automatic posting of stories on Instagram. There are already stories in the Instagram archive that have been published, and they need to be reposted. AI & Machine Learning, Bot Development ∙ 2 days 6 hours back ∙ 25 proposals |
Creation of an AI assistant for communication with ClientsIt is necessary to create an AI assistant for communication with Clients. The chat window will be located on our website, followed by communication with the bot. Questions about products, settings, capabilities, etc. In cases where the information is unknown or the request can… AI & Machine Learning, AI Consulting ∙ 3 days 1 hour back ∙ 35 proposals |
I am looking for a video editor who creates AI videos.Creation of AI videos for dentists and other experts Objective: To create short vertical videos for Instagram Reels, Facebook Reels, TikTok, and YouTube Shorts that explain complex topics in simple language and hold the viewer's attention through a combination of AI animation… AI & Machine Learning ∙ 3 days 9 hours back ∙ 2 proposals |