{"id":17513025,"url":"https://github.com/tryagi/instill-ai","last_synced_at":"2025-04-11T05:03:16.879Z","repository":{"id":258146011,"uuid":"858547254","full_name":"tryAGI/Instill-AI","owner":"tryAGI","description":"C# SDK based on official Instill OpenAPI specification","archived":false,"fork":false,"pushed_at":"2024-12-05T09:19:33.000Z","size":1873,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-05T10:23:18.355Z","etag":null,"topics":["ai","csharp","dotnet","instill","langchain","langchain-dotnet","netstandard","sdk"],"latest_commit_sha":null,"homepage":"https://tryagi.github.io/Instill-AI/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tryAGI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"HavenDV","patreon":"havendv","ko_fi":"havendv","custom":["https://www.paypal.me/havendv","https://www.buymeacoffee.com/havendv","https://donate.stripe.com/00gfZ19zkeKLh1eaEE","https://www.upwork.com/freelancers/~017b1ad6f6af9cc189"]}},"created_at":"2024-09-17T05:07:05.000Z","updated_at":"2024-12-05T09:24:17.000Z","dependencies_parsed_at":"2024-11-13T10:22:33.680Z","dependency_job_id":"14cbf11a-1805-45ec-b3a4-e9e88afcac57","html_url":"https://github.com/tryAGI/Instill-AI","commit_stats":{"total_commits":48,"total_committers":3,"mean_commits":16.0,"dds":0.375,"last_synced_commit":"5a4fc1e50e53db3d417d9e5eb50e64bc673e7590"},"previous_names":["tryagi/instill-ai"],"tags_count":6,"template":false,"template_full_name":"tryAGI/SdkTemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FInstill-AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FInstill-AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FInstill-AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FInstill-AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tryAGI","download_url":"https://codeload.github.com/tryAGI/Instill-AI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228740059,"owners_count":17965180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","csharp","dotnet","instill","langchain","langchain-dotnet","netstandard","sdk"],"created_at":"2024-10-20T06:06:44.891Z","updated_at":"2024-12-08T14:10:24.889Z","avatar_url":"https://github.com/tryAGI.png","language":"C#","funding_links":["https://github.com/sponsors/HavenDV","https://patreon.com/havendv","https://ko-fi.com/havendv","https://www.paypal.me/havendv","https://www.buymeacoffee.com/havendv","https://donate.stripe.com/00gfZ19zkeKLh1eaEE","https://www.upwork.com/freelancers/~017b1ad6f6af9cc189"],"categories":[],"sub_categories":[],"readme":"# Instill\n\n[![Nuget package](https://img.shields.io/nuget/vpre/Instill)](https://www.nuget.org/packages/Instill/)\n[![dotnet](https://github.com/tryAGI/Instill/actions/workflows/dotnet.yml/badge.svg?branch=main)](https://github.com/tryAGI/Instill/actions/workflows/dotnet.yml)\n[![License: MIT](https://img.shields.io/github/license/tryAGI/Instill)](https://github.com/tryAGI/Instill/blob/main/LICENSE.txt)\n[![Discord](https://img.shields.io/discord/1115206893015662663?label=Discord\u0026logo=discord\u0026logoColor=white\u0026color=d82679)](https://discord.gg/Ca2xhfBf3v)\n\n## Features 🔥\n- Fully generated C# SDK based on [official Instill OpenAPI specification](https://raw.githubusercontent.com/Instill/assemblyai-api-spec/main/openapi.yml) using [AutoSDK](https://github.com/HavenDV/AutoSDK)\n- Same day update to support new features\n- Updated and supported automatically if there are no breaking changes\n- All modern .NET features - nullability, trimming, NativeAOT, etc.\n- Support .Net Framework/.Net Standard 2.0\n\n### Usage\n\u003e [!NOTE]  \n\u003e Most APIs are now marked as Alpha or Beta, and you need to do one of:\n\u003e - Hide it within the file via `#pragma warning disable INSTILL_BETA_001`\n\u003e - Hide it at the project level via `\u003cNoWarn\u003e$(NoWarn);INSTILL_BETA_001\u003c/NoWarn\u003e`\n```csharp\nusing Instill;\n\nusing var api = new InstillClient(apiKey);\nusing var cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromMinutes(5));\nvar cancellationToken = cancellationTokenSource.Token;\n\nCreateCatalogResponse createCatalogResponse = await client.Subscription.CreateCatalogAsync(\n    namespaceId: \"havendv\",\n    name: $\"shakespeare_{Random.Shared.Next(1_000_000)}\",\n    description: \"Works of Shakespeare\",\n    cancellationToken: cancellationToken);\n\nvar catalog = createCatalogResponse.Catalog;\nConsole.WriteLine($\"CatalogId: {catalog.CatalogId}\");\nConsole.WriteLine($\"Name: {catalog.Name}\");\nConsole.WriteLine($\"Description: {catalog.Description}\");\nConsole.WriteLine($\"TotalFiles: {catalog.TotalFiles}\");\nConsole.WriteLine($\"TotalTokens: {catalog.TotalTokens}\");\n\nUploadCatalogFileResponse uploadFileResponse = await client.Subscription.UploadCatalogFileAsync(\n    namespaceId: \"havendv\",\n    catalogId: catalog.CatalogId,\n    name: \"midsummer-nights-dream.pdf\",\n    type: FileType.PDF,\n    content: Convert.ToBase64String(H.Resources.midsummer_nights_dream_pdf.AsBytes()),\n    cancellationToken: cancellationToken);\n\nvar file = uploadFileResponse.File;\nConsole.WriteLine($\"FileUid: {file.FileUid}\");\nConsole.WriteLine($\"Name: {file.Name}\");\nConsole.WriteLine($\"Type: {file.Type}\");\nConsole.WriteLine($\"Size: {file.Size}\");\nConsole.WriteLine($\"TotalTokens: {file.TotalTokens}\");\nConsole.WriteLine($\"TotalChunks: {file.TotalChunks}\");\n\nProcessCatalogFilesResponse processFilesResponse = await client.Subscription.ProcessCatalogFilesAsync(\n    fileUids: [file.FileUid],\n    cancellationToken: cancellationToken);\n\nprocessFilesResponse.Files[0].ProcessStatus.Should().Be(FileProcessStatus.WAITING);\n\nwhile (!cancellationToken.IsCancellationRequested)\n{\n    await Task.Delay(TimeSpan.FromSeconds(5), cancellationToken);\n    \n    ListCatalogFilesResponse listFilesResponse = await client.Subscription.ListCatalogFilesAsync(\n        namespaceId: \"havendv\",\n        catalogId: catalog.CatalogId,\n        cancellationToken: cancellationToken);\n\n    if (listFilesResponse.Files[0].ProcessStatus is\n            FileProcessStatus.COMPLETED or\n            FileProcessStatus.FAILED)\n    {\n        break;\n    }\n}\n\nconst string question = \"Who are the main characters involved in the love triangle in Act I?\";\nConsole.WriteLine($\"Question: {question}\");\n\nQuestionAnsweringResponse questionAnsweringResponse = await client.Subscription.QuestionAnsweringAsync(\n    namespaceId: \"havendv\",\n    catalogId: catalog.CatalogId,\n    question: question,\n    topK: 5,\n    cancellationToken: cancellationToken);\n\nConsole.WriteLine($\"Answer: {questionAnsweringResponse.Answer}\");\n// Answer: The main characters involved in the love triangle in Act I are Hermia, Lysander, and Demetrius.\n\nConsole.WriteLine(\"SimilarChunks:\");\n\nforeach (var chunk in questionAnsweringResponse.SimilarChunks ?? [])\n{\n    Console.WriteLine($\"  ChunkUid: {chunk.ChunkUid}\");\n    Console.WriteLine($\"  SimilarityScore: {chunk.SimilarityScore}\");\n    Console.WriteLine($\"  TextContent: {chunk.TextContent}\");\n    Console.WriteLine($\"  SourceFile: {chunk.SourceFile}\");\n    Console.WriteLine(\"----------------------------------------\");\n}\n\nDeleteCatalogResponse deleteCatalogResponse = await client.Subscription.DeleteCatalogAsync(\n    namespaceId: \"havendv\",\n    catalogId: catalog.CatalogId,\n    cancellationToken: cancellationToken);\n```\n```\nCatalogId: shakespeare_603611\nName: shakespeare_603611\nDescription: Works of Shakespeare\nTotalFiles: 0\nTotalTokens: 0\nFileUid: 74fb1fa5-1ea8-4cde-8464-d6c5ceacdb19\nName: midsummer-nights-dream.pdf\nType: PDF\nSize: 572679\nTotalTokens: 0\nTotalChunks: 0\nQuestion: Who are the main characters involved in the love triangle in Act I?\nAnswer: The main characters involved in the love triangle in Act I are Hermia, Lysander, and Demetrius.\nSimilarChunks:\n  ChunkUid: 0eefa2e4-b236-45e8-934e-2c8b212b8c15\n  SimilarityScore: 0,53560394\n  TextContent: \n15 A Midsummer Night’s Dream ACT 1. SC. 1\u003cbr\u003eDevoutly dotes, dotes in idolatry,\u003cbr\u003eUpon this spotted and inconstant man.\u003cbr\u003eTHESEUS\u003cbr\u003eI must confess that I have heard so much,\u003cbr\u003eAnd with Demetrius thought to have spoke thereof;\u003cbr\u003eBut, being overfull of self-affairs, 115\u003cbr\u003eMy mind did lose it.—But, Demetrius, come,\u003cbr\u003eAnd come, Egeus; you shall go with me.\u003cbr\u003eI have some private schooling for you both.—\u003cbr\u003eFor you, fair Hermia, look you arm yourself\u003cbr\u003eTo fit your fancies to your father’s will, 120\u003cbr\u003eOr else the law of Athens yields you up\u003cbr\u003e(Which by no means we may extenuate)\u003cbr\u003eTo death or to a vow of single life.—\u003cbr\u003eCome, my Hippolyta. What cheer, my love?—\u003cbr\u003eDemetrius and Egeus, go along. 125\u003cbr\u003eI must employ you in some business\u003cbr\u003eAgainst our nuptial and confer with you\u003cbr\u003eOf\n  SourceFile: midsummer-nights-dream.pdf\n----------------------------------------\n  ChunkUid: 517ca21b-8762-4a57-a5ac-f924ccc8d862\n  SimilarityScore: 0,5345083\n  TextContent: \n17 A Midsummer Night’s Dream ACT 1. SC. 1\u003cbr\u003eHERMIA\u003cbr\u003eO spite! Too old to be engaged to young. 140\u003cbr\u003eLYSANDER\u003cbr\u003eOr else it stood upon the choice of friends—\u003cbr\u003eHERMIA\u003cbr\u003eO hell, to choose love by another’s eyes!\u003cbr\u003eLYSANDER\u003cbr\u003eOr, if there were a sympathy in choice,\u003cbr\u003eWar, death, or sickness did lay siege to it,\u003cbr\u003eMaking it momentany as a sound, 145\u003cbr\u003eSwift as a shadow, short as any dream,\u003cbr\u003eBrief as the lightning in the collied night,\u003cbr\u003eThat, in a spleen, unfolds both heaven and Earth,\u003cbr\u003eAnd, ere a man hath power to say “Behold!”\u003cbr\u003eThe jaws of darkness do devour it up. 150\u003cbr\u003eSo quick bright things come to confusion.\u003cbr\u003eHERMIA\u003cbr\u003eIf then true lovers have been ever crossed,\u003cbr\u003eIt stands as an edict in destiny.\u003cbr\u003eThen let us teach our trial patience\u003cbr\u003eBecause it is a customary\n  SourceFile: midsummer-nights-dream.pdf\n----------------------------------------\n  ChunkUid: acac8bf0-a7b2-4964-9a95-265ec3259813\n  SimilarityScore: 0,53164166\n  TextContent: \n23 A Midsummer Night’s Dream ACT 1. SC. 1\u003cbr\u003eKeep word, Lysander. We must starve our sight\u003cbr\u003eFrom lovers’ food till morrow deep midnight.\u003cbr\u003eLYSANDER\u003cbr\u003eI will, my Hermia. Hermia exits.\u003cbr\u003eHelena, adieu. 230\u003cbr\u003eAs you on him, Demetrius dote on you!\u003cbr\u003eLysander exits.\u003cbr\u003eHELENA\u003cbr\u003eHow happy some o’er other some can be!\u003cbr\u003eThrough Athens I am thought as fair as she.\u003cbr\u003eBut what of that? Demetrius thinks not so.\u003cbr\u003eHe will not know what all but he do know. 235\u003cbr\u003eAnd, as he errs, doting on Hermia’s eyes,\u003cbr\u003eSo I, admiring of his qualities.\u003cbr\u003eThings base and vile, holding no quantity,\u003cbr\u003eLove can transpose to form and dignity.\u003cbr\u003eLove looks not with the eyes but with the mind; 240\u003cbr\u003eAnd therefore is winged Cupid painted blind.\u003cbr\u003eNor hath Love’s mind of any judgment taste.\u003cbr\u003eWings, and no\n  SourceFile: midsummer-nights-dream.pdf\n----------------------------------------\n  ChunkUid: 8709c9fa-1d7c-4f8f-82d5-729211148fea\n  SimilarityScore: 0,5229155\n  TextContent: \n91 A Midsummer Night’s Dream ACT 3. SC. 2\u003cbr\u003eROBIN\u003cbr\u003eCaptain of our fairy band,\u003cbr\u003eHelena is here at hand,\u003cbr\u003eAnd the youth, mistook by me,\u003cbr\u003ePleading for a lover’s fee. 115\u003cbr\u003eShall we their fond pageant see?\u003cbr\u003eLord, what fools these mortals be!\u003cbr\u003eOBERON\u003cbr\u003eStand aside. The noise they make\u003cbr\u003eWill cause Demetrius to awake.\u003cbr\u003eROBIN\u003cbr\u003eThen will two at once woo one. 120\u003cbr\u003eThat must needs be sport alone.\u003cbr\u003eAnd those things do best please me\u003cbr\u003eThat befall prepost’rously.\u003cbr\u003eThey step aside.\u003cbr\u003eEnter Lysander and Helena.\u003cbr\u003eLYSANDER\u003cbr\u003eWhy should you think that I should woo in scorn?\u003cbr\u003eScorn and derision never come in tears. 125\u003cbr\u003eLook when I vow, I weep; and vows so born,\u003cbr\u003eIn their nativity all truth appears.\u003cbr\u003eHow can these things in me seem scorn to you,\u003cbr\u003eBearing the badge of\n  SourceFile: midsummer-nights-dream.pdf\n----------------------------------------\n  ChunkUid: ed846a1e-691c-46be-ad8e-43f9a55ee8ee\n  SimilarityScore: 0,5222103\n  TextContent: \n133 A Midsummer Night’s Dream ACT 4. SC. 1\u003cbr\u003eThereby to have defeated you and me:\u003cbr\u003eYou of your wife and me of my consent, 165\u003cbr\u003eOf my consent that she should be your wife.\u003cbr\u003eDEMETRIUS\u003cbr\u003eMy lord, fair Helen told me of their stealth,\u003cbr\u003eOf this their purpose hither to this wood,\u003cbr\u003eAnd I in fury hither followed them,\u003cbr\u003eFair Helena in fancy following me. 170\u003cbr\u003eBut, my good lord, I wot not by what power\u003cbr\u003e(But by some power it is) my love to Hermia,\u003cbr\u003eMelted as the snow, seems to me now\u003cbr\u003eAs the remembrance of an idle gaud\u003cbr\u003eWhich in my childhood I did dote upon, 175\u003cbr\u003eAnd all the faith, the virtue of my heart,\u003cbr\u003eThe object and the pleasure of mine eye,\u003cbr\u003eIs only Helena. To her, my lord,\u003cbr\u003eWas I betrothed ere I saw Hermia.\u003cbr\u003eBut like a sickness did I loathe this food.\n  SourceFile: midsummer-nights-dream.pdf\n----------------------------------------\n```\n\n## Support\n\nPriority place for bugs: https://github.com/tryAGI/Instill/issues  \nPriority place for ideas and general questions: https://github.com/tryAGI/Instill/discussions  \nDiscord: https://discord.gg/Ca2xhfBf3v  \n\n## Acknowledgments\n\n![JetBrains logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.png)\n\nThis project is supported by JetBrains through the [Open Source Support Program](https://jb.gg/OpenSourceSupport).\n\n![CodeRabbit logo](https://opengraph.githubassets.com/1c51002d7d0bbe0c4fd72ff8f2e58192702f73a7037102f77e4dbb98ac00ea8f/marketplace/coderabbitai)\n\nThis project is supported by CodeRabbit through the [Open Source Support Program](https://github.com/marketplace/coderabbitai).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryagi%2Finstill-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftryagi%2Finstill-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryagi%2Finstill-ai/lists"}