InvestRock: Your AI-Powered Mutual Fund Investment Assistant
Sudarkodi Muthiah
Tech Project Leader | VoIP & SIP Specialist | Cloud Enthusiast | AWS Certified SAA | Cloud Security & AI Trailblazer | AI Hackathon winner
Introduction
Investing in mutual funds can be daunting, especially for individual investors overwhelmed by the vast amount of available data and the complexity of making informed decisions. InvestRock is an AI Assistant designed to simplify mutual fund investments using advanced Retrieval-Augmented Generation (RAG) technology. InvestRock offers personalized solutions to help investors select the most suitable mutual funds for their portfolios, enhancing decision-making and overall investment experience.
Problem Statement
Individual investors often face several challenges:
?Information Overload: The sheer volume of data on mutual funds makes it difficult to find relevant information.
?Complex Decision-Making: Selecting the right investment involves analyzing multiple fund characteristics, which can be overwhelming.
?Educational Gap: Many investors lack the financial literacy to understand investment strategies and make informed decisions.
?Portfolio Diversification: Building a well-diversified portfolio is often misunderstood and challenging.
?Personalization Need: Generic financial advice fails to meet individual investors' unique financial goals and risk preferences.
Solution
InvestRock addresses these challenges through a comprehensive AI-driven approach:
??Utilizing RAG Technology: InvestRock uses RAG technology to effectively filter and deliver the most relevant mutual fund information.
??Personalized Recommendations: InvestRock analyzes user inputs to recommend mutual funds that align with the investor’s specific financial goals and risk tolerance.
??Educational Support: InvestRock provides contextual educational content about mutual funds and investment strategies, enhancing financial literacy.
??Customized Investment Strategies: The AI assistant generates personalized investment strategies based on individual risk profiles and objectives.
??Portfolio Diversification Assistance: InvestRock helps users construct diversified portfolios tailored to manage risk and enhance returns.
Technology Used
InvestRock leverages cutting-edge AI technologies to deliver its services:
?? You will incur costs associated with the AWS resources and services used. It's important to review the pricing information for Amazon Bedrock and any other AWS services utilized.
Architecture
InvestRock's architecture integrates several components to function seamlessly:
Steps
??Creating Data Source
Created an Amazon S3 bucket, our data source, and uploaded the mutual funds' pdf file into that bucket.
??Activating Model Access
For this use case, I have activated the models Anthropic> Claude 3 sonnet and Cohere Embed model in the Amazon Bedrock console.
Refer to this official document to enable access to specific models. docs.aws.amazon.com/bedrock/latest/userguid..
??Creating a Knowledge Base
In the AWS console, Go to Amazon Bedrock console.
??In the Knowledge base details section, provide a name or description for your knowledge base or use default.
??In the IAM permissions section, choose Create and use a new service role, and Service role name will have an IAM role that starts with AmazonBedrockExecutionRoleForKnowledgeBase.
??Select Next.
??Provide URI or browse S3 to navigate to the Amazon S3 folder you created earlier.
??Under Advanced Settings, select Use default KMS key and select Default chunking for Chunking strategy.
Default chunking—By default, Amazon Bedrock automatically splits your source data into chunks, each containing a maximum of 300 tokens. If a document contains less than 300 tokens, it is not split further.
??Select Next.
Quick create a new vector store – Amazon Bedrock creates an Amazon OpenSearch Serverless vector search collection, automatically configures the settings for embedding your data sources, and manages the collection for you.
领英推荐
??Creating an Amazon Bedrock agent
??For the Agent name section, enter the agent name and an optional description.
??Choose Create and use a new service role for the Agent Resource role section. This lets Amazon Bedrock create the service role and set up the required permissions on your behalf.
??For Select model, choose Anthropic model provider and then choose Claude 3 Sonnet model in the dropdown menu.
??In Instructions for the Agent, enter details to tell the agent what it should do and how it should interact with users.
??For the rest, leave it as default.
??Choose the knowledge base you created in the previous section from the dropdown menu.
??Enter instructions describing how the agent should use the knowledge base in the Knowledge base instructions for the agent.
??Configuring the Project environment
Prerequisites
python -m venv <environment-name>
.\<environment-name>\Scripts\activate.ps1
git clone https://github.com/Sudarkodi-Muthiah-repo/amazon-bedrock-agent-test-ui
pip install -r requirements
?? BEDROCK_AGENT_ID - The ID of the agent
?? BEDROCK_AGENT_ALIAS_ID - The ID of the agent alias. The default TSTALIASID will be used if it is not set.
?? The AWS environment variables provide the credentials to your account. The principal must have the necessary permissions to invoke the Bedrock agent.
streamlit run app.py --server.port=8080 --server.address=localhost
We successfully created the InvestRock AI Assistant.
Clean-up the AWS resources:
Follow the steps below to delete your Agent.
Follow the steps below to delete your Knowledge base.
Real-Time Applications
InvestRock can be applied in various real-time scenarios:
Conclusion
InvestRock revolutionizes the way individual investors approach mutual fund investments. Leveraging advanced AI technologies provides personalized, accurate, and educational support, making it easier for investors to navigate the complexities of mutual funds and achieve their financial goals.
Actively seeking a full-time opportunity | Experienced Software Engineer | AWS Certified Cloud Practitioner | Data Analyst | Data Science | Business Intelligence | AI/ML
2 个月Excellent work Sudarkodi