
    ; i                    6    d Z ddlmZ ddlmZ ddlmZ dd	Zd
S )zFunction for de-duping results.    )annotations)Sequence)llmfn_output_rowrows-Sequence[llmfn_output_row.LLMFnOutputRowView]returnSequence[int]c                    g }t                      }t          |           D ]H\  }}|                                }||v r|                    |           |                    |           I|S )ag  Returns a list of indices with duplicates removed.

    E.g. if rows has results ["hello", "hello", "world"], the return value would
    be [0, 2], indicating that the results at index 1 is a duplicate and should be
    removed.

    Args:
      rows: The input rows

    Returns:
      A sequence of indices indicating which entries have unique results.
    )set	enumerateresult_valueaddappend)r   indicesseen_entriesidxrowvalues         /var/www/development/aibuddy-work/election-extract/venv/lib/python3.11/site-packages/google/generativeai/notebook/lib/unique_fn.py	unique_fnr      sx     G55LdOO  S  ""L  sN    N)r   r   r   r	   )__doc__
__future__r   typingr    google.generativeai.notebook.libr   r    r   r   <module>r      sa    & % " " " " " "       = = = = = =     r   