Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Embedders settings #7

Open
stephanedemotte opened this issue Jan 31, 2025 · 0 comments
Open

Add Embedders settings #7

stephanedemotte opened this issue Jan 31, 2025 · 0 comments

Comments

@stephanedemotte
Copy link

stephanedemotte commented Jan 31, 2025

To allow embedders settings i have to add public ?array $embedders = null; in models/IndexSettings it's maybe not the best way to allow something like

  'pages' => IndexBuilder::fromSettings([
    "embedders" => [
      "openai-embedder" => [
    	 "source" => "openAi",
    	 "model" => "text-embedding-ada-002",
    	 "apiKey" => "sk-proj-FlQsXHNdI1w0M4i...",
    	 "documentTemplate" => "This document is about {{doc.title}}.",
	]
     ]
  ])

No php errors, but not working, my index settings still not have my embedders value.

Maybe there are a better way to use custom settings ?

Thank !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant