wwzeng1 / landing-page

1 stars 5 forks source link

Sweep: Connection closed by server #383

Closed kevinlu1248 closed 4 months ago

kevinlu1248 commented 4 months ago

Details

sweepai/core/vector_db.py in openai_with_expo_backoff at line 207

        return openai_call_embedding(batch)
    # check cache first
    embeddings = [None] * len(batch)
    cache_keys = [hash_sha256(text) + CACHE_VERSION for text in batch]
    try:
        for i, cache_value in enumerate(redis_client.mget(cache_keys)):
            if cache_value:
                embeddings[i] = np.array(json.loads(cache_value))
    except Exception as e:
        logger.exception(e)
    # not stored in cache call openai
sweep-ai[bot] commented 4 months ago
Sweeping

0%

Actions

Thank you for submitting this issue. To help us investigate further, could you please provide some additional details such as:

  • What were you trying to do when you encountered this "Connection closed by server" error?
  • What is the expected behavior?
  • Are you able to provide steps to reproduce the issue?
  • What version of the software and dependencies are you using?
  • Do you have any other relevant logs, stack traces or error messages to share?

This extra context will help us pinpoint the cause of the problem so we can determine the appropriate fix. Let us know if you need any clarification or have additional details to provide.

For bonus Sweep issues, please report this bug on our community forum (tracking ID: 03f7b2296b).


[!TIP] To recreate the pull request, edit the issue title or description.

This is an automated message generated by Sweep AI.