Starting and managing a business in Morocco is challenging for entrepreneurs and aspiring business owners due to a lack of access to reliable information. Many struggle with the complexities of setting up a company, understanding tax requirements, and grasping Morocco-specific business terminology. Business failures in Morcco skyrocketed in 2022, rising by 17.4% compared to 2021.
Mokawil .AI is the first-of-its-kind GenAI-powered chatbot designed to assist entrepreneurs and aspiring entrepreneurs in starting their businesses in Morocco. It has access to specific information covering everything from creating a company, running it, understanding when and how much to pay taxes, business terminology in Morocco, and much more.
We utilized the Retrieval-Augmented Generation (RAG) technique to enhance the accuracy and reliability of our generative AI models. RAG optimizes the output of a large language model by referencing an authoritative knowledge base outside of its training data sources before generating a response.
The main tool we employed for making the RAG is Langchain π¦οΈβοΈ for performence and simplicity .
-
Data Collection:
- Gathered detailed blogs on entrepreneurship,taxes,and everything related to starting a company from BHAdviser.
-
Embedding:
- Utilized a model from Hugging Face to transform data into vector representation.
-
Vector Storage:
- Stored embeddings in the vector database FAISS.
-
User Interaction:
- Users input prompts through the Streamlit interface.
-
Prompt Embedding:
- Embedded user prompts using the same model used for data embedding.
-
Similarity Search:
- Compared embedded user prompts with vector database data to find the best match.
-
LLM Selection:
- Utilized the Mistral-7B-OpenOrca language model, incorporating Q4 quantization.
-
Answers Generation:
- Fed results of similarity search to the LLM to generate answers based on user-specific needs and available information the answer are also saved in chat memroy to make use of them later .
-
User Interface (UI):
- Presented answers in the Streamlit UI for user consumption.
Global Architechtures
To run the Mokawil .AI application, follow these steps:
-
Open Google Colab:
- Access Google Colab using your preferred web browser.
-
Install Requirements:
- Inside the Colab environment, install the necessary requirements. You can do this by running the following command in a code cell:
!pip install -r requirements.txt
- Inside the Colab environment, install the necessary requirements. You can do this by running the following command in a code cell:
-
Run the Notebook:
- Open the notebook named "Rag financial advisor GPU.ipynb" in the Colab environment.
- Execute the cells in the notebook to run the application.
Alternatively, you can explore a demo of the application directly on Hugging Face : Geek Team - Hugging Face Note : it takes time for generation for low ressouce
we plan on making Mokawil.AI more advanced and more helapful for the users by making it :
-
Personalized Responses:
- Provied tailord responses based on user-specific information.
-
Multilingual Support:
- to be Capable of understanding and responding in multiple languages.
-
Notification System:
- Sends notifications for important deadlines to keep users informed.
-
Versatile Input Support:
- Accepts text, audio, and document inputs for flexibility.
-
Financial Document Analysis:
- Analyzes financial documents to provide insightful information.
-
And Much More...