Prerequisites
Before getting started, ensure you have:- A SambaCloud account and API key
- Python 3.13 or higher
- UV package manager for Python dependency management
- Neo4j database instance (local installation or cloud-hosted)
- Access to the Neo4j integration example repository.
Setup
-
Install UV package manager
-
Clone the example repository and naviagte to the project directory.
-
Synchronize and install all required dependencies using UV.
This command reads the project configuration and installs all necessary packages including:
- SambaNova Cloud SDK
- Neo4j Python driver
- FastAPI (for web interface)
- Promptfoo (for evaluation)
-
Create environment configuration file from the temaplate
-
Edit the
.env
file with your credentials.
Running the integration
Direct execution mode
Execute evaluation tests directly using the command line:- Output: Generates output.html containing evaluation results and performance metrics.
- Flags
- -o output.html: Specifies the output file path
- —no-cache: Forces fresh evaluation without using cached results
FastAPI server mode
For interactive testing and web-based access:-
Start the FastAPI development server:
The server will start on
http://localhost:8000
by default. -
In a separate terminal, run the evaluation suite: