MatchAI is an advanced application that helps clients efficiently match with their ideal customers. It leverages the power of React, Node.js, OpenAI, and Pinecone to deliver sophisticated natural language processing capabilities.
- Client matching using AI-powered algorithms
- Integration with OpenAI for natural language processing
- Efficient data storage and retrieval using Pinecone vector database
- An OpenAI API key
- A Pinecone API key
- NodeJS installed
- Clone the repository:
git clone https://github.com/ChihTsungLu/ai.git cd frontend cd backend
- Install dependencies
cd frontend npm install cd ../backend npm install
-
Create a .env file in the backend directory and add the following environment variables:
OPENAI_API_KEY=YOUR_OPENAI_API_KEY PINECONE_API_KEY=YOUR_PINECONE_API_KEY
-
Set up Pinecone:
Create an index named matchai in your Pinecone account, and the dimension is 1536, since this project is using text-embedding-3-small
from OpenAI.
If you want to use a different index name, update the following line in your backend code:
const index = pinecone.Index('YOUR_INDEX_NAME');
-
Start the backend server:
cd backend npm start
-
In a new terminal, start the frontend development server:
cd frontend npm start
-
Open your browser and navigate to http://localhost:3000 to access the application.
- Frontend: React
- Backend: Node.js, Express
- AI Integration: OpenAI API
- Vector Database: Pinecone