Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add search example #10

Merged
merged 5 commits into from
Oct 16, 2024
Merged

feat: add search example #10

merged 5 commits into from
Oct 16, 2024

Conversation

olbychos
Copy link
Contributor

  • Include a search example designed with UI and dynamic code integration.
  • It can be an advanced version after UI updates involving input/output transformers.

@olbychos olbychos self-assigned this Oct 16, 2024
@olbychos olbychos requested a review from a team as a code owner October 16, 2024 09:13
Copy link

github-actions bot commented Oct 16, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
dynamiq
   __init__.py30100% 
dynamiq/cache
   __init__.py10100% 
   codecs.py11281%16, 27
   config.py14192%34
   utils.py260100% 
dynamiq/cache/backends
   __init__.py20100% 
   base.py23578%34, 47, 59, 72, 84
   redis.py16475%20, 22, 48, 59
dynamiq/cache/managers
   __init__.py20100% 
   base.py39489%117–118, 120, 146
   workflow.py28292%73–74
dynamiq/callbacks
   __init__.py30100% 
   base.py491275%19, 31, 43, 79, 115, 132, 168, 187, 205, 209–210, 212
   streaming.py551572%96, 126–127, 135, 160–161, 169–174, 182, 190–191
   tracing.py169497%64, 120, 485, 507
dynamiq/clients
   __init__.py10100% 
   base.py8275%5, 21
dynamiq/components
   __init__.py00100% 
   serializers.py27966%25, 40, 58, 70, 101, 120, 122, 134, 136
dynamiq/components/converters
   __init__.py00100% 
   base.py491569%43, 48–50, 53–54, 61–62, 64–65, 98, 102, 107, 118, 122
   pptx.py34973%59–61, 66, 96–97, 101–102, 104
   pypdf.py602066%71–72, 77, 100–102, 125–135, 137–138, 140
   unstructured.py1165156%63, 69–70, 82–83, 90, 105–107, 109, 143, 194–195, 200, 220–221, 228–229, 232, 281–283, 285, 292–302, 304–305, 307, 312–325
   utils.py11463%23–25, 27
dynamiq/components/embedders
   __init__.py00100% 
   base.py71691%76, 80, 137–138, 159, 163
   bedrock.py18477%19, 26–28
   cohere.py18288%21, 29
   huggingface.py10190%19
   mistral.py10190%19
   openai.py16287%44, 51
   watsonx.py10190%19
dynamiq/components/retrievers
   __init__.py00100% 
   chroma.py19289%33–34
   pinecone.py17288%34–35
   qdrant.py17288%31–32
   weaviate.py19289%31–32
dynamiq/components/splitters
   __init__.py00100% 
   document.py551081%60, 63, 83, 88, 97, 118, 123–124, 126, 149
dynamiq/connections
   __init__.py20100% 
   connections.py3524686%13–17, 99, 107, 118, 141, 478, 480, 582–583, 585–586, 590–591, 593–594, 607–608, 610, 638, 640, 652, 654–656, 697–698, 720–721, 727–729, 731–734, 736, 753–754, 791–792, 800, 908
   managers.py60591%70–71, 107, 167, 179
   storages.py14192%51
dynamiq/executors
   __init__.py00100% 
   base.py12283%35, 58
   pool.py601181%90, 111–112, 115, 163–164, 179, 192, 203–204, 215
dynamiq/flows
   __init__.py20100% 
   base.py25196%35
   flow.py1273175%68, 75, 82, 116, 159–161, 246–247, 249, 268–269, 271, 274, 293–294, 297–298, 301–302, 304–305, 308–310, 312–316, 318
dynamiq/loaders
   __init__.py00100% 
   yaml.py2999069%55, 58, 62–63, 66–69, 72, 97, 101, 112–113, 138, 145–146, 177, 204, 228, 231, 234, 237, 257–261, 264, 284–288, 291–292, 318–319, 324–325, 330–331, 373, 376–377, 388–391, 404–405, 443, 446, 449, 481, 485, 503–504, 588–589, 591–592, 596–599, 601, 606, 645, 648, 655, 663, 676–677, 709, 711, 714, 719, 746, 750, 754, 758–759, 812–813, 842, 891–895
dynamiq/memory
   __init__.py10100% 
   memory.py592852%17, 33–35, 50, 53, 56, 60–61, 67–77, 79, 83, 87–92
