Code Monkey home page Code Monkey logo

qdrant_basic's Introduction

Basic Local Search using Qdrant

If you've got local files you want to search through more intelligently, Qdrant can help you out. This bit of code (in its current form) supports docx. and .pdf files.

Part 1: Set up

  1. Create a folder in Documents, titled "qdrant". (Alternatively, edit the file path in the code before running it).
  2. Drag and drop all the .docx and .pdf documents you want to search over into this folder. (If these live in other folders, either pull them out, or add '/[folder_name]' to the file path in the code)

Part 2: Installations

  1. Download Ollama here: https://ollama.com/download
  2. Open Terminal
  3. Copy and paste this in: pip3 install -U sentence-transformers qdrant-client pymupdf python-docx tf-keras ollama

Part 3: You're ready!!

  1. Download the qdrant_basic.py file.
  2. What folder is this .py file in now? If it's in Downloads (the default), type into Terminal: cd Downloads. If it landed anywhere else, drag it into Downloads first.
  3. Type this into the Terminal: python3 qdrant_basic.py

You'll see some loading bars for the embedding of all the documents you put in; then, you'll be prompted with: "What are you looking for? " Type it in, and voila! You should see the file name and page reference for your search.

Part 4: Customizations

  1. If you want to see more results pulled up, look for the part of the code that says: #EDIT THE NUMBER BELOW TO INCREASE THE NUMBER OF SEARCH RESULTS Change limit=1 to limit=n (n being whatever number you want)

qdrant_basic's People

Contributors

kl782 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.