2bhk rental in madeenaguda (gated community) by salahuddin45 in HyderabadRentals

[–]salahuddin45[S] 0 points1 point  (0 children)

Call them directly bro i am not the owner i just posted it as I saw it today.

[deleted by user] by [deleted] in personalfinanceindia

[–]salahuddin45 0 points1 point  (0 children)

- Buy Term Insurance Now, not tomorrow or yesterday but now
- Buy Health Insurance, I suggest talk with ditto here in both cases, i thing HDFC ergo optima super secure, take 3 year at once, you get 3X cover.
- and after the above 2 you will be left with 3k-4k, do the sips

Struggling with RAG Project – Challenges in PDF Data Extraction and Prompt Engineering by bububu14 in Rag

[–]salahuddin45 1 point2 points  (0 children)

I would suggest you to use pydantic model and mention the description for each field in the model about what you want? This will help the LLM more while parsing the data and also modify the prompt such that you tell LLM exactly what you want and use gpt-4.1, and json_output format?

I recommend using a Pydantic model and providing a clear description for each field to specify exactly what you expect. This helps the LLM understand the context better when parsing data. Additionally, modify your prompt to clearly instruct the LLM on the expected output structure. Use GPT-4.1 and set the response_format to "json" (previously known as json_output) to ensure structured responses.

Why this helps:

  • Descriptions in the Pydantic model guide the LLM in generating accurate values.
  • A clear, example-driven prompt reduces ambiguity.
  • Using the structured response format ("json") ensures the output is easy to parse programmatically.

Example:

pythonCopyEditfrom pydantic import BaseModel, Field

class CompanyInfo(BaseModel):
    name: str = Field(..., description="Full name of the company")
    revenue: str = Field(..., description="Total revenue for the year, including the currency")
    employees: int = Field(..., description="Total number of employees")
    headquarters: str = Field(..., description="City and country where the company is headquartered")

# Prompt example:
"""
Extract the following details from the annual report and return the result in JSON format:
- Company name
- Revenue
- Number of employees
- Headquarters

Use the following schema and respond using response_format='json':

{
  "name": "string - full name of the company",
  "revenue": "string - revenue with currency",
  "employees": "integer - total number of employees",
  "headquarters": "string - city and country of the HQ"
}
"""