This repository contains two components: ThirdAIApp and NeuralDBClient. ThirdAIApp is a graphical user interface (GUI) application for interacting with the ThirdAI neural database client. It allows you to perform training with PDF files and query the database. NeuralDBClient is a Python class that serves as a client for interacting with the ThirdAI neural database. It allows you to train the database with PDF files and perform queries to retrieve information.
- Insert PDF files for training.
- Train the neural database client.
- Enter queries to retrieve information from the database.
- Display the output in a new window.
To run ThirdAIApp, you need to have Python and Tkinter installed. You also need the ThirdAI library, which you can install using pip:
pip install ThirdAI- Run the
ThirdAIApp.pyscript. - The main window will appear.
- Click the "Insert File!" button to select a PDF file for training.
- Click the "Training" button to train the neural database client with the selected file.
- Enter your query in the "Query" field.
- Click the "Processing" button to process the query and display the output in a new window.
- You can click the "Clear" button to clear the query and file selections.
- Python 3.x
- Tkinter
- ThirdAI
- Train the neural database with PDF files.
- Perform queries on the neural database.
To use NeuralDBClient, you need to have the thirdai library installed, and you'll need an API key from ThirdAI.
You can install the thirdai library using pip:
pip install thirdai-
Import the
NeuralDBClientclass fromneural_db_client.py. -
Create an instance of the
NeuralDBClientclass, providing your ThirdAI API key as an argument.from neural_db_client import NeuralDBClient client = NeuralDBClient(api_key="YOUR_API_KEY")
-
Train the neural database with PDF files using the
trainmethod. Provide a list of file paths to the PDF files you want to use for training.client.train(file_paths=["file1.pdf", "file2.pdf"])
-
Perform queries on the neural database using the
querymethod. Provide your query as a string, and the method will return the query results as a string.result = client.query(question="What is the capital of France?")
thirdailibrary