LangChain
We offer LangChain integration to make it easier to incorporate our document search into any AI application.
Install the python library:
pip install tada_ai
Import and use our retriever anywhere in your pipeline
retriever = TadaAiRetriever( api_key=api_key, space_id=space.id, # optional chunks=ChunkOptions( # Default settings. Can leave this out entirely requested_min_word_count=50, requested_max_word_count=1500 ), reranker=RerankerOptions( # Default settings. Can leave this out entirely top_n=10, # max number of results threshold=0.25 # between 0 and 1 ))
retriever.invoke('Your query')
Loading Documents
Look at our quickstart guide for how add files via the API. You can also manually upload files in our web app.