Opensolr AI-Hints
Summarize Context
The Opensolr AI-Hints LLM will generate a summary of the context, either coming form your Opensolr Web Crawler Index, or a manually entered context.
A number of other instructions can be passed on to this API, for NER, and other capabilities. It is in Beta at this point, but will get better with time.
- GET or POST https://api.opensolr.com/solr_manager/api/ai_summary
- Parameters:
- email - Required - your Opensolr registration email address
- api_key - Required - your Opensolr api_key
- index_name - Required - must be an Opensolr Crawler Index.
- query - Optional - a Solr Search query stirng to search within your Opensolr Crawler Index. If left empty, you should add the context manually because no Solr search will be performed that would otherwise provide the context automatically.
- context - Optional - If present, this context will be analyzed, instead of the content coming from your Solr Web Crawler Index.
- instruction - Optional - The instruction to send to the AI LLM. Defaults to: "Answer the query in plain English language, or translate into English, and summarize all the key points about the dates, people, events, places, or other important things that you find in the context below. Focus on the main ideas." You can also use instructions such as: "Extract a list of people names... " or "Translated this content to ... LANG", etc...
-
Example: https://opensolr.com/solr_manager/api/ai_summary?email=PLEASE_LOG_IN&
api_key=PLEASE_LOG_IN&index_name=my_solr_index