Modify https://github.com/imartinez/privateGPT to change data being sent and received

  • Status: Closed
  • Prize: $40
  • Entries Received: 3
  • Winner: st3vry

Contest Brief

I need help while manipulating https://github.com/imartinez/privateGPT

I need to process some things before they go to chatgpt or after they come back from chat-gpt before they go to the user.

The first part of the job would be to edit the resonse from chatgpt. As a test if the job is done: Every " and " from chatgpt is replaced by " xxx " before being streamed to the user.

The second would be to edit the documents before they are being sent to chatgpt (after retrieval). Once the vector store retrieves some documents I need to have access to them individually. Default is the retrieval of two documents. Replace the sceond line the "I am document #1" or "I am document #2", respectively.

The third would be to edit the documents in the bulkingesting and/or upload-ingesting. Every " or " from/in the documents is replaced by " xx " before being streamed to chatGP for the embedding.

In all three cases your job would NOT BE the implementation of any particular logic. It's just that I have no idea how to even go about these jobs, and how to get access there. So your job is to only implement these three dummy-tasks

So the job would be basically:
1.) On a server of your choice (or localhost) you install the github-private_gpt package (https://github.com/imartinez/privateGPT)
2.) You code until you find the places that I need to access.
3.) You tell me

Deliverable:
- Code Adjustments to https://github.com/imartinez/privateGPT in order to achieve the three sample-tasks

Recommended Skills

Employer Feedback

“Awesome, again:)”

Profile image phbock, Germany.

Top entries from this contest

View More Entries

Public Clarification Board

  • phbock
    Contest Holder
    • 2 months ago

    We have solved one direction:

    In ui.py:
    for delta in stream:
    if isinstance(delta, str): #Hier wird alles gestreamt, wenn man den delta überschreibt ändert sich der output beim user
    if "searchterm" in str(delta):
    full_response += " ####"
    else:
    full_response += str(delta)
    elif isinstance(delta, ChatResponse):
    full_response += delta.delta or ""
    yield full_response

    • 2 months ago
  • irefactor
    irefactor
    • 2 months ago

    Have you found any winners for this contest?

    • 2 months ago
    1. phbock
      Contest Holder
      • 2 months ago

      No, not yet. I solved one part myself, still open for a complete solution.

      • 2 months ago

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!