circle-exclamationPrerequisites

Before you begin using GL Smart Search SDK, ensure you have the following prerequisites in place.

1

Python 3.11+

Make sure you have Pythonarrow-up-right version 3.11 or later installed. We recommend installing version 3.12 at the time of writing. Use this to verify you have the right version.

python --version

# Python 3.12.3

or

python3 --version

# Python 3.12.3
2

Package Manager

Install the GL Smart Search SDK using pip:

pip install smart-search-sdk

Alternatively, you can use other package managers:

3

GL Smart Search Credentials

circle-info

Generate your GL Smart Search Token by following the instructions in Authentication.

To use GL Smart Search SDK (be it the SDK, MCP Server, or CLI), you will need to obtain the GL Smart Search credentials first. Afterwards, you can use it as environment variables. In general, you will need the following:

  • GL Smart Search Base URL – The API endpoint for GL Smart Search service (Production: https://search.glair.ai/)

  • GL Smart Search Token – Your authentication token for accessing GL Smart Search API

Once obtained, store it securely and set it as an environment variable:

export SMARTSEARCH_BASE_URL="https://search.glair.ai/"
export SMARTSEARCH_TOKEN="your-access-token"

Last updated

Was this helpful?