Main
#Agentic RAG Agentic Retrieval-Augmented Generation (RAG) is an advanced framework designed to handle complex information retrieval tasks using a network of intelligent agents. These agents collaborate to perform nuanced tasks such as synthesizing information from multiple documents, summarizing content, and comparing data points across various sources. Agentic RAG infuses autonomy and intelligence into traditional retrieval systems, enabling them to act as passive tools and proactive entities that understand context, evaluate data quality, and make informed decisions.
Blog
For a detailed explanation of agentic rag, check out blog post on Medium.
WARNING:root:USER_AGENT environment variable not set, consider setting it to identify your requests.
Setting queue=True in a Colab notebook requires sharing enabled. Setting `share=True` (you can turn this off by setting `share=False` in `launch()` explicitly). Colab notebook detected. This cell will run indefinitely so that you can see errors and logs. To turn off, set debug=False in launch(). Running on public URL: https://1300bf30884d92867e.gradio.live This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)
Debug output: {'agent': {'messages': [AIMessage(content='The PM Gati Shakti National Master Plan (NMP) is an ambitious initiative launched by the Government of India aimed at improving infrastructure development across the country. Launched by Prime Minister Narendra Modi, the plan seeks to integrate the planning and coordination of various infrastructure projects across different sectors and ministries.\n\nThe core objective of the Gati Shakti NMP is to enhance multi-modal connectivity and reduce logistics costs by bringing together rail, road, air, and waterways projects under a single, unified framework. This holistic approach is intended to boost economic growth, create jobs, and promote regional connectivity.\n\nThe plan utilizes digital technology to map and synchronize projects, ensuring that all related departments and stakeholders are aligned, which helps in eliminating bottlenecks, improving project execution speed, and enhancing overall efficiency. The Gati Shakti NMP is seen as a transformative step towards making India a global manufacturing hub and improving the ease of doing business.', response_metadata={'finish_reason': 'stop'}, id='run-8bc90fb4-007b-4384-9320-35c3621eb9b8-0')]}}
Extracted content: The PM Gati Shakti National Master Plan (NMP) is an ambitious initiative launched by the Government of India aimed at improving infrastructure development across the country. Launched by Prime Minister Narendra Modi, the plan seeks to integrate the planning and coordination of various infrastructure projects across different sectors and ministries.
The core objective of the Gati Shakti NMP is to enhance multi-modal connectivity and reduce logistics costs by bringing together rail, road, air, and waterways projects under a single, unified framework. This holistic approach is intended to boost economic growth, create jobs, and promote regional connectivity.
The plan utilizes digital technology to map and synchronize projects, ensuring that all related departments and stakeholders are aligned, which helps in eliminating bottlenecks, improving project execution speed, and enhancing overall efficiency. The Gati Shakti NMP is seen as a transformative step towards making India a global manufacturing hub and improving the ease of doing business.
Debug output: {'agent': {'messages': [AIMessage(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_AE3GmC26FUSF63Nb4NhJCSMb', 'function': {'arguments': '{"query": "steps for export import procedure"}', 'name': 'retrieve_blog_posts'}, 'type': 'function'}, {'index': 1, 'id': 'call_B56lmGd2JIHRDCdxf9Um9Ml7', 'function': {'arguments': '{"query": "customs import export procedure"}', 'name': 'retrieve_blog_posts'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls'}, id='run-2c42f15d-390b-4509-8b23-fbc6d1fb203d-0', tool_calls=[{'name': 'retrieve_blog_posts', 'args': {'query': 'steps for export import procedure'}, 'id': 'call_AE3GmC26FUSF63Nb4NhJCSMb'}, {'name': 'retrieve_blog_posts', 'args': {'query': 'customs import export procedure'}, 'id': 'call_B56lmGd2JIHRDCdxf9Um9Ml7'}])]}}
Extracted content:
Debug output: {'retrieve': {'messages': [ToolMessage(content='<</Title(Microsoft Word - CUSTOMS IMPORT EXPORT PROCEDURES _final_) /Author(Admin) /Creator(��\x00M\x00i\x00c\x00r\x00o\x00s\x00o\x00f\x00t\x00�\x00 \x00W\x00o\x00r\x00d\x00 \x00f\x00o\x00r\x00 \x00M\x00i\x00c\x00r\x00o\x00s\x00o\x00f\x00t\x00 \x003\x006\x005)\n\n<dc:title><rdf:Alt><rdf:li xml:lang="x-default">Microsoft Word - CUSTOMS IMPORT EXPORT PROCEDURES _final_</rdf:li></rdf:Alt></dc:title><dc:creator><rdf:Seq><rdf:li>Admin</rdf:li></rdf:Seq></dc:creator></rdf:Description>\n\nendobj\r\n118 0 obj\r\n<</Subtype/Link/Rect[ 354.97 540.84 462.41 561.54] /BS<</W 0>>/F 4/A<</Type/Action/S/URI/URI(https://www.indiafilings.com/learn/zero-rated-supply-under-gst/) >>/StructParent 32>>\r\nendobj\r\n119 0 obj\n\nEP\x12t1Ԗ�m�l1�PI�����ٲW$��`�B[C��\x1e�2�R�ν7ȗ���C�3�a���\x1fZ��U\x7f��\x10�5y<:', name='retrieve_blog_posts', id='8714e8e7-ed08-4452-8d1f-621f4f25af81', tool_call_id='call_AE3GmC26FUSF63Nb4NhJCSMb'), ToolMessage(content='<</Title(Microsoft Word - CUSTOMS IMPORT EXPORT PROCEDURES _final_) /Author(Admin) /Creator(��\x00M\x00i\x00c\x00r\x00o\x00s\x00o\x00f\x00t\x00�\x00 \x00W\x00o\x00r\x00d\x00 \x00f\x00o\x00r\x00 \x00M\x00i\x00c\x00r\x00o\x00s\x00o\x00f\x00t\x00 \x003\x006\x005)\n\n<dc:title><rdf:Alt><rdf:li xml:lang="x-default">Microsoft Word - CUSTOMS IMPORT EXPORT PROCEDURES _final_</rdf:li></rdf:Alt></dc:title><dc:creator><rdf:Seq><rdf:li>Admin</rdf:li></rdf:Seq></dc:creator></rdf:Description>\n\nCdTa�x\t&��A\x0eb�1����\x0errMM�q�\x7f1Q2cҩ0de�˂���>�\x1b\x12�\x19?�\x0fa�L���Q\n\nt\'�P��h\x13��u\u05eex����|^���(I�$�%\x1f�Q%�.\x19U�B��jY��\x16�?\x19\x19�\x0e�$��W�BԸ���\x1ck��\x19��l!K�\x05�!z�\x1dq\x12�\x1d�v��]�P"\x11ROC��\x14', name='retrieve_blog_posts', id='8a56ed96-cd2a-4846-a60d-258e6430aa79', tool_call_id='call_B56lmGd2JIHRDCdxf9Um9Ml7')]}}
Debug output: {'generate': {'messages': ["I don't know."]}}
Debug output: {'agent': {'messages': [AIMessage(content='The term "RCMC" stands for Registration Cum Membership Certificate. It is a certificate that is provided by the Export Promotion Councils (EPCs) or commodity boards in India. An RCMC is issued to exporters dealing in products registered with these agencies. Holding an RCMC is mandatory for exporters to avail benefits under the Foreign Trade Policy like duty drawback, concessions, and other support.\n\nHere are some key points about RCMC:\n\n1. **Purpose**: The RCMC is used to certify that an exporter is registered with the respective EPC and is eligible for various benefits under the export-import policy.\n\n2. **Validity**: Typically, an RCMC is valid for five years.\n\n3. **Application**: Exporters must apply for an RCMC with the relevant EPC that pertains to their main line of business. If the exporter wishes to export items that are not covered by any EPC, they can obtain an RCMC from the Federation of Indian Export Organisations (FIEO).\n\n4. **Benefits**: With an RCMC, exporters can participate in international trade fairs, get sponsorship for trade delegations, and access market development assistance among other benefits.\n\n5. **Renewal and Cancellation**: The certificate needs to be renewed upon expiry. It can also be cancelled or suspended if the holder fails to abide by the regulatory requirements.\n\nIf you need detailed information or specific guidance related to obtaining an RCMC, please let me know!', response_metadata={'finish_reason': 'stop'}, id='run-4fa5e544-510a-4140-984c-89dedd855e71-0')]}}
Extracted content: The term "RCMC" stands for Registration Cum Membership Certificate. It is a certificate that is provided by the Export Promotion Councils (EPCs) or commodity boards in India. An RCMC is issued to exporters dealing in products registered with these agencies. Holding an RCMC is mandatory for exporters to avail benefits under the Foreign Trade Policy like duty drawback, concessions, and other support.
Here are some key points about RCMC:
1. **Purpose**: The RCMC is used to certify that an exporter is registered with the respective EPC and is eligible for various benefits under the export-import policy.
2. **Validity**: Typically, an RCMC is valid for five years.
3. **Application**: Exporters must apply for an RCMC with the relevant EPC that pertains to their main line of business. If the exporter wishes to export items that are not covered by any EPC, they can obtain an RCMC from the Federation of Indian Export Organisations (FIEO).
4. **Benefits**: With an RCMC, exporters can participate in international trade fairs, get sponsorship for trade delegations, and access market development assistance among other benefits.
5. **Renewal and Cancellation**: The certificate needs to be renewed upon expiry. It can also be cancelled or suspended if the holder fails to abide by the regulatory requirements.
If you need detailed information or specific guidance related to obtaining an RCMC, please let me know!
#some quetions for testing explain me in short what is PM Gati Shakti National Master Plan (NMP)?
what is Zero Rating of Exports?
what is Export Inspection Council of India?
please give us some Details of some of the major initiatives /schemes please ?