dynamiq/memory/backend
   __init__.py50100% 
   base.py18572%12, 17, 22, 27, 32
   in_memory.py704634%19–22, 26–27, 31, 35–39, 41–49, 51, 67–68, 76–81, 83–84, 88–89, 91–100, 104, 108
   pinecone.py826323%30–32, 34–38, 40–43, 47–48, 54, 58–61, 65–70, 74–75, 80, 88–90, 94–100, 106–108, 115–119, 123–128, 130, 132, 136–140, 144–147
   qdrant.py806025%26–28, 30–33, 36–37, 41–42, 48–49, 53–57, 67–68, 72–73, 79–82, 87–92, 99–102, 108, 110–112, 116–121, 123–125, 129–135, 139–142
   sqlite.py1199421%50–51, 53–56, 60–61, 63–67, 69–71, 73, 75–76, 80–87, 91–96, 106, 108–109, 113–119, 124–125, 129–135, 137–138, 142–149, 153–156, 158–160, 162–164, 166–168, 171–173, 175–176, 178–182, 184–187, 189, 191–192, 194–195
dynamiq/nodes
   __init__.py20100% 
   exceptions.py13192%4
   managers.py12741%28–34
   node.py2794384%212, 223, 240, 243, 246, 264, 474–476, 545–551, 553–558, 562, 564, 566, 736, 753–754, 757–758, 761–762, 764–765, 768–769, 771, 783–785, 804, 829, 834
   types.py230100% 
dynamiq/nodes/agents
   __init__.py40100% 
   base.py2318662%80, 84–87, 93, 96–98, 123, 127, 164, 179–180, 186–190, 210, 212–213, 216, 223–225, 229–230, 235–239, 241–242, 244–247, 259–260, 264–266, 271, 275, 277, 283–287, 289–290, 306, 311, 344–345, 349–350, 354, 358, 362, 368–371, 375–377, 381, 383–384, 386–387, 389, 394–395, 402, 405, 409–410, 414–415, 419–420
   exceptions.py15380%7–8, 61
   react.py16412623%192, 241, 282–283, 287–289, 291–294, 302, 306–307, 309–310, 312, 315–317, 324, 344–345, 347–348, 354, 356, 358–364, 367, 379, 381–382, 386–387, 389–394, 398–402, 404, 406–408, 411–412, 414–417, 419, 422, 426–428, 431–432, 434–437, 439–446, 448–450, 452–455, 457, 461–462, 464, 466, 475–476, 481, 483–489, 493, 495, 503–506, 508, 512–514, 518, 520, 528–538, 540
   reflection.py362433%43–44, 47–48, 51, 64–66, 68–71, 73, 76–77, 80–81, 83–85, 87–90
   simple.py30100% 
dynamiq/nodes/audio
   __init__.py20100% 
   elevenlabs.py76692%39, 41, 89, 127, 172, 214
   whisper.py47882%46, 72, 79–80, 82, 108, 124, 126
dynamiq/nodes/converters
   __init__.py40100% 
   llm_text_extractor.py17312130%14, 49–53, 107–108, 114, 124, 132–134, 145–147, 175–177, 179, 187, 210–211, 213, 215–218, 225–226, 233–234, 236–239, 241–243, 245–246, 248–253, 255, 267, 269, 290, 292, 294–296, 298, 302, 326–327, 332, 334–335, 344, 348, 363, 370, 372–375, 389–390, 392–397, 410, 433–439, 442–443, 496, 498–500, 527–529, 531, 539, 562–563, 565, 567–570, 577–578, 585–586, 588–591, 593–594, 596–601, 603
   pptx.py31196%33
   pypdf.py32196%34
   unstructured.py39197%58
dynamiq/nodes/embedders
   __init__.py60100% 
   bedrock.py53296%48, 135
   cohere.py53296%48, 136
   huggingface.py53296%48, 137
   mistral.py53296%49, 137
   openai.py55296%53, 151
   watsonx.py53296%46, 130
