Find answers from the community

Updated 2 months ago

hi thanks for the sharing is there any

hi thanks for the sharing. is there any simple code (complete python code) to introduce how to load and index pdf and search the content use OPENAI API ?
L
1 comment
The SimpleDirectoryReader should be able to load any PDFs (and most file extensions!)

Our examples folder is full of some great from-scratch tutorials, here's a simple one using the vector index: https://github.com/jerryjliu/gpt_index/blob/main/examples/vector_indices/SimpleIndexDemo.ipynb

Customizing the reply would probably involve changing the default prompts, or if you are using a vector index, you can set the similarity_cutoff=0.XX to a number between 0-1 to remove nodes that are below a certain similarity
Add a reply
Sign up and join the conversation on Discord