# psychiathèque, par Olivier Cornelis (https://psychiatheque.olicorne.org) > Recherche sémantique dans les recommandations de bonne pratique en psychiatrie. 536 documents (PDF), searchable together by meaning across languages: a question in one language finds passages in another. No AI writes the answers: the search returns the documents' own passages. Please do not crawl. Every search costs the small server an embedding call, and it is rate-limited per IP; ask a few targeted questions instead. The software is open source: https://github.com/thiswillbeyourgithub/justelesdocs ## Search - `GET https://psychiatheque.olicorne.org/api/search.md?q=`: the best passages for a question, as Markdown, best first, each with its document's metadata, its page and links. Example: https://psychiatheque.olicorne.org/api/search.md?q=first-line%20treatment - The question is plain prose, from 5 to 512 characters. `A | B` averages two phrasings, `-(C)` subtracts a topic. - It takes exactly the parameters of the search page's own URL, so a link a person copied from the site's address bar works here with its path changed to `/api/search.md`. - Optional filters: - `issuer` (repeat the parameter for several values): `HAS` (333), `ANSM` (14), `CANMAT` (6), `INSERM` (6), `ANESM` (5), `APA` (4), `CADDRA` (3), `FDA` (3), `WHO` (3), `AFPBN` (2), `NICE` (2), `RANZCP` (2), `WFADHD` (2), `BAP` (1), `CINP` (1), `DREES` (1), `ISBD` (1), `RCPsych` (1) - `country` (repeat the parameter for several values): `FR` (361), `CA` (9), `INT` (7), `US` (7), `UK` (4), `AU` (2) - `year`: a range, `year=2015-2020`, `year=2015-` or `year=-2020` (from 1943 to 2026) - `language` (repeat the parameter for several values): `fr` (394), `en` (141), `ar` (1) - `doc_type` (repeat the parameter for several values): `recommandation` (125), `synthese` (89), `article` (74), `fiche_pratique` (66), `outil` (49), `argumentaire` (40), `ouvrage_reference` (31), `rapport` (31), `guide_patient` (24), `pnds` (14), `liste_actes` (13), `avis_medicament` (8), `alerte_securite` (7), `classification` (5), `expertise_collective` (3) - `topic` (repeat the parameter for several values): `parcours_soins` (223), `traitement_medicamenteux` (175), `diagnostic` (148), `reperage` (99), `enfant_adolescent` (91), `addiction` (80), `adulte` (78), `depression` (61), `personne_agee` (59), `effets_indesirables` (51), `violence` (49), `tsa` (48), `bipolaire` (46), `schizophrenie` (45), `tdah` (35), `psychotherapie` (33), `epilepsie` (32), `handicap` (31), `psychoeducation` (30), `trouble_comportement` (30), `maladie_rare` (29), `demence` (28), `sevrage` (28), `suicide` (26), `deficience_intellectuelle` (24), `trouble_alimentaire` (21), `douleur` (19), `sommeil` (17), `activite_physique` (16), `femme_enceinte` (15), `trouble_personnalite` (15), `parkinson` (14), `anxiete` (13), `resistance_traitement` (13), `psychose` (9), `fin_de_vie` (7), `burnout` (2), `identite_genre` (2), `toc` (1) - `access` (repeat the parameter for several values): `open` (482), `restricted` (54) - `level`: `strict`, `family`, `wide` narrow to documents of that tier and the narrower ones; `all` (the default) keeps everything - Optional ranking choices: `bm25=1` (also reward the question's exact words), `recent=1` (favour recent documents), `norefs=1` (push bibliographies down), `figures=exclude|only|tables|images` (described figures are included by default). ## Read - [https://psychiatheque.olicorne.org/api/doc/](https://psychiatheque.olicorne.org/api/doc/): every document, with links to the open ones. - `https://psychiatheque.olicorne.org/api/doc/`: one document's metadata, its PDF, and its pages with their first words. `` is the PDF's file name without `.pdf`, URL-encoded. - `https://psychiatheque.olicorne.org/api/doc//p/`: the text of page n. A search hit links to its page. - An address with no page answers 404 with the full document list. The text was extracted from the PDFs (with OCR for scanned pages), so tables and layout are approximate: the PDF is the reference. Passages marked as a figure description were written by an AI model from the image. ## Restricted documents 54 documents may only be read by a person, page by page, in the viewer: they are never offered whole, and their text is not published here. A search may still quote one passage of them, with a viewer link. ## Linking a person to a passage Give the viewer link from a search hit or a page (`https://psychiatheque.olicorne.org/view.html?doc=...`): it opens the PDF at that page with the passage highlighted. Cite the document's title, issuer, year and page.