AI functionality

Search using a specified strategy, given a text query

Using the POST endpoint ensures that no content will be logged or saved on our servers.

get/v1/ai/strategySearch

Request

  • Base URL: https://api.lovdata.no (the document declares no server; this is the origin it was published from)
  • URL: https://api.lovdata.no/v1/ai/strategySearch
  • Auth: API key in header X-API-Key

Query parameters

textstring

User query

strategystring

The name of the class implementing a search strategy. One of 'LovSourcedReferenceGraphStrategy'

legalAreasstring

Comma separated list of legal area codes to limit the search to

HyDEboolean

'False' to skip Hypothetical Document Embedding (HyDE) pre-processing step. Default 'True'.

Response

Search completed successfully

contentstring required
documentTypestring required
dokIDstring required
headersstring[] required
idinteger required
partIDstring required
preferredReferencestring required
titlestring required
tokensinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.