search_texts
Search 4.6 million classical philosophy and humanities texts from Archive.org.
The collection contains public domain books (pre-1928) covering:
- Philosophy: Aristotle, Plato, Kant, Hegel, Nietzsche, Schopenhauer,
Descartes, Spinoza, Locke, Hume, Mill, Wittgenstein, Aquinas and many more
- Ethics, metaphysics, epistemology, logic, political philosophy
- Sacred and religious texts, stoicism, neoplatonism, existentialism
- Classical literature, history of ideas, social theory
- Sources: Internet Archive (americana, europeanlibraries, gutenberg)
Texts are in original languages — primarily English, German, Latin, French,
Italian, Greek, Russian. Queries in any language work due to multilingual embeddings.
Args:
query: What you are looking for, e.g. 'Nietzsche will to power eternal recurrence',
'Kantian categorical imperative duty ethics',
'Platonic theory of forms and the Good',
'Stoic virtue and the sage', 'Aristotle eudaimonia flourishing',
'Hegel dialectics spirit history', 'free will determinism compatibilism'
author: Optional — filter results to a specific author/creator,
e.g. 'Kant', 'Nietzsche', 'Aristotle'. Case-insensitive substring match.
language: Optional — filter by language code, e.g. 'eng', 'ger', 'lat',
'fre', 'ita', 'gre', 'rus'
limit: Number of results after reranking (default 5, max 20)
Returns:
List of relevant text excerpts with metadata, reranked by relevance.
Each result includes rerank_score, vector_score, title, creator,
date, language, subject and the full text chunk.
get_book_list
List books in the Alexandria collection, optionally filtered by author, subject or language.
Returns unique books (one entry per Archive.org identifier) with metadata.
At least one filter parameter is recommended — without filters, results are arbitrary.
Args:
author: Filter by author/creator name, e.g. 'Kant', 'Nietzsche', 'Plato'.
Case-insensitive substring match against the creator field.
subject: Filter by subject keyword, e.g. 'ethics', 'logic', 'metaphysics'.
Case-insensitive substring match against the subject field.
language: Filter by language code, e.g. 'eng', 'ger', 'lat', 'fre', 'gre', 'rus'.
limit: Maximum number of distinct books to return (default 20, max 100).
Returns:
List of books with title, creator, date, language, subject, identifier and total_chunks.