§
    ˜Štjî  ã                   ó^   — d dl mZ d dlZd dlmZ d dlmZ d dlm	Z	 e	deddfd„¦   «         Z
dS )	é    )ÚListN)Ú	ServerAPI)Ú
Collection)Úmulti_region_testÚclientÚreturnc                 óø  — |                       ¦   «          d}d}d}|                      ¦   «         j        rdddœ}ndS d}g }t          |¦  «        D ]1}|                      d|› �|¬¦  «        }|                     |¦  «         Œ2t          j                             ||¦  «         	                    ¦   «         }d„ t          |¦  «        D ¦   «         }	t          |¦  «        D ]}||          
                    |	|¦  «         ŒdS )	zcTest that we can create a large number of collections and that the system
    # remains responsive.é
   Né   )zhnsw:batch_sizezhnsw:sync_thresholdiL  Útest_collection_)Úmetadatac                 ó   — g | ]}d |› �‘ŒS )Útest_id_© )Ú.0Úis     úh/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/chromadb/test/stress/test_many_collections.pyú
<listcomp>z)test_many_collections.<locals>.<listcomp>&   s   € Ð
,Ð
,Ð
,˜aˆ>�aˆ>ˆ>Ð
,Ð
,Ð
,ó    )ÚresetÚget_settingsÚis_persistentÚrangeÚcreate_collectionÚappendÚnpÚrandomÚrandÚtolistÚadd)
r   ÚNÚDr   Únum_collectionsÚcollectionsr   Únew_collectionÚdataÚidss
             r   Útest_many_collectionsr(   	   s+  € ð ‡L‚L�N„N€Nà
€AØ
€Aà€HØ×ÒÑÔÔ*ð Ø'(ÀÐCÐCˆˆð 	ˆð €OØ$&€KÝ�?Ñ#Ô#ð +ð +ˆØ×1Ò1Ø"˜qÐ"Ð"Øð 2ñ 
ô 
ˆð 	×Ò˜>Ñ*Ô*Ð*Ð*õ Œ9�>Š>˜!˜QÑÔ×&Ò&Ñ(Ô(€DØ
,Ð
,¥5¨¡8¤8Ð
,Ñ
,Ô
,€CÝ�?Ñ#Ô#ð &ð &ˆØ�AŒ×Ò˜3 Ñ%Ô%Ð%Ð%ð&ð &r   )Útypingr   Únumpyr   Úchromadb.apir   Úchromadb.api.models.Collectionr   Úchromadb.test.conftestr   r(   r   r   r   ú<module>r.      s’   ðØ Ð Ð Ð Ð Ð Ø Ð Ð Ð à "Ð "Ð "Ð "Ð "Ð "Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4ð ð& )ð &°ð &ð &ð &ñ Ôð&ð &ð &r   