This project integrates an Android client with a RASA-based AI bot running on a server. The bot can respond to user queries and facilitate content searches using the information stored in specific directories.
-
Install Python:
- Ensure Python 3.7, 3.8, 3.9, or 3.10 is installed. Recommended version: 3.9.13.
- Download Python from the official site.
-
Install RASA Open Source:
- Run the following command to install RASA using pip:
pip install rasa
- Verify the installation:
rasa --version
- Run the following command to install RASA using pip:
-
Create a New RASA Project:
- Run the following command to initialize a new RASA project:
rasa init --no-prompt
- Navigate to your RASA project directory.
- Run the following command to initialize a new RASA project:
-
Train the RASA Model:
- To train your RASA model, use:
rasa train
- To train your RASA model, use:
-
Test and Run the RASA Assistant:
- Run the bot in the terminal using:
rasa shell
- Or, run the server with API support using:
rasa run --enable-api
- Run the bot in the terminal using:
-
Training Data:
- The model can be trained using files located within your project directory such as
nlu.md
,domain.yml
,stories.md
, etc.
- The model can be trained using files located within your project directory such as
-
Install spaCy for NLU:
- Install the
spaCy
library using pip:pip install spacy
- Install the
-
Install Other Required Packages:
- Install any additional dependencies using pip as required by your project.
-
Install the Application:
- Download and install the Android application on the device.
-
Grant Permissions:
- Ensure the app has the required permissions to access the device's storage.
-
Network Security Configuration:
- The server system must be configured to allow cleartext traffic using the server's IP address. This is crucial for enabling communication between the Android app and the server over HTTP.
- Both the client (Android app) and server (RASA bot) should be able to communicate over the network.
- The bot can provide services regardless of how much it has been trained.
- All files needed for content search must be placed in a folder named
Rasabot
in your device's internal storage.
-
User Interaction:
- The user communicates with the AI bot (RASA) through the Android app for queries.
-
Content Search:
- The bot provides instructions for content search, and the user's request is sent via an HTTP call to the server.
- On the server side, the bot processes the request and sends the appropriate response back through the same communication path.
- Android Studio
- Java
- ITextpdf Library (for text extraction)
- Python
- RASA Framework
- spaCy Library (for NLU)
For further information, feel free to contact.