Setup of Polyglot in your PHP project
NOTE: Polyglot is distributed as part of the Instructor PHP package, so if you have it installed, you don’t need to install Polyglot separately.
.env
file in your project root (or use your existing one)config
directory in your project if it doesn’t existllm.php
configuration file contains settings for LLM providers:
embed.php
configuration file contains settings for embeddings providers:
config
directory relative to your project root. You can specify a different location by setting the INSTRUCTOR_CONFIG_PATHS
environment variable:
Settings
class static setPath()
method to override the value of config path set in environment variable with your own value.