I'm creating a bot where I can ask a specific temperature of a room. I've build something custom where I can read the temperature of my room. But when I build an hierarchical entity where I put the word temperature in, it refuses to use the word because LUIS use it in an prebuilt model.
Is there a way i can use the word?
BadArgument: The name temperature is reserved to prebuilt models.
Please use another name
You cannot add an entity called temperature because the name is already taken by the prebuilt one. However, #Eric's argument is valid - the name of the entity doesn't affect your application at all, it's just a familiar name to be used by programmers which are using your LUIS app. Consider calling it temp or so, and look for the same name in the code using LUIS.
Related
I have trained a custom form identifier using Form Recognizer Studio:
The model is trained and it seems to be working well.
Now, I want to use this model using Power Automate, but I need the model identifier, but Where Can I Find It?
I have searched it everywhere in Azure, but no luck:
In the Studio you can find the models IDs within the projects in the Model tab. Please note though that the Form Recognizer Power Automate connector does not yet support the new preview release and supports only the 2.1 GA API. In order to use it you need to train the model in the 2.1 release and use https://fott-2-1.azurewebsites.net/. In 2.1 you will also find the model ID in the UX.
If you want to use the new Studio and preview API in power automate you can create a custom connector and call the REST API directly using the AnalyzeDocument API https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v3-0-preview-1/operations/AnalyzeDocument
In this case you will need to provide the model name which is the unique model name you gave the model when training it.
Better late than never, at this point with the model ID not available, consider using HTTP in your logic app, instead of Form Recognizer Logic App. Ways to make it better would be to keep the model ID as a variable and have a delay between REQUEST and GET
I am not able to find a simple way to integrate my SharePoint example list into my bot:
I wonder if that is possible without another database like Cosmos DB.
What is the best practice to use such a SharePoint list and being able to search it in the Bot Framework Composer directly?
I would suggest starting with reviewing a Bot Framework sample. I would think one using the GRAPH api would be a good start.
But essentially, you just need to authenticate the user (if not already done) and then make the correct calls (whatever is required for SharePoint api calls), during the appropriate location (OnTurnAsync or maybe SimpleGraphClient if using the above sample).
Goodday!
I've got a library full of documents. I would like to be able to know some more about these documents without reading through all of them. On the first page of each document I already put some relevant information about the document such as year of creation, author, number of pages and confidentiality.
I want to use some AI to browse through these documents and decide which is what and return it to me so I can store it in a CSV or something. This way I'll be able to easily find the right document.
Now, I did use LUIS and some of the TAA service of Azure's cognitive services before. But I cannot figure out a way how to accomplish this.
Is it theoretically possible to send the first page (using a powershell script to cut the rest of the document and send it through) to LUIS, which can then return the entities? I'd like them in a way: Date of creation: 18/10/2018, pages: 100.
Or is there a better way to use Azure's powerfull AI to get this done?
I upgraded from VS2005 to VS2012 specifically to code in .Net 4,.Net 4.5, and use EF5. I am new to EF. I have Julie's EF book but it talks mainly about EF4 and POCO and it has me confused trying to implement EF5.
My hosting only allows me to run .Net 4 currently. I am trying to use EF5 on a new database.
I tried Code first to generate my database but I could not get it to generate the database. So I created the database first and then generated the model from the database with EF5. What I want is a layered website using ASP.NET Forms, Data Access Layer, and a Business Layer. The business layer I intend to build so I can use ObjectDataSource to pull in to the webpage along with some web services to use cascading dropdowns.
I have my NameX.edm model created but the tt files don't have the same names, they have Model1.tt and Model1.Context.tt is not the same name, why. Also Model1.Context.tt is empty. I am attempting to create the POCO classes running the EF5 DbContext but I am having trouble getting it to see the edm model. I read somewhere that EF5 creates the POCO automatically. I am not seeing the big picture here. Is my issue that I am not using .Net4.5?
What I have is a ASP.NET Application project, a EF Project, a POCO Project, and intend to have a forth project with the Business logic. How do I get the EF generated correctly and the POCO classes? I want a layered application for to scale well. Next question How to get the POCO classes to talk with the Business logic? My database is SQL. I am use to writing stored proceedures to accomplish everything through business logic.
If you are using Model First technique, make sure that you have references to System.Data.Entity and System.Data.Entity.Design. Also, you will need to create a reference to the EntityFramework.dll as well. It is located by default in c:\Program Files\Microsoft ADO.NET Entity Framework Feature CTP5\Binaries\EntityFramework.dll. If you can not find it, make sure you have installed the Entity Framework through your Package Manager Console. To do this, open up Tools, Library Package Manager, Package Manager Console, then type Install-Package EntityFrameWork.
Next you want to add a new item to your project. Right click on your solution, go to Add, then select New Item. You want to select Data from the Common Items section on the left, then select ADO.NET Entity Data Model.
Next Select Generate From Database. In the next screen, if you have not set up your connection to the server, click New Connection..., otherwise select your database from the drop down box. You need to select whether or not you want to include your connection string information in your config file. This is up to you how secure you need your application to be. If you choose not to, you need to pass this information as parameters in code. Also at the bottom, you will most likely want to change the auto-generated entities name to something easier for you to use. This name will be the name of your DBContext Class!
Next you want to select the tables you would like EF to create POCO's for. If you want all the tables just tick the tables items. Same goes for views and stored procs.
Once you click finish, then you should see all your fancy POCOS laid out in front of you in Design Mode. Note If you do not have primary keys in place for all your tables, I suggest you fix that! VS will spit at you if you do not have Primary Keys set, or if your naming conventions in your tables prevent VS from creating them for you implicitly.
This is a quick little tutorial on getting you up and running. You can now persist and pull data from your POCOS by using your DBContext object. For example if you named your DBContext class *Gary_Bettman_Sucks*, and you wanted to create a new record from your table called NHL you would do the following:
Dim context as New Gary_Bettman_Sucks
Dim PullMyGoalie as New NHL With {
.Goals = 0,
.Playoffs = False
}
context.Set(Of NHL).Add(PullMyGoalie)
context.SaveChanges()
I would Highly suggest you look into implementing the Repository Pattern with your design to encourage code re-use, and it will seriously make your life MUCH easier down the road.
Hope this helps!
I have created application with corde data model to populate my sqlite database with data. What I want to put this populated database to iphone application. In iphone application project I have added the sqlite database file that I had populated and have imported the mangedobjectmodel from my destktop application, but when I run the iphone application I get an error : reason = "The model used to open the store is incompatible with the one used to create the store";
Is it possible to use one managedobjectmodel in different applications, or I have to migrate the data from one managedobjectmodel to another.
Thank you for your help.
The exact model used to create the store must be available to the app. The model provides the only information that the Core Data stacks has to interpret the store as objects.
You must move the model from the MacOS app to the iOS app. If you need to change the model, you need to create a new version of the old model and then migrate the store from the old to the new.
This is actually easy to do. I quite often create models and pre-populated SQLite stores on my development Mac and then insert the results into an iOS app. Unless your making any changes as above, the process is seamless and no more difficult than importing the files into the project.