OpenAI.search

You're seeing just the function search, go back to OpenAI module for more information.
Link to this function

search(engine_id, params)

View Source

@deprecated: "DEPRECATED by OpenAI"

It returns a rank of each document passed to the function, based on its semantic similarity to the passed query. The function accepts as arguments the engine_id and theset of parameters used by the Search OpenAI api

Example request

OpenAI.search(
  "babbage", #engine_id
  documents: ["White House", "hospital", "school"],
  query: "the president"
)

Example response

{:ok,
  %{
    data: [
      %{"document" => 0, "object" => "search_result", "score" => 218.676},
      %{"document" => 1, "object" => "search_result", "score" => 17.797},
      %{"document" => 2, "object" => "search_result", "score" => 29.65}
    ],
    model: "...",
    object: "list"
  }}

See: https://beta.openai.com/docs/api-reference/searches for the complete list of parameters you can pass to the search function