dynamiq/nodes/llms
   __init__.py190100% 
   ai21.py9188%24
   anthropic.py8187%22
   anyscale.py9188%24
   azureai.py9188%24
   base.py91495%13, 164, 239, 241
   bedrock.py9188%24
   cerebras.py9188%24
   cohere.py8362%21–23
   custom_llm.py40100% 
   deepinfra.py9188%24
   gemini.py22195%45
   groq.py9188%24
   huggingface.py9188%24
   mistral.py9188%24
   openai.py8187%22
   replicate.py9188%24
   sambanova.py9366%23–25
   togetherai.py9188%24
   watsonx.py9188%24
dynamiq/nodes/operators
   __init__.py10100% 
   operators.py1444072%158, 174, 176, 178, 180, 184–191, 193, 219–220, 222–224, 226–229, 231, 233–236, 238, 242, 266, 284–288, 290, 292–293, 295
dynamiq/nodes/retrievers
   __init__.py40100% 
   chroma.py370100% 
   pinecone.py410100% 
   qdrant.py370100% 
   weaviate.py370100% 
dynamiq/nodes/splitters
   __init__.py10100% 
   document.py300100% 
dynamiq/nodes/tools
   __init__.py80100% 
   e2b_sandbox.py13510224%81–83, 85, 89–94, 98–100, 104–106, 110–112, 116–122, 126–127, 129–134, 137–139, 141, 143–144, 148–155, 159–161, 165–166, 168–172, 176, 178–179, 181–182, 184–189, 191, 193–204, 212–214, 216–226, 228–229, 233–236
   firecrawl.py683647%59–60, 64–65, 73–74, 76, 82, 86–87, 89–92, 94, 105–106, 110–111, 117–120, 123, 125, 127–134, 138, 150, 152
   http_api_call.py47589%69, 81, 90, 99–100
   llm_summarizer.py552947%92–94, 100, 110, 122–124, 141–142, 148–151, 171–173, 175–176, 180–181, 186–188, 192–193, 195, 197, 201
   python.py512943%39–41, 70–71, 84, 86–88, 90–91, 93, 95–96, 98, 154–156, 158–159, 161–165, 179, 193–195
   scale_serp.py614427%56–57, 59–64, 66–67, 76, 91, 95–96, 98–100, 102–103, 107, 109, 111–112, 117–120, 123, 125, 127, 129–135, 137, 142–143, 151, 153, 160, 162
   tavily.py583343%78–86, 88, 104, 108–109, 111–112, 125, 127–128, 133–136, 139, 141, 143, 145, 149–150, 157–158, 161, 171, 173
   zenrows.py351945%50, 55–56, 58–60, 62, 67, 69, 74–77, 80, 82–83, 85–86, 88
dynamiq/nodes/utils
   __init__.py10100% 
   utils.py110100% 
dynamiq/nodes/validators
   __init__.py50100% 
   base.py22577%37–40, 45
   regex_match.py14192%37
   valid_choices.py9188%31
   valid_json.py10280%27–28
   valid_python.py8275%23–24
dynamiq/nodes/writers
   __init__.py40100% 
   chroma.py271062%37–39, 43, 47, 66–67, 69, 71–72
   pinecone.py29196%39
   qdrant.py28196%38
   weaviate.py291162%38–40, 44, 48, 66–67, 69, 71–72, 74
dynamiq/prompts
   __init__.py10100% 
   prompts.py841582%98, 141, 154, 197–201, 206–207, 216–217, 221, 223, 230
dynamiq/runnables
   __init__.py10100% 
   base.py45197%145
dynamiq/storages
   __init__.py00100% 
dynamiq/storages/vector
   __init__.py40100% 
   base.py50100% 
   exceptions.py60100% 
   policies.py60100% 
   utils.py20100% 
dynamiq/storages/vector/chroma
   __init__.py10100% 
   chroma.py18614919%10–11, 56–57, 62, 71, 89–91, 94, 96, 98–99, 101–102, 104, 106, 117–119, 123–124, 128, 140–141, 143–144, 154–155, 176–177, 183–184, 192, 237–239, 241–244, 246, 248, 252, 261–262, 284–285, 288–289, 292, 294–295, 298–300, 302–304, 306, 308–315, 317–319, 321–323, 325–327, 329, 338–341, 343–358, 360–361, 363–364, 366, 382–384, 387, 389, 402–403, 407, 423–425, 427, 429–430, 432, 446–449, 451–454, 459–460, 462–463, 465–466, 468–469, 471, 485–488, 490–491, 496–497, 499–500, 502–503, 505–506
