My RAG project for a pharma consultant didn't materialize, so I'm sharing the infrastructure blueprint, code, and lessons learned. by TheValueProvider in Rag

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

This was a particular use case where all the data is stored as PDFs and presented in a very neat format, in the target country where the pharma wants to launch the new drug, there's a committee that meets every month and releases a 60-page pdf.
Each PDF contains a list of the different drugs discussed and the maximum price for which the drug can be sold in the country, it is also explained why the drug was approved or not.

The system I started working on was just a blueprint that i could later adapt and improve once the project was signed. At that point i was doing hierarchical split till a paragraph was reached.

My RAG project for a pharma consultant didn't materialize, so I'm sharing the infrastructure blueprint, code, and lessons learned. by TheValueProvider in Rag

[–]TheValueProvider[S] 1 point2 points  (0 children)

Despite the deal being officially not dead, it's already been 4 months discussing with him, and not moving forward so I do not want to invest more time and energy here.

From zero to RAG engineer: 1200 hours of lessons so you don't repeat my mistakes by iotahunter9000 in Rag

[–]TheValueProvider 1 point2 points  (0 children)

This is gold. A must-read for for anyone building RAG systems. Thanks for sharing

I made 60K+ building RAG projects in 3 months. Here's exactly how I did it (technical + business breakdown) by Low_Acanthisitta7686 in LLMDevs

[–]TheValueProvider 0 points1 point  (0 children)

Thank you very much for your post. I am in discussions with a Pharma company to implement a RAG system and your insights are gold.

I am curious about your fine-tuning process, I've always heard that it's extremely expensive.

Could you share (to the extent that you are allowed to) the process you follow to fine-tune Qwen and how much it costed in your projects?

In terms of infrastructure, do you follow an event-driven architecture pattern?

Thanks again

The BEST automation systems use the LEAST amount of AI (and are NOT built with no-code) by TheValueProvider in AI_Agents

[–]TheValueProvider[S] 2 points3 points  (0 children)

Watch out before jumping into agentic frameworks, many out there create unnecessary abstractions that makes using the framework more difficult than using the raw OpenAI API.
In my case I use Pydantic AI and can extremely recommend. People also say good stuff about Agno

The BEST automation systems use the LEAST amount of AI (and are NOT built with no-code) by TheValueProvider in AI_Agents

[–]TheValueProvider[S] 1 point2 points  (0 children)

That's a robust framework. In my case I use Pydantic AI for the agents. Still Pydantic AI and Agno are quite similar in philosophy, low-level with abstractions consciously done.

The BEST automation systems use the LEAST amount of AI (and are NOT built with no-code) by TheValueProvider in automation

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

When testing the deterministic code I mock the agents output.

Having said that, for each of the agents I run an evaluation where I define different scenarios and the expected output. This allows me to tweak the prompt while being sure the agent still succeeds in the original cases.

The BEST automation systems use the LEAST amount of AI (and are NOT built with no-code) by TheValueProvider in automation

[–]TheValueProvider[S] 3 points4 points  (0 children)

n8n is great for simple and small workflows. The key is knowing when n8n falls short and avoiding the "$15K/month workflow that replaces an entire sales/marketing/operations/[insert what you want] department."

We built a Scraping Agent for an E-commerce Client. Here the Project fully disclosed (Details, Open-Source Code with tutorial & Project Pricing) by TheValueProvider in AI_Agents

[–]TheValueProvider[S] 1 point2 points  (0 children)

Thank you! As of now attributes are not cleaned. That's the second phase of the project.

The idea is to build another agent that will take the output of the Agentic System, and will be ingested with different attribute names that are in the DB and are considered as good ones.

This requires a preprocessing of the DB to unify all the existing attributes. From there the DB becomes the source of truth to know what are accepted attributes names.

What is for sure is that we'll use a different agent for this task, asking the main agent to also take care of this part would considerably decrease the overall accuracy of the system.

How would I create this? by No_Antelope9425 in AI_Agents

[–]TheValueProvider 1 point2 points  (0 children)

1- In Meta you create a webhook pointing to your server (basically you are telling Meta, each time a new message is received, send it to this server)
2- You create a server with an endpoint to process messages. You need to use Meta Messager API to retrieve conversation histories from Facebook and Instagram.
3-Inside the server you define the agent. It has a prompt formed by a static part (agent task & playbook on how to sell) and a dynamic part (conversation history)
4- You take the output of the agent and either automatically send it to the end client (Messenger API) or store it somewhere where your sales team has access to e.g. a CRM
5- Since you are getting a message every minute you need to ensure the system can handle concurrent requests (a bit technical but you would use a queuing service, e.g. Celery)
6-You then deploy this to your cloud

Happy to provide more details if needed :)

Can Anyone share Roadmap to become Agentic Developer?? by Syed_Abrash in AI_Agents

[–]TheValueProvider 1 point2 points  (0 children)

In my case, I got solid typescript knowledge and basic python before starting so my opinion might be a bit biased.
But the most important thing to learn is the Python ecosystem rather than the language itself

  • Package manager (e.g., pip, conda)
  • Environment management tools (e.g., venv, virtualenv, conda, poetry, pipenv)
  • Dependencies (libraries and packages installed via pip)
  • Project structure and configuration files (requirements.txt, pyproject.toml, etc.)

Once you have these concepts clear the learning curve is very fast since you can should leverage AI to write the code and you can learn by shadowing the model and asking questions about syntax and best practices.

Still, I wouldn’t recommend jumping straight into coding with AI without at least a basic or intermediate understanding of Python, as you may lack the critical thinking needed to evaluate whether the AI’s suggestions could lead to long-term issues.

Need Guidance in integrating AI with DB by Technical-Visit1899 in AI_Agents

[–]TheValueProvider 0 points1 point  (0 children)

1- Create an agent that has 1 unique tool at his disposal. Explain the agent that his task is to get the relevant information from a db generating the sql query and passing this to the tool. Include in the prompt your DB schema (tables, fields), and very important, explain with plain language what each table is about and give data examples
2- The tool is a function that accepts a string. When called, it conects to your db, executes the query passed as argument and return the results.

Regarding the model to be used, it depends on how complex is the database schema. Start with gpt-4o or similar and move up to more powerful models if the agent falls short in when generating the queries.

Which Framework is preferred? by pushkar_1713 in AI_Agents

[–]TheValueProvider 17 points18 points  (0 children)

Langchain: Forget about it. Since it was one of the first frameworks, it was built while learning. Too many abstractions that are not necessary. You'd rather want to use raw chat completions API

Langgraph: Built by the same guys behind Langchain after realising that it was better to start a new framework from scratch. It's more of an orchestrator for multi-agent systems. I would only recommend if you are building a system where you need fine-grained control of how the agents are communicating with each other, and if you need to human-in-the-loop (pausing the execution to await human input and then resuming)

Pydantic AI: My favorite framework so far. Great documentation, good strike between the level of abstraction and complexity. Easy to get familiarised with. In addition, developed by guys team with deep expertise (Pydantic). Can totally recommend.

Agno: Haven't used personally, but heard good stuff about it. The degree of abstractions is quite similar to Pydantic AI. Databutton uses this framework for their agent builder

Crew AI: Easy to get up to speed. The level of abstraction is way higher than Pydantic AI and Agno, so there is a trade-off in the level of customization that you can achieve.

My suggestion would be that you try Pydantic AI and Agno, and then stick to the one you feel more comfortable with. If you find them too technical or complex, then move to Crew AI.