dynamiq/storages/vector/pinecone
   __init__.py10100% 
   filters.py958015%22–24, 26–28, 45–50, 52–53, 55–56, 58–59, 75, 78, 80–88, 93, 95, 97, 114–116, 120, 122, 139–141, 145, 147, 164–166, 170, 172, 189–191, 195, 197, 214–216, 220, 222, 239–241, 245, 247, 264–265, 268, 270–273, 277, 279, 296–298, 300–303, 307, 309
   pinecone.py1275655%12, 63, 86–88, 96, 113–115, 120, 124–125, 135–137, 139–140, 144, 156, 160, 166–167, 169–170, 180–181, 194–196, 198–200, 202–204, 206, 213, 215–216, 225–226, 229–231, 247–248, 275–277, 280–281, 287–288, 290, 319–320
dynamiq/storages/vector/qdrant
   __init__.py10100% 
   converters.py411368%26, 28–30, 32–35, 67–68, 70–71, 75
   filters.py1333375%61–62, 65–66, 80–81, 91–92, 99, 111, 177–178, 186–187, 217–218, 227, 233–234, 261–262, 277, 282–283, 288, 293–294, 299, 304–305, 310, 315–316
   qdrant.py2667571%29, 239, 255, 279, 283, 301–302, 305, 334–335, 349–350, 390–391, 455, 495, 528–529, 533, 535–538, 550, 554–559, 601–604, 606–607, 643–644, 648, 650, 652–653, 676–678, 680, 682, 698–699, 704, 757–758, 770, 772, 777–778, 786, 788–789, 794, 796–798, 800–801, 803–804, 810, 812–813, 819, 852, 854, 906–907
dynamiq/storages/vector/weaviate
   __init__.py10100% 
   filters.py12610516%22–24, 26–28, 56–63, 65, 87–92, 94–99, 101–105, 107–108, 121–126, 140–142, 156–157, 159, 178–184, 188–189, 206–212, 216–217, 234–240, 244–245, 262–268, 272–273, 290–292, 294, 311–315, 343, 345, 351, 353–360, 362, 377–378
   weaviate.py16512723%17–18, 57–59, 67–68, 70, 80–81, 90–91, 103–105, 107–108, 110–111, 113, 125–126, 128, 130–133, 135, 137–139, 141–145, 147–148, 150, 158, 160, 172–174, 177–180, 195, 197–200, 203–204, 211–216, 228–229, 231–232, 244–245, 249–251, 267–271, 273, 279–284, 286, 292, 294, 311–316, 318, 321, 323–324, 330–337, 352–353, 355, 368–371, 373–375, 386–387, 389, 398–399, 418–419, 429, 457–459, 461–462, 473
dynamiq/types
   __init__.py10100% 
   document.py160100% 
   streaming.py31390%48, 56, 84
dynamiq/utils
   __init__.py20100% 
   duration.py11372%42–43, 45
   env.py70100% 
   jsonpath.py461469%18–19, 41, 43, 50–51, 55, 59–61, 84, 94–96
   logger.py100100% 
   utils.py621182%32, 34, 94–100, 150–151
dynamiq/workflow
   __init__.py10100% 
   workflow.py671774%15, 31, 34, 55, 57–58, 61–63, 65, 82–83, 86, 91–94
examples
   __init__.py00100% 
examples/rag
   __init__.py00100% 
   dag_yaml.py37878%65–67, 74–75, 81, 86, 88
   utils.py190100% 
tests
   __init__.py00100% 
   conftest.py78198%83
tests/integration
   __init__.py00100% 
tests/integration/flows
   __init__.py00100% 
tests/integration/nodes
   __init__.py00100% 
tests/integration/nodes/audio
   __init__.py00100% 
tests/integration/nodes/llms
   __init__.py00100% 
tests/integration/nodes/operators
   __init__.py00100% 
tests/integration/nodes/tools
   __init__.py00100% 
tests/integration/nodes/validators
   __init__.py00100% 
tests/integration_with_creds
   __init__.py00100% 
TOTAL6935222467% 

Tests Skipped Failures Errors Time
186 0 💤 0 ❌ 0 🔥 33.291s ⏱️

@olbychos olbychos merged commit b02820e into main Oct 16, 2024
7 checks passed
@olbychos olbychos deleted the feat/add_search_example branch October 16